/* ============================================
   SHARED PAGE ELEMENTS (sub-pages)
   ============================================ */

/* Active nav link */
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---- Sticky portrait on Le Docteur page ---- */
.doctor--page {
  overflow: visible;   /* sticky needs no overflow clipping on ancestors */
}
.doctor--page::before {
  display: none;       /* the warm halo would spill outside the unclipped section */
}
.doctor--page .doctor__inner {
  align-items: start;
}
.doctor--page .doctor__media {
  position: sticky;
  top: 100px;
  align-self: start;
}
@media (max-width: 980px) {
  .doctor--page .doctor__media { position: static; top: auto; }
}

/* ---- Page hero ---- */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 168px 24px 72px;
  overflow: hidden;
}
.page-hero .orb { display: none; }
.page-hero .eyebrow { position: relative; z-index: 2; }
.page-hero__title {
  position: relative; z-index: 2;
  font-size: clamp(38px, 6.4vw, 94px);
  line-height: 1.0; letter-spacing: -.035em; font-weight: 500;
  margin: 0 auto; max-width: 20ch;
}
.page-hero__sub {
  position: relative; z-index: 2;
  margin: 24px auto 0; max-width: 58ch;
  color: var(--ink-soft); font-size: clamp(15px, 1.2vw, 18px);
}

/* ---- CTA band ---- */
.cta-band { padding: 40px 28px 120px; }
.cta-band__inner {
  max-width: var(--max); margin: 0 auto;
  background: var(--dark); color: var(--on-dark);
  border-radius: 32px; padding: 90px 40px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band__inner::before {
  content: ""; position: absolute;
  inset: auto 50% -260px auto; width: 700px; height: 700px;
  transform: translateX(50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,141,91,.45), transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.cta-band h2 {
  position: relative; z-index: 1;
  margin: 0 0 14px; font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.05; letter-spacing: -.03em; font-weight: 500;
  color: var(--on-dark);
}
.cta-band h2 em { color: var(--accent-3); }
.cta-band p { position: relative; z-index: 1; margin: 0 auto 32px; max-width: 48ch; color: var(--on-dark-soft); }
.cta-band .btn--solid { background: var(--bg); color: var(--dark); }
.cta-band .btn--solid:hover { background: #fff; }

/* ---- Timeline (docteur) ---- */
.timeline-sec { max-width: var(--max); margin: 0 auto; padding: 100px 28px; }
.timeline-sec__head { margin-bottom: 56px; max-width: 60ch; }
.timeline-sec__head h2 { margin: 0; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; max-width: 18ch; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline__item {
  position: relative; padding: 28px 0 28px 40px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: baseline;
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 34px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent);
}
.timeline__year {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 20px; color: var(--accent-2);
}
.timeline__item h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.timeline__item p { margin: 0; color: var(--ink-soft); font-size: 14.5px; max-width: 54ch; }
.timeline__item--now::before { background: var(--ink); box-shadow: 0 0 0 5px rgba(10,10,10,.12); }
.timeline__item--now .timeline__year { color: var(--ink); }
@media (max-width: 720px) {
  .timeline__item { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
}

/* ---- Philosophy (docteur) ---- */
.philo { background: var(--dark); color: var(--on-dark); padding: 120px 28px; }
.philo__head { max-width: var(--max); margin: 0 auto 56px; text-align: center; }
.philo .eyebrow { color: var(--on-dark-soft); }
.philo .eyebrow::before { color: var(--accent-3); }
.philo__head h2 { margin: 0 auto 18px; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; color: var(--on-dark); max-width: 16ch; }
.philo__head h2 em { color: var(--accent-3); }
.philo__lead { margin: 0 auto; max-width: 56ch; color: var(--on-dark-soft); font-size: clamp(15px, 1.2vw, 17px); }
.philo__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .philo__grid { grid-template-columns: 1fr; } }
.philo__card {
  padding: 36px 30px; border-radius: 20px;
  background: rgba(248,226,219,.05); border: 1px solid rgba(248,226,219,.1);
  backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.philo__card:hover { transform: translateY(-6px); border-color: var(--accent); background: rgba(248,226,219,.08); }
.philo__num { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 30px; color: var(--accent-3); }
.philo__card h3 { margin: 14px 0 10px; font-size: 22px; font-weight: 600; color: var(--on-dark); }
.philo__card p { margin: 0; color: var(--on-dark-soft); font-size: 14.5px; line-height: 1.6; }

/* ---- Domain index (interventions) ---- */
.domain-index {
  max-width: var(--max); margin: 0 auto; padding: 0 28px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.domain-index a {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 22px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.domain-index a span { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent-2); font-size: 16px; }
.domain-index a:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--bg); }
@media (max-width: 880px) { .domain-index { grid-template-columns: 1fr 1fr; } }

/* ---- Procedure rows (interventions) ---- */
.proc {
  max-width: var(--max); margin: 0 auto; padding: 90px 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.proc--reverse .proc__media { order: 2; }
.proc__media { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-2); box-shadow: 0 40px 80px -50px rgba(40,20,10,.35); }
.proc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.proc:hover .proc__media img { transform: scale(1.05); }
.proc__num {
  display: inline-block; font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 42px; color: var(--accent); line-height: 1; margin-bottom: 12px;
}
.proc__copy h2 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 56px); line-height: 1.02; letter-spacing: -.03em; font-weight: 500; }
.proc__copy > p { margin: 0 0 26px; color: var(--ink-soft); font-size: clamp(15px, 1.15vw, 17px); max-width: 50ch; line-height: 1.65; }
.proc__list { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 12px; }
.proc__list li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.proc__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 1px; background: var(--accent); }
.proc__list strong { color: var(--ink); font-weight: 600; }
@media (max-width: 880px) {
  .proc { grid-template-columns: 1fr; gap: 36px; padding: 60px 28px; }
  .proc--reverse .proc__media { order: 0; }
}

