@font-face { font-family: "Baloo 2"; src: url(fonts/Baloo2-VF.ttf) format("truetype"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: Lora; src: url(fonts/Lora-VF.ttf) format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Lora; src: url(fonts/Lora-Italic-VF.ttf) format("truetype"); font-style: italic; font-weight: 400 700; font-display: swap; }
:root { --creme: #f6eedd; --encre: #1d2b4f; --or: #b08a3e; --or-texte: #7a5c1c; --nuit: #0f1424; --carte: #fffaf0; --vert: #1f6f6b; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 18px/1.6 Lora, Georgia, serif; }
h1, h2, .btn, legend, .bande b { font-family: "Baloo 2", system-ui, sans-serif; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; margin: .2em 0 .4em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 .6em; }
a { color: var(--encre); }
img { max-width: 100%; height: auto; display: block; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; max-width: 1150px; margin: 0 auto; padding: 56px 20px 40px; }
.hero-img { border-radius: 6px; box-shadow: 0 18px 50px rgba(15, 20, 36, .35); transform: rotate(1.5deg); }
.sur { color: var(--or); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; margin: 0; }
.chapo { font-size: 1.15rem; }
.mini { font-size: .85rem; opacity: .8; }
.btn { display: inline-block; background: var(--encre); color: #fff; border: 0; border-radius: 999px; padding: 14px 30px; font-size: 1.15rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.btn:hover { background: #2c3f73; }
.btn:disabled { opacity: .5; cursor: wait; }
.bande { background: var(--nuit); color: #fff; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 20px; text-align: center; }
.bande b { display: block; font-size: 1.4rem; color: #f3c969; }
.bande span { font-size: .9rem; opacity: .85; }
.bloc { max-width: 1050px; margin: 0 auto; padding: 56px 20px 10px; }
.etapes { padding-left: 1.2em; } .etapes li { margin-bottom: .7em; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
figure { margin: 0; } figcaption { font-style: italic; text-align: center; margin-top: 8px; font-size: .95rem; }
.duo img, .galerie img { border-radius: 6px; box-shadow: 0 8px 24px rgba(15, 20, 36, .2); }
.galerie { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.note { font-size: .9rem; font-style: italic; opacity: .85; }
.liste li { margin-bottom: .5em; }
.commande form { background: var(--carte); border: 2px solid var(--or); border-radius: 14px; padding: 28px; display: grid; gap: 18px; }
.prix { font-size: 1.2rem; }
label { display: grid; gap: 6px; font-weight: 600; }
input[type=text], input:not([type]), input[type=email], input[type=file] { font: inherit; padding: 10px 12px; border: 1px solid #c9b88f; border-radius: 8px; background: #fff; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; }
legend { font-weight: 600; margin-bottom: 6px; }
.choix { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.accord { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.accord input { margin-top: 6px; }
#msg { margin: 0; font-weight: 600; color: #8a2a1a; }
.faq details { background: var(--carte); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
footer { text-align: center; padding: 50px 20px; font-size: .9rem; }
.page { max-width: 760px; margin: 0 auto; padding: 50px 20px; }
.page .apercus { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0; }
.btn.clair { background: #fff; color: var(--encre); border: 2px solid var(--encre); }
.exemples { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 16px; }
.exemples > p { grid-column: 1 / -1; margin: 0; }
.exemples figure { margin: 0; }
.exemples img { width: 100%; height: auto; border-radius: 8px; }
.exemples figcaption { font-size: .8rem; text-align: center; }
@media (max-width: 760px) { body { font-size: 17px; } }

/* ---------- Page d'accueil (body.accueil) ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.accueil { overflow-x: hidden; }
.accueil :focus-visible { outline: 3px solid #2aa7a0; outline-offset: 2px; border-radius: 4px; }
.accueil h3 { font-family: "Baloo 2", system-ui, sans-serif; font-size: 1.25rem; margin: 0 0 .3em; line-height: 1.2; }
.accueil h2 { line-height: 1.15; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 12px; top: 12px; z-index: 20; background: #fff; padding: 10px 14px; border-radius: 8px; }
.urgence { background: #a84a23; color: #fff; text-align: center; padding: 9px 16px; font-size: .92rem; line-height: 1.35; }
.centre { text-align: center; margin: 28px 0 0; }
.intro { margin: -.3em 0 1.1em; }
.accueil .btn { min-height: 48px; line-height: 1.2; box-shadow: 0 6px 18px rgba(15, 20, 36, .22); }
.btn-grand { font-size: 1.25rem; padding: 16px 34px; }
.coches { list-style: none; padding: 0; margin: 14px 0 0; font-size: .95rem; display: grid; gap: 6px; }
.coches li { padding-left: 1.7em; position: relative; }
.coches li::before { content: "✓"; position: absolute; left: 0; top: 0; font-family: "Baloo 2", system-ui, sans-serif; font-weight: 800; color: var(--vert); }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-areas: "tete mosaique" "suite mosaique"; grid-template-rows: auto 1fr; gap: 0 48px; align-items: center; max-width: 1150px; margin: 0 auto; padding: 48px 20px 44px; }
.hero-tete { grid-area: tete; align-self: end; }
.hero-suite { grid-area: suite; align-self: start; }
.hero-mosaique { grid-area: mosaique; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.hero-mosaique img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 28px rgba(15, 20, 36, .28); }
.hero-mosaique figcaption { grid-column: 1 / -1; text-align: center; font-style: normal; font-family: "Baloo 2", system-ui, sans-serif; font-size: 1.15rem; line-height: 1.25; margin-top: 6px; }
.sur { color: var(--or-texte); }
.chapo { font-size: 1.15rem; margin-top: 0; }
.prix-hero { font-size: 1rem; margin: 12px 0 0; }
.prix-hero b { font-family: "Baloo 2", system-ui, sans-serif; font-size: 1.5rem; }

.preuves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.preuves figure { background: var(--carte); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(15, 20, 36, .14); }
.preuves img { width: 100%; aspect-ratio: 542 / 485; object-fit: cover; object-position: top; }
.preuves figcaption { font-style: normal; text-align: left; padding: 12px 16px 16px; margin: 0; }
.preuves figcaption b { display: block; font-family: "Baloo 2", system-ui, sans-serif; font-size: 1.15rem; line-height: 1.2; margin-bottom: 4px; }

.etapes { list-style: none; padding: 0; margin: 0; counter-reset: e; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.etapes li { counter-increment: e; background: var(--carte); border-radius: 12px; padding: 18px 18px 20px; margin: 0; }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--encre); color: #f3c969; font: 800 1.3rem/1 "Baloo 2", system-ui, sans-serif; margin-bottom: 10px; }
.etapes b { display: block; font-family: "Baloo 2", system-ui, sans-serif; font-size: 1.15rem; line-height: 1.2; margin-bottom: 4px; }
.ia { margin: 18px 0 0; text-align: center; opacity: 1; }
.accueil .note { opacity: 1; color: #46506b; }
.accueil .mini { opacity: 1; color: #46506b; }

.galerie { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 16px; margin: 0 -20px; -webkit-overflow-scrolling: touch; }
.galerie a { flex: 0 0 min(64vw, 250px); scroll-snap-align: center; text-decoration: none; text-align: center; font-size: .9rem; }
.galerie img { width: 100%; border-radius: 6px; box-shadow: 0 8px 22px rgba(15, 20, 36, .22); margin-bottom: 8px; }

.liste { padding-left: 1.2em; }
.sources { background: var(--nuit); color: #fff; border-radius: 12px; padding: 20px 22px; margin-top: 22px; }
.sources h3 { color: #f3c969; }
.sources p { margin: 0; }

.commande { scroll-margin-top: 8px; }
.prix { font-size: 1.15rem; margin: 0 0 .3em; }
.prix b { font-family: "Baloo 2", system-ui, sans-serif; font-size: 1.9rem; }
.commande form { padding: 26px; gap: 18px; box-shadow: 0 10px 30px rgba(15, 20, 36, .12); }
.commande form > * { min-width: 0; }
.etape-f { display: flex; align-items: center; gap: 10px; margin: 6px 0 -4px !important; }
.etape-f i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--encre); color: #f3c969; font-style: normal; font-size: 1rem; flex: none; }
.commande label small { font-weight: 400; font-size: .85rem; color: #46506b; }
.commande input:not([type=radio]):not([type=checkbox]) { width: 100%; min-height: 48px; font-size: 1rem; color: var(--encre); }
.commande fieldset { gap: 8px; margin-bottom: 12px; min-width: 0; }
.commande legend { padding: 0; }
.commande input[type=checkbox] { width: 22px; height: 22px; flex: none; accent-color: var(--encre); margin: 0; }
.choix, .accord { min-height: 44px; }
.accord { align-items: center; }
.commande .btn { width: 100%; font-size: 1.2rem; padding: 14px 20px; }
#port { font-size: 1rem; font-weight: 600; background: #f3ead2; border-radius: 8px; padding: 10px 14px; margin: 0; }
#resume { margin: 6px 0 0; }
.commande form .coches { margin: 0; font-size: .9rem; }

.simu { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.simu > div { min-width: 0; }
.simu img { width: 100%; border-radius: 12px; }
.pastille { display: inline-block; font-weight: 400; position: relative; }
.pastille input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pastille span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 2px solid #d8c9a8; border-radius: 999px; background: #fff; }
.pastille span i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(15, 20, 36, .35); flex: none; }
.pastille input:checked + span { border-color: var(--encre); background: #e8ecf7; box-shadow: 0 0 0 1px var(--encre); font-weight: 600; }
.pastille input:focus-visible + span { outline: 3px solid #2aa7a0; outline-offset: 2px; }

.faq details { padding: 0; }
.faq summary { padding: 12px 18px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 1.5rem/1 "Baloo 2", system-ui, sans-serif; color: var(--or-texte); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; }
footer a { display: inline-block; padding: 12px 6px; }

.barre-mobile { display: none; }
@media (min-width: 761px) {
  .galerie { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0; padding: 0; gap: 18px; }
  .galerie a { flex-basis: calc(25% - 14px); }
  .commande form { max-width: 860px; }
}
@media (max-width: 900px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "tete" "mosaique" "suite"; grid-template-rows: auto; row-gap: 16px; padding: 22px 16px 34px; }
  .hero h1 { margin: .15em 0 0; font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .hero .btn-grand { display: block; text-align: center; }
  .hero-mosaique { gap: 6px; }
  .bande { grid-template-columns: 1fr 1fr; padding: 22px 16px; }
  .bloc { padding: 44px 16px 6px; }
  .preuves, .etapes { grid-template-columns: 1fr; }
  .galerie { margin: 0 -16px; padding: 4px 16px 16px; }
  .commande form { padding: 18px 16px; }
  .barre-mobile { display: block; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 10; background: var(--encre); color: #fff; text-align: center; padding: 14px; border-radius: 999px; font-family: "Baloo 2", system-ui, sans-serif; font-weight: 800; font-size: 1.05rem; text-decoration: none; box-shadow: 0 8px 24px rgba(15, 20, 36, .4); transition: transform .25s, opacity .25s; }
  .barre-mobile.cachee { transform: translateY(160%); opacity: 0; pointer-events: none; }
  .accueil { padding-bottom: 84px; }
}
@media (max-width: 560px) { .simu { grid-template-columns: 1fr; } }

.video { text-align: center; }
.video-reel { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; border-radius: 16px; box-shadow: 0 18px 40px rgba(15, 20, 36, .3); background: #f6eedd; }

.simu-ex { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.simu-ex figure { margin: 0; }
.simu-ex figure:first-child { grid-column: 1 / -1; }
.simu-ex img { width: 100%; height: auto; border-radius: 10px; display: block; }
.simu-ex figcaption { text-align: center; font-family: "Baloo 2", system-ui, sans-serif; font-weight: 700; font-size: 1rem; margin-top: 2px; }
.simu-ex .mini { grid-column: 1 / -1; margin: 0; text-align: center; }
@media (max-width: 560px) { .simu-ex { grid-template-columns: repeat(3, 1fr); } .simu-ex figure:first-child { grid-column: auto; } .simu-ex .mini { grid-column: 1 / -1; } }

.apercu { background: #fff; border: 2px solid #b08a3e; border-radius: 14px; padding: 16px; margin: 6px 0; }
.apercu img { width: 100%; height: auto; border-radius: 10px; display: block; margin: 8px 0; }
#ap-etat { font-weight: 600; margin: 0; }

.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); gap: 18px; justify-content: center; }
.videos figure { margin: 0; }
.videos figcaption { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 700; margin-top: 6px; }
@media (max-width: 560px) { .videos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; justify-content: flex-start; padding-bottom: 6px; }
  .videos figure { flex: 0 0 78%; scroll-snap-align: center; } }

.pastille[hidden] { display: none; }   /* coiffures de l'autre genre : vraiment cachées */

.apercu img[hidden], .ap-attente[hidden] { display: none; }
.ap-attente { position: relative; border-radius: 10px; overflow: hidden; margin: 10px 0; aspect-ratio: 4 / 3; }
.ap-attente > img { width: 100%; height: 100%; object-fit: cover; filter: blur(6px) sepia(.5) brightness(.75); transform: scale(1.06); margin: 0; }
.ap-voile { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; text-align: center; padding: 20px; font-family: "Baloo 2", system-ui, sans-serif; font-weight: 700; font-size: 1.15rem; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.ap-flamme { width: 18px; height: 30px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff6c2 0 25%, #ffc94a 45%, #e8743b 80%); box-shadow: 0 0 22px 8px rgba(255, 190, 80, .55); animation: ap-vacille 1.4s ease-in-out infinite alternate; }
@keyframes ap-vacille { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.12) rotate(3deg); } }
.ap-barre { width: min(320px, 80%); height: 8px; border-radius: 99px; background: rgba(255,255,255,.3); overflow: hidden; }
.ap-barre i { display: block; height: 100%; width: 0; background: #ffc94a; border-radius: 99px; transition: width 1s linear; }
@media (prefers-reduced-motion: reduce) { .ap-flamme { animation: none; } }

#lecteur { max-width: 340px; }
.video-choix { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.video-choix button { font: 700 .95rem "Baloo 2", system-ui, sans-serif; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 2px solid #d8c9a8; background: #fff; color: #1d2b4f; cursor: pointer; }
.video-choix button.on { border-color: #1d2b4f; background: #1d2b4f; color: #fff; }
