:root {
  --bg: #120912;
  --bg-deep: #0b070c;
  --plum: #54294d;
  --plum-deep: #291425;
  --indigo: #272b55;
  --gold: #c49a4f;
  --gold-soft: #ddbc7c;
  --ivory: #f3ede4;
  --ivory-muted: rgba(243,237,228,.74);
  --line: rgba(234,216,185,.24);
  --line-soft: rgba(243,237,228,.13);
  --sans: 'Inter', Arial, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --max: 1320px;
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); overflow-x: hidden; }
html, body { min-height: 100%; }
body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  color: var(--ivory);
  font-family: var(--sans);
  line-height: 1.68;
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 clamp(1.1rem, 3.8vw, 4rem);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(20,9,19,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .78rem;
  min-width: 0;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand-text {
  white-space: nowrap;
  font: 500 1.2rem/1 var(--serif);
  letter-spacing: .025em;
}

/* Header : identité toujours blanche */
.brand,
.brand:visited,
.brand:hover,
.brand:active,
.brand-text {
  color: var(--ivory) !important;
}
.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.45rem;
}
.site-nav a,
.header-link {
  position: relative;
  padding: .48rem 0;
  color: rgba(243,237,228,.74);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: color .25s ease;
}
.site-nav a::after,
.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .12rem;
  width: 100%;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.site-nav a:hover,
.header-link:hover { color: var(--ivory); }
.site-nav a:hover::after,
.header-link:hover::after { transform: scaleX(1); transform-origin: left; }
.compact-header .header-link { justify-self: end; }

.burger {
  display: none;
  justify-self: end;
  width: 38px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 2px;
  width: 31px;
  height: 1px;
  background: var(--ivory);
  transition: transform .28s ease, top .28s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 8px; }
.burger span:nth-child(2) { top: 17px; width: 22px; }
.burger span:nth-child(3) { top: 26px; }
.burger.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* Hero */
.hero {
  min-height: calc(100svh - var(--header-h));
  position: relative;
  display: grid;
  align-items: end;
  overflow: clip;
  border-bottom: 1px solid var(--line-soft);
  background: #160d19;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: 0;
  pointer-events: none;
  background: url("fond.jpg") center 42% / cover no-repeat;
  background-image: image-set(url("fond.webp") type("image/webp"), url("fond.jpg") type("image/jpeg"));
  filter: saturate(.96) contrast(1.03);
  transform: scale(1.035);
  animation: heroBackgroundDrift 28s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(38, 12, 34, 0.80);
}
@keyframes heroBackgroundDrift {
  from { transform: scale(1.035) translate3d(0,0,0); }
  to { transform: scale(1.075) translate3d(-.8%,-.45%,0); }
}
.hero-inner {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9.5rem) 0 clamp(4.4rem, 8vw, 7rem);
  position: relative;
  z-index: 3;
}
.hero-copy { width: min(800px, 68vw); }
.hero h1 {
  margin: 0;
  font: 500 clamp(4.5rem, 11vw, 10.1rem)/.78 var(--serif);
  letter-spacing: -.055em;
  text-shadow: 0 16px 70px rgba(0,0,0,.24);
}
.hero h1 span { display: block; }
.hero h1 .surname { margin-left: clamp(0rem, 6vw, 6.5rem); }
.hero-role {
  margin: 2.8rem 0 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font: 400 clamp(1.35rem, 2.5vw, 2.35rem)/1.1 var(--serif);
  color: rgba(243,237,228,.88);
  letter-spacing: -.02em;
}
.editorial-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(225,185,106,.72);
  color: var(--ivory);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  transition: gap .3s ease, color .3s ease;
}

/* Petit trait plus épais qui parcourt en permanence la ligne inférieure. */
.editorial-link::before {
  content: none;
}