.how--page { padding-top: 40px; }

/* ---- Stats (patients) ---- */
.stats {
  max-width: var(--max); margin: 0 auto; padding: 20px 28px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  padding: 36px 24px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
  text-align: center;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.stat:hover { transform: translateY(-4px); border-color: var(--accent); }
.stat strong {
  display: block; font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(40px, 5vw, 64px); color: var(--accent-2); line-height: 1; font-weight: 400;
}
.stat strong small { font-size: .4em; color: var(--ink-mute); }
.stat span { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-soft); letter-spacing: .02em; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

.results__note { text-align: center; max-width: 60ch; margin: 40px auto 0; padding: 0 28px; font-size: 12.5px; color: var(--on-dark-soft); opacity: .7; }

/* ---- Contact info cards ---- */
.contact-info {
  max-width: var(--max); margin: 0 auto; padding: 30px 28px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.info-card {
  padding: 30px 26px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.info-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 50px -28px rgba(176,141,91,.4); }
.info-card__icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--bg-2); color: var(--ink);
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.info-card p { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); }
@media (max-width: 880px) { .contact-info { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .contact-info { grid-template-columns: 1fr; padding: 24px 20px 12px; }
  .info-card p { overflow-wrap: break-word; }
}

.rdv--page { background: var(--bg); }

/* Audit UX/UI — bénéfices, résultats visuels and FAQ */
.benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding: clamp(74px, 10vw, 150px) clamp(28px, 7vw, 110px);
  background: var(--bg-2);
}
.benefits__copy { max-width: 620px; }
.benefits__copy h2 { margin: 0 0 26px; font-size: clamp(34px, 4.3vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 500; }
.benefits__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.benefits__list li { position: relative; padding-left: 26px; color: var(--ink-soft); line-height: 1.5; font-size: clamp(15px, 1.2vw, 17px); }
.benefits__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 14px; height: 1px; background: var(--accent); }
.benefits__note { max-width: 56ch; margin: 28px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; opacity: .8; }
.benefits__visual { position: relative; margin: 0; overflow: hidden; border-radius: 24px; background: var(--dark); box-shadow: 0 30px 70px -44px rgba(25, 14, 10, .5); }
.benefits__visual img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.benefits__visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.55)); }
.benefits__tag { position: absolute; z-index: 1; top: 16px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.benefits__tag--before { left: 16px; }
.benefits__tag--after { right: 16px; }
.benefits__visual figcaption { position: absolute; z-index: 1; left: 20px; bottom: 18px; color: #fff; font-size: 12px; }
.faq { padding: clamp(76px, 10vw, 150px) clamp(28px, 7vw, 110px); background: var(--bg); }
.faq__head { max-width: 660px; margin-bottom: 42px; }
.faq__head h2 { margin: 0; font-size: clamp(34px, 4.3vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 500; }
.faq__list { max-width: 980px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid rgba(30, 20, 15, .14); border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; padding: 22px 54px 22px 24px; position: relative; font-size: clamp(16px, 1.5vw, 20px); font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 24px; font-weight: 400; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 0; padding: 0 24px 24px; max-width: 76ch; color: var(--ink-soft); line-height: 1.65; }
@media (max-width: 760px) {
  .benefits { grid-template-columns: 1fr; padding-top: 76px; }
  .benefits__visual { order: -1; }
  .faq { padding-top: 76px; }
  .faq__item summary { padding: 18px 48px 18px 18px; }
  .faq__item p { padding: 0 18px 20px; }
}

/* ---- Map ---- */
.map-sec { padding: 0 28px 120px; }
.map-sec__inner {
  max-width: var(--max); margin: 0 auto;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(40,20,10,.3);
  height: 420px;
}
.map-sec__inner iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ---- Thanks / Merci page ---- */
.thanks {
  min-height: 70vh;
  padding: 120px 28px 140px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(176,141,91,0.10), transparent 60%),
    var(--bg);
}
.thanks__inner {
  max-width: 720px;
  text-align: center;
  display: grid;
  gap: 22px;
}
.thanks__icon {
  width: 72px; height: 72px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #0a0a0a;
  background: linear-gradient(135deg, #f3d3c7, #e9b9a8);
  box-shadow: 0 20px 40px -20px rgba(176,141,91,0.45);
}
.thanks__icon svg { width: 32px; height: 32px; }
.thanks h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
}
.thanks h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
}
.thanks__lead {
  font-size: 18px;
  color: #4a3a32;
  max-width: 520px;
  margin: 0 auto;
}
.thanks__lead strong { color: #0a0a0a; }
.thanks__meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.thanks__meta > div {
  display: grid; gap: 6px;
  text-align: center;
}
.thanks__meta .eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  color: #8a766a;
}
.thanks__meta a { color: #0a0a0a; text-decoration: none; font-weight: 500; }
.thanks__meta a:hover { color: var(--accent); }
.thanks__actions {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .thanks__meta { grid-template-columns: 1fr; }
  .thanks { padding: 80px 20px 100px; }
}

/* UX/UI audit — approved procedure screens */
.page-hero--procedure {
  min-height: 66vh;
  padding-top: 150px;
  padding-bottom: 76px;
}
.page-hero--procedure .page-hero__title {
  max-width: 24ch;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.08;
  font-weight: 500;
}
.page-hero--procedure .page-hero__sub {
  max-width: 76ch;
  margin-top: 28px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
}
.benefits--procedure {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  padding-left: max(28px, calc((100vw - 1240px) / 2));
  padding-right: max(28px, calc((100vw - 1240px) / 2));
  gap: clamp(48px, 7vw, 110px);
}
.benefits--procedure .benefits__copy h2 {
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: .98;
  max-width: 12ch;
}
.benefits--procedure .benefits__visual img {
  aspect-ratio: 1.46 / 1;
}
.faq--procedure {
  background: var(--bg-2);
  padding-left: max(28px, calc((100vw - 1240px) / 2));
  padding-right: max(28px, calc((100vw - 1240px) / 2));
}
.faq--procedure .faq__head {
  max-width: none;
  margin-bottom: 34px;
}
.faq--procedure .faq__head h2 {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 400;
}
.faq--procedure .faq__list {
  max-width: none;
}
.faq--procedure .faq__item {
  background: #fff;
  border-color: rgba(28, 22, 18, .12);
  border-radius: 10px;
}

@media (max-width: 760px) {
  .page-hero--procedure { min-height: auto; padding: 126px 22px 58px; }
  .page-hero--procedure .page-hero__title { max-width: 17ch; font-size: clamp(34px, 10vw, 48px); }
  .page-hero--procedure .page-hero__sub { margin-top: 20px; font-size: 14px; }
  .benefits--procedure { grid-template-columns: 1fr; padding: 72px 22px; gap: 32px; }
  .benefits--procedure .benefits__visual { order: 0; }
  .benefits--procedure .benefits__copy h2 { font-size: clamp(36px, 10vw, 48px); }
  .faq--procedure { padding: 72px 22px; }
}
