/* ===================================================================
   Jérémy Nathan — Chiropracteur · Feuille de style
   Palette : médical épuré & rassurant (blanc, bleu profond, vert d'eau)
   =================================================================== */

:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f3f7fc;
  --c-ink: #16243a;
  --c-muted: #5a6b85;
  --c-primary: #1d5fc4;       /* bleu santé */
  --c-primary-dark: #14479a;
  --c-accent: #3d86e0;
  --c-line: #e1e9f4;
  --c-soft: #e8f1fc;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 60, 66, .06), 0 2px 8px rgba(16, 60, 66, .05);
  --shadow-md: 0 10px 30px rgba(16, 60, 66, .10);
  --shadow-lg: 0 24px 60px rgba(16, 60, 66, .14);

  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1140px;
  --pad: clamp(1.1rem, 4vw, 2rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; display: block; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--c-ink);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--c-accent);
  margin: 0 0 .8rem;
}
.eyebrow.light { color: #b6d3f7; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .72rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 110, 110, .28);
}
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn-outline {
  background: #fff;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary); color: #fff; }

.link-arrow { font-weight: 600; display: inline-block; margin-top: .4rem; }
.link-arrow:hover { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 70px;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--c-ink); }
.brand-mark {
  display: grid; place-items: center;
  background: #fff;
  padding: 4px 8px;
  border-radius: 10px;
  color: var(--c-primary);
}
.brand-mark img {
  height: 100%;
  width: auto;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; white-space: nowrap; }
.ei { font-size: .62em; font-weight: 600; opacity: .65; white-space: nowrap; }
.brand-text small { color: var(--c-muted); font-size: .76rem; }

.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list li { flex-shrink: 0; }
.nav-list a {
  color: var(--c-ink);
  font-weight: 500;
  font-size: .95rem;
  padding: .3rem 0;
  position: relative;
  white-space: nowrap;
}
.nav-list a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--c-primary);
  transition: width .2s ease;
}
.nav-list a:hover::after { width: 100%; }

.header-cta { margin-left: 1.25rem; flex-shrink: 0; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--c-ink);
  border-radius: 2px; transition: .25s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--c-soft), transparent 60%),
    linear-gradient(180deg, #fbfdfd, #ffffff);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-text .lead {
  font-size: 1.12rem;
  color: var(--c-muted);
  max-width: 38ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  list-style: none; margin: 0; padding: 0;
  color: var(--c-muted); font-size: .9rem; font-weight: 500;
}

.hero-card {
  order: -1;            /* carte d'accueil à gauche, texte à droite */
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.8rem;
  display: grid;
  gap: 1.2rem;
}
.hero-figure {
  display: grid; place-items: center;
  height: 130px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--c-soft), #d6e6fb);
  color: var(--c-primary);
}
.hero-figure-img {
  height: 108px;
  width: auto;
  /* le mode multiply fait disparaître le fond blanc du JPEG sur le dégradé */
  mix-blend-mode: multiply;
  filter: contrast(1.1);
}
/* Variante plaque : photo réelle affichée proprement, sans dégradé ni fondu */
.hero-figure-plaque {
  height: auto;
  background: none;
  padding: 0;
  overflow: hidden;
}
.hero-plaque-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.hero-quote p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--c-ink);
  margin: 0;
}
.hero-hours {
  display: grid; gap: .15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
  font-size: .92rem; color: var(--c-muted);
}
.hero-hours strong { color: var(--c-ink); margin-bottom: .2rem; }