/* Trait latéral avec un éclat doré mobile. */
.editorial-link::after {
  content: "";
  width: 22px;
  height: 2px;
  flex: 0 0 22px;
  background:
    linear-gradient(
      90deg,
      rgba(225,185,106,.25) 0%,
      rgba(225,185,106,.25) 34%,
      rgba(243,215,158,.98) 48%,
      rgba(243,215,158,.98) 56%,
      rgba(225,185,106,.25) 70%,
      rgba(225,185,106,.25) 100%
    );
  background-size: 260% 100%;
  background-position: 100% 0;
  transition: width .3s ease, flex-basis .3s ease;
  animation: editorialSideSweep 7.5s linear infinite;
}

.editorial-link:hover { gap: 1.35rem; color: var(--gold-soft); }
.editorial-link:hover::after {
  width: 30px;
  flex-basis: 30px;
}

@keyframes editorialSideSweep {
  0%   { background-position: 100% 0; }
  100% { background-position: -160% 0; }
}


/* Sections */
.section {
  position: relative;
  padding: clamp(5.8rem, 10vw, 9rem) 0;
  margin: 0;
  border-top: 1px solid rgba(243,237,228,.055);
  border-bottom: 1px solid var(--line-soft);
  background: #160d19;
}
.section:nth-of-type(even) { background: #1d101b; }

.hero + .section,
.section + .section {
  margin-top: 0;
}
.section-heading {
  position: relative;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.section-heading::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(80px, 13vw, 190px);
  height: 1px;
  background: var(--gold-soft);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.section-heading.is-visible::before { transform: scaleX(1); }
.section-heading h2 {
  margin: 0;
  max-width: 1000px;
  font: 500 clamp(3.2rem, 6.3vw, 6.3rem)/.88 var(--serif);
  letter-spacing: -.046em;
}
.presentation-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr);
  gap: clamp(2.2rem, 7vw, 8rem);
  align-items: center;
}
.prose { max-width: 780px; }
.prose p,
.consultation-copy p,
.about-approach p {
  margin: 0 0 1.2rem;
  color: rgba(243,237,228,.79);
}
.prose p:first-child { color: rgba(243,237,228,.95); font-size: clamp(1.13rem,1.7vw,1.34rem); }
.prose strong,
.consultation-copy strong,
.about-approach strong { color: var(--ivory); }
.profile-figure,
.about-portrait {
  margin: clamp(2rem, 4vw, 3.5rem) auto;
  align-self: center;
}
.profile-frame,
.about-portrait {
  overflow: hidden;
  border-top: 1px solid rgba(225,186,120,.42);
  border-bottom: 1px solid rgba(225,186,120,.24);
}

.profile-frame {
  width: min(100%, 430px);
  margin: 0 auto;
}
.profile-frame img,
.about-portrait img {
  width: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.035);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.profile-frame img { aspect-ratio: 3/4; }
.about-portrait img { aspect-ratio: 4/5; }
.profile-frame:hover img,
.about-portrait:hover img { transform: scale(1.07); }

