/* =========================================================
   Composants des univers — thémés par .theme-tdf / .theme-hc
   ========================================================= */

.theme-tdf {
  --u-bg: var(--tdf-sand);
  --u-surface: #f7efe7;
  --u-card: #efe3d7;
  --u-text: var(--tdf-ink);
  --u-muted: #7a5c4d;
  --u-accent: var(--tdf-terracotta);
  --u-accent-dark: var(--tdf-terracotta-dark);
  --u-on-accent: #fff;
  --u-band: var(--tdf-terracotta);
  --u-on-band: #fff;
  --u-line: rgba(74, 46, 34, .15);
  --u-header: rgba(243, 233, 223, .96);
}

.theme-hc {
  --u-bg: var(--hc-charcoal);
  --u-surface: var(--hc-stone);
  --u-card: #262422;
  --u-text: var(--hc-light);
  --u-muted: var(--hc-muted);
  --u-accent: var(--hc-beige);
  --u-accent-dark: var(--hc-light);
  --u-on-accent: var(--hc-black);
  --u-band: var(--hc-stone);
  --u-on-band: var(--hc-light);
  --u-line: rgba(228, 222, 213, .14);
  --u-header: rgba(22, 21, 20, .94);
}

.theme-tdf,
.theme-hc {
  background: var(--u-bg);
  color: var(--u-text);
}

/* Ancres : compense la hauteur du header fixe */
.theme-tdf section[id],
.theme-hc section[id] { scroll-margin-top: 80px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--u-header);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--u-line);
}
.site-header .navbar { padding: .9rem 0; }
.site-header .logo-tdf,
.site-header .logo-hc { font-size: 1.35rem; color: var(--u-text); }

.site-header .nav-link {
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--u-text);
  padding: .5rem .9rem !important;
  opacity: .85;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { opacity: 1; color: var(--u-accent); }
.site-header .nav-link.active { text-decoration: underline; text-underline-offset: 6px; }

.navbar-toggler { border: 0; padding: .25rem; color: var(--u-text); }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler svg { width: 26px; height: 26px; }

.switch-univers {
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--u-muted);
  text-decoration: none;
}
a.switch-univers:hover { color: var(--u-accent); }
.switch-univers a { color: var(--u-text); text-decoration: underline; text-underline-offset: 4px; }
.switch-univers a:hover { color: var(--u-accent); }
/* Variante sur deux lignes : libellé au-dessus, lien en dessous */
.switch-stack { display: inline-flex; flex-direction: column; line-height: 1.35; }

.btn-u { background: var(--u-accent); border-color: var(--u-accent); color: var(--u-on-accent); }
.btn-u:hover { background: var(--u-accent-dark); border-color: var(--u-accent-dark); color: var(--u-on-accent); }
.theme-tdf .btn-u:hover { color: #fff; }

.btn-u-outline { color: var(--u-text); border-color: var(--u-line); }
.btn-u-outline:hover { background: var(--u-text); color: var(--u-bg); }

/* Header : éléments sur une seule ligne, version resserrée sur les écrans 992–1199 px */
.site-header .nav-link,
.site-header .btn-pill,
.switch-univers { white-space: nowrap; }

@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .logo-tdf,
  .site-header .logo-hc { font-size: 1.15rem; }
  .site-header .nav-link { padding: .5rem .55rem !important; font-size: .78rem; }
  .site-header .btn-pill { padding: .6rem 1.1rem; font-size: .78rem; }
  .switch-univers { font-size: .7rem; letter-spacing: .03em; }
}

/* ---------- Hero ---------- */
.u-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 760px);
  padding: 6rem 0;
  color: var(--u-on-band);
  isolation: isolate;
  overflow: hidden;
}
.u-hero > .ph {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.u-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 65%);
}
.u-hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.02;
  margin-bottom: 1.25rem;
}
.u-hero .lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.35;
  max-width: 28rem;
}
.u-hero .eyebrow { display: block; margin-bottom: 2rem; opacity: .9; }

