/* Les fiches de soin, version haut de gamme
   Flavia, 13 novembre 2026 : « les pages de chaque soin sont laides et
   auraient besoin d'autant d'attention qu'on a donné à Concierge ».

   Couche à part, chargée par les 64 fiches de /soins/ et /en/treatments/
   (outils/fiche_luxe.py). Aucun mot ni balisage du contenu ne change : la
   portée vient de `data-fiche` sur le <body> (fiches_familles.py), qui dit
   aussi quelle photo de famille ouvre la page. Les états de départ des
   animations n'existent que sous html.fl-anim, posé dans l'en-tête quand le
   système accepte le mouvement et retiré par un garde-fou après 4 s si le
   script ne s'est pas annoncé. */

body[data-fiche] {
  --sage: #b89c6a; --sage-deep: #7d6a4d; --sage-pale: #efe7db;
  --fl-noir: #16130f; --fl-ivoire: #fbf8f4; --fl-or: #b89c6a; --fl-or-t: #7d6a4d; --fl-beige: #e9e0d3;
  --fl-ease: cubic-bezier(.16, .84, .24, 1);
  background: var(--fl-ivoire);
}
body[data-fiche="visage"]         { --fl-photo: url(/assets/catalogue-visage.jpg); }
body[data-fiche="epilation"]      { --fl-photo: url(/assets/catalogue-epilation.jpg); }
body[data-fiche="ipl"]            { --fl-photo: url(/assets/catalogue-ipl.jpg); }
body[data-fiche="radiofrequence"] { --fl-photo: url(/assets/catalogue-radiofrequence.jpg); }
body[data-fiche="signature"]      { --fl-photo: url(/assets/catalogue-signature.jpg); }
body[data-fiche="rituels"]        { --fl-photo: url(/assets/catalogue-rituels.jpg); }
body[data-fiche="corps"]          { --fl-photo: url(/assets/catalogue-corps-lumiere.jpg); }
body[data-fiche="capillaire"]     { --fl-photo: url(/assets/catalogue-capillaire.jpg); }

/* ═══ L'entête : le soin, et la photo de sa famille en premier plan ═══ */
body[data-fiche] .hero {
  background: radial-gradient(110% 80% at 85% -10%, rgba(184, 156, 106, .12), transparent 60%), var(--fl-ivoire) !important;
  padding-top: clamp(3rem, 6vw, 5.5rem) !important;
}
body[data-fiche] .hero::after { display: none !important; }
body[data-fiche] .hero > .wrap > .mono {
  font: 500 .64rem/1.6 var(--sans) !important; letter-spacing: .3em !important; text-transform: uppercase; color: var(--fl-or-t) !important;
}
body[data-fiche] .hero h1 {
  margin-top: 1.2rem; font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.1rem, 3.9vw, 3.5rem) !important; line-height: 1.06 !important; letter-spacing: .045em !important; color: var(--fl-noir);
}
body[data-fiche] .hero h1::after {
  content: ""; display: block; width: 56px; height: 1px; margin-top: 1.7rem; background: var(--fl-or); transform-origin: left;
}
body[data-fiche] .hero .lead {
  margin-top: 1.6rem; max-width: 34em;
  font-family: var(--serif) !important; font-style: italic; font-size: clamp(1.18rem, 1.6vw, 1.42rem) !important; line-height: 1.5 !important; color: #4a423b !important;
}
.fl-mot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.fl-mot > span { display: inline-block; }

/* Les faits : une ligne sobre entre deux filets d'or, plus une boîte. */
body[data-fiche] .hero .faits {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: baseline !important;
  gap: .9rem 2.4rem !important; margin: 2.2rem 0 0 !important; padding: 1.15rem 0 !important;
  border: 0 !important; border-block: 1px solid rgba(184, 156, 106, .45) !important; background: none !important;
}
body[data-fiche] .hero .faits > span {
  padding: 0 !important; border: 0 !important;
  font: 500 .62rem/1.5 var(--sans) !important; letter-spacing: .24em !important; text-transform: uppercase; color: var(--fl-or-t) !important;
}
body[data-fiche] .hero .faits b {
  display: inline !important; margin: 0 0 0 .5rem !important;
  font-family: var(--serif) !important; font-weight: 400 !important; font-size: 1.45rem !important; letter-spacing: 0 !important;
  text-transform: none !important; color: var(--fl-noir) !important;
}
body[data-fiche] .hero .faits > span:first-child b { margin-left: 0 !important; }
body[data-fiche] .hero .faits .msh {
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--fl-or-t) !important;
}
body[data-fiche] .hero .actions { flex-direction: row !important; flex-wrap: wrap; gap: .9rem !important; margin-top: 2rem !important; }