.audiences {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.audience {
  min-height: 330px;
  padding: 2rem clamp(1.1rem,3vw,2.5rem) 2.5rem;
  border-right: 1px solid var(--line);
}
.audience:last-child { border-right: 0; }
.audience h3 {
  margin: 0 0 2rem;
  padding-top: 2.2rem;
  font: 500 clamp(2.5rem,4vw,4.2rem)/.9 var(--serif);
  letter-spacing: -.04em;
}
.audience ul { margin: 0; padding-left: 1.1rem; color: var(--ivory-muted); }
.audience li { margin: 0 0 .55rem; }
.audience li::marker { color: var(--gold-soft); }
.audience-note {
  max-width: 970px;
  margin: 3rem 0 0 auto;
  color: rgba(243,237,228,.7);
  font-size: .94rem;
}

.consultation-grid {
  display: grid;
  grid-template-columns: minmax(180px,.55fr) minmax(0,1fr);
  gap: clamp(2rem,7vw,8rem);
  align-items: stretch;
}
.consultation-rule {
  min-height: 100%;
  position: relative;
  border-left: 1px solid var(--line);
}
.consultation-rule::before,
.consultation-rule::after {
  content: "";
  position: absolute;
  left: -1px;
  width: 1px;
  background: var(--gold-soft);
}
.consultation-rule::before { top: 0; height: 31%; }
.consultation-rule::after { bottom: 0; height: 16%; opacity: .45; }
.consultation-copy { max-width: 760px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 26px;
  align-items: center;
  gap: 1.25rem;
  padding: 1.45rem 0;
  border: 0;
  color: var(--ivory);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: 500 clamp(1.35rem,2.4vw,2rem)/1.15 var(--serif);
}
.faq-icon { width: 20px; height: 20px; position: relative; }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 1px;
  background: var(--gold-soft);
  transition: transform .3s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::after { transform: rotate(0deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.faq-answer-inner { max-width: 820px; padding: 0 3rem 1.55rem 0; color: var(--ivory-muted); }
.faq-answer-inner p { margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr .7fr 1.4fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-grid p {
  margin: 0;
  padding: 1.4rem 1.5rem 1.4rem 0;
  color: var(--ivory-muted);
  border-right: 1px solid var(--line);
}
.contact-grid p + p { padding-left: 1.5rem; }
.contact-grid p:last-child { border-right: 0; }
.contact-grid strong { color: var(--ivory); }
.contact-grid a { color: var(--gold-soft); text-decoration: none; }
.contact-grid a:hover { text-decoration: underline; }

/* Pages internes */
.page-hero {
  min-height: clamp(360px, 48vh, 610px);
  display: flex;
  align-items: end;
  padding: clamp(5rem,9vw,8rem) 0 clamp(3rem,6vw,5rem);
  border-bottom: 1px solid var(--line-soft);
  background: #160d19;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1,
.appointment-shell h1 {
  margin: 0;
  max-width: 1000px;
  font: 500 clamp(4rem,9vw,8.5rem)/.82 var(--serif);
  letter-spacing: -.052em;
}
.about-lead {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(280px,.55fr);
  gap: clamp(2rem,7vw,8rem);
  align-items: center;
}
.about-approach { max-width: 960px; margin-left: auto; }
.about-approach p:first-child { font-size: clamp(1.08rem,1.6vw,1.28rem); color: rgba(243,237,228,.94); }

.site-map-list { border-top: 1px solid var(--line); }
.site-map-row {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 1rem;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
  text-decoration: none;
  font: 500 clamp(1.9rem,3.8vw,3.5rem)/1 var(--serif);
  letter-spacing: -.03em;
  transition: padding-left .3s ease, color .3s ease;
}
.site-map-row i {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold-soft);
  position: relative;
  transition: width .3s ease;
}
.site-map-row i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--gold-soft);
  border-right: 1px solid var(--gold-soft);
  transform: rotate(45deg);
}
.site-map-row:hover { padding-left: 1rem; color: var(--gold-soft); }
.site-map-row:hover i { width: 32px; }



/* Plan du site — même direction éditoriale que les autres pages */
.plan-page .section {
  background: #160d19;
}
.plan-page .site-map-list {
  max-width: 980px;
  margin: 0 auto;
}
.plan-page .site-map-row {
  padding-left: clamp(.2rem, 1vw, .8rem);
  padding-right: clamp(.2rem, 1vw, .8rem);
}

/* À propos : le fond de cordages est limité au bandeau supérieur. */
.about-page .page-hero::before,
.plan-page .page-hero::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: -2;
  pointer-events: none;
  background: url("fond.jpg") center 40% / cover no-repeat;
  background-image: image-set(url("fond.webp") type("image/webp"), url("fond.jpg") type("image/jpeg"));
  filter: saturate(.96) contrast(1.03);
  transform: scale(1.035);
  animation: heroBackgroundDrift 30s ease-in-out infinite alternate;
}
.about-page .page-hero::after,
.plan-page .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(38, 12, 34, 0.80);
}
.about-page .page-hero > .wrap,
.plan-page .page-hero > .wrap {
  position: relative;
  z-index: 2;
}


.about-page .section:first-of-type {
  padding-top: clamp(6.8rem, 11vw, 10rem);
  padding-bottom: clamp(7.2rem, 12vw, 10.5rem);
}

