/* =========================================================
   Pr. Fouad Amrani Joutey — Neurochirurgien & Neurologue
   Design system & styles — Page d'accueil (Phase 1)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (extraite du logo) */
  --petrol:        #336472; /* primaire */
  --petrol-dark:   #284f5a;
  --petrol-darker: #20404a;
  --slate:         #6CA1BA; /* secondaire */
  --powder:        #74A3BF; /* accent clair */
  --bg:            #F6F9FA; /* fond principal */
  --bg-2:          #EDF3F5; /* fond alterné */
  --ink:           #1E2A2E; /* texte courant */
  --muted:         #5b6b70; /* texte secondaire */
  --line:          #dde7ea; /* bordures */
  --white:         #FFFFFF;

  /* Typo */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Échelle & rythme */
  --maxw: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  /* Ombres douces */
  --shadow-sm: 0 2px 10px rgba(32, 64, 74, .06);
  --shadow:    0 14px 40px rgba(32, 64, 74, .10);
  --shadow-lg: 0 28px 70px rgba(32, 64, 74, .16);

  --header-h: 80px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--petrol-darker);
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 480; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }

/* ---------- Layout utilitaires ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section--alt { background: var(--bg-2); }
.section--petrol {
  background: linear-gradient(160deg, var(--petrol) 0%, var(--petrol-darker) 100%);
  color: #dceaef;
}
.section--petrol h2, .section--petrol h3 { color: var(--white); }
.section--petrol p { color: #c4dae1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--slate);
  display: inline-block;
}
.section--petrol .eyebrow { color: var(--powder); }
.section--petrol .eyebrow::before { background: var(--powder); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 1rem; font-size: 1.06rem; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink); line-height: 1.7; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--petrol); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--petrol-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--petrol); border-color: rgba(51,100,114,.35); }
.btn--ghost:hover { border-color: var(--petrol); background: rgba(51,100,114,.06); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--petrol); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--petrol); font-weight: 600; font-size: .95rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(246,249,250,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__icon { height: 42px; width: auto; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name strong {
  font-family: var(--serif); font-weight: 600; font-size: 1.12rem;
  color: var(--petrol-darker); letter-spacing: -0.01em;
}
.brand__name > span { font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--slate); }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__links { display: flex; gap: 1.35rem; list-style: none; padding: 0; }
.nav__links a {
  font-weight: 500; font-size: .95rem; color: var(--ink);
  position: relative; padding-block: .4rem; white-space: nowrap;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--slate); transition: width .22s ease;
}
.nav__links a:hover { color: var(--petrol); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: .9rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  position: relative;
}
.burger span,
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px; background: var(--petrol); border-radius: 2px;
  transform: translate(-50%, -50%); transition: .25s ease;
}
.burger span::before { transform: translate(-50%, -7px); }
.burger span::after  { transform: translate(-50%, 5px); }
.burger.open span { background: transparent; }
.burger.open span::before { transform: translate(-50%, -50%) rotate(45deg); }
.burger.open span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero__bg::before {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(108,161,186,.18), transparent 62%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--white); border: 1px solid var(--line);
  padding: .5rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: var(--petrol); box-shadow: var(--shadow-sm); margin-bottom: 1.6rem;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slate); }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--slate); }
.hero__sub { font-size: 1.1rem; color: var(--ink); max-width: 33ch; margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__media { position: relative; }
.hero__media .frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/5;
}
.hero__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .frame::after { /* léger dégradé bleu pétrole pour intégrer à la charte */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(51,100,114,0) 55%, rgba(32,64,74,.22) 100%),
              linear-gradient(120deg, rgba(51,100,114,.10), transparent 40%);
}
.hero__media .float-card {
  position: absolute; left: -22px; bottom: 28px;
  background: var(--white); border-radius: var(--radius);
  padding: 1rem 1.2rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .9rem;
  max-width: 230px;
}
.hero__media .float-card .num { font-family: var(--serif); font-size: 2rem; color: var(--petrol); line-height: 1; }
.hero__media .float-card .lbl { font-size: .82rem; color: var(--muted); line-height: 1.35; }