/* Les boutons de la page Concierge. */
body[data-fiche] .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem; min-height: 54px; padding: 1rem 2.2rem !important;
  font: 500 .7rem/1.2 var(--sans) !important; letter-spacing: .26em !important; text-transform: uppercase;
  border: 1px solid var(--fl-noir) !important; border-radius: 0; transition: background-color .45s, color .45s, border-color .45s;
}
body[data-fiche] .btn::after { content: ""; width: 22px; height: 1px; background: currentColor; transition: width .35s var(--fl-ease); }
body[data-fiche] .btn-plein { background: var(--fl-noir) !important; color: var(--fl-ivoire) !important; }
body[data-fiche] .btn-ligne { background: transparent !important; color: var(--fl-noir) !important; }
@media (hover: hover) {
  body[data-fiche] .btn:hover::after { width: 36px; }
  body[data-fiche] .btn-plein:hover { background: var(--fl-or-t) !important; border-color: var(--fl-or-t) !important; }
  body[data-fiche] .btn-ligne:hover { background: var(--fl-noir) !important; color: var(--fl-ivoire) !important; }
}

/* La photo de la famille : à droite sur ordinateur, au bord de l'écran au
   téléphone. Décorative (pseudo-élément), comme sur le catalogue. */
body[data-fiche] .hero > .wrap::after {
  content: ""; display: block; aspect-ratio: 4 / 5;
  background: var(--fl-photo) center 40% / cover no-repeat, var(--fl-beige);
}
@media (min-width: 980px) {
  body[data-fiche] .hero > .wrap:has(.faits) {
    display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .85fr) !important;
    column-gap: clamp(3rem, 7vw, 7rem) !important; align-items: start;
  }
  body[data-fiche] .hero > .wrap:has(.faits) > * { grid-column: 1 !important; }
  body[data-fiche] .hero > .wrap::after {
    grid-column: 2; grid-row: 1 / span 6; align-self: start; max-height: calc(100vh - 64px - 5rem); width: 100%;
    box-shadow: 18px 18px 0 -1px var(--fl-ivoire), 18px 18px 0 0 rgba(184, 156, 106, .6), 0 40px 80px -40px rgba(22, 19, 15, .5);
  }
}
@media (max-width: 979px) {
  body[data-fiche] .hero { padding-top: 0 !important; }
  body[data-fiche] .hero > .wrap { display: grid; }
  body[data-fiche] .hero > .wrap::after {
    grid-row: 1; aspect-ratio: 4 / 4.2; max-height: 62vh; margin: 0 calc((100% - 100vw) / 2) 2.4rem;
  }
  body[data-fiche] .hero .btn { flex: 1 1 100%; }
}

/* ═══ Les sections ═══ */
body[data-fiche] main > section:not(.hero) { padding-block: clamp(3.8rem, 8vw, 6.5rem) !important; background: var(--fl-ivoire); border-top: 0 !important; }
body[data-fiche] main > section:not(.hero):nth-of-type(odd) { background: #f6f1ea; }
body[data-fiche] main > section .mono {
  font: 500 .62rem/1.6 var(--sans) !important; letter-spacing: .3em !important; text-transform: uppercase; color: var(--fl-or-t) !important;
}
body[data-fiche] main > section:not(.hero) h2 {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.45rem, 2.1vw, 2rem) !important; line-height: 1.12; letter-spacing: .06em; color: var(--fl-noir);
  border-bottom: 0 !important; padding-bottom: 0 !important;
}
body[data-fiche] main > section:not(.hero) h2::after { content: ""; display: block; width: 44px; height: 1px; margin-top: 1.2rem; background: var(--fl-or); transform-origin: left; }
body[data-fiche] .corps p { font-size: 1.02rem; line-height: 1.85; color: #4a423b; }
body[data-fiche] .corps > p:first-of-type { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.55vw, 1.38rem); line-height: 1.6; color: var(--fl-noir); }