/* ---------- Cartes soins ---------- */
.u-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.u-section-head { margin-bottom: 3rem; }
.u-section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.u-section-head .eyebrow { color: var(--u-accent); }

.soin-card {
  display: grid;
  grid-template-columns: 45% 1fr;
  height: 100%;
  background: var(--u-card);
  color: var(--u-text);
  text-decoration: none;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.soin-card .ph { min-height: 240px; }
.soin-media { display: block; min-height: 240px; background: #151413; }
.theme-tdf .soin-media { background: var(--u-card); }
.soin-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.soin-card-body { padding: 2rem 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.soin-card h3 { font-size: 1.65rem; margin-bottom: 1rem; }
.soin-card p { color: var(--u-muted); margin-bottom: 1rem; line-height: 1.5; font-size: 1.02rem; }
.soin-card .accroche { font-style: italic; font-size: 1.15rem; color: var(--u-accent); margin-bottom: .75rem; }
.soin-points { list-style: none; padding: 0; margin: .25rem 0 0; border-top: 1px solid var(--u-line); }
.soin-points li {
  position: relative;
  padding: .45rem 0 .45rem 1.4rem;
  border-bottom: 1px solid var(--u-line);
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .02em;
}
.soin-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: .7rem; height: 1px;
  background: var(--u-accent);
}
.soin-card .brand { display: block; font-family: var(--font-sans); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--u-muted); margin: -.5rem 0 1rem; }
.link-arrow {
  font-family: var(--font-sans);
  font-size: .82rem;
  color: var(--u-accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- Atouts ---------- */
.u-features { border-top: 1px solid var(--u-line); border-bottom: 1px solid var(--u-line); }
.u-features .feature-icon { color: var(--u-accent); }
.u-features h3 { font-size: 1.3rem; }
.u-features p { color: var(--u-muted); font-size: 1rem; }

/* ---------- Bloc split ---------- */
.u-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.u-split-text {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem);
  background: var(--u-band);
  color: var(--u-on-band);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.u-split-text h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; position: relative; z-index: 1; }
.u-split-text p { max-width: 26rem; position: relative; z-index: 1; }
.u-split-text .btn-pill { align-self: flex-start; position: relative; z-index: 1; }
.u-split .ph { min-height: 320px; }
.split-media { display: block; min-height: 320px; background: #151413; }
.split-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* Photo 60 % / texte 40 %, la photo garde ses proportions (non rognée) */
.u-split--media-60,
.u-quote.u-quote--media-60 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); min-height: 0; }
.u-split--media-60 .split-media,
.u-quote.u-quote--media-60 .split-media { min-height: 0; }
.u-split--media-60 .split-photo,
.u-quote.u-quote--media-60 .split-photo { height: 100%; min-height: 100%; aspect-ratio: 1100 / 619; }
.u-split--media-60 .u-split-text,
.u-quote.u-quote--media-60 .u-quote-text { padding: clamp(2rem, 4vw, 4rem); }
.theme-tdf .split-media { background: var(--u-card); }
@media (max-width: 991.98px) {
  .u-split--media-60,
  .u-quote.u-quote--media-60 { grid-template-columns: 1fr; }
  .u-split--media-60 .split-media { order: -1; }
  .u-split--media-60 .split-photo,
  .u-quote.u-quote--media-60 .split-photo { height: auto; }
}

.btn-cream { background: var(--tdf-sand); border-color: var(--tdf-sand); color: var(--tdf-ink); }
.btn-cream:hover { background: #fff; border-color: #fff; color: var(--tdf-ink); }

.leaf-deco {
  position: absolute;
  right: -30px; bottom: -20px;
  width: 280px;
  color: rgba(255,255,255,.35);
  pointer-events: none;
}

/* ---------- Citation / expérience ---------- */
.u-quote { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--u-surface); }
.u-quote .ph { min-height: 380px; }
.u-quote-text { padding: clamp(3rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.u-quote-text .script { font-size: clamp(2.4rem, 4.5vw, 3.6rem); color: var(--u-accent); margin-bottom: 1.25rem; }
.u-quote-text p { color: var(--u-muted); max-width: 24rem; }
.u-quote-text .btn-pill { align-self: flex-start; }

/* ---------- Teaser équipe ---------- */
.team-teaser .ph { aspect-ratio: 4 / 5; border-radius: 200px 200px 0 0; }
.team-teaser h3 { font-size: 1.5rem; margin: 1.25rem 0 .25rem; }
.team-quote {
  max-width: 24rem;
  margin: 1rem auto 0;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--u-muted);
}
.team-teaser .role { font-family: var(--font-sans); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--u-muted); }

/* ---------- CTA réservation ---------- */
.u-cta { background: var(--u-card); text-align: center; }
.u-cta h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.u-cta p { color: var(--u-muted); }

/* ---------- Footer univers ---------- */
.u-footer {
  background: var(--tdf-terracotta-dark);
  color: rgba(255,255,255,.8);
  font-family: var(--font-sans);
  font-size: .85rem;
  padding: 3rem 0 6rem;
}
.theme-hc .u-footer { background: var(--hc-black); color: var(--hc-muted); }
.u-footer a { color: #fff; text-decoration: none; }
.theme-hc .u-footer a { color: var(--hc-light); }
.u-footer a:hover { text-decoration: underline; }
.u-footer .logo-tdf, .u-footer .logo-hc { font-size: 1.3rem; }
.u-footer .info { display: flex; gap: .75rem; align-items: flex-start; }
.u-footer .info svg { flex: none; width: 20px; height: 20px; margin-top: .1rem; }
.u-footer .social a { border-color: rgba(255,255,255,.3); }
.u-footer hr { border-color: rgba(255,255,255,.2); opacity: 1; }
.u-footer .footer-legal a { color: rgba(255,255,255,.7); }
.theme-hc .u-footer .footer-legal a { color: var(--hc-muted); }

/* ---------- Barre réservation mobile (univers) ---------- */
.book-bar-u .btn-pill { flex: 1; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse { padding: 1rem 0 .5rem; }
  .site-header .nav-link { padding: .7rem 0 !important; font-size: .95rem; border-bottom: 1px solid var(--u-line); }
}

@media (max-width: 767.98px) {
  .u-hero { min-height: 78svh; padding: 4rem 0; align-items: flex-end; }
  .u-hero::before { background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,0) 70%); }
  .soin-card { grid-template-columns: 1fr; }
  .soin-card .ph { min-height: 200px; }
  .soin-media { min-height: 0; }
  .soin-photo { height: 260px; }
  .soin-card-body { padding: 1.5rem 1.25rem; }
  .soin-card h3 { font-size: 1.45rem; margin-bottom: .6rem; }
  .soin-card p { font-size: .98rem; }
  .u-split, .u-quote { grid-template-columns: 1fr; }
  .u-split .ph { order: -1; min-height: 260px; }
  .u-split .split-media { order: -1; min-height: 0; }
  .split-photo { height: auto; aspect-ratio: 1100 / 619; }
  .u-quote .ph { min-height: 260px; }
  .leaf-deco { width: 170px; right: -40px; bottom: -30px; opacity: .6; }
}