/* Bandeau infos rapides sous le hero */
.quickbar {
  position: relative; z-index: 1; margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.quickbar > div { background: var(--white); padding: 1.4rem 1.6rem; display: flex; gap: 1rem; align-items: center; }
.quickbar > div > div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.quickbar svg { width: 26px; height: 26px; color: var(--slate); flex: none; }
.quickbar .k { font-weight: 600; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.quickbar .s { font-size: .85rem; color: var(--muted); line-height: 1.35; }

/* =========================================================
   Décoration : filigrane du logo
   ========================================================= */
.watermark {
  position: absolute; pointer-events: none; opacity: .05; z-index: 0;
  width: 280px; filter: grayscale(0);
}
.watermark--tr { top: 4%; right: 3%; }
.watermark--bl { bottom: 2%; left: 1%; transform: scaleX(-1); }
.section > .container { position: relative; z-index: 1; }

/* =========================================================
   SPLIT (image + texte) — Présentation / Cabinet
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--40 { grid-template-columns: 40% 1fr; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  aspect-ratio: 4/3; object-fit: cover;
}
.split--portrait .split__media img { aspect-ratio: 4/5; }
.split__media .tag {
  position: absolute; bottom: 18px; left: 18px;
  background: rgba(32,64,74,.9); color: #fff; backdrop-filter: blur(4px);
  padding: .55rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; gap: .5rem;
}
.split__body p + p { margin-top: 1.1rem; }
.split__body .lead { margin-bottom: 1.3rem; }

/* Liste valeurs */
.values { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; gap: 1rem; }
.values li { display: flex; gap: .9rem; align-items: flex-start; }
.values .ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(108,161,186,.14); color: var(--petrol);
  display: grid; place-items: center;
}
.values .ico svg { width: 20px; height: 20px; }
.values b { display: block; color: var(--ink); font-size: 1rem; }
.values span { font-size: .92rem; color: var(--muted); }

/* Sous-blocs "Dans quels cas / Méthodes" */
.subcards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.subcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.subcard h3 { margin-bottom: .7rem; font-size: 1.2rem; }
.subcard p { font-size: .96rem; }
.subcard .pill-row { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  display: inline-block;
  font-size: .82rem; font-weight: 600; color: var(--petrol);
  background: rgba(108,161,186,.13); padding: .35rem .8rem; border-radius: 999px;
  transition: background .18s ease, transform .18s ease;
}
a.pill:hover { background: rgba(108,161,186,.26); transform: translateY(-1px); }

/* =========================================================
   SERVICES (cartes icônes)
   ========================================================= */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem;
}
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(108,161,186,.5); }
.service-card .ico {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(108,161,186,.18), rgba(116,163,191,.10));
  color: var(--petrol); display: grid; place-items: center; margin-bottom: .4rem;
}
.service-card .ico svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.15rem; }
.service-card p { font-size: .92rem; flex: 1; }
.service-card .link-arrow { margin-top: .4rem; }

/* =========================================================
   HYPER-SPÉCIALISATIONS (badges)
   ========================================================= */
.tags { display: flex; flex-wrap: wrap; gap: .9rem; }
.tag-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  color: #eaf4f7; padding: .8rem 1.3rem; border-radius: 999px;
  font-weight: 500; font-size: .98rem;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.tag-badge:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); border-color: rgba(255,255,255,.45); }
.tag-badge .d { width: 7px; height: 7px; border-radius: 50%; background: var(--powder); flex: none; }

/* =========================================================
   DIPLÔMES (timeline) + DISTINCTIONS
   ========================================================= */
.dip-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--slate), var(--line));
}
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-2.2rem + 1px); top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--slate);
}
.tl-item .year {
  font-family: var(--serif); font-size: 1.25rem; color: var(--petrol); font-weight: 600;
  display: block; margin-bottom: .2rem;
}
.tl-item p { font-size: .98rem; color: var(--ink); }

.honours {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.honours-img { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow-sm); }
.honours h3 { font-size: 1.15rem; margin-bottom: 1.2rem; }
.honours ul { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.honours li { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; color: var(--ink); }
.honours .medal { flex: none; color: var(--slate); width: 22px; height: 22px; margin-top: 2px; }

/* =========================================================
   TÉMOIGNAGES
   ========================================================= */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; }
.tcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem;
}
.tcard .stars { color: #e9b949; letter-spacing: 2px; font-size: 1rem; }
.tcard blockquote { font-size: 1rem; color: var(--ink); line-height: 1.6; font-style: italic; }
.tcard .who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.tcard .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--petrol); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-family: var(--serif);
}
.tcard .who b { font-size: .95rem; }
.tcard .who span { font-size: .82rem; color: var(--muted); display: block; }
.testimonials-foot { text-align: center; margin-top: 2.5rem; }
.gbadge {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .9rem; color: var(--muted); margin-top: .8rem;
}
.note {
  margin-top: 1.4rem; font-size: .82rem; color: var(--muted);
  background: rgba(108,161,186,.10); border: 1px dashed var(--slate);
  border-radius: 12px; padding: .8rem 1rem; max-width: 760px; margin-inline: auto;
}

