/* =========================================================
   Dr Alaoui Ghali : Cabinet ORL Fès
   Direction artistique : bleu marine signature + accents
   "dopaminergiques" (corail, menthe, soleil), typo éditoriale.
   ========================================================= */

:root {
  /* Bleus de marque (repris du logo / des visuels) */
  --navy:      #12225f;
  --navy-2:    #1b2f7a;
  --blue:      #2a63e0;
  --blue-el:   #3b7cff;
  --sky:       #7db3e8;
  --sky-soft:  #e8f1fc;
  --powder:    #f3f8fe;

  /* Accents dopamine (dosés, jamais criards) */
  --coral:  #ff6a4d;
  --coral-d:# e8543a;
  --mint:   #17c9a8;
  --sun:    #ffb43d;
  --violet: #6a5cff;

  /* Neutres */
  --ink:    #101a3a;
  --body:   #41496a;
  --muted:  #7a819c;
  --line:   #e4e9f4;
  --white:  #ffffff;
  --cream:  #fbfcff;

  --radius:  22px;
  --radius-lg: 34px;
  --shadow-sm: 0 2px 10px rgba(18,34,95,.06);
  --shadow:    0 18px 45px -22px rgba(18,34,95,.35);
  --shadow-lg: 0 40px 90px -40px rgba(18,34,95,.55);

  --ff-display: "Bricolage Grotesque", system-ui, sans-serif;
  --ff-body: "Instrument Sans", system-ui, sans-serif;

  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--ink); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-body); font-weight: 600; font-size: .98rem;
  padding: 14px 24px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { transition: transform .25s; }
.btn--primary {
  background: linear-gradient(120deg, var(--blue) 0%, var(--navy-2) 100%);
  color: #fff; box-shadow: 0 12px 26px -12px rgba(42,99,224,.8);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -14px rgba(42,99,224,.85); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--sky); color: var(--blue); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--pill { padding: 11px 20px; }
.btn--block { width: 100%; justify-content: center; padding: 16px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--cream) 92%, transparent); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 42px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--ff-display); font-weight: 700; color: var(--navy); font-size: 1.06rem; letter-spacing: -.02em; }
.brand__role { font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links > a:not(.btn) {
  padding: 9px 14px; border-radius: 100px; font-weight: 500; font-size: .95rem; color: var(--body);
  transition: background .2s, color .2s;
}
.nav__links > a:not(.btn):hover { background: var(--sky-soft); color: var(--navy); }
.nav__cta { margin-left: 8px; background: var(--navy); color: #fff; box-shadow: 0 10px 22px -12px rgba(18,34,95,.7); }
.nav__cta:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(42,99,224,.8); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Blobs & grain (déco) ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; }
.blob--1 { width: 460px; height: 460px; background: radial-gradient(circle, var(--sky) 0%, transparent 70%); top: -120px; right: -80px; }
.blob--2 { width: 380px; height: 380px; background: radial-gradient(circle, var(--coral) 0%, transparent 70%); bottom: -140px; left: -100px; opacity: .28; }
.blob--3 { width: 520px; height: 520px; background: radial-gradient(circle, var(--blue-el) 0%, transparent 70%); top: -160px; right: -120px; opacity: .5; }
.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  opacity: .04; mix-blend-mode: multiply;
}