/* Pour qui : des lignes en italique, un tiret d'or. */
body[data-fiche] .puces { gap: 0 !important; }
body[data-fiche] .puces li {
  padding: 1rem 0 1rem 2rem !important; border-bottom: 1px solid rgba(184, 156, 106, .3) !important;
  font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.4; color: #2f2a25 !important;
}
body[data-fiche] .puces li::before { content: "" !important; top: 1.75rem !important; width: 1rem; height: 1px; background: var(--fl-or); }
@media (min-width: 1000px) { body[data-fiche] .puces { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.6rem; } }

/* Le déroulement : un chapitre noir, des chiffres d'or (la page Concierge). */
body[data-fiche] main > section:has(.etapes) { background: var(--fl-noir) !important; color: #e8e0d4; }
body[data-fiche] main > section:has(.etapes) h2 { color: var(--fl-ivoire); }
body[data-fiche] main > section:has(.etapes) .mono { color: #d6c19b !important; }
body[data-fiche] .etapes li { grid-template-columns: 4.2rem 1fr !important; padding: 1.7rem 0 !important; border-top: 1px solid rgba(184, 156, 106, .22) !important; }
body[data-fiche] .etapes li:first-child { border-top: 0 !important; }
body[data-fiche] .etapes li::before {
  font: 400 2.4rem/1 var(--serif) !important; letter-spacing: 0 !important; color: var(--fl-or) !important; font-variant-numeric: lining-nums;
}
body[data-fiche] .etapes h3 { font: 500 .78rem/1.5 var(--sans) !important; letter-spacing: .22em; text-transform: uppercase; color: var(--fl-ivoire); margin-bottom: .55rem !important; }
body[data-fiche] .etapes p { color: rgba(232, 224, 212, .74) !important; font-size: .97rem !important; line-height: 1.7; }

/* Bon à savoir : plus de boîte, un filet d'or. */
body[data-fiche] .savoir ul { border: 0 !important; border-left: 1px solid var(--fl-or) !important; background: none !important; padding: .4rem 0 .4rem 1.8rem !important; gap: 1.05rem !important; }
body[data-fiche] .savoir li { font-size: 1rem !important; line-height: 1.7; color: #4a423b !important; }
body[data-fiche] .savoir li::before { color: var(--fl-or) !important; }

/* Questions fréquentes. */
body[data-fiche] .faq details { border-color: rgba(184, 156, 106, .35) !important; }
body[data-fiche] .faq summary { font-family: var(--serif); font-weight: 400 !important; font-size: 1.25rem; padding: 1.35rem 0 !important; color: var(--fl-noir); }
body[data-fiche] .faq summary::after { color: var(--fl-or) !important; transition: rotate .45s var(--fl-ease); }
body[data-fiche] .faq details[open] summary::after { rotate: 45deg; }
body[data-fiche] .faq details[open] > :not(summary) { animation: fl-ouvre .7s var(--fl-ease) both; }
body[data-fiche] .faq p { color: #4a423b; line-height: 1.8; }
@keyframes fl-ouvre { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

/* Où réserver : deux établissements, sans boîte. */
body[data-fiche] .lieux { gap: 2.6rem !important; border: 0 !important; background: none !important; }
body[data-fiche] .lieu { border: 0 !important; border-top: 1px solid var(--fl-or) !important; background: none !important; padding: 1.6rem 0 0 !important; }
body[data-fiche] .lieu h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 1.4rem; }
body[data-fiche] .lieu .indispo { font-style: italic; color: #8b7b6c; }

/* Soins associés : trois propositions, un filet d'or au-dessus. */
body[data-fiche] .assoc { gap: 2.4rem !important; border: 0 !important; background: none !important; margin-top: 2.2rem !important; }
body[data-fiche] .assoc .carte { border: 0 !important; border-top: 1px solid rgba(184, 156, 106, .5) !important; padding: 1.5rem 0 .4rem !important; background: none !important; }
body[data-fiche] .assoc .carte::before { background: var(--fl-noir) !important; height: 1px !important; transition: transform .7s var(--fl-ease) !important; }
body[data-fiche] .assoc .carte .nom { font-size: 1.45rem !important; text-decoration: none !important; transition: translate .5s var(--fl-ease); }
@media (hover: hover) { body[data-fiche] .assoc .carte:hover { background: none !important; } body[data-fiche] .assoc .carte:hover .nom { translate: .4rem 0; } }
body[data-fiche] .carte .msh { color: var(--fl-or-t) !important; background: none !important; border: 0 !important; padding: 0 !important; }

/* ═══ Les animations ═══ */
html.fl-anim:not(.fl-pret) body[data-fiche] .hero > .wrap > * { opacity: 0; translate: 0 22px; }
html.fl-anim:not(.fl-pret) body[data-fiche] .hero h1 { opacity: 1; translate: 0 0; }
html.fl-anim:not(.fl-pret) body[data-fiche] .hero h1 .fl-mot > span { translate: 0 110%; }
html.fl-anim:not(.fl-pret) body[data-fiche] .hero h1::after { transform: scaleX(0); }
html.fl-anim:not(.fl-pret) body[data-fiche] .hero > .wrap::after { opacity: 0; transform: scale(1.04); filter: blur(10px); }
body[data-fiche] .hero > .wrap > * { transition: opacity .9s var(--fl-ease), translate 1s var(--fl-ease); }
body[data-fiche] .hero > .wrap > .mono { transition-delay: .1s; }
body[data-fiche] .hero h1 .fl-mot > span { transition: translate 1s var(--fl-ease); transition-delay: calc(.2s + var(--fl-m, 0) * 70ms); }
body[data-fiche] .hero h1::after { transition: transform 1.2s var(--fl-ease) .6s; }
body[data-fiche] .hero .lead { transition-delay: .45s; }
body[data-fiche] .hero .faits { transition-delay: .6s; }
body[data-fiche] .hero .actions { transition-delay: .72s; }
body[data-fiche] .hero > .wrap::after { transition: opacity .8s ease-out .05s, transform 1.2s var(--fl-ease) .05s, filter .8s ease-out .05s; }

html.fl-anim body[data-fiche] main > section:not(.hero):not(.fl-vu) .wrap > * { opacity: 0; translate: 0 26px; }
html.fl-anim body[data-fiche] main > section:not(.hero):not(.fl-vu) :is(.puces, .etapes) > li { opacity: 0; translate: 0 18px; }
body[data-fiche] main > section:not(.hero) .wrap > * { transition: opacity .9s var(--fl-ease), translate 1s var(--fl-ease); }
body[data-fiche] main > section:not(.hero) .wrap > :nth-child(2) { transition-delay: .1s; }
body[data-fiche] main > section:not(.hero) .wrap > :nth-child(n+3) { transition-delay: .22s; }
body[data-fiche] main > section:not(.hero) :is(.puces, .etapes) > li { transition: opacity .8s var(--fl-ease), translate .9s var(--fl-ease); transition-delay: calc(.3s + var(--fl-i, 0) * 80ms); }

.fl-progres { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 10001; pointer-events: none; background: linear-gradient(90deg, #7d6a4d, #b89c6a); transform: scaleX(0); transform-origin: left; }
.fl-curseur { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(184, 156, 106, .75); border-radius: 50%; pointer-events: none; z-index: 10002; opacity: 0; transition: width .35s, height .35s, margin .35s, background-color .35s, opacity .3s; }
.fl-curseur.fl-on { opacity: 1; }
.fl-curseur.fl-sur { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(184, 156, 106, .12); }

@media (prefers-reduced-motion: reduce) {
  body[data-fiche] *, body[data-fiche] *::before, body[data-fiche] *::after { transition: none !important; animation: none !important; }
  .fl-progres, .fl-curseur { display: none; }
}