/* =========================================================
   Spécifique Hôrs Cadre
   ========================================================= */
.theme-hc .u-hero::before { background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.05) 70%); }
.theme-hc .u-hero .eyebrow { line-height: 2.1; letter-spacing: .38em; }

.u-hero .hero-logo {
  display: inline-block;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  color: var(--hc-light);
  margin-bottom: 2rem;
}
.hero-logo .frame { padding: .18em .06em .18em .22em; border-width: 1.5px; }

.theme-hc .btn-light-outline { color: var(--hc-light); border-color: rgba(228,222,213,.6); }
.theme-hc .btn-light-outline:hover { background: var(--hc-light); color: var(--hc-black); }

.theme-hc .soin-card { border: 1px solid var(--u-line); }

.theme-hc .u-split-text { background-color: var(--hc-stone); }
.theme-hc .u-split-text::after {             /* grain pierre */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Bandeau citation */
.hc-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 300px;
  padding: 3rem clamp(1.5rem, 6vw, 5rem);
  isolation: isolate;
  overflow: hidden;
}
.hc-band > .ph { position: absolute; inset: 0; z-index: -2; }
.hc-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,0) 30%, rgba(22,21,20,.85) 70%);
}
.hc-band .script {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  color: var(--hc-light);
  max-width: 34rem;
  margin: 0;
}