.about-page .about-portrait {
  width: min(100%, 430px);
  justify-self: center;
  margin-top: clamp(2.4rem, 4.5vw, 4rem);
  margin-bottom: clamp(3.4rem, 6vw, 5.5rem);
}

/* Rendez-vous public */
.appointment-shell {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(4rem,8vw,7rem) 0 clamp(5rem,9vw,8rem);
}
.appointment-top {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr);
  gap: clamp(2rem,7vw,7rem);
  align-items: end;
  padding-bottom: clamp(3rem,6vw,5rem);
  border-bottom: 1px solid var(--line);
}
.appointment-intro { color: var(--ivory-muted); }
.page-intro { margin: 0 0 1.4rem; }
.contact-line {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .6rem 0;
}
.contact-line a { color: var(--gold-soft); text-decoration: none; }
.contact-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--gold-soft);
}
.contact-icon svg { width: 17px; height: 17px; fill: none; stroke: var(--gold-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.appointment-panel { padding-top: clamp(3rem,6vw,5rem); }
.panel-title {
  margin: 0 0 2rem;
  font: 500 clamp(2.5rem,4.7vw,4.7rem)/.92 var(--serif);
  letter-spacing: -.04em;
}
.date-list { border-top: 1px solid var(--line); }
.appointment-day { border-bottom: 1px solid var(--line); }
.appointment-day.is-hidden { display: none; }
.appointment-day-header {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
  border: 0;
  color: var(--ivory);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: 500 clamp(1.55rem,2.8vw,2.35rem)/1 var(--serif);
  transition: color .25s ease, padding-left .25s ease;
}
.appointment-day-header:hover { color: var(--gold-soft); padding-left: .45rem; }
.day-chevron { width: 20px; height: 20px; position: relative; justify-self: end; }
.day-chevron::before,
.day-chevron::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 1px;
  background: var(--gold-soft);
  transition: transform .3s ease;
}
.day-chevron::after { transform: rotate(90deg); }
.appointment-day.active .day-chevron::after { transform: rotate(0); }
.appointment-day-body { display: none; padding: .5rem 0 1.6rem; }
.appointment-day.active .appointment-day-body { display: block; }
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .85rem;
  background: transparent;
  border: 0;
}
.slot-choice {
  min-height: 54px;
  padding: .78rem .7rem;
  border: 1px solid rgba(187,224,198,.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(98,146,116,.72), rgba(62,111,85,.74));
  color: var(--ivory);
  cursor: pointer;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 22px rgba(0,0,0,.12);
  transition: background .22s ease, color .22s ease, transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.slot-choice:hover {
  background: linear-gradient(135deg, rgba(109,162,129,.86), rgba(70,126,96,.86));
  color: #fff;
  border-color: rgba(225,185,106,.30);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 14px 28px rgba(0,0,0,.16);
}
.load-more-dates {
  width: 100%;
  min-height: 56px;
  margin-top: 1.4rem;
  border: 0;
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
}
.empty-state { padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ivory-muted); }
.practical-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.practical-info p { margin: 0; padding: 1.5rem 2rem 1.5rem 0; color: var(--ivory-muted); }
.practical-info p + p { border-left: 1px solid var(--line); padding-left: 2rem; }
.practical-info strong { color: var(--ivory); }

.slot-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10,5,11,.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.slot-modal.active { display: flex; }
.slot-modal-content {
  position: relative;
  width: min(100%, 520px);
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(37,17,34,.95);
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
}
.slot-modal-content h3 { margin: 0 0 1rem; font: 500 2rem/1 var(--serif); }
.slot-modal-content p { color: var(--ivory-muted); }
.modal-instructions { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.modal-instructions a { color: var(--gold-soft); }
.modal-note { margin-bottom: 0; font-size: .84rem; }
.slot-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 1.7rem;
  cursor: pointer;
}

