*{box-sizing:border-box;margin:0}
html{-webkit-text-size-adjust:100%;background:#f3ecdf;scroll-behavior:smooth}
body{--encre:#1d1a16;--or:#8a6220;font:400 1.1rem/1.5 'Instrument Sans',sans-serif;color:var(--encre);overflow-x:clip}
a{color:inherit}img,video{display:block}
h1,h2,h3,.marque{font-family:'Young Serif',serif;font-weight:400}
h1,h2,h3{line-height:1.02;letter-spacing:-.018em;text-wrap:balance}
:focus-visible{outline:3px solid var(--or);outline-offset:4px;border-radius:4px}
.skip{position:fixed;left:-999px;top:0;z-index:30;background:#fff;color:#17030a;padding:.8rem}.skip:focus{left:0}
body:before{content:"";position:fixed;inset:0;height:100lvh;background:#f3ecdf url(media/entree-p.jpg) center/cover}
#scene{position:fixed;inset:0;z-index:0;width:100%;height:100vh;height:100lvh;opacity:0;transition:opacity 1.1s;display:block}
.en3d #scene{opacity:1}

.haut{position:fixed;z-index:8;inset:0 0 auto;display:flex;justify-content:space-between;align-items:center;padding:1.1rem clamp(1.25rem,4vw,4rem);transition:color .6s}
.haut:before{content:"";position:absolute;z-index:-1;inset:0 0 -2rem;background:linear-gradient(#f3ecdff5,#f3ecdfb0 55%,#f3ecdf00);pointer-events:none}
.marque{font-size:1.02rem;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;display:flex;align-items:center;gap:.65rem}.marque img{height:2.5rem;width:auto;background:#000;border-radius:6px;padding:.4rem .45rem}footer .logo{width:min(72vw,17rem);height:auto}
.haut nav{display:none;align-items:center;gap:2.2rem}.haut nav a{text-decoration:none}.haut nav a:not(.btn):hover{text-decoration:underline;text-underline-offset:6px;text-decoration-color:var(--or)}
.btns{display:flex;flex-wrap:wrap;gap:.7rem}
.btn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-height:52px;padding:.35rem 1.7rem;border:1.5px solid color-mix(in srgb,currentColor 55%,transparent);border-radius:4px;font:600 1rem/1.15 'Instrument Sans',sans-serif;text-decoration:none;color:inherit;background:#fffaf2d9;cursor:pointer;transition:background-color .3s,border-color .3s,transform .3s}
.btn:hover{border-color:currentColor;background:#fffaf2}.btn:active{transform:scale(.97)}
.btn small{font-weight:400;font-size:.85rem;opacity:.85}
.btn.plein{background:#1d1a16;color:#f6efe2;border-color:#1d1a16}
.btn.plein:hover{background:#3a332b}
.haut .btn{min-height:44px}
.barre{position:fixed;z-index:9;inset:auto 0 0;display:flex;gap:.5rem;padding:.55rem .7rem calc(.55rem + env(safe-area-inset-bottom));background:linear-gradient(#f3ecdf00,#f3ecdfd9 35%)}
.barre .btn{flex:1;padding:.2rem .4rem;min-height:50px}

main{position:relative;z-index:2}
.pas{position:relative}
.en3d .pas{height:175svh}.en3d #accueil{height:150svh}.en3d #contact{height:140svh}
.mot{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:1rem;padding:6rem clamp(1.25rem,4vw,4rem) calc(6.2rem + env(safe-area-inset-bottom));min-height:100svh}
.en3d .mot{position:sticky;top:0;height:100svh;pointer-events:none;text-shadow:0 0 16px #f3ecdf,0 0 4px #f3ecdfb0}
.en3d .mot :is(a,button){pointer-events:auto}.btn.plein{text-shadow:none}
.en3d .mot:before{content:"";position:absolute;z-index:-1;inset:34% 0 0;background:linear-gradient(#f3ecdf00,#f3ecdff2 24%,#f3ecdffd 50%);pointer-events:none}
.mot.milieu{align-items:center;text-align:center}.mot.milieu .btns{justify-content:center}
h1{font-size:clamp(2.5rem,11vw,5.6rem);max-width:12ch}h1 span{display:block}
h2{font-size:clamp(2.4rem,10vw,4.4rem);max-width:13ch}
h3{font-size:clamp(2.3rem,9.6vw,4.6rem);max-width:11ch}
.mot>p{max-width:36ch;font-size:clamp(1.08rem,1.5vw,1.3rem)}
.mot>.btns{max-width:none;margin-top:.2rem}
.mot>.note{font-size:.95rem;opacity:.85}
.atouts{list-style:none;padding:0;display:grid;gap:.7rem;max-width:44ch;font-size:clamp(1.08rem,1.5vw,1.3rem)}
.atouts li{padding-bottom:.7rem;border-bottom:1px solid #8a622055}.atouts li:last-child{border:0}
.etapes{list-style:none;counter-reset:n;padding:0;display:grid;gap:1rem;max-width:44ch}
.etapes li{counter-increment:n;display:grid;grid-template-columns:2.2rem 1fr}.etapes li:before{content:counter(n);font:400 2rem/1 'Young Serif',serif;color:var(--or);grid-row:span 2}.etapes b{display:block;font-weight:600;font-size:1.15em}
#contact h2{max-width:none}
.fixe,.duo{display:none}
.en3d #contact .mot{justify-content:flex-end;padding-bottom:calc(7rem + env(safe-area-inset-bottom))}
.en3d #contact .mot:before{inset:40% 0 0;background:linear-gradient(#f3ecdf00,#f3ecdfd0 38%,#f3ecdff0 75%)}
footer{position:relative;z-index:3;background:#000;color:#fbeee0;padding:2.6rem clamp(1.25rem,4vw,4rem) calc(6.4rem + env(safe-area-inset-bottom));font-size:.95rem;display:grid;gap:1rem}footer p{max-width:80ch}footer a{display:inline-block;padding:.35rem 0;margin-right:1.6rem}

.essai{width:min(96vw,27rem);height:min(94svh,56rem);max-height:none;padding:0;border:0;border-radius:18px;overflow:hidden;background:#0b0608;color:#fff3e2;margin:auto}
.essai[open]{display:flex;flex-direction:column}.essai::backdrop{background:#040308e0}
.essai-h{display:flex;align-items:center;gap:.5rem;padding:.6rem .8rem}.essai-h strong{flex:1;font:400 1.2rem 'Young Serif',serif}.essai .btn{min-height:44px;padding:0 .9rem;font-size:.95rem;color:#fff3e2;background:#ffffff14}
.essai iframe{flex:1;border:0;width:100%;background:#fff}.essai video{flex:1;min-height:0;width:100%;background:#000}

@media(min-width:900px){
 body:before{background-image:url(media/entree.jpg)}
 .barre{display:none}.haut nav{display:flex}
 .mot{justify-content:center;padding-bottom:5rem}
 .en3d .mot:before{inset:0;background:linear-gradient(90deg,#f3ecdff2,#f3ecdfc8 36%,#f3ecdf00 62%)}
 .en3d #contact .mot{padding-bottom:5rem}.en3d #contact .mot:before{inset:52% 0 0;background:radial-gradient(ellipse 30% 62% at 50% 58%,#f3ecdffa 42%,#f3ecdf00)}
 .en3d .mot.milieu:not(#contact .mot):before{background:radial-gradient(ellipse 46% 52% at 50% 50%,#f3ecdff5 45%,#f3ecdf00)}
 .en3d #accueil .mot:before{background:linear-gradient(90deg,#f3ecdfe0,#f3ecdf90 34%,#f3ecdf00 56%)}
 .en3d #accueil .mot{justify-content:flex-end;padding-bottom:4.5rem}
 .en3d #utile .mot{justify-content:flex-end;padding-bottom:3.5rem}.en3d #utile .mot:before{background:radial-gradient(ellipse 44% 46% at 50% 72%,#f3ecdff5 45%,#f3ecdf00)!important}
 .en3d .site .mot{width:50%}
 .en3d .site:nth-of-type(odd) .mot{margin-left:50%;width:50%}
 .en3d .site:nth-of-type(odd) .mot:before{background:linear-gradient(90deg,#f3ecdf00,#f3ecdfe6 18%,#f3ecdff2);inset:0}
 .en3d .site:nth-of-type(even) .mot:before{background:linear-gradient(90deg,#f3ecdff2,#f3ecdfe6 62%,#f3ecdf00);inset:0}
 h1{font-size:min(4.9vw,10svh,5.4rem);max-width:16ch}
 footer{padding-bottom:2.6rem}
}
@media(max-width:899px) and (max-height:700px){h1,h2,h3{font-size:clamp(2.1rem,8.6vw,3rem)}.mot{gap:.7rem}.etapes{gap:.6rem}}
/* sans 3D (ancien appareil ou JavaScript coupé) : les mêmes pièces, en images fixes */
html:not(.en3d) .mot{background:center/cover no-repeat #efe7da}html:not(.en3d) h1{max-width:12ch}
html:not(.en3d) #accueil .mot{background:linear-gradient(#f3ecdf00 35%,#f3ecdfd0 75%)}
html:not(.en3d) #sites .mot{background-image:linear-gradient(#f3ecdf66,#f3ecdf99),url(media/galerie.jpg)}
html:not(.en3d) #contact .mot{background-image:linear-gradient(#f3ecdf66,#f3ecdfb0),url(media/matin.jpg)}
html:not(.en3d):not(.attente) .fixe{display:block;width:min(62vw,15rem);height:auto;border-radius:14px;box-shadow:0 0 0 2px #e9bb6c,0 30px 60px #0004;margin-top:1rem}
html:not(.en3d):not(.attente) .duo{display:flex;gap:1rem;flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
/* téléphone tenu couché */
@media(max-height:520px){
 h1,h2,h3{font-size:1.75rem;max-width:none}h1 span{display:inline}
 .mot{padding:3.4rem 1.25rem calc(4.6rem + env(safe-area-inset-bottom));gap:.45rem}
 .mot>p,.atouts,.etapes{font-size:.95rem;line-height:1.35;max-width:none}.mot>.note{display:none}
 .atouts{grid-template-columns:1fr 1fr;gap:.2rem 1.5rem;text-align:left}.atouts li{padding:0;border:0}
 .etapes{grid-template-columns:repeat(3,1fr);gap:1rem}.etapes li:before{font-size:1.4rem}.etapes li{grid-template-columns:1.5rem 1fr}
 .btn{min-height:44px}.barre .btn{min-height:44px}
 .en3d .mot:before,.en3d #contact .mot:before{inset:0;background:linear-gradient(90deg,#f3ecdff5,#f3ecdfd9 48%,#f3ecdf40)}
}
.essai:not(.cinema){width:min(96vw,76rem)}

/* tout en bas : le logo doré, en film */
.logo-film{position:relative;z-index:3;margin:0;background:#000;min-height:100svh;display:grid;place-items:center;overflow:hidden}
.logo-film picture,.logo-film picture img,.logo-film video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.logo-film video{opacity:0;transition:opacity .4s}.logo-film video.joue{opacity:1}
.logo-film .btn{position:absolute;z-index:2;bottom:calc(6.2rem + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);color:#f2d9a0;border-color:#f2d9a080;background:#000a}
@media(min-width:900px){.logo-film .btn{bottom:2.4rem}}footer{padding-bottom:2.6rem!important}
.noir .haut{background:#000!important;color:#fbeee0}.noir .haut:before,.noir .haut:after{display:none}