/* =========================================================
   RAPATRIEMENT (formulaire)
   ========================================================= */
.repat { position: relative; }
.repat-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.repat-steps { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1.3rem; }
.repat-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.repat-steps .n {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .95rem;
}
.repat-steps b { color: #fff; display: block; font-size: 1rem; }
.repat-steps span { font-size: .9rem; color: #c4dae1; }

.form-card {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-lg); color: var(--ink);
}
.form-card h3 { margin-bottom: .4rem; }
.form-card .form-intro { color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .45rem; color: var(--ink); }
.field .req { color: #c0563f; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(108,161,186,.18); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.radio-group { display: flex; gap: .8rem; }
.radio-group label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600; font-size: .95rem; margin: 0; transition: .18s ease; background: var(--bg);
}
.radio-group input { position: absolute; opacity: 0; pointer-events: none; }
.radio-group label:has(input:checked) { border-color: var(--petrol); background: rgba(51,100,114,.08); color: var(--petrol); }
#conditional-field { display: none; }
#conditional-field.show { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.form-success {
  display: none; text-align: center; padding: 2.5rem 1rem;
}
.form-success.show { display: block; animation: fadeIn .3s ease; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(108,161,186,.16);
  color: var(--petrol); display: grid; place-items: center; margin: 0 auto 1.2rem;
}
.form-success .check svg { width: 32px; height: 32px; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 1rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--petrol-darker); color: #b9d1d9; padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; }
.brand--footer { margin-bottom: 1.3rem; }
.brand--footer .brand__icon { height: 46px; }
.brand--footer .brand__name strong { color: #fff; }
.brand--footer .brand__name > span { color: var(--powder); }
.footer__brand p { color: #9fbcc5; font-size: .92rem; max-width: 38ch; }
.footer h4 { color: #fff; font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .04em; margin-bottom: 1.2rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .75rem; }
.footer a { color: #b9d1d9; font-size: .93rem; transition: color .18s ease; }
.footer a:hover { color: #fff; }
.footer .contact-item { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; margin-bottom: 1rem; }
.footer .contact-item svg { width: 18px; height: 18px; color: var(--powder); flex: none; margin-top: 3px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: #87a6b0;
}

/* =========================================================
   Animations au scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; margin-inline: auto; order: -1; }
  .hero__sub { max-width: none; }
  .dip-grid { grid-template-columns: 1fr; }
  .repat-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg); flex-direction: column; align-items: stretch;
    gap: 0; padding: 1rem var(--gut) 2rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__links a { display: block; padding: .95rem 0; font-size: 1.05rem; }
  .nav__cta { flex-direction: column; align-items: stretch; margin-top: 1rem; width: 100%; }
  .nav__cta .btn { width: 100%; }
  .burger { display: block; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: -1; }
  .subcards { grid-template-columns: 1fr; }
  .quickbar { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__media .float-card { left: 50%; transform: translateX(-50%); bottom: -22px; }
  .hero { padding-bottom: 3.5rem; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .nav__cta .btn--ghost { display: none; }
}

/* =========================================================
   PAGE SERVICES (Phase 2)
   ========================================================= */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); text-align: center; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; text-align: center; }
.breadcrumb a { color: var(--slate); font-weight: 600; }
.breadcrumb a:hover { color: var(--petrol); }
.breadcrumb span { margin: 0 .2rem; }

.svc-toc {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2rem;
}
.svc-toc a {
  font-size: .9rem; font-weight: 600; color: var(--petrol);
  background: var(--white); border: 1px solid var(--line);
  padding: .55rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.svc-toc a:hover { transform: translateY(-2px); border-color: var(--slate); background: rgba(108,161,186,.08); }

/* Numéro de service sur l'image */
.split__media .svc-num {
  position: absolute; top: 16px; left: 16px;
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(32,64,74,.92); color: #fff; backdrop-filter: blur(4px);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  box-shadow: var(--shadow);
}

/* Eyebrow avec icône (page services) */
.split__body .eyebrow svg { width: 17px; height: 17px; }

/* Bande CTA */
.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-band > div:first-child { max-width: 52ch; }
.cta-band p { margin-top: .6rem; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 760px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1; }
}

/* =========================================================
   PAGE MALADIES (Phase 3)
   ========================================================= */
.mal-divider { max-width: 720px; margin: 0 auto 2.2rem; text-align: center; }
.mal-divider .eyebrow::before { display: none; }
.mal-divider p { margin-top: .6rem; }

.mal-toc {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  max-width: 920px; margin: 0 auto 3rem;
}
.mal-toc a {
  font-size: .85rem; font-weight: 600; color: var(--petrol);
  background: var(--white); border: 1px solid var(--line);
  padding: .5rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.mal-toc a:hover { transform: translateY(-2px); border-color: var(--slate); background: rgba(108,161,186,.08); }

.mal-list { max-width: 860px; margin: 0 auto; display: grid; gap: 1.6rem; }

.mal-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.mal-card__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.4rem; }
.mal-icon {
  flex: none; width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(108,161,186,.16), rgba(116,163,191,.08));
  display: grid; place-items: center; color: var(--slate);
}
.mal-icon svg { width: 32px; height: 32px; }
.mal-icon .acc { stroke: var(--petrol); }
.mal-badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: .2rem .6rem; border-radius: 6px; margin-bottom: .4rem;
}
.mal-badge--maladie { color: var(--petrol); background: rgba(108,161,186,.16); }
.mal-badge--chirurgie { color: #fff; background: var(--petrol); }
.mal-card__heading h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

.mal-card__body h4 {
  font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .03em;
  text-transform: uppercase; color: var(--slate);
  margin-top: 1.4rem; margin-bottom: .35rem;
}
.mal-card__body h4:first-child { margin-top: 0; }
.mal-card__body p { font-size: .98rem; line-height: 1.7; }
.mal-card__body a { color: var(--petrol); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(51,100,114,.3); text-underline-offset: 2px; }
.mal-card__body a:hover { text-decoration-color: var(--petrol); }

.mal-alert {
  display: flex; gap: .9rem; align-items: flex-start;
  margin-top: 1.6rem; padding: 1rem 1.2rem;
  background: #fbf2ee; border: 1px solid #f0d6cc; border-left: 4px solid #c0563f;
  border-radius: 12px;
}
.mal-alert svg { width: 22px; height: 22px; color: #c0563f; flex: none; margin-top: 2px; }
.mal-alert b { display: block; color: #9c4430; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.mal-alert p { font-size: .92rem; color: #6e4034; line-height: 1.55; }

@media (max-width: 540px) {
  .mal-card__head { flex-direction: column; align-items: flex-start; gap: .8rem; }
}

/* =========================================================
   PAGE CONTACT (Phase 4)
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }

.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.info-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.6rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--line); }
.info-item:first-of-type { border-top: none; padding-top: 0; }
.info-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(108,161,186,.14); color: var(--petrol);
  display: grid; place-items: center;
}
.info-ico svg { width: 22px; height: 22px; }
.info-item b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate); margin-bottom: .25rem; }
.info-item p { color: var(--ink); font-size: 1rem; line-height: 1.5; }
.info-item a { color: var(--ink); }
.info-item a:hover { color: var(--petrol); }
.tag-inline { font-size: .72rem; font-weight: 700; color: var(--petrol); background: rgba(108,161,186,.16); padding: .1rem .45rem; border-radius: 5px; vertical-align: middle; }

.info-item--urgence .info-ico { background: rgba(192,86,63,.12); color: #c0563f; }
.info-item--urgence b { color: #c0563f; }
.info-item--urgence a { color: #9c4430; font-weight: 700; }

.map-embed {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); min-height: 420px;
}
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 420px; }

.field .opt { color: var(--muted); font-weight: 400; font-size: .82rem; }
.rdv-wrap { max-width: 720px; margin: 0 auto; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-embed { min-height: 340px; }
  .map-embed iframe { min-height: 340px; }
}

/* =========================================================
   PAGES À PROPOS & MÉDIATHÈQUE
   ========================================================= */

/* Bandeau hero (pétrole) */
.hero-band {
  background: linear-gradient(160deg, var(--petrol) 0%, var(--petrol-darker) 100%);
  color: #dceaef; text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
  position: relative; overflow: hidden;
}
.hero-band .watermark { opacity: .06; filter: brightness(3); }
.hero-band .eyebrow { color: var(--powder); justify-content: center; }
.hero-band .eyebrow::before { background: var(--powder); }
.hero-band h1 { color: #fff; margin: .4rem 0 .6rem; }
.hero-band p { color: #c4dae1; font-size: 1.1rem; max-width: 60ch; margin-inline: auto; }

/* Badges hyper-spé sur fond clair */
.tags--light .tag-badge {
  background: var(--white); border-color: var(--line); color: var(--petrol); box-shadow: var(--shadow-sm);
}
.tags--light .tag-badge:hover { background: rgba(108,161,186,.08); border-color: var(--slate); }
.tags--light .tag-badge .d { background: var(--slate); }

/* Distinctions (grille de cartes médaille) */
.honor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.honor-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .9rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.honor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.honor-card .medal {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(108,161,186,.14);
  color: var(--slate); display: grid; place-items: center; flex: none;
}
.honor-card .medal svg { width: 24px; height: 24px; }
.honor-card p { color: var(--ink); font-weight: 500; font-size: 1rem; line-height: 1.5; }

/* Valeurs (3 cartes) — page À Propos */
.value-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.value-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.value-card .ico {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
  background: linear-gradient(150deg, rgba(108,161,186,.18), rgba(116,163,191,.08));
  color: var(--petrol); display: grid; place-items: center;
}
.value-card .ico svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.value-card p { font-size: .95rem; }

/* =========================================================
   MÉDIATHÈQUE
   ========================================================= */
.media-filters { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; align-items: center; }
.media-filters .filter-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; align-items: center; }
.media-filters .filter-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-right: .3rem; }
.filter-btn {
  font-size: .9rem; font-weight: 600; color: var(--petrol);
  background: var(--white); border: 1px solid var(--line);
  padding: .5rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.filter-btn:hover { transform: translateY(-2px); border-color: var(--slate); }
.filter-btn.active { background: var(--petrol); color: #fff; border-color: var(--petrol); }

.media-list { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.media-row.rev .media-row__media { order: 2; }
.media-row.hide { display: none; }

.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 16/9; background: #0d1f25;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame .play {
  position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(0deg, rgba(13,31,37,.35), rgba(13,31,37,.15)); border: 0; width: 100%; height: 100%;
}
.media-frame .play span {
  width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease;
}
.media-frame .play span::before { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--petrol); margin-left: 4px; }
.media-frame .play:hover span { transform: scale(1.08); background: #fff; }

/* Carte audio / radio (lien vers SoundCloud) */
.radio-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  aspect-ratio: 16/9; padding: 1.5rem 1.7rem;
  background: var(--bg); border: 1px solid #D6E3E8; border-radius: 12px;
  box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.radio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.radio-card__badge { align-self: flex-start; }
.radio-card__body { flex: 1; display: flex; align-items: center; gap: 1rem; min-height: 0; }
.radio-card__icon { flex: none; color: var(--slate); }
.radio-card__icon svg { width: 40px; height: 40px; }
.radio-card__waveform { flex: 1; display: flex; align-items: center; gap: 3px; height: 54px; }
.radio-card__waveform span { flex: 1; min-width: 3px; max-width: 5px; background: var(--slate); border-radius: 2px; opacity: .85; }
.radio-card__label { color: var(--petrol); font-weight: 700; font-size: .98rem; }
.radio-card:hover .radio-card__label { text-decoration: underline; text-underline-offset: 3px; }

.media-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.media-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .28rem .7rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .35rem;
}
.media-badge--video { background: rgba(108,161,186,.16); color: var(--petrol); }
.media-badge--radio { background: var(--petrol); color: #fff; }
.media-badge--cat { background: var(--bg-2); color: var(--muted); }
.media-row__body h3 { font-size: clamp(1.3rem, 2.3vw, 1.6rem); margin-bottom: .4rem; }
.media-row__body .meta { font-size: .85rem; color: var(--slate); font-weight: 600; margin-bottom: .9rem; }
.media-row__body p { font-size: .98rem; line-height: 1.7; margin-bottom: 1rem; }

/* Placeholder média (à venir) */
.media-frame--empty { display: grid; place-items: center; background: var(--bg-2); color: var(--muted); aspect-ratio: 16/9; border: 1px dashed var(--line); box-shadow: none; }
.media-frame--empty span { font-size: .9rem; font-weight: 600; }

/* Lightbox vidéo */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(13,31,37,.9); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 5vw;
}
.lightbox.open { display: flex; animation: fadeIn .25s ease; }
.lightbox__inner { position: relative; width: min(1000px, 100%); aspect-ratio: 16/9; }
.lightbox iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,.28); }

@media (max-width: 820px) {
  .media-row { grid-template-columns: 1fr; }
  .media-row.rev .media-row__media { order: -1; }
}
