/* ═══════════════════════════════════════════════
   STARWORLD — feuille de style commune
   Clair-obscur : le studio dans la lumière, Yūgen dans l'ombre
═══════════════════════════════════════════════ */

:root {
    --pierre: #EEECE7;
    --pierre-2: #E3DFD7;
    --trait: #D5D0C7;
    --encre: #232222;
    --gris: #3E3B37;
    --gris-2: #5F5B55;
    --bois: #7A6049;
    --prune: #241B27;
    --prune-2: #1E1621;
    --prune-trait: #3A2F3E;
    --brume: #EEE8F2;
    --brume-2: #D2C8DA;
    --lavande: #C9B8E2;

    --serif-titre: 'Bodoni Moda', 'Didot', Georgia, serif;
    --serif-texte: 'EB Garamond', Garamond, Georgia, serif;

    --largeur: 1180px;
    --marge: clamp(22px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--serif-texte);
    font-size: 20px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif-titre); font-weight: 500; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

/* ── Langues : FR / EN ───────────────────────── */
html[data-lang="fr"] [data-l="en"],
html[data-lang="en"] [data-l="fr"] { display: none !important; }

/* ── Thèmes de page ──────────────────────────── */
.page-clair { background: var(--pierre); color: var(--encre); }
.page-sombre { background: var(--prune-2); color: var(--brume); }