/* Équipe : cadre droit plutôt qu'arche */
.theme-hc .team-teaser .ph { border-radius: 0; outline: 1px solid var(--u-line); outline-offset: 10px; }
.team-teaser .team-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.theme-hc .team-teaser .team-photo { outline: 1px solid var(--u-line); outline-offset: 10px; }
.theme-tdf .team-teaser .team-photo { border-radius: 200px 200px 0 0; }

/* Horaires dédiés */
.hc-hours { border: 1px solid var(--u-line); padding: clamp(2rem, 5vw, 3.5rem); }
.hc-hours h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.hc-hours dl { margin: 0; }
.hc-hours dt { font-family: var(--font-sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--u-muted); font-weight: 400; }
.hc-hours dd { font-size: 1.35rem; margin-bottom: 1.25rem; }

@media (max-width: 767.98px) {
  .hc-band { min-height: 260px; justify-content: center; text-align: center; }
  .hc-band::before { background: rgba(22,21,20,.65); }
  .u-hero .hero-logo { font-size: clamp(1.5rem, 11vw, 2.8rem); letter-spacing: .06em; }
}

/* =========================================================
   Page contact & formulaire
   ========================================================= */
.page-head {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--u-band);
  color: var(--u-on-band);
}
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: .5rem 0 1rem; }
.page-head p { max-width: 36rem; margin: 0; opacity: .9; }

.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }
.contact-info .access-list svg { color: var(--u-accent); }
.contact-info .access-list a { color: var(--u-text); }

.contact-card {
  background: var(--u-card);
  border: 1px solid var(--u-line);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.contact-card h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }

.contact-form label {
  display: block;
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .4rem;
  color: var(--u-text);
}
.contact-form .req { color: var(--u-accent); }
.contact-form .form-control {
  border-radius: 0;
  border: 1px solid var(--u-line);
  background: var(--u-bg);
  color: var(--u-text);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  padding: .7rem .9rem;
}
.contact-form .form-control::placeholder { color: var(--u-muted); opacity: .7; }
.contact-form .form-control:focus {
  border-color: var(--u-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--u-accent) 25%, transparent);
  background: var(--u-bg);
  color: var(--u-text);
}
.contact-form .form-control.is-invalid { border-color: #c0392b; background-image: none; padding-right: .9rem; }
.theme-hc .contact-form .form-control.is-invalid { border-color: #e07a6a; }
.field-error {
  display: block;
  min-height: 1.2em;
  margin-top: .3rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  color: #b03a2e;
}
.theme-hc .field-error { color: #f09a8c; }
.field-hint { font-family: var(--font-sans); font-size: .75rem; color: var(--u-muted); }

.contact-form textarea { resize: vertical; min-height: 160px; }

.form-legal { font-family: var(--font-sans); font-size: .75rem; line-height: 1.5; color: var(--u-muted); }
.form-legal a { color: inherit; }

.form-status { font-family: var(--font-sans); font-size: .9rem; margin: 0; }
.form-status:empty { display: none; }
.form-status.is-success, .form-status.is-error { padding: .8rem 1rem; border-left: 3px solid; }
.form-status.is-success { border-color: #3d8b5f; background: rgba(61,139,95,.1); }
.form-status.is-error { border-color: #c0392b; background: rgba(192,57,43,.08); }
.theme-hc .form-status.is-success { color: #a9dcbc; }
.theme-hc .form-status.is-error { color: #f09a8c; }

.contact-form button[disabled] { opacity: .6; cursor: wait; }

/* Pot de miel : hors écran, invisible et ignoré par les lecteurs d'écran */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.contact-map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.35) sepia(.15); }
.theme-hc .contact-map iframe { filter: grayscale(1) invert(.9) contrast(.9); }