/* Footer */
.site-footer {
  margin: 0;
  padding: 2rem clamp(1.1rem,3.8vw,4rem);
  border-top: 1px solid var(--line-soft);
  background: rgba(11,6,12,.82);
  color: rgba(243,237,228,.7);
  text-align: center;
  font-size: .86rem;
}
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-icon-link { display: inline-flex; align-items: center; vertical-align: middle; margin-left: .4rem; }
.footer-icon-link img { display: block; height: 24px; width: auto; }
.doctolib-link img { max-height: 22px; max-width: 96px; object-fit: contain; }

/* Reveals */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0,26px,0);
  transition: opacity .85s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.js [data-reveal="left"] { transform: translate3d(-32px,18px,0); }
.js [data-reveal="right"] { transform: translate3d(32px,18px,0); }
.js [data-reveal].is-visible { opacity: 1; transform: translate3d(0,0,0); }

@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .site-header { min-height: var(--header-h); grid-template-columns: auto 1fr; padding: 0 1rem; }
  .site-header:not(.compact-header) .burger { display: block; }
  .site-header:not(.compact-header) .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    background: rgba(19,9,18,.97);
    border-bottom: 1px solid var(--line-soft);
    opacity: 0;
    visibility: hidden;
    transition: max-height .38s ease, opacity .25s ease, visibility .25s ease, padding .35s ease;
  }
  .site-header:not(.compact-header) .site-nav.active { max-height: 420px; padding-top: .75rem; padding-bottom: .9rem; opacity: 1; visibility: visible; }
  .site-header:not(.compact-header) .site-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
  .hero-copy { width: min(760px, 82vw); }
  .presentation-grid,
  .about-lead,
  .appointment-top { grid-template-columns: 1fr; }
  .profile-figure,
  .about-portrait {
    width: min(560px,78vw);
    margin-left: auto;
    margin-right: auto;
  }
  .consultation-grid { grid-template-columns: 90px 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid p,
  .contact-grid p + p { padding: 1rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-grid p:last-child { border-bottom: 0; }
  .slot-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 720px) {

  .hero::before,
  .about-page .page-hero::before,
  .plan-page .page-hero::before {
    background-image: url("fond-mobile.jpg");
    background-image: image-set(url("fond-mobile.webp") type("image/webp"), url("fond-mobile.jpg") type("image/jpeg"));
    background-position: center 28%;
    inset: -1.5%;
    animation-duration: 34s;
  }
.wrap,
  .hero-inner,
  .appointment-shell { width: min(100% - 2rem, var(--max)); }
  .brand img { width: 37px; height: 37px; }
  .brand-text { font-size: 1.05rem; }
  .compact-header .header-link { font-size: .66rem; letter-spacing: .08em; }
  .hero { min-height: calc(92svh - var(--header-h)); }
  .hero-inner { padding-top: 6rem; padding-bottom: 3.7rem; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(4rem,24vw,7rem); }
  .hero h1 .surname { margin-left: 0; }
  .hero-role { margin-top: 2rem; }
  .section { padding: 4.5rem 0; margin: 0; }
  .hero + .section,
  .section + .section { margin-top: 0; }
  .section-heading { margin-bottom: 2.6rem; }
  .section-heading h2 { font-size: clamp(3rem,14vw,5rem); }
  .presentation-grid { gap: 2.7rem; }
  .profile-figure,
  .about-portrait {
    width: min(100%, 460px);
    margin-left: auto;
    margin-right: auto;
  }

  .profile-frame {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .about-page .section:first-of-type {
    padding-top: 5.4rem;
    padding-bottom: 6.2rem;
  }

  .about-page .about-portrait {
    margin-top: 2rem;
    margin-bottom: 3.4rem;
  }
  .audiences { grid-template-columns: 1fr; }
  .audience { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 1.5rem 0 1.8rem; }
  .audience:last-child { border-bottom: 0; }
  .audience h3 { padding-top: .4rem; margin-bottom: 1rem; }
  .audience-note { margin-top: 2rem; }
  .consultation-grid { grid-template-columns: 26px 1fr; gap: 1.35rem; }
  .page-hero { min-height: 330px; }
  .page-hero h1,
  .appointment-shell h1 { font-size: clamp(3.8rem,19vw,6.2rem); }
  .site-map-row { min-height: 74px; font-size: clamp(1.8rem,10vw,2.8rem); }
  .appointment-shell { padding-top: 3.3rem; }
  .appointment-top { padding-bottom: 2.8rem; }
  .panel-title { font-size: clamp(2.4rem,12vw,4rem); }
  .slot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .practical-info { grid-template-columns: 1fr; }
  .practical-info p,
  .practical-info p + p { padding: 1.2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .practical-info p:last-child { border-bottom: 0; }
  .appointment-day-header { min-height: 68px; font-size: 1.55rem; }
  .slot-modal-content { max-height: calc(100dvh - 2rem); overflow-y: auto; }
  .site-footer { padding: 1.6rem 1rem; }
}




/* Voile prune respirant :
   couleur uniforme, animation rapide de 80 % à 95 % d'opacité.
   Seule l'opacité varie pour conserver une animation très fluide. */
.hero::after,
.about-page .page-hero::after,
.plan-page .page-hero::after {
  inset: 0 !important;
  background: #260c22 !important;
  opacity: 0.80;
  transform: translateZ(0) !important;
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: prunePulse 7.2s linear infinite;
}

@keyframes prunePulse {
  0%    { opacity: 0.800; }
  12.5% { opacity: 0.822; }
  25%   { opacity: 0.875; }
  37.5% { opacity: 0.928; }
  50%   { opacity: 0.950; }
  62.5% { opacity: 0.928; }
  75%   { opacity: 0.875; }
  87.5% { opacity: 0.822; }
  100%  { opacity: 0.800; }
}


@media (prefers-reduced-motion: reduce) {
  .editorial-link::after {
    animation: none !important;
  }

  .hero::after,
  .about-page .page-hero::after,
  .plan-page .page-hero::after {
    animation: none !important;
    opacity: 0.88 !important;
    transform: none !important;
  }

  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}


/* Plan du site : alignement explicite sur la DA des pages internes */
.plan-page {
  background: #160d19;
}
.plan-page .page-hero {
  min-height: clamp(360px, 48vh, 610px);
}
.plan-page .section {
  padding-top: clamp(5.8rem, 10vw, 9rem);
  padding-bottom: clamp(5.8rem, 10vw, 9rem);
  background: #160d19;
}
.plan-page .site-map-list {
  width: min(100%, 980px);
  margin: 0 auto;
}


/* Pages légales / confidentialité / 404 */
.legal-page .section,
.error-page .section { background: #160d19; }
.legal-copy { width: min(900px, 100%); margin: 0 auto; }
.legal-block { padding: 2rem 0; border-top: 1px solid var(--line); }
.legal-block:last-child { border-bottom: 1px solid var(--line); }
.legal-block h2 { margin: 0 0 1rem; font: 500 clamp(2rem,4vw,3.35rem)/1 var(--serif); letter-spacing: -.03em; }
.legal-block p { margin: .65rem 0; color: var(--ivory-muted); }
.legal-block strong { color: var(--ivory); }
.legal-block a { color: var(--gold-soft); text-underline-offset: .18em; }
.legal-note { color: rgba(243,237,228,.62) !important; font-size: .9rem; }
.error-page .error-content { min-height: 42vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.error-page .error-content p { max-width: 680px; color: var(--ivory-muted); }

/* Préserve l'esthétique tout en évitant un flash d'images tardif. */
.profile-frame img,
.about-portrait img { background: #1d101b; }




/* V20 — Portraits accueil + À propos : proportions naturelles, sans crop */
.home-page .profile-frame,
.about-page .about-portrait {
  overflow: visible;
}

.home-page .profile-frame img,
.about-page .about-portrait img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

.home-page .profile-frame:hover img,
.about-page .about-portrait:hover img {
  transform: none !important;
}


/* V21 — Neutralisation définitive du recadrage des portraits */
.home-page .profile-frame,
.about-page .about-portrait {
  width: min(100%, 430px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: center !important;
  justify-self: center !important;
  overflow: visible !important;
}

.home-page .profile-frame img,
.about-page .about-portrait img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}