/* ---------- Bandeau réassurance ---------- */
.strip {
  background: var(--c-primary);
  color: #eaf2fd;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: 1.6rem;
}
.strip-item { display: flex; align-items: center; gap: .8rem; }
.strip-icon { font-size: 1.5rem; }
.strip-item strong { display: block; color: #fff; font-size: .98rem; }
.strip-item small { color: #c4ddfa; font-size: .82rem; }

/* ---------- Sections génériques ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-sub { color: var(--c-muted); font-size: 1.05rem; margin: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.two-col.reverse .practitioner-photo { order: -1; }

/* Liste numérotée chiropraxie */
.col-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.col-list li {
  display: flex; gap: 1rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.col-list li span {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-soft); color: var(--c-primary);
  font-weight: 700; font-family: var(--font-display);
}
.col-list li p { margin: .2rem 0 0; color: var(--c-muted); font-size: .92rem; }

/* ---------- Cartes indications ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-soft); }
.card h3 { color: var(--c-primary-dark); margin-bottom: .35rem; }
.card p { margin: 0; color: var(--c-muted); font-size: .9rem; }

/* ---------- Galerie cabinet ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.gallery-item {
  margin: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-soft); }
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: .8rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--c-soft); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-primary);
  display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 400; line-height: 1;
  transition: transform .25s ease, background .2s ease;
}
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); background: var(--c-primary); color: #fff; }
.faq-item summary:hover { color: var(--c-primary); }
.faq-answer { padding: 0 1.3rem 1.2rem; }
.faq-answer p { margin: 0; color: var(--c-muted); }
.faq-answer a { font-weight: 600; }
.faq-cta {
  text-align: center;
  margin-top: 2.2rem;
  display: grid; gap: .8rem; justify-items: center;
}
.faq-cta p { margin: 0; color: var(--c-muted); }

/* ---------- Avis ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 820px;
  margin: 0 auto;
}
.review-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
  color: var(--c-ink);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-soft); color: var(--c-ink); }
.review-logo {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #f1f5fb;
}
.review-logo.doctolib-logo { background: #107acc; }
.review-body { display: flex; flex-direction: column; flex: 1; }
.review-body strong { font-family: var(--font-display); font-size: 1.02rem; }
.review-body small { color: var(--c-muted); font-size: .85rem; }
.review-stars { color: #fbbc05; letter-spacing: 1px; font-size: .95rem; flex: none; }
.review-arrow { color: var(--c-primary); font-size: 1.3rem; font-weight: 700; flex: none; }

/* ---------- Praticien ---------- */
.practitioner-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #eaf2fd, #d4e4fa);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.practitioner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-placeholder {
  display: grid; place-items: center; gap: .5rem;
  color: var(--c-primary); opacity: .7;
  font-size: .9rem; font-weight: 500;
}
.facts { display: grid; gap: .8rem; margin: 1.4rem 0 0; }
.facts > div {
  display: grid; grid-template-columns: 130px 1fr;
  gap: .6rem; padding-bottom: .7rem;
  border-bottom: 1px solid var(--c-line);
}
.facts dt { color: var(--c-muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- Accès ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
  border: 1px solid var(--c-line);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.access-info h3 { margin-top: 1.3rem; color: var(--c-primary-dark); }
.access-info h3:first-child { margin-top: 0; }
.travel-times { list-style: none; margin: .4rem 0 1.2rem; padding: 0; }
.travel-times li {
  display: flex; justify-content: space-between;
  padding: .5rem 0; border-bottom: 1px dashed var(--c-line);
  font-size: .95rem;
}
.travel-times span { font-weight: 600; color: var(--c-primary); }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #fff;
}
.cta-section h2 { color: #fff; }
.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem; align-items: center;
}
.cta-text p { color: #d3e5fb; margin: 0; }
.cta-actions { display: grid; gap: 1rem; justify-items: start; }
.cta-section .btn-primary {
  background: #fff; color: var(--c-primary-dark);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.cta-section .btn-primary:hover { background: #eaf2fd; color: var(--c-primary-dark); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.contact-list a { color: #eaf2fd; font-weight: 500; }
.contact-list a:hover { color: #fff; }

/* ---------- Pied de page ---------- */
.site-footer { background: #0f1f3a; color: #cdd9ec; padding: 3rem 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.8rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: #fff; white-space: nowrap; }
.footer-brand span { font-size: .88rem; color: #9fb4d6; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.footer-col p { font-size: .92rem; margin: 0; }
.footer-col a { color: #cdd9ec; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-top: 1.4rem; font-size: .82rem; color: #8aa0c4;
}
.footer-bottom a { color: #c4d4ec; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Bouton flottant mobile ---------- */
.floating-cta {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 60;
  display: none;
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}
.floating-cta:hover { color: #fff; background: var(--c-primary-dark); }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 920px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
}

/* Le menu horizontal complet ne tient plus : on bascule en menu hamburger */
@media (max-width: 1100px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav { margin-left: auto; }
  .nav-list {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
    z-index: 20;
  }
  .main-nav.open .nav-list { max-height: 420px; }
  .nav-list li { border-top: 1px solid var(--c-line); }
  .nav-list a { display: block; padding: .9rem var(--pad); }
}

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .practitioner-photo { order: 0; }
  .access-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .floating-cta { display: inline-block; }
}

@media (max-width: 480px) {
  .strip-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 0; }
  .hero-badges { gap: .6rem 1.1rem; }
}

/* Animation d'apparition douce */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ===================================================================
   Carte Google Maps — chargement au clic (sans cookie avant consentement)
   =================================================================== */
.map-consent {
  position: relative;
  width: 100%; height: 100%;
  min-height: 380px;
  display: grid; place-items: center;
  text-align: center;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(29,95,196,.06), rgba(61,134,224,.10)),
    repeating-linear-gradient(45deg, #eef4fc 0 14px, #f6faff 14px 28px);
  cursor: pointer;
}
.map-consent .map-consent-inner { display: grid; gap: .6rem; justify-items: center; max-width: 320px; }
.map-consent svg { color: var(--c-primary); }
.map-consent strong { font-family: var(--font-display); font-size: 1.1rem; }
.map-consent p { color: var(--c-muted); font-size: .88rem; margin: 0; }

/* ===================================================================
   Bandeau cookies
   =================================================================== */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 80;
  max-width: 620px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem 1.3rem;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h4 { font-family: var(--font-body); font-size: 1rem; margin: 0 0 .4rem; }
.cookie-banner p { font-size: .88rem; color: var(--c-muted); margin: 0 0 1rem; }
.cookie-banner p a { font-weight: 600; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions .btn { font-size: .9rem; padding: .6rem 1.1rem; }

/* ===================================================================
   Pages légales (mentions / confidentialité)
   =================================================================== */
.page-hero {
  background:
    radial-gradient(900px 360px at 80% -20%, var(--c-soft), transparent 60%),
    linear-gradient(180deg, #fbfdff, #ffffff);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
  border-bottom: 1px solid var(--c-line);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .3rem; }
.page-hero p { color: var(--c-muted); margin: 0; }
.legal { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.legal .container { max-width: 820px; }
.legal h2 {
  font-size: 1.35rem; margin-top: 2.2rem;
  padding-top: 1.4rem; border-top: 1px solid var(--c-line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; color: var(--c-primary-dark); }
.legal p, .legal li { color: #33455e; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal .updated { font-size: .85rem; color: var(--c-muted); margin-top: 2.5rem; font-style: italic; }
.legal a { font-weight: 500; }
.back-home { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; font-weight: 600; }
.note-fill {
  background: #fff7e6; border: 1px solid #f3e0b3;
  border-radius: var(--radius-sm); padding: .8rem 1rem;
  font-size: .85rem; color: #7a5b16;
}