.page-clair a { color: var(--encre); }
.page-clair a:hover { color: var(--bois); }
.page-sombre a { color: var(--brume); }
.page-sombre a:hover { color: var(--lavande); }
a { text-decoration-thickness: 1px; text-underline-offset: 5px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.page-clair :focus-visible { outline-color: var(--bois); }
.page-sombre :focus-visible { outline-color: var(--lavande); }

.lien-evitement {
    position: absolute; left: 12px; top: -60px; z-index: 1000;
    padding: 10px 16px; background: var(--encre); color: var(--pierre) !important; border-radius: 6px;
}
.lien-evitement:focus { top: 12px; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }

/* ── En-tête ─────────────────────────────────── */
.entete {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
    gap: 14px 28px; padding: 34px 0;
}
.entete .logo { font-family: var(--serif-titre); font-size: 26px; text-decoration: none; }
.entete nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; font-size: 19px; font-weight: 500; }
.entete nav a { text-decoration: none; }
.entete nav a[aria-current="page"] { text-decoration: underline; }
.bouton-langue {
    background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 16px;
    color: var(--gris-2); letter-spacing: .02em;
}
.page-sombre .bouton-langue { color: #B3A8BD; }
.bouton-langue:hover { text-decoration: underline; }

/* ── Boutons ─────────────────────────────────── */
.bouton {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 54px; padding: 0 34px; border-radius: 999px; border: 0;
    font-family: var(--serif-texte); font-size: 20px; text-decoration: none; cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}
.bouton:active { transform: scale(.98); }
.bouton-encre { background: var(--encre); color: var(--pierre) !important; }
.bouton-encre:hover { background: #3A3836; }
.bouton-brume { background: var(--brume); color: var(--prune) !important; }
.bouton-brume:hover { background: #FFFFFF; }

/* ── Titres et textes ───────────────────────── */
.titre-xl { font-size: clamp(56px, 8.5vw, 112px); line-height: 1; letter-spacing: -.02em; }
.titre-l { font-size: clamp(40px, 5vw, 60px); line-height: 1.05; }
.titre-m { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }
.chapo { font-size: clamp(20px, 2vw, 24px); line-height: 1.55; }
.texte-doux { color: var(--gris); }
.page-sombre .texte-doux { color: var(--brume-2); }
.section { padding-top: clamp(80px, 10vw, 120px); padding-bottom: clamp(80px, 10vw, 120px); }
.trait-haut { border-top: 1px solid var(--trait); }
.page-sombre .trait-haut { border-top-color: var(--prune-trait); }

/* ── Pied de page ───────────────────────────── */
.pied {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px;
    padding: 36px 0 48px; font-size: 16px; color: var(--gris-2);
}
.page-sombre .pied { color: #ADA2B6; }
.pied nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.pied a { color: inherit !important; }

/* ═══════════════════════════════════════════════
   ACCUEIL : l'écran coupé en deux
═══════════════════════════════════════════════ */
.accueil { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.split { display: flex; min-height: 100vh; min-height: 100svh; }
.moitie {
    position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 6vw 13vh; text-decoration: none; overflow: hidden;
    transition: flex-grow .9s cubic-bezier(.2,.7,.2,1);
}
.moitie:hover, .moitie:focus-visible { flex-grow: 1.8; }
.moitie-clair { background: var(--pierre); color: var(--encre) !important; }
.moitie-sombre { background: var(--prune); color: var(--brume) !important; }
.moitie-sombre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: .62; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.moitie-sombre:hover img { transform: scale(1.04); }
.moitie-sombre .voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,27,39,.25) 0%, rgba(36,27,39,.5) 55%, #241B27 100%); }
.moitie > * { position: relative; }
.moitie .nom { font-family: var(--serif-titre); font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; }
.moitie .phrase { margin-top: 14px; max-width: 360px; font-size: 21px; line-height: 1.55; }
.moitie-clair .phrase { color: var(--gris); }
.moitie-sombre .phrase { color: var(--brume-2); }
.moitie .entrer { margin-top: 28px; align-self: flex-start; font-size: 19px; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.moitie-sombre .entrer { color: var(--lavande); }
.moitie:hover .entrer { border-bottom-width: 2px; }

.accueil .marque {
    position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 8vh 20px 0;
    text-align: center; color: #FFFFFF; mix-blend-mode: difference; pointer-events: none;
}
.accueil .marque h1 { font-weight: 400; font-size: clamp(64px, 12vw, 176px); line-height: 1; letter-spacing: .02em; }
.accueil .marque p { margin-top: 12px; font-size: 20px; letter-spacing: .03em; }
.accueil .barre-haut { position: absolute; top: 22px; right: 6vw; z-index: 3; }
.accueil .barre-haut .bouton-langue { color: #FFFFFF; mix-blend-mode: difference; }
.accueil .barre-bas {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 18px 6vw; font-size: 15px;
    pointer-events: none;
}
.accueil .barre-bas > * { pointer-events: auto; }
.accueil .barre-bas .gauche { color: var(--gris-2); }
.accueil .barre-bas nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.accueil .barre-bas nav a { color: #C9BFD2; }
.accueil .barre-bas nav a:hover { color: #FFFFFF; }

@media (max-width: 760px) {
    .split { flex-direction: column; }
    .moitie { min-height: 50vh; min-height: 50svh; padding-bottom: 7vh; }
    .moitie-clair { padding-top: 34vh; }
    .moitie:hover, .moitie:focus-visible { flex-grow: 1; }
    .accueil .marque { padding-top: 9vh; }
    .accueil .barre-bas { position: static; background: var(--prune); }
}

/* ═══════════════════════════════════════════════
   STUDIO
═══════════════════════════════════════════════ */
.hero-studio { padding: clamp(70px, 11vw, 130px) 0 clamp(80px, 10vw, 110px); }
.hero-studio .ligne { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; align-items: flex-end; margin-top: 56px; }
.hero-studio .chapo { max-width: 560px; }

.duo { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 80px); align-items: center; }
.duo > .texte { flex: 1 1 420px; min-width: 0; }
.duo > .visuel { flex: 0 0 auto; margin: 0 auto; }

.choix-label { margin: 36px 0 12px; font-size: 18px; color: var(--gris-2); }
.pastilles { display: flex; flex-wrap: wrap; gap: 10px; }
.pastille {
    display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px;
    border-radius: 999px; border: 1px solid var(--encre); background: transparent; cursor: pointer;
    font-size: 19px; transition: background-color .2s, color .2s;
}
.pastille[aria-pressed="true"] { background: var(--encre); color: var(--pierre); }
.pastille .teinte { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #8C8780; }

.tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 480px; }
.tuile {
    display: flex; flex-direction: column; gap: 10px; padding: 0 0 12px; border: 1px solid var(--trait); border-radius: 14px;
    background: #F6F4F0; cursor: pointer; font-size: 18px; text-align: center; overflow: hidden;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.tuile:hover { transform: translateY(-2px); }
.tuile .vignette { display: block; height: 96px; background: var(--img) center/cover no-repeat, var(--repli); }
.tuile[aria-pressed="true"] { border-color: var(--encre); box-shadow: 0 0 0 1px var(--encre); }

.telephone { width: 300px; height: 620px; border-radius: 46px; background: #1C1B1B; padding: 11px; box-shadow: 0 40px 80px -40px rgba(35,34,34,.55), 0 2px 0 #3A3836 inset; }
.ecran {
    position: relative; height: 100%; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column;
    transition: background-color .45s ease, color .45s ease;
}
.ecran .barre-site { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px 14px; font-family: var(--serif-titre); font-size: 17px; }
.ecran .burger { display: flex; flex-direction: column; gap: 5px; }
.ecran .burger i { display: block; width: 20px; height: 1.5px; background: currentColor; }
.ecran .photo {
    position: relative; height: 270px; margin: 0 12px; border-radius: 18px; overflow: hidden;
    background: var(--img) center/cover no-repeat, var(--repli, #D9D0C1);
    transition: background-image .4s ease;
}
.ecran .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, var(--teinte, rgba(0,0,0,.55)) 100%); }
.ecran .titre-photo { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #FFFFFF; display: flex; flex-direction: column; gap: 4px; }
.ecran .nom-site { font-family: var(--serif-titre); font-size: 30px; line-height: 1.05; }
.ecran .sous-titre { font-size: 14px; opacity: .9; }
.ecran .corps { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 20px; font-size: 16px; line-height: 1.5; }
.ecran .infos { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid currentColor; border-top-color: rgba(128,128,128,.3); font-size: 14px; }
.ecran .cta { margin-top: auto; padding: 14px; border-radius: 999px; text-align: center; font-size: 15px; transition: background-color .45s ease, color .45s ease; }
.ecran.fondu .titre-photo, .ecran.fondu .phrase-site { animation: apparait .5s ease; }
@keyframes apparait { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.offres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offre { padding: 0 40px; border-left: 1px solid var(--trait); }
.offre:first-child { padding-left: 0; border-left: 0; }
.offre:last-child { padding-right: 0; }
.offre p { margin-top: 18px; font-size: 20px; line-height: 1.6; }
.offre .prix { margin-top: 26px; font-weight: 500; color: var(--encre); }
.mention-tva { margin-top: 40px; font-size: 16px; color: var(--gris-2); }
@media (max-width: 900px) {
    .offres { grid-template-columns: 1fr; gap: 44px; }
    .offre { padding: 44px 0 0; border-left: 0; border-top: 1px solid var(--trait); }
    .offre:first-child { padding-top: 0; border-top: 0; }
}

.bandeau-pierre { background: var(--pierre-2); }
.comparateur { position: relative; margin-top: 50px; height: 520px; border-radius: 16px; overflow: hidden; border: 1px solid #C9C3B9; user-select: none; touch-action: pan-y; cursor: ew-resize; box-shadow: 0 40px 80px -50px rgba(35,34,34,.5); }
.comparateur .avant, .comparateur .apres { position: absolute; inset: 0; }
/* Le site moche */
.comparateur .avant {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', cursive; color: #000080; font-size: 15px; line-height: 1.35;
    background-color: #FFF8C6;
    background-image: radial-gradient(#F4C2C2 1.5px, transparent 1.5px); background-size: 14px 14px;
    padding: 14px;
}
.moche-haut { background: linear-gradient(90deg, #FF0000, #FF9900, #FFFF00, #00CC00, #0066FF, #9900CC); padding: 10px; text-align: center; border: 4px ridge #C0C0C0; }
.moche-titre { font-size: clamp(20px, 3vw, 32px); font-weight: bold; color: #FFFFFF; text-shadow: 3px 3px 0 #000000; letter-spacing: 2px; }
.moche-defile { margin-top: 8px; padding: 4px; background: #000000; color: #00FF00; font-family: 'Courier New', monospace; font-size: 14px; white-space: nowrap; overflow: hidden; }
.moche-table { width: 100%; margin-top: 10px; border: 3px outset #C0C0C0; border-collapse: separate; background: #FFFFFF; }
.moche-table td { vertical-align: top; padding: 10px; border: 2px inset #C0C0C0; }
.moche-menu { width: 26%; background: #CCE5FF; color: #0000EE; font-size: 14px; line-height: 1.8; }
.moche-bienvenue { font-size: 24px; color: #FF00FF; font-weight: bold; text-decoration: underline; }
.moche-centre p { margin-top: 8px; }
.moche-travaux { display: inline-block; padding: 6px 12px; background: repeating-linear-gradient(45deg, #FFCC00 0 12px, #000000 12px 24px); color: #FFFFFF; font-weight: bold; text-shadow: 1px 1px 0 #000; }
.moche-compteur span { font-family: 'Courier New', monospace; background: #000000; color: #FF0000; padding: 0 4px; letter-spacing: 2px; }
.moche-ie { font-size: 12px; color: #808080; }
/* Le beau site */
.comparateur .apres { clip-path: inset(0 calc(100% - var(--pos, 55%)) 0 0); background: #F7F3EC; color: #2E2A26; display: grid; grid-template-columns: 1fr 1fr; }
.apres-photo { background: var(--img) center/cover no-repeat, linear-gradient(160deg, #C9A97C, #8A6A48); }
.apres-contenu { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.apres-menu { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; font-size: 15px; color: #6B645C; margin-bottom: auto; }
.apres-logo { font-family: var(--serif-titre); font-size: 20px; color: #2E2A26; margin-right: auto; }
.comparateur .apres .nom-site { font-family: var(--serif-titre); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; margin-top: 30px; }
.apres-texte { margin-top: 18px; max-width: 360px; font-size: 18px; line-height: 1.6; color: #5B544C; }
.comparateur .apres .cta { align-self: flex-start; margin-top: 28px; margin-bottom: auto; padding: 13px 26px; border-radius: 999px; background: #2E2A26; color: #F7F3EC; font-size: 16px; }
@media (max-width: 700px) {
    .comparateur { height: 560px; }
    .comparateur .apres { grid-template-columns: 1fr; grid-template-rows: 1fr 180px; }
    .moche-menu { display: none; }
}
.comparateur .poignee { position: absolute; top: 0; bottom: 0; left: var(--pos, 55%); width: 2px; background: #FFFFFF; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 0 1px rgba(35,34,34,.4); }
.comparateur .poignee::after {
    content: "‹ ›"; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 20px; letter-spacing: 4px;
    background: #FFFFFF; color: var(--encre); transform: translate(-50%, -50%);
    box-shadow: 0 8px 24px rgba(35,34,34,.3);
}
.curseur-comparaison { display: flex; align-items: center; gap: 18px; margin-top: 22px; font-size: 18px; color: var(--gris); }
.curseur-comparaison input { flex: 1; accent-color: var(--encre); min-height: 44px; }

.inclus-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 60px; }
.inclus-tete .texte-doux { max-width: 480px; font-size: 21px; }
.inclus-grille { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--trait); border-left: 1px solid var(--trait); }
.inclus-grille li { padding: 36px 32px 40px; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.inclus-grille svg { width: 34px; height: 34px; fill: none; stroke: var(--bois); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.inclus-grille h3 { margin-top: 22px; font-size: 26px; }
.inclus-grille p { margin-top: 10px; font-size: 18px; line-height: 1.6; color: var(--gris); }
@media (max-width: 900px) { .inclus-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .inclus-grille { grid-template-columns: 1fr; } }
.realisation-autre { margin-top: 34px; }
.realisation-autre .titre-m { font-size: 28px; }
.etiquette-bois { font-size: 19px; color: var(--bois); }

.ecran-pizz { width: 260px; height: 520px; border-radius: 38px; background: var(--encre); padding: 10px; }
.ecran-pizz > div { height: 100%; border-radius: 30px; background: #FBFAF7; padding: 32px 22px; display: flex; flex-direction: column; gap: 16px; color: #2E2A26; font-size: 16px; }
.ecran-pizz .nom-site { font-family: var(--serif-titre); font-size: 30px; }
.ecran-pizz .ouvert { color: #2F6A3A; }
.ecran-pizz .cta { margin-top: auto; padding: 13px; border: 1px solid #2E2A26; border-radius: 999px; text-align: center; }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 50px; }
.etapes .chiffre { display: block; font-family: var(--serif-titre); font-size: 64px; line-height: 1; color: var(--bois); }
.etapes .nom-etape { margin-top: 18px; font-size: 22px; }
.etapes p:last-child { margin-top: 8px; font-size: 18px; color: var(--gris); }

.bandeau-prune { background: var(--prune); color: var(--brume); }
.bandeau-prune .ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: clamp(90px, 11vw, 130px); padding-bottom: clamp(90px, 11vw, 130px); }
.bandeau-prune h2 { font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; max-width: 700px; }

/* ═══════════════════════════════════════════════
   YŪGEN
═══════════════════════════════════════════════ */
.hero-yugen { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.hero-yugen > img { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; object-position: 60% 50%; opacity: .7; filter: blur(1.5px) saturate(.75) contrast(1.05); }
.hero-yugen .grain { position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-yugen .brume { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 65% 45%, rgba(30,22,33,0) 0%, rgba(30,22,33,.55) 100%); }
.hero-yugen .voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,22,33,.8) 0%, rgba(30,22,33,0) 30%, rgba(30,22,33,.3) 62%, #1E1621 100%); }
.hero-yugen .kanji { position: absolute; right: 6%; top: 18vh; writing-mode: vertical-rl; font-family: 'Shippori Mincho', serif; font-size: clamp(80px, 10vw, 150px); line-height: 1; opacity: .16; }
.hero-yugen .conteneur { position: relative; width: 100%; flex: 1; display: flex; flex-direction: column; }
.hero-yugen .titre-bloc { margin-top: auto; padding-bottom: 12vh; }
.hero-yugen h1 { font-weight: 400; font-size: clamp(88px, 13vw, 176px); line-height: .9; }
.hero-yugen .chapo { margin-top: 26px; max-width: 520px; color: #DCD2E4; }
.hero-yugen .actions { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: baseline; margin-top: 32px; font-size: 19px; }
.hero-yugen .bientot { color: var(--lavande); }

.citation { font-family: var(--serif-titre); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; max-width: 820px; }

.tableau { position: relative; min-height: 760px; overflow: hidden; display: flex; align-items: center; }
.tableau > img.fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px); transform: scale(1.03); }
.tableau .voile { position: absolute; inset: 0; }
.tableau .conteneur { position: relative; width: 100%; }
.tableau .bloc { max-width: 440px; }
.tableau .bloc p { margin-top: 24px; font-size: 21px; line-height: 1.7; color: var(--brume-2); }
.tableau-droite .conteneur { display: flex; justify-content: flex-end; }
.tableau .sujet { position: absolute; }
@media (max-width: 860px) {
    .tableau { min-height: 0; flex-direction: column; align-items: stretch; padding: 90px 0 60px; }
    .tableau .sujet { position: relative; inset: auto !important; margin: 40px auto 0; order: 2; }
    .tableau-droite .conteneur { justify-content: flex-start; }
}

.garde-robe { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(20px, 5vw, 70px); margin-top: 70px; }
.garde-robe img { height: clamp(300px, 36vw, 500px); width: auto; }
.garde-robe img.centre { height: clamp(340px, 41vw, 560px); }
.garde-robe img.cote { opacity: .8; }
@media (max-width: 640px) { .garde-robe img.cote { display: none; } }

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.contact-grille { display: flex; flex-wrap: wrap; gap: clamp(50px, 8vw, 100px); padding: clamp(70px, 11vw, 140px) 0 clamp(90px, 12vw, 160px); }
.contact-grille > .intro { flex: 1 1 320px; min-width: 0; }
.contact-grille > form { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 42px; padding-top: 14px; }
.champ { display: flex; flex-direction: column; gap: 10px; font-size: 18px; color: var(--gris-2); }
.champ input, .champ textarea {
    min-height: 48px; padding: 6px 0; border: 0; border-bottom: 1px solid #A8A29A; border-radius: 0;
    background: transparent; color: var(--encre); font-size: 24px;
}
.champ textarea { font-size: 22px; line-height: 1.6; resize: vertical; min-height: 140px; }
.champ input:focus, .champ textarea:focus { border-bottom-color: var(--encre); outline: none; }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--bois); outline-offset: 6px; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { font-size: 18px; color: var(--gris-2); margin-bottom: 14px; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 21px; }
.radios label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.radios input { accent-color: var(--encre); width: 18px; height: 18px; }
.envoi { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.envoi .note { font-size: 16px; color: var(--gris-2); max-width: 340px; }
.message-formulaire { font-size: 20px; padding: 18px 22px; border-radius: 10px; }
.message-formulaire.ok { background: #E1E7DC; color: #24402B; }
.message-formulaire.erreur { background: #F0DEDA; color: #6E2A1E; }
.message-formulaire[hidden] { display: none; }

/* ── Pages de texte (confidentialité, mentions) ── */
.texte-long { max-width: 760px; padding: clamp(50px, 8vw, 90px) 0 120px; }
.texte-long h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.05; }
.texte-long .date { margin-top: 16px; font-size: 17px; color: var(--gris-2); }
.page-sombre .texte-long .date { color: #ADA2B6; }
.texte-long h2 { margin-top: 56px; font-size: 30px; }
.texte-long p, .texte-long li { margin-top: 14px; font-size: 20px; line-height: 1.7; }
.texte-long ul { padding-left: 22px; }

/* ═══════════════════════════════════════════════
   ÉCRAN DE CHARGEMENT (1 fois par visite)
═══════════════════════════════════════════════ */
#loader {
    position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center;
    background: var(--pierre); color: var(--encre); cursor: pointer;
    transition: opacity .6s ease, visibility .6s ease;
}
#loader.cache { opacity: 0; visibility: hidden; }
#loader .contenu { display: flex; flex-direction: column; align-items: center; gap: 22px; }
#loader .logo-charge { font-family: var(--serif-titre); font-size: clamp(44px, 8vw, 84px); letter-spacing: .02em; animation: respire 1.3s ease-in-out infinite alternate; }
#loader .ligne-charge { width: 180px; height: 1px; background: var(--trait); overflow: hidden; }
#loader .ligne-charge span { display: block; height: 100%; width: 0; background: var(--encre); animation: remplit 1.1s ease forwards; }
@keyframes respire { from { opacity: .55; } to { opacity: 1; } }
@keyframes remplit { 0% { width: 0; } 45% { width: 50%; } 80% { width: 85%; } 100% { width: 100%; } }

/* ═══════════════════════════════════════════════
   CURSEUR (souris seulement) : s'inverse sur le clair et le sombre
═══════════════════════════════════════════════ */
#curseur-point, #curseur-anneau { display: none; }
@media (hover: hover) and (pointer: fine) {
    body.curseur-perso, body.curseur-perso * { cursor: none !important; }
    body.curseur-perso input[type="text"], body.curseur-perso input[type="email"], body.curseur-perso textarea { cursor: text !important; }
    body.curseur-perso #curseur-point, body.curseur-perso #curseur-anneau { display: block; }
    #curseur-point, #curseur-anneau {
        position: fixed; left: -100px; top: -100px; border-radius: 50%; pointer-events: none;
        transform: translate(-50%, -50%); mix-blend-mode: difference; z-index: 1000000;
    }
    #curseur-point { width: 7px; height: 7px; background: #FFFFFF; transition: width .2s, height .2s; }
    #curseur-anneau { width: 34px; height: 34px; border: 1px solid #FFFFFF; opacity: .7; transition: width .35s ease, height .35s ease, opacity .35s ease; }
    body.curseur-survol #curseur-anneau { width: 58px; height: 58px; opacity: .9; }
    body.curseur-survol #curseur-point { width: 4px; height: 4px; }
    body.curseur-clic #curseur-anneau { width: 22px; height: 22px; }
    body.curseur-dehors #curseur-point, body.curseur-dehors #curseur-anneau { opacity: 0; }
    .etincelle { position: fixed; pointer-events: none; z-index: 999998; border-radius: 50%; transform: translate(-50%, -50%); animation: etincelle .7s ease forwards; mix-blend-mode: difference; background: #FFFFFF; }
    @keyframes etincelle { from { opacity: .8; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(0); } }
}

/* ── Mouvement réduit ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Mobile : les sujets des tableaux Yūgen redeviennent dans le flux */
@media (max-width: 860px) {
    .tableau .sujet { transform: none !important; }
}
.moche-defile { animation: defile 14s linear infinite; }
@keyframes defile { from { text-indent: 100%; } to { text-indent: -160%; } }

/* ═══════════════════════════════════════════════
   YŪGEN : le mini-jeu du jardin
═══════════════════════════════════════════════ */
.jardin { position: relative; padding: clamp(60px, 8vw, 100px) 0 clamp(90px, 10vw, 130px); }
.jardin-grille { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 90px); }
.jardin-texte { flex: 1 1 380px; min-width: 0; }
.jardin-texte .texte-doux { margin-top: 20px; max-width: 440px; font-size: 21px; }
.jardin-stats { margin-top: 40px; max-width: 380px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline; }
.jardin-espece { font-family: var(--serif-titre); font-size: 32px; }
.jardin-etape { color: #ADA2B6; font-size: 18px; }
.jauge { grid-column: 1 / -1; height: 3px; background: var(--prune-trait); border-radius: 3px; overflow: hidden; }
.jauge span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8E7BB0, var(--lavande)); transition: width .35s cubic-bezier(.2,.7,.2,1); }
.jardin-essence { grid-column: 1 / -1; font-size: 18px; color: var(--brume-2); }
.jardin-essence b { font-family: var(--serif-titre); font-weight: 500; font-size: 24px; color: var(--brume); font-variant-numeric: tabular-nums; }
.jardin-fin { margin-top: 24px; max-width: 420px; font-size: 20px; color: var(--lavande); }
.jardin-recommencer { margin-top: 26px; background: none; border: 0; padding: 6px 0; color: #ADA2B6; font-size: 16px; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.jardin-recommencer:hover { color: var(--brume); }

.jardin-scene { flex: 1 1 380px; position: relative; display: flex; flex-direction: column; align-items: center; min-height: 520px; justify-content: center; }
.jardin-halo { position: absolute; left: 50%; top: 46%; width: 460px; height: 460px; max-width: 90vw; max-height: 90vw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(201,184,226,.28) 0%, rgba(201,184,226,0) 65%); transition: transform .6s ease, opacity .6s ease; pointer-events: none; }
.jardin-scene.eveil .jardin-halo { transform: translate(-50%, -50%) scale(1.35); opacity: 1; animation: halo 1.2s ease; }
@keyframes halo { 0% { opacity: .4; } 30% { opacity: 1; filter: brightness(1.8); } 100% { opacity: 1; } }
.jardin-arbre { position: relative; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 30px; -webkit-tap-highlight-color: transparent; }
.jardin-arbre img { width: min(400px, 72vw); height: auto; max-height: 460px; object-fit: contain; transition: transform .12s ease, opacity .45s ease, filter .45s ease; user-select: none; -webkit-user-drag: none; }
.jardin-arbre:active img { transform: scale(.96); }
.jardin-arbre.secoue img { animation: secoue .35s ease; }
@keyframes secoue { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-1.6deg) scale(.98); } 65% { transform: rotate(1.2deg); } }
.jardin-arbre.change img { opacity: 0; filter: brightness(2) blur(6px); }
.jardin-astuce { margin-top: 14px; font-size: 16px; color: #ADA2B6; transition: opacity .4s; }
.jardin-astuce.cache { opacity: 0; }
.plus-un { position: absolute; z-index: 3; pointer-events: none; font-family: var(--serif-titre); font-size: 22px; color: var(--lavande); animation: monte 1s ease forwards; }
@keyframes monte { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -70px); } }
.petale { position: absolute; z-index: 2; pointer-events: none; width: 9px; height: 6px; border-radius: 60% 40% 60% 40%; background: #E9D9F2; animation: tombe 1.4s ease-in forwards; }
@keyframes tombe { from { opacity: .95; transform: translate(0, 0) rotate(0); } to { opacity: 0; transform: translate(var(--dx), 120px) rotate(220deg); } }

/* ═══════════════════════════════════════════════
   YŪGEN : carrousel des vidéos TikTok
═══════════════════════════════════════════════ */
.tiktok { padding: clamp(80px, 10vw, 120px) 0; }
.tiktok-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tiktok-actions { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.tiktok-actions a { margin-right: 14px; }
.fleche { width: 50px; height: 50px; border-radius: 50%; border: 1px solid #5A4C60; background: transparent; color: var(--brume); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, border-color .2s; }
.fleche:hover { background: rgba(238,232,242,.08); border-color: var(--lavande); }
.fleche svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.carrousel {
    display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 50px max(var(--marge), calc((100vw - var(--largeur)) / 2 + var(--marge))) 20px;
    scrollbar-width: none;
}
.carrousel::-webkit-scrollbar { display: none; }
.clip { flex: 0 0 auto; margin: 0; scroll-snap-align: center; width: 260px; }
.clip .cadre { position: relative; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #120E15; border: 6px solid #2D2431; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.clip:hover .cadre { transform: translateY(-6px); }
.clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip figcaption { margin-top: 14px; font-size: 18px; color: var(--brume-2); text-align: center; }
.clip-son { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(18,14,21,.6); color: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.clip-son svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.clip-son .onde { display: none; }
.clip-son[aria-pressed="true"] .onde { display: inline; }
.clip-son[aria-pressed="true"] .barre { display: none; }

/* ═══════════════════════════════════════════════
   YŪGEN : bouton musique d'ambiance
═══════════════════════════════════════════════ */
.musique {
    position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 50;
    display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px 0 16px;
    border-radius: 999px; border: 1px solid #5A4C60; background: rgba(30,22,33,.75); color: var(--brume);
    font-size: 17px; cursor: pointer; backdrop-filter: blur(8px);
}
.musique:hover { border-color: var(--lavande); }
.musique-barres { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.musique-barres i { display: block; width: 3px; height: 5px; background: var(--lavande); border-radius: 2px; }
.musique[aria-pressed="true"] .musique-barres i { animation: barre 1.1s ease-in-out infinite; }
.musique[aria-pressed="true"] .musique-barres i:nth-child(2) { animation-delay: .2s; }
.musique[aria-pressed="true"] .musique-barres i:nth-child(3) { animation-delay: .4s; }
@keyframes barre { 0%,100% { height: 4px; } 50% { height: 16px; } }

/* ═══════════════════════════════════════════════
   CONTACT : formulaire en étapes
═══════════════════════════════════════════════ */
.form-etapes { gap: 0 !important; }
.fil-etapes { list-style: none; margin: 0 0 44px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: 17px; color: var(--gris-2); }
.fil-etapes li { display: inline-flex; align-items: center; gap: 10px; }
.fil-etapes .num { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #A8A29A; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: background-color .3s, color .3s, border-color .3s; }
.fil-etapes li.actif { color: var(--encre); }
.fil-etapes li.actif .num { background: var(--encre); border-color: var(--encre); color: var(--pierre); }
.fil-etapes li.fait .num { border-color: var(--bois); color: var(--bois); }
.etape-form { display: flex; flex-direction: column; gap: 40px; animation: etapeEntre .45s cubic-bezier(.2,.7,.2,1); }
.etape-form[hidden] { display: none; }
@keyframes etapeEntre { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.choix-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.choix-cartes label { position: relative; cursor: pointer; }
.choix-cartes input { position: absolute; opacity: 0; pointer-events: none; }
.choix-cartes label > span { display: flex; flex-direction: column; gap: 4px; min-height: 58px; justify-content: center; padding: 14px 18px; border: 1px solid #C9C3B9; border-radius: 12px; font-size: 19px; background: #F6F4F0; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.choix-cartes small { font-size: 15px; color: var(--gris-2); }
.choix-cartes label:hover > span { border-color: #8C8780; }
.choix-cartes input:checked + span { border-color: var(--encre); background: #FFFFFF; box-shadow: 0 0 0 1px var(--encre); }
.choix-cartes.multi input:checked + span::before { content: "✓ "; color: var(--bois); }
.choix-cartes input:focus-visible + span { outline: 2px solid var(--bois); outline-offset: 3px; }
.estimation { padding: 28px 30px; border-radius: 16px; background: var(--prune); color: var(--brume); }
.estimation-label { font-size: 16px; color: #C4B9CD; }
.estimation-prix { margin-top: 6px; font-family: var(--serif-titre); font-size: clamp(34px, 4vw, 46px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.estimation-note { margin-top: 10px; font-size: 16px; color: #C4B9CD; max-width: 460px; }
.nav-form { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lien-retour { background: none; border: 0; padding: 8px 0; font-size: 19px; color: var(--gris); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.resume { padding: 16px 20px; border-left: 2px solid var(--bois); background: #F6F4F0; font-size: 19px; }
.champ input[aria-invalid="true"] { border-bottom-color: #A13A2A; }

/* ═══════════════════════════════════════════════
   STUDIO : hero avec écrans + engagements
═══════════════════════════════════════════════ */
.hero-duo { display: flex; flex-wrap: wrap; align-items: center; gap: 60px 50px; }
.hero-texte { flex: 1 1 460px; min-width: 0; }
.hero-texte .chapo { margin-top: 40px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 40px; font-size: 20px; }
.hero-ecrans { flex: 1 1 440px; position: relative; min-height: 440px; animation: ecransEntrent 1.2s cubic-bezier(.2,.7,.2,1) both .3s; }
@keyframes ecransEntrent { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.portable { position: absolute; left: 0; top: 20px; width: min(500px, 90%); }
.portable-ecran { aspect-ratio: 16 / 10; border-radius: 14px 14px 0 0; background: #1C1B1B; padding: 10px; }
.portable-base { height: 14px; margin: 0 -4%; border-radius: 0 0 14px 14px; background: linear-gradient(#CFCBC4, #B5B0A8); }
.mini-site { height: 100%; border-radius: 6px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; background: #F7F3EC; color: #2E2A26; }
.mini-texte { padding: 16px; display: flex; flex-direction: column; }
.mini-menu { display: flex; gap: 10px; align-items: baseline; font-size: 10px; color: #6B645C; }
.mini-menu b { font-family: var(--serif-titre); font-weight: 500; font-size: 12px; color: #2E2A26; margin-right: auto; }
.mini-titre { margin-top: auto; font-family: var(--serif-titre); font-size: clamp(16px, 2vw, 24px); line-height: 1.1; }
.mini-cta { margin: 12px 0 auto; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: #2E2A26; color: #F7F3EC; font-size: 10px; }
.mini-photo { background: var(--img) center/cover no-repeat, var(--repli); }
.mini-tel { position: absolute; right: 0; bottom: 0; width: 150px; aspect-ratio: 9 / 19; border-radius: 24px; background: #1C1B1B; padding: 6px; box-shadow: 0 30px 60px -25px rgba(35,34,34,.6); }
.mini-tel-ecran { height: 100%; border-radius: 19px; overflow: hidden; background: #1F1822; color: #EEE8F2; display: flex; flex-direction: column; font-size: 10px; }
.mini-tel-photo { height: 55%; display: flex; align-items: flex-end; padding: 10px; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(31,24,34,.85)), var(--img) center/cover no-repeat, var(--repli); }
.mini-tel-photo span { font-family: var(--serif-titre); font-size: 15px; color: #FFFFFF; }
.mini-tel-ecran p { padding: 8px 10px 0; }
.mini-tel-cta { margin: auto 10px 12px; padding: 7px !important; border-radius: 999px; background: #C9B8E2; color: #1F1822; text-align: center; }
@media (max-width: 600px) { .hero-ecrans { min-height: 300px; } .mini-tel { width: 110px; } }

.engagements { list-style: none; margin: 0; padding: clamp(80px, 10vw, 110px) 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 50px; }
.engagements li { padding-top: 24px; border-top: 1px solid #4A3D4F; }
.eng-titre { font-family: var(--serif-titre); font-size: 27px; line-height: 1.2; }
.engagements p:last-child { margin-top: 12px; font-size: 18px; color: var(--brume-2); }
.choix-cartes.multi label > span { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; }
@media (max-width: 560px) { .choix-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .choix-cartes label > span { font-size: 17px; padding: 12px 14px; } }

/* ═══════════════════════════════════════════════
   STUDIO : nom en direct, test de vitesse, FAQ
═══════════════════════════════════════════════ */
.nom-demo { display: block; }
.champ-nom-demo {
    width: 100%; max-width: 480px; padding: 12px 2px; border: 0; border-bottom: 1px solid #A9A398;
    background: transparent; font-family: var(--serif-titre); font-size: 26px; border-radius: 0;
}
.champ-nom-demo::placeholder { color: #A9A398; }
.champ-nom-demo:focus { outline: none; border-bottom-color: var(--encre); }
.champ-nom-demo:focus-visible { outline: 2px solid var(--bois); outline-offset: 6px; }

.vitesse-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.vitesse-intro { margin-top: 20px; max-width: 500px; font-size: 21px; }
.vitesse-form { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-end; max-width: 560px; }
.vitesse-form .champ { flex: 1 1 260px; }
.vitesse-form .bouton[disabled] { opacity: .55; cursor: progress; }
.vitesse-note { margin-top: 16px; font-size: 16px; color: var(--gris-2); }
.vitesse-resultat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 30px; border: 1px solid var(--trait); border-radius: 24px; background: #F6F4F0; }
.cadran { position: relative; width: 200px; height: 200px; }
.cadran svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cadran circle { fill: none; stroke-width: 6; }
.cadran .piste { stroke: var(--trait); }
.cadran .arc { stroke: var(--couleur-note, var(--encre)); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 - 326.7 * var(--note) / 100); transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1), stroke .4s; }
.cadran-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif-titre); font-size: 64px; line-height: 1; color: var(--couleur-note, var(--encre)); font-variant-numeric: tabular-nums; padding-bottom: 14px; }
.cadran-sur { position: absolute; left: 0; right: 0; bottom: 52px; font-size: 16px; color: var(--gris-2); }
.cadran.attente .arc { stroke-dasharray: 60 266.7; stroke-dashoffset: 0; animation: tourne 1.1s linear infinite; transition: none; transform-origin: 60px 60px; }
@keyframes tourne { to { transform: rotate(360deg); } }
.vitesse-verdict { margin-top: 22px; font-family: var(--serif-titre); font-size: 26px; line-height: 1.25; max-width: 360px; }
.vitesse-detail { margin-top: 10px; font-size: 18px; color: var(--gris-2); max-width: 360px; }
.vitesse-detail:empty { display: none; }
.vitesse-objectif { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--trait); font-size: 17px; color: var(--bois); width: 100%; }
@media (max-width: 860px) { .vitesse-grille { grid-template-columns: 1fr; } }

.faq h2 { margin-bottom: 44px; }
.faq-liste { max-width: 820px; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
    list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative;
    font-family: var(--serif-titre); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 1.5px solid var(--gris); border-bottom: 1.5px solid var(--gris); transform: rotate(45deg); transition: transform .3s ease, margin .3s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--bois); }
.faq details p { padding: 0 50px 28px 0; max-width: 680px; color: var(--gris); }
.faq details[open] p { animation: deplie .35s ease; }
@keyframes deplie { from { opacity: 0; transform: translateY(-6px); } }
.ecran .nom-site.long { font-size: 23px; overflow-wrap: anywhere; }
.ecran .logo-site { max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══════════════════════════════════════════════
   YŪGEN : la forêt suit l'heure, lucioles, secret,
   inscription à la sortie, carte à partager
═══════════════════════════════════════════════ */
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hero-yugen > img { transition: filter 2s ease, opacity 2s ease; }
.hero-yugen .teinte-heure { position: absolute; inset: 0; pointer-events: none; transition: background 2s ease, opacity 2s ease; opacity: 0; }
.hero-yugen[data-moment="aube"] > img { opacity: .78; filter: blur(1.5px) saturate(.7) brightness(1.08) contrast(1.02); }
.hero-yugen[data-moment="aube"] .teinte-heure { opacity: 1; background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(238,206,222,.26) 0%, rgba(238,206,222,0) 70%), linear-gradient(180deg, rgba(220,200,230,.12), rgba(220,200,230,0) 60%); }
.hero-yugen[data-moment="crepuscule"] > img { opacity: .66; filter: blur(1.5px) saturate(.8) brightness(.92) contrast(1.05) sepia(.12); }
.hero-yugen[data-moment="crepuscule"] .teinte-heure { opacity: 1; background: linear-gradient(200deg, rgba(222,150,120,.2) 0%, rgba(140,80,120,.16) 40%, rgba(30,22,33,0) 75%); }
.hero-yugen[data-moment="nuit"] > img { opacity: .52; filter: blur(1.5px) saturate(.55) brightness(.75) contrast(1.08) hue-rotate(-12deg); }
.hero-yugen[data-moment="nuit"] .teinte-heure { opacity: 1; background: radial-gradient(ellipse 50% 40% at 80% 14%, rgba(201,184,226,.16) 0%, rgba(201,184,226,0) 70%), linear-gradient(180deg, rgba(14,14,40,.38), rgba(14,14,40,.15)); }
.hero-yugen .lucioles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.heure-foret { margin-top: 26px; font-size: 17px; color: #ADA2B6; min-height: 1.6em; }

.hero-yugen .kanji { background: none; border: 0; padding: 0; color: inherit; cursor: default; transition: opacity .5s ease, text-shadow .5s ease; z-index: 2; -webkit-tap-highlight-color: transparent; }
.hero-yugen .kanji.reveil { animation: kanji-pulse .6s ease; }
.hero-yugen .kanji.ouvert { opacity: .7; text-shadow: 0 0 30px rgba(201,184,226,.9); }
@keyframes kanji-pulse { 50% { opacity: .42; text-shadow: 0 0 18px rgba(201,184,226,.7); } }

.jardin-arbre.secret img { filter: grayscale(1) sepia(.25) hue-rotate(215deg) saturate(1.6) brightness(1.3) drop-shadow(0 0 26px rgba(201,184,226,.6)); }
.jardin-arbre.secret.change img { filter: grayscale(1) brightness(2) blur(6px); }
.jardin-scene.secret .jardin-halo { background: radial-gradient(circle, rgba(201,184,226,.5) 0%, rgba(201,184,226,0) 65%); }
.jardin-carte { margin-top: 26px; margin-right: 24px; }

.prevenir { text-align: center; }
.prevenir .citation { margin: 0 auto; font-size: clamp(40px, 5vw, 56px); font-weight: 400; }
.prevenir-intro { margin: 22px auto 0; max-width: 520px; }
.prevenir-form { margin: 36px auto 0; display: flex; gap: 12px; max-width: 560px; padding: 8px; border: 1px solid var(--prune-trait); border-radius: 999px; background: rgba(36,27,39,.6); }
.prevenir-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 20px; font-size: 20px; color: var(--brume); }
.prevenir-form input::placeholder { color: #8C8296; }
.prevenir-form input:focus { outline: none; }
.prevenir-form:focus-within { border-color: var(--lavande); }
.prevenir-form .bouton { white-space: nowrap; }
.prevenir-form .bouton[disabled] { opacity: .6; }
.prevenir-message { margin-top: 22px; font-size: 20px; color: var(--lavande); }
.prevenir-message.erreur { color: #E3A9A0; }
.prevenir-mention { margin-top: 16px; font-size: 15px; color: #ADA2B6; }
.prevenir-tiktok { margin-top: 40px; font-size: 18px; }
@media (max-width: 520px) {
    .prevenir-form { flex-direction: column; border-radius: 22px; padding: 10px; }
    .prevenir-form input { text-align: center; padding: 12px; }
}

.annonce {
    position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translate(-50%, 20px); opacity: 0;
    max-width: min(440px, calc(100vw - 40px)); padding: 16px 26px; border-radius: 16px;
    background: var(--brume); color: var(--prune); font-size: 18px; text-align: center;
    box-shadow: 0 18px 50px rgba(0,0,0,.4); transition: opacity .4s ease, transform .4s ease;
}
.annonce.visible { opacity: 1; transform: translate(-50%, 0); }

/* ── Kit presse ── */
.presse-retour { font-size: 17px; color: #ADA2B6; margin-bottom: 26px; }
.presse-chapo { margin-top: 24px; max-width: 640px; }
.presse-telecharger { margin-top: 36px; }
.presse-duo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); }
.presse-duo h2 { margin-bottom: 22px; }
.presse-duo p + p { margin-top: 16px; }
.fiche { margin: 0; border-top: 1px solid var(--prune-trait); }
.fiche div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--prune-trait); }
.fiche dt { color: #ADA2B6; font-size: 17px; }
.fiche dd { margin: 0; }
.presse-visuels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.presse-visuels figure { margin: 0; }
.presse-visuels a { display: block; height: 300px; border-radius: 14px; overflow: hidden; background: var(--prune); }
.presse-visuels img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.presse-visuels a:hover img { transform: scale(1.04); }
.presse-visuels figcaption { margin-top: 12px; font-size: 18px; }
.presse-visuels small { display: block; color: #ADA2B6; font-size: 15px; }
.presse-contact p { margin-top: 12px; }
.presse-contact h2 { margin-bottom: 8px; }
@media (max-width: 860px) { .presse-duo { grid-template-columns: 1fr; } .presse-visuels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .presse-visuels a { height: 220px; } }
@media (max-width: 520px) { .presse-visuels { grid-template-columns: 1fr; } .fiche div { grid-template-columns: 1fr; gap: 2px; } }

/* ── Page 404 ── */
.perdu { position: relative; min-height: calc(100vh - 120px); min-height: calc(100svh - 120px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 80px; overflow: hidden; }
.perdu-brume { position: absolute; left: 50%; top: 40%; width: 700px; height: 500px; max-width: 120vw; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(201,184,226,.16) 0%, rgba(201,184,226,0) 65%); pointer-events: none; }
.perdu-arbre { position: relative; width: min(260px, 56vw); height: auto; opacity: .55; filter: saturate(.5) blur(.4px); animation: brumeux 7s ease-in-out infinite alternate; }
@keyframes brumeux { from { opacity: .4; transform: translateY(4px); } to { opacity: .65; transform: translateY(-4px); } }
.perdu-code { position: relative; margin-top: 18px; font-family: var(--serif-titre); font-size: 18px; letter-spacing: .3em; color: #8C8296; }
.perdu h1 { position: relative; margin-top: 18px; font-weight: 400; font-size: clamp(34px, 5vw, 58px); line-height: 1.15; max-width: 760px; }
.perdu .texte-doux { position: relative; margin-top: 18px; }
.perdu-liens { position: relative; margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 32px; }
@media (prefers-reduced-motion: reduce) { .perdu-arbre { animation: none; } }

body:has(.musique) .pied { padding-bottom: 100px; }

/* ═══════════════════════════════════════════════
   ACCUEIL : l'esquisse qui devient un site
═══════════════════════════════════════════════ */
.moitie-clair .papier {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(122,96,73,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122,96,73,.07) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 72% 55%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 60% 55% at 72% 55%, #000 0%, transparent 75%);
}
.moitie-clair .tarif { margin-top: 18px; max-width: 320px; font-size: 17px; color: var(--bois); }

.esquisse { position: absolute !important; right: 5vw; top: 50%; width: clamp(200px, 13vw, 260px); aspect-ratio: 1 / 2; height: auto; transform: translateY(-42%); pointer-events: none; }
.tel-esquisse { position: absolute; inset: 0; display: block; transform: rotate(-3deg); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.moitie-clair:hover .tel-esquisse, .moitie-clair:focus-visible .tel-esquisse { transform: rotate(0deg) translateY(-6px); }
.tel-esquisse svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tel-esquisse .t { stroke: var(--bois); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.1s cubic-bezier(.4,0,.2,1) forwards; transition: stroke .6s ease, opacity .6s ease; }
.tel-esquisse .t-double { opacity: .35; stroke-width: 1; }
.tel-esquisse .t-fin { opacity: .45; stroke-width: 1; }
.tel-esquisse .t-gras { stroke-width: 4; }
.tel-esquisse .t:nth-child(1) { animation-delay: .3s; animation-duration: 1.6s; }
.tel-esquisse .t:nth-child(2) { animation-delay: .7s; animation-duration: 1.6s; }
.tel-esquisse .t:nth-child(3) { animation-delay: 1.1s; }
.tel-esquisse .t:nth-child(4) { animation-delay: 1.2s; }
.tel-esquisse .t:nth-child(5) { animation-delay: 1.3s; }
.tel-esquisse .t:nth-child(6) { animation-delay: 1.4s; }
.tel-esquisse .t:nth-child(7) { animation-delay: 1.8s; }
.tel-esquisse .t:nth-child(8) { animation-delay: 2.0s; }
.tel-esquisse .t:nth-child(9) { animation-delay: 2.15s; }
.tel-esquisse .t:nth-child(10) { animation-delay: 2.35s; }
.tel-esquisse .t:nth-child(11) { animation-delay: 2.45s; }
.tel-esquisse .t:nth-child(12) { animation-delay: 2.6s; }
@keyframes trace { to { stroke-dashoffset: 0; } }

/* Le vrai site, révélé de haut en bas */
.site-fini {
    position: absolute; left: 2.4%; top: 1.4%; right: 2.4%; bottom: 1.4%;
    display: flex; flex-direction: column; overflow: hidden; border-radius: 26px;
    background: #FBF7F0; color: #2B2420; font-size: 10px; line-height: 1.4; text-align: left;
    clip-path: inset(0 0 100% 0 round 26px); transition: clip-path 1s cubic-bezier(.65,0,.35,1);
    box-shadow: 0 30px 60px -20px rgba(35,34,34,.35);
}
.sf-barre { display: flex; justify-content: space-between; align-items: center; padding: 22px 16px 10px; font-family: var(--serif-titre); font-size: 13px; }
.sf-barre i { width: 16px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.sf-photo { display: block; margin: 0 10px; height: 34%; border-radius: 10px; background: #C9A97C url('/assets/img/refonte-boulangerie.jpg') center / cover; }
.sf-titre { display: block; padding: 14px 16px 0; font-family: var(--serif-titre); font-size: 24px; line-height: 1.1; }
.sf-texte { display: block; padding: 8px 16px 0; font-size: 11px; color: #6B5F55; }
.sf-infos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 10px 0; }
.sf-infos > span { padding: 7px 8px; border-radius: 7px; background: #F0E8DC; font-size: 9.5px; }
.sf-infos b { display: block; font-weight: 400; color: #9A7A5A; font-size: 8.5px; }
html[data-lang="fr"] .sf-infos b[data-l="en"], html[data-lang="en"] .sf-infos b[data-l="fr"] { display: none; }
.sf-cta { margin: auto 10px 14px; padding: 10px; border-radius: 999px; background: #2B2420; color: #FBF7F0; text-align: center; font-size: 11px; }
.moitie-clair:hover .site-fini, .moitie-clair:focus-visible .site-fini { clip-path: inset(0 0 0 0 round 26px); }
.moitie-clair:hover .t, .moitie-clair:focus-visible .t { opacity: 0; }
.moitie-clair:hover .t-cadre, .moitie-clair:focus-visible .t-cadre { opacity: 1; stroke: var(--encre); }

/* Les notes au crayon */
.esquisse .note { position: absolute; right: calc(100% + 18px); white-space: nowrap; font-style: italic; font-size: 17px; color: var(--bois); opacity: 0; animation: apparait .8s ease forwards; transition: opacity .5s ease, transform .5s ease; }
.esquisse .note::after { content: ""; position: absolute; left: calc(100% + 6px); top: 55%; width: 26px; border-top: 1px solid currentColor; opacity: .6; }
.note-nom { top: 9%; animation-delay: 1.6s !important; }
.note-photo { top: 30%; animation-delay: 2.1s !important; }
.note-bouton { top: 352px; animation-delay: 2.9s !important; }
@keyframes apparait { from { opacity: 0; transform: translateX(6px); } to { opacity: .9; transform: none; } }
.moitie-clair:hover .note, .moitie-clair:focus-visible .note { opacity: 0 !important; transform: translateX(-8px); }

/* Petits écrans en hauteur : pas de notes */
@media (max-height: 760px) { .esquisse .note { display: none; } .esquisse { transform: translateY(-42%) scale(.85); } }
.note-bouton { display: none; }
@media (min-width: 761px) { .moitie-clair .phrase { max-width: 320px; } }
@media (min-width: 761px) and (max-width: 1100px) { .esquisse { width: 160px; } .esquisse .note { display: none; } .moitie-clair .phrase, .moitie-clair .tarif { max-width: calc(50vw - 12vw - 190px); } }

/* Écrans tactiles : l'esquisse se transforme toute seule, en boucle */
@media (hover: none) {
    .esquisse .site-fini { animation: revele 8s 3.4s cubic-bezier(.65,0,.35,1) infinite; }
    .tel-esquisse .t-double, .tel-esquisse .t-fin { animation-fill-mode: forwards; }
}
@keyframes revele {
    0%, 8% { clip-path: inset(0 0 100% 0 round 26px); }
    22%, 72% { clip-path: inset(0 0 0 0 round 26px); }
    86%, 100% { clip-path: inset(0 0 100% 0 round 26px); }
}

@media (max-width: 760px) {
    .esquisse { right: 6vw; top: auto; bottom: 7vh; width: 112px; transform: none; }
    .esquisse .note { display: none; }
    .moitie-clair .phrase, .moitie-clair .tarif { max-width: calc(100% - 140px); }
    .moitie-clair .phrase { font-size: 18px; }
    .moitie-clair .tarif { font-size: 15px; }
    .esquisse .site-fini { border-radius: 14px; font-size: 6px; }
    .esquisse .sf-barre { padding: 12px 9px 6px; font-size: 7.5px; }
    .esquisse .sf-titre { font-size: 13px; padding: 8px 9px 0; }
    .esquisse .sf-texte { font-size: 6px; padding: 4px 9px 0; }
    .esquisse .sf-infos { padding: 7px 6px 0; gap: 4px; }
    .esquisse .sf-infos > span { padding: 4px; font-size: 5.5px; border-radius: 4px; }
    .esquisse .sf-infos b { font-size: 5px; }
    .esquisse .sf-cta { font-size: 6px; padding: 6px; margin: auto 6px 8px; }
    .esquisse .sf-photo { margin: 0 6px; border-radius: 6px; }
    @keyframes revele {
        0%, 8% { clip-path: inset(0 0 100% 0 round 14px); }
        22%, 72% { clip-path: inset(0 0 0 0 round 14px); }
        86%, 100% { clip-path: inset(0 0 100% 0 round 14px); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .tel-esquisse .t { animation: none; stroke-dashoffset: 0; }
    .esquisse .note { animation: none; opacity: .9; }
    .esquisse .site-fini { animation: none !important; transition: none; }
    .tel-esquisse { transition: none; }
}


/* ═══════════════════════════════════════════════
   STUDIO : le site se construit en défilant
═══════════════════════════════════════════════ */
.construction h2 { margin-bottom: 30px; }
.construction-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); }
.pas-liste { list-style: none; margin: 0; padding: 0; }
.pas { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; max-width: 440px; opacity: .3; transition: opacity .6s ease; }
.pas:last-child { min-height: 60vh; }
.pas.actif { opacity: 1; }
.pas .chiffre { display: block; font-family: var(--serif-titre); font-size: 72px; line-height: 1; color: var(--bois); }
.pas .nom-etape { margin-top: 16px; font-family: var(--serif-titre); font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
.pas p:last-child { margin-top: 12px; font-size: 20px; color: var(--gris); }
.chantier-cadre { position: relative; }
.chantier { position: sticky; top: calc(50vh - 270px); width: 260px; height: 520px; margin: 40px auto 0; }
.chantier .tel-esquisse { transform: rotate(-3deg); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.chantier .t { animation: none !important; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1), opacity .6s ease, stroke .6s ease; }
.chantier:not([data-etape="0"]) .t { stroke-dashoffset: 0; }
.chantier .site-fini { box-shadow: 0 40px 80px -30px rgba(35,34,34,.4); }
/* 2 : la maquette (couleurs et polices, photo pas encore là) */
.chantier[data-etape="2"] .site-fini, .chantier[data-etape="3"] .site-fini, .chantier[data-etape="4"] .site-fini { clip-path: inset(0 0 0 0 round 26px); }
.chantier[data-etape="2"] .t:not(.t-cadre), .chantier[data-etape="3"] .t:not(.t-cadre), .chantier[data-etape="4"] .t:not(.t-cadre) { opacity: 0; }
.chantier .sf-photo { position: relative; }
.chantier .sf-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to top right, transparent calc(50% - .5px), #C7B9A6 50%, transparent calc(50% + .5px)), linear-gradient(to bottom right, transparent calc(50% - .5px), #C7B9A6 50%, transparent calc(50% + .5px)), #E3D9CB; transition: opacity .9s ease; }
.chantier[data-etape="3"] .sf-photo::after, .chantier[data-etape="4"] .sf-photo::after { opacity: 0; }
/* 3 : en ligne */
.chantier[data-etape="3"] .tel-esquisse, .chantier[data-etape="4"] .tel-esquisse { transform: none; }
.chantier[data-etape="3"] .t-cadre, .chantier[data-etape="4"] .t-cadre { stroke: var(--encre); }
.sf-url { position: absolute; left: 50%; top: -46px; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--trait); font-size: 14px; color: var(--gris); white-space: nowrap; opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.sf-url svg { color: var(--gris-2); }
.sf-url i { width: 7px; height: 7px; border-radius: 50%; background: #5E8A5A; box-shadow: 0 0 0 3px rgba(94,138,90,.18); }
.chantier[data-etape="3"] .sf-url, .chantier[data-etape="4"] .sf-url { opacity: 1; transform: translate(-50%, 0); }
/* 4 : je reste là (une mise à jour arrive) */
.h-apres { display: none; }
.chantier[data-etape="4"] .h-avant { display: none; }
.chantier[data-etape="4"] .h-apres { display: inline; background: #F6E3B8; border-radius: 3px; animation: surligne 1.2s ease; }
@keyframes surligne { from { background: #F0C66E; } }
.sf-maj { align-self: center; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: #2B2420; color: #FBF7F0; font-size: 10px; opacity: 0; transform: translateY(8px); transition: opacity .5s ease .3s, transform .5s ease .3s; }
.chantier[data-etape="4"] .sf-maj { opacity: 1; transform: none; }
.chantier .sf-cta { margin-top: auto; }

@media (max-width: 860px) {
    .construction-grille { grid-template-columns: minmax(0, 1fr) 132px; gap: 20px; }
    .pas { min-height: 60vh; }
    .pas .chiffre { font-size: 52px; }
    .chantier { top: 90px; width: 132px; height: 264px; margin-top: 20px; }
    .chantier .site-fini { border-radius: 14px; font-size: 6px; }
    .chantier[data-etape="2"] .site-fini, .chantier[data-etape="3"] .site-fini, .chantier[data-etape="4"] .site-fini { clip-path: inset(0 0 0 0 round 14px); }
    .chantier .site-fini { clip-path: inset(0 0 100% 0 round 14px); }
    .chantier .sf-barre { padding: 12px 9px 6px; font-size: 7.5px; }
    .chantier .sf-titre { font-size: 13px; padding: 8px 9px 0; }
    .chantier .sf-texte { font-size: 6px; padding: 4px 9px 0; }
    .chantier .sf-infos { padding: 7px 6px 0; gap: 4px; }
    .chantier .sf-infos > span { padding: 4px; font-size: 5.5px; border-radius: 4px; }
    .chantier .sf-infos b { font-size: 5px; }
    .chantier .sf-cta { font-size: 6px; padding: 6px; margin: auto 6px 8px; }
    .chantier .sf-photo { margin: 0 6px; border-radius: 6px; }
    .chantier .sf-maj { font-size: 6px; padding: 4px 8px; margin-top: 6px; }
    .sf-url { top: -34px; font-size: 10px; padding: 4px 9px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .chantier .t, .chantier .tel-esquisse, .chantier .site-fini, .sf-url, .sf-maj { transition: none; }
    .pas { opacity: 1; }
}

/* ── Sceau du score ── */
.sceau { display: flex; align-items: center; gap: 14px; margin-top: 26px; max-width: 440px; font-size: 16px; color: var(--gris-2); line-height: 1.4; }
.sceau-note { flex: none; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid #4E6B4C; color: #4E6B4C; font-family: var(--serif-titre); font-size: 22px; font-variant-numeric: tabular-nums; }

/* ── Accueil : transition au clic ── */
.split.ouverture .moitie { transition: flex-grow .8s cubic-bezier(.7,0,.2,1); }
.split.ouverture .moitie.choisie { flex-grow: 60; }
.split.ouverture .moitie:not(.choisie) { flex-grow: .0001; }
.split.ouverture .moitie > :not(img):not(.voile):not(.papier) { opacity: 0; transition: opacity .3s ease; }
.split.ouverture .moitie-sombre.choisie img { transform: scale(1.08); transition: transform 1.2s ease; }
body.en-sortie .marque, body.en-sortie .barre-haut, body.en-sortie .barre-bas { opacity: 0; transition: opacity .35s ease; }
body.en-sortie #curseur-point, body.en-sortie #curseur-anneau { opacity: 0; }
/* Arrivée sur la page : un fondu doux, dans la couleur de la moitié choisie */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
@media (max-width: 760px) {
    .split.ouverture .moitie:not(.choisie) { min-height: 0; padding: 0; }
    .split.ouverture .moitie.choisie { min-height: 100vh; min-height: 100svh; }
    .split.ouverture .moitie { transition: flex-grow .8s cubic-bezier(.7,0,.2,1), min-height .8s cubic-bezier(.7,0,.2,1), padding .8s cubic-bezier(.7,0,.2,1); }
}

/* ── Studio : les sites de démonstration ── */
.demos-intro { margin-top: 18px; max-width: 560px; }
.demos-grille { margin-top: 50px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 50px); }
.demo-carte { display: block; text-decoration: none; color: inherit; }
.demo-visuel { position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 11; padding: 26px; border-radius: 18px; overflow: hidden; background-size: cover; background-position: center; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.demo-visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45)); }
.demo-boulangerie .demo-visuel { background-image: url('/demo/boulangerie/img/hero.jpg'), url('/assets/img/demo-boulangerie.jpg'), linear-gradient(135deg, #8A5E3A, #3A2616); }
.demo-coiffure .demo-visuel { background-image: url('/demo/coiffure/img/hero.jpg'), url('/assets/img/demo-coiffure.jpg'), linear-gradient(160deg, #D9BDB4, #7E625A); }
.demo-mini { position: relative; z-index: 1; color: #FFFFFF; font-family: var(--serif-titre); font-size: clamp(30px, 3.4vw, 46px); line-height: 1; }
.demo-carte:hover .demo-visuel { transform: scale(.985); }
.demo-nom { display: block; margin-top: 20px; font-family: var(--serif-titre); font-size: 26px; }
.demo-carte:hover .demo-nom { color: var(--bois); }
.demo-desc { display: block; margin-top: 6px; color: var(--gris); font-size: 18px; }
@media (max-width: 760px) { .demos-grille { grid-template-columns: 1fr; } }

/* ── « Comment on travaille » : plus serré, avec un fil qui relie les étapes ── */
.construction-grille { align-items: start; }
.pas-liste { position: relative; padding-left: 44px; padding-top: 6vh; padding-bottom: 6vh; }
.pas-liste::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: var(--trait); }
.pas { position: relative; min-height: 44vh; max-width: 480px; }
.pas:last-child { min-height: 40vh; }
.pas::before { content: ""; position: absolute; left: -44px; top: 50%; width: 15px; height: 15px; margin-top: -7px; border-radius: 50%; background: var(--pierre); border: 1px solid #A9A398; transition: background .4s ease, border-color .4s ease, transform .4s ease; }
.pas.actif::before { background: var(--bois); border-color: var(--bois); transform: scale(1.15); }
.pas .chiffre { font-size: 56px; }
.chantier { top: calc(50vh - 260px); margin-top: 6vh; }
@media (max-width: 860px) {
    .pas-liste { padding-left: 28px; padding-top: 2vh; padding-bottom: 2vh; }
    .pas-liste::before { left: 5px; }
    .pas { min-height: 42vh; }
    .pas::before { left: -28px; width: 11px; height: 11px; margin-top: -5px; }
    .pas .chiffre { font-size: 44px; }
    .chantier { margin-top: 2vh; }
}
.chantier-cadre { align-self: stretch; }
.pas { min-height: 38vh; }
.pas:last-child { min-height: 36vh; }
@media (max-width: 860px) { .pas { min-height: 40vh; } }

/* ═══════════════════════════════════════════════
   YŪGEN : le récit en trois tableaux (défilement)
═══════════════════════════════════════════════ */
.recit { position: relative; background: #1E1621; transition: background-color 1.2s ease; }
.recit[data-chapitre="2"] { background: #1C1720; }
.recit[data-chapitre="3"] { background: #161722; }
.recit-scene { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; }
.recit .plan { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.recit[data-chapitre="1"] .plan-1, .recit[data-chapitre="2"] .plan-2, .recit[data-chapitre="3"] .plan-3 { opacity: 1; }
.recit .plan .fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: blur(2px) saturate(.8); transform: scale(1.08); transition: transform 8s ease; }
.recit .plan-3 .fond { opacity: .3; filter: blur(2px) saturate(.5) brightness(.7) hue-rotate(-15deg); }
.recit[data-chapitre="1"] .plan-1 .fond, .recit[data-chapitre="2"] .plan-2 .fond, .recit[data-chapitre="3"] .plan-3 .fond { transform: scale(1); }
.recit-voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,16,26,.92) 0%, rgba(22,16,26,.55) 42%, rgba(22,16,26,0) 75%), linear-gradient(180deg, #1E1621 0%, rgba(30,22,33,0) 16%, rgba(30,22,33,0) 84%, #1E1621 100%); pointer-events: none; }
.recit .sujet { position: absolute; right: 9vw; bottom: 8vh; height: 76vh; width: auto; max-width: 46vw; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
.cerisier-flotte { animation: flotte 9s ease-in-out infinite alternate; }
@keyframes flotte { from { transform: translateY(0); } to { transform: translateY(-14px); } }
.visiteurs { position: absolute; right: 7vw; bottom: 6vh; display: flex; align-items: flex-end; gap: 6px; }
.visiteurs img { width: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity 1.4s ease; opacity: 0; transform: translateX(60px); }
.visiteurs .renarde { height: 70vh; }
.visiteurs .chat { height: 42vh; transition-delay: .35s; }
.recit[data-chapitre="2"] .visiteurs img { opacity: 1; transform: none; }
.lanterne-pin { height: 58vh !important; bottom: 12vh !important; filter: saturate(.6) brightness(.9) drop-shadow(0 0 40px rgba(201,184,226,.25)) !important; }
.neige { position: absolute; inset: 0; pointer-events: none; }
.neige i { position: absolute; top: -10px; left: var(--x); width: var(--t); height: var(--t); border-radius: 50%; background: rgba(238,232,242,.75); animation: tombe var(--d) linear var(--r) infinite; }
@keyframes tombe { to { transform: translate(40px, 105vh); } }
.recit-progres { position: absolute; left: max(6vw, calc((100vw - 1260px) / 2 + 40px)); bottom: 7vh; display: flex; gap: 8px; }
.recit-progres span { width: 34px; height: 2px; background: rgba(238,232,242,.2); transition: background .6s ease, width .6s ease; }
.recit[data-chapitre="1"] .recit-progres span:nth-child(1), .recit[data-chapitre="2"] .recit-progres span:nth-child(2), .recit[data-chapitre="3"] .recit-progres span:nth-child(3) { background: var(--lavande); width: 56px; }
.recit-textes { position: relative; z-index: 2; }
.chapitre { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; max-width: 470px; }
.chapitre-titre { font-family: var(--serif-titre); font-weight: 400; font-size: clamp(52px, 6.5vw, 92px); line-height: 1; }
.chapitre p { margin-top: 24px; font-size: 22px; line-height: 1.6; color: #D6CCDD; }
.chapitre { opacity: .25; transition: opacity .8s ease; }
.chapitre.actif { opacity: 1; }
@media (max-width: 760px) {
    .recit .sujet { right: 50%; transform: translateX(50%); height: 48vh; max-width: 86vw; bottom: 4vh; }
    .cerisier-flotte { animation: none; }
    .visiteurs { right: 50%; transform: translateX(50%); bottom: 3vh; }
    .visiteurs .renarde { height: 44vh; } .visiteurs .chat { height: 27vh; }
    .lanterne-pin { height: 38vh !important; bottom: 6vh !important; }
    .recit-voile { background: linear-gradient(180deg, rgba(22,16,26,.95) 0%, rgba(22,16,26,.7) 38%, rgba(22,16,26,0) 62%), linear-gradient(0deg, #1E1621 0%, rgba(30,22,33,0) 14%); }
    .chapitre { justify-content: flex-start; padding-top: 14vh; }
    .chapitre p { font-size: 19px; }
    .recit-progres { left: 24px; top: 6vh; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .cerisier-flotte, .neige i { animation: none; }
    .neige { display: none; }
    .recit .plan, .visiteurs img, .recit .plan .fond { transition: none; }
}

/* ═══════════════════════════════════════════════
   YŪGEN : la cabine d'essayage
═══════════════════════════════════════════════ */
.cabine-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.cabine-scene { position: relative; height: min(720px, 80vh); display: flex; align-items: flex-end; justify-content: center; }
.cabine-halo { position: absolute; left: 50%; top: 45%; width: 520px; height: 620px; max-width: 100%; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(201,184,226,.22) 0%, rgba(201,184,226,0) 65%); }
.cabine-scene::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 60%; height: 30px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 70%); }
#cabine-img { position: relative; z-index: 1; height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
#cabine-img.change { opacity: 0; transform: translateY(10px); filter: blur(6px); }
.cabine-intro { margin-top: 18px; max-width: 440px; }
.cabine-nom { margin-top: 36px; font-family: var(--serif-titre); font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; color: var(--lavande); min-height: 1.1em; }
.cabine-choix { margin-top: 26px; display: grid; grid-template-columns: repeat(6, 64px); gap: 10px; }
.cabine-choix button, .cabine-choix .verrou { width: 64px; height: 92px; border-radius: 12px; }
.cabine-choix button { padding: 6px; border: 1px solid var(--prune-trait); background: rgba(36,27,39,.7); cursor: pointer; transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.cabine-choix button img { width: 100%; height: 100%; object-fit: contain; }
.cabine-choix button:hover { border-color: #8C8296; transform: translateY(-2px); }
.cabine-choix button[aria-checked="true"] { border-color: var(--lavande); background: rgba(201,184,226,.14); }
.cabine-choix .verrou { display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(201,184,226,.25); color: rgba(201,184,226,.35); font-family: var(--serif-titre); font-size: 22px; }
.cabine-note { margin-top: 18px; font-size: 16px; color: #ADA2B6; }
@media (max-width: 860px) {
    .cabine-grille { grid-template-columns: 1fr; }
    .cabine-scene { height: 62vh; order: 2; }
    .cabine-choix { grid-template-columns: repeat(auto-fill, 56px); }
    .cabine-choix button, .cabine-choix .verrou { width: 56px; height: 80px; }
}
/* Correctif : la scène collante ne doit pas déborder sur la section suivante */
.recit-scene { margin-bottom: 0; }
.recit-textes { margin-top: -100vh; margin-top: -100svh; }
@media (max-width: 760px) {
    .visiteurs .renarde { height: 40vh; } .visiteurs .chat { height: 24vh; }
    .visiteurs { gap: 0; }
}
@media (max-width: 860px) {
    .cabine-scene { order: 0; height: 52vh; }
    .cabine-nom { margin-top: 24px; }
    .cabine-choix { display: flex; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .cabine-choix > * { flex: none; }
}
@media (max-width: 860px) { .cabine-grille { grid-template-columns: minmax(0, 1fr); } }

/* ═══════════════════════════════════════════════
   YŪGEN : le jeu, en vrai (captures)
═══════════════════════════════════════════════ */
.en-main-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.en-main-intro { margin-top: 16px; }
.ecran-onglets { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--prune-trait); }
.ecran-onglet { display: block; width: 100%; padding: 22px 0 0; border: 0; border-bottom: 1px solid var(--prune-trait); background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.ecran-titre { display: block; font-family: var(--serif-titre); font-size: clamp(26px, 2.6vw, 34px); color: #8C8296; transition: color .4s ease; }
.ecran-desc { display: grid; grid-template-rows: 0fr; overflow: hidden; color: #C9BFD1; font-size: 19px; line-height: 1.55; max-width: 460px; transition: grid-template-rows .5s ease, padding .5s ease; }
.ecran-desc > * { min-height: 0; }
.ecran-onglet[aria-selected="true"] .ecran-titre { color: var(--brume); }
.ecran-onglet[aria-selected="true"] .ecran-desc { grid-template-rows: 1fr; padding-top: 10px; }
.ecran-onglet:hover .ecran-titre { color: var(--brume); }
.ecran-barre { display: block; height: 1px; margin-top: 20px; margin-bottom: -1px; }
.ecran-barre i { display: block; height: 100%; width: 0; background: var(--lavande); }
.ecran-onglet[aria-selected="true"] .ecran-barre i { animation: avance var(--duree, 6s) linear forwards; }
.en-main.pause .ecran-barre i { animation-play-state: paused; }
@keyframes avance { to { width: 100%; } }
.tel-jeu-cadre { position: relative; display: flex; justify-content: center; }
.tel-jeu-halo { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; max-width: 120%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(201,184,226,.2) 0%, rgba(201,184,226,0) 62%); pointer-events: none; }
.tel-jeu { position: relative; width: min(330px, 78vw); aspect-ratio: 1080 / 2316; padding: 11px; border-radius: 46px; background: linear-gradient(160deg, #3A3140, #19141C 55%, #2B2430); box-shadow: 0 0 0 1px rgba(238,232,242,.12), 0 50px 100px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.04); }
.tel-jeu::before { content: ""; position: absolute; left: 50%; top: 20px; z-index: 3; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #0B090C; }
.tel-jeu-ecran { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #141016; }
.tel-jeu-ecran img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .7s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tel-jeu-ecran img.actif { opacity: 1; transform: none; }
@media (max-width: 860px) {
    .en-main-grille { grid-template-columns: minmax(0, 1fr); }
    .tel-jeu-cadre { order: -1; }
    .tel-jeu { width: min(280px, 70vw); }
}
@media (prefers-reduced-motion: reduce) {
    .ecran-onglet[aria-selected="true"] .ecran-barre i { animation: none; width: 100%; }
    .tel-jeu-ecran img { transition: none; }
}
.tel-jeu::before { display: none; }

/* Accessibilité : les étapes et chapitres inactifs restent lisibles */
.pas { opacity: .5; }
.chapitre { opacity: .45; }
/* Accessibilité : inactifs atténués par la couleur, pas par la transparence */
.pas, .chapitre { opacity: 1; }
.pas .chiffre, .pas .nom-etape, .pas p:last-child { transition: color .5s ease; }
.pas:not(.actif) .chiffre { color: #A9A398; }
.pas:not(.actif) .nom-etape { color: #7D7973; }
.pas:not(.actif) p:last-child { color: #6A665F; }
.chapitre .chapitre-titre, .chapitre p { transition: color .6s ease; }
.chapitre:not(.actif) .chapitre-titre { color: #8C8296; }
.chapitre:not(.actif) p { color: #A99FB0; }
.sf-infos b { color: #7A5E44; }
@media (max-width: 760px) { .accueil .barre-bas .gauche { color: #ADA2B6; } }
/* Le trait du « ū » est très fin en Bodoni aux grandes tailles : on l'épaissit */
.macron { font-variation-settings: 'opsz' 14; }
/* Accueil : l'esquisse s'efface quand la moitié studio se rétrécit */
.esquisse, .moitie-clair .papier { transition: opacity .5s ease; }
.split:has(.moitie-sombre:hover) .esquisse, .split:has(.moitie-sombre:hover) .moitie-clair .papier { opacity: 0; }
.mention-cgv { margin-top: 18px; font-size: 15px; color: var(--gris-2); }
/* Bodoni : on fixe la taille optique pour que les traits fins restent visibles
   (en automatique, les grands titres devenaient trop fins à l'écran) */
html { font-variation-settings: 'opsz' 18; }
.macron { font-variation-settings: 'opsz' 12; }
/* Accueil mobile : le texte du studio ne remonte jamais sous « Starworld »,
   même avec une grande taille de texte sur le téléphone */
@media (max-width: 760px) {
    .moitie-clair { padding-top: calc(9vh + 150px); padding-top: calc(9svh + 150px); }
    .accueil .barre-haut .bouton-langue { color: var(--encre); mix-blend-mode: normal; }
    .esquisse { bottom: auto; top: calc(9svh + 150px); }
    .moitie-clair .phrase, .moitie-clair .tarif { max-width: calc(100% - 130px); }
}
@media (max-width: 760px) {
    .split .moitie { flex: 0 0 auto; }
    .moitie-clair { min-height: calc(9svh + 150px + 260px); }
}