/* ---------- HERO ---------- */
.hero { position: relative; padding: 40px 24px 20px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  min-height: min(78vh, 720px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 8px 16px; border-radius: 100px; font-size: .82rem; font-weight: 600; color: var(--navy);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }

.hero__title { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 700; margin: 22px 0 20px; color: var(--navy); }
.hero__title .hl { position: relative; background: linear-gradient(120deg, var(--blue) 0%, var(--coral) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.14rem; color: var(--body); max-width: 34em; margin-bottom: 30px; }
.hero__lead strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero__chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: var(--muted); }
.hero__chips li { display: flex; align-items: center; gap: 7px; }
.hero__chips strong { color: var(--navy); }
.pin, .pin::before { display: inline-block; }
.pin { width: 9px; height: 9px; border-radius: 50% 50% 50% 0; background: var(--coral); transform: rotate(-45deg); }

/* Portrait */
.hero__media { position: relative; justify-self: center; }
.portrait {
  position: relative; width: min(400px, 82vw); aspect-ratio: 4/5;
  border-radius: 50% 50% 46% 54% / 58% 56% 44% 42%;
  overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--sky-soft), var(--powder));
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 50% 50% 46% 54% / 58% 56% 44% 42%; }
  50%     { border-radius: 54% 46% 52% 48% / 46% 54% 46% 54%; }
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.portrait--empty { display: grid; place-items: center; }
.portrait--empty::after {
  content: "Photo du docteur\A images/docteur.jpg"; white-space: pre; text-align: center;
  color: var(--sky); font-weight: 600; font-family: var(--ff-display); padding: 20px;
}
.portrait__ring {
  position: absolute; inset: -14px; border: 2px dashed color-mix(in srgb, var(--sky) 60%, transparent);
  border-radius: inherit; animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.floatcard {
  position: absolute; background: #fff; border-radius: 18px; padding: 13px 17px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; z-index: 2;
  animation: bob 5s ease-in-out infinite;
}
.floatcard__k { font-family: var(--ff-display); font-weight: 700; color: var(--navy); font-size: .96rem; display: block; }
.floatcard__v { font-size: .78rem; color: var(--muted); font-weight: 500; }
.floatcard__ico { font-size: 1.5rem; }
.floatcard--exp { top: 8%; left: -6%; border-left: 4px solid var(--blue); flex-direction: column; align-items: flex-start; gap: 2px; }
.floatcard--pedia { bottom: 10%; right: -8%; border-left: 4px solid var(--coral); animation-delay: 1.5s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* ---------- TICKER ---------- */
.ticker { background: var(--navy); color: #fff; overflow: hidden; padding: 16px 0; margin-top: 20px; }
.ticker__track { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; animation: scroll 26s linear infinite; }
.ticker__track span { font-family: var(--ff-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.ticker__track .sep { color: var(--coral); font-size: .9rem; }
@keyframes scroll { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section__head { max-width: 640px; margin-bottom: 52px; }
.kicker {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.kicker--light { color: var(--sky); }
.section__title { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
.section__title .ink { color: var(--blue); }
.section__title .ink { background: linear-gradient(120deg, var(--blue), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section__sub { font-size: 1.1rem; color: var(--body); margin-top: 16px; }

/* ---------- BENTO / cartes ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; overflow: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  grid-column: span 1;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card--lg { grid-column: span 2; grid-row: span 2; }
.card--wide { grid-column: span 2; }
.card__ico {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  margin-bottom: 18px; color: #fff;
}
.card h3 { font-size: 1.28rem; margin-bottom: 8px; }
.card p { font-size: .98rem; color: var(--body); }
.card__tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.card__tags li { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 100px; background: var(--powder); color: var(--navy); }

/* tonalités dopamine */
.tone-blue  .card__ico { background: linear-gradient(140deg, var(--blue), var(--navy-2)); }
.tone-mint  .card__ico { background: linear-gradient(140deg, var(--mint), #0fa98d); }
.tone-coral .card__ico { background: linear-gradient(140deg, var(--coral), #ff8f6b); }
.tone-sun   .card__ico { background: linear-gradient(140deg, var(--sun), #ff9e2c); }
.tone-navy  { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); border-color: transparent; }
.tone-navy h3, .tone-navy p { color: #fff; }
.tone-navy .card__ico { background: rgba(255,255,255,.14); color: #fff; }
.tone-navy .card__tags li { background: rgba(255,255,255,.14); color: #fff; }
.card--lg { background: linear-gradient(160deg, #fff 0%, var(--sky-soft) 100%); }

/* Animation onde sonore (motion design) dans le grand bloc audition */
.waveviz {
  display: flex; align-items: center; gap: 5px;
  height: clamp(70px, 14vh, 130px); margin-top: auto; padding-top: 28px;
}
.card--lg { display: flex; flex-direction: column; }
.waveviz span {
  flex: 1 1 0; min-width: 3px; border-radius: 100px;
  background: linear-gradient(180deg, var(--blue), var(--sky));
  transform-origin: center; height: 22%;
  animation: wavepulse 1.8s ease-in-out infinite;
}
@keyframes wavepulse {
  0%, 100% { height: 16%; opacity: .55; }
  50%      { height: 92%; opacity: 1; }
}
/* décalage progressif = vague qui se propage */
.waveviz span:nth-child(1)  { animation-delay: -1.80s; }
.waveviz span:nth-child(2)  { animation-delay: -1.68s; }
.waveviz span:nth-child(3)  { animation-delay: -1.56s; }
.waveviz span:nth-child(4)  { animation-delay: -1.44s; }
.waveviz span:nth-child(5)  { animation-delay: -1.32s; }
.waveviz span:nth-child(6)  { animation-delay: -1.20s; }
.waveviz span:nth-child(7)  { animation-delay: -1.08s; }
.waveviz span:nth-child(8)  { animation-delay: -0.96s; }
.waveviz span:nth-child(9)  { animation-delay: -0.84s; }
.waveviz span:nth-child(10) { animation-delay: -0.72s; }
.waveviz span:nth-child(11) { animation-delay: -0.60s; }
.waveviz span:nth-child(12) { animation-delay: -0.48s; }
.waveviz span:nth-child(13) { animation-delay: -0.36s; }
.waveviz span:nth-child(14) { animation-delay: -0.24s; }
.waveviz span:nth-child(15) { animation-delay: -0.12s; }
.waveviz span:nth-child(16) { animation-delay: 0s; }
.waveviz span:nth-child(17) { animation-delay: -0.12s; }
.waveviz span:nth-child(18) { animation-delay: -0.24s; }
.waveviz span:nth-child(19) { animation-delay: -0.36s; }
.waveviz span:nth-child(20) { animation-delay: -0.48s; }
.waveviz span:nth-child(21) { animation-delay: -0.60s; }
.waveviz span:nth-child(22) { animation-delay: -0.72s; }
.waveviz span:nth-child(23) { animation-delay: -0.84s; }
.waveviz span:nth-child(24) { animation-delay: -0.96s; }

/* teinte de fond subtile derrière les cartes */
.card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.tone-coral::after { background: radial-gradient(circle, var(--coral), transparent 70%); }
.tone-mint::after  { background: radial-gradient(circle, var(--mint), transparent 70%); }
.tone-sun::after   { background: radial-gradient(circle, var(--sun), transparent 70%); }
.card:hover::after { opacity: .12; }

/* ---------- LE DOCTEUR ---------- */
.doctor { }
.doctor__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.doctor__media { position: relative; }
.doctor__photo {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg); background: var(--sky-soft);
  border: 6px solid #fff;
}
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor__photo.is-empty { display: grid; place-items: center; }
.doctor__photo.is-empty::after { content: "images/docteur.jpg"; color: var(--sky); font-weight: 600; }
.doctor__badge {
  position: absolute; bottom: -22px; right: -14px; background: #fff; border-radius: 18px;
  padding: 14px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  border-top: 4px solid var(--coral);
}
.doctor__badge-num { font-family: var(--ff-display); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.doctor__badge-txt { font-size: .8rem; color: var(--muted); }

.doctor__intro { font-size: 1.12rem; margin: 18px 0 30px; color: var(--body); }
.parcours { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.parcours li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.parcours li:last-child { border-bottom: 1px solid var(--line); }
.parcours__num { font-family: var(--ff-display); font-weight: 700; font-size: 1.1rem; color: var(--blue); flex-shrink: 0; }
.parcours h4 { font-size: 1.06rem; margin-bottom: 4px; color: var(--ink); }
.parcours p { font-size: .95rem; color: var(--muted); }

/* ---------- LE CABINET ---------- */
.cabinet { background: linear-gradient(180deg, var(--powder), transparent 40%); border-radius: 40px; max-width: none; padding-left: max(24px, calc((100vw - var(--maxw))/2)); padding-right: max(24px, calc((100vw - var(--maxw))/2)); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 18px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--sky-soft); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 14px; bottom: 14px; background: rgba(18,34,95,.82); color: #fff;
  padding: 7px 14px; border-radius: 100px; font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px);
}
.gallery__item.is-empty img { display: none; }
.gallery__item.is-empty::after { content: attr(data-empty); position: absolute; inset: 0; display: grid; place-items: center; color: var(--sky); font-weight: 600; }
.gallery__item--tall.is-empty::after { content: "images/cabinet-accueil.jpg"; }

.cabinet__stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 46px; justify-content: center; }
.stat { text-align: center; }
.stat__n { font-family: var(--ff-display); font-weight: 800; font-size: 3rem; color: var(--navy); display: block; line-height: 1; background: linear-gradient(120deg, var(--blue), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__l { font-size: .9rem; color: var(--muted); }

/* ---------- INFOS ---------- */
.infos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; }
.infos__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.infos__panel .section__title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 6px; }
.info-row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row:first-of-type { padding-top: 26px; }
.info-row__ico { font-size: 1.3rem; flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--powder); border-radius: 12px; }
.info-row h4 { font-size: 1rem; margin-bottom: 3px; }
.info-row p { font-size: .96rem; color: var(--body); }
.info-row a { color: var(--blue); font-weight: 600; }
.info-row a:hover { text-decoration: underline; }
.infos__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; border: 6px solid #fff; }
.infos__map iframe { width: 100%; height: 100%; min-height: 408px; border: 0; }

/* ---------- RDV ---------- */
.rdv { padding-top: 40px; }
.rdv__card { position: relative; background: var(--navy); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.rdv__bg { position: absolute; inset: 0; }
.rdv__content { position: relative; z-index: 1; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; align-items: start; }
.rdv__title { color: #fff; font-size: clamp(2rem, 4vw, 3rem); grid-column: 1 / -1; }
.rdv__title { margin-bottom: -12px; }
.rdv__lead { color: color-mix(in srgb, #fff 78%, transparent); font-size: 1.08rem; grid-column: 1 / -1; max-width: 40em; }

.rdv__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: color-mix(in srgb, #fff 82%, transparent); }
.field input, .field textarea {
  font-family: var(--ff-body); font-size: 1rem; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); background: rgba(255,255,255,.12); }
.rdv__form .btn { grid-column: 1 / -1; }
.rdv__note { grid-column: 1 / -1; font-size: .9rem; min-height: 1.2em; color: var(--mint); font-weight: 600; }

.rdv__aside { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; justify-content: center; height: 100%; padding: 26px; background: rgba(255,255,255,.05); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); }
.rdv__hours { color: color-mix(in srgb, #fff 70%, transparent); font-size: .92rem; }

/* ---------- FOOTER ---------- */
.footer { background: var(--cream); border-top: 1px solid var(--line); padding: 64px 24px 28px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__brand .brand__name { font-size: 1.1rem; color: var(--navy); }
.footer__brand p { color: var(--muted); font-size: .95rem; margin-top: 8px; max-width: 28em; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { color: var(--body); font-size: .95rem; transition: color .2s; }
.footer__nav a:hover { color: var(--blue); }
.footer__contact { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; color: var(--body); }
.footer__contact a { color: var(--navy); font-weight: 600; }
.footer__contact a:hover { color: var(--blue); }
.footer__base { max-width: var(--maxw); margin: 20px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--muted); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .portrait, .portrait__ring, .floatcard, .ticker__track, .eyebrow .dot { animation: none; }
  .waveviz span { animation: none; opacity: .8; }
  .waveviz span:nth-child(3n)  { height: 70%; }
  .waveviz span:nth-child(3n+1){ height: 40%; }
  .waveviz span:nth-child(3n+2){ height: 90%; }
}

/* ---------- Section Spécialités : tenir dans un écran (desktop) ---------- */
@media (min-width: 981px) {
  #specialites {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 48px; padding-bottom: 48px;
  }
  #specialites .section__head { margin-bottom: 28px; }
  #specialites .section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
  #specialites .section__sub { font-size: 1rem; margin-top: 10px; }
  #specialites .bento { gap: 14px; }
  #specialites .card { padding: 22px; }
  #specialites .card__ico { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 12px; }
  #specialites .card__ico svg { width: 24px; height: 24px; }
  #specialites .card h3 { font-size: 1.14rem; margin-bottom: 6px; }
  #specialites .card p { font-size: .92rem; }
  #specialites .card__tags { margin-top: 14px; }
  #specialites .card__tags li { padding: 4px 11px; font-size: .75rem; }
  #specialites .waveviz { height: clamp(40px, 8vh, 78px); padding-top: 12px; gap: 4px; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: left; padding-top: 20px; }
  .hero__media { order: -1; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--lg, .card--wide { grid-column: span 2; grid-row: auto; }
  .doctor__grid { grid-template-columns: 1fr; gap: 60px; }
  .doctor__media { max-width: 420px; }
  .infos__grid { grid-template-columns: 1fr; }
  .rdv__content { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 18px 24px 26px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  }
  .nav__links.is-open { transform: none; }
  .nav__links > a:not(.btn) { padding: 13px 14px; }
  .nav__cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .nav__toggle { display: flex; }
  .section { padding: 68px 22px; }
  .bento { grid-template-columns: 1fr; }
  .card--lg, .card--wide { grid-column: auto; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .gallery__item--tall { grid-row: span 2; grid-column: span 2; }
  .cabinet__stats { gap: 26px; }
  .stat__n { font-size: 2.3rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .floatcard--exp { left: 0; }
  .floatcard--pedia { right: 0; }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3rem); }
}
