/* ═══ LA FORÊT DE MICHAËL — le site officiel (08/10/2026)
   Tout est sous html.foret : si foret-site.js ne se charge pas, le site reste
   exactement comme avant (ciel étoilé, fonds pleins). */

html.foret{background:#06100b}
html.foret body{background:transparent!important}

/* ── LE DÉCOR : une clairière par partie de page, une seule allumée ── */
#scenes{position:fixed;inset:0;z-index:-2;overflow:hidden;background:#06100b;pointer-events:none}
#scenes .scene{position:absolute;inset:0;opacity:0;z-index:0;transition:opacity 2.2s cubic-bezier(.45,0,.25,1)}
#scenes .scene.on{opacity:1;z-index:2}
#scenes .scene.sortante{opacity:1;z-index:1;transition:none}
#scenes .scene img,#scenes .scene video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;max-width:none;
  transform:scale(1.08);transform-origin:50% 40%;filter:brightness(var(--clarte,1)) saturate(var(--sature,1))}
#scenes .scene img{animation:respire 34s ease-in-out infinite alternate;animation-play-state:paused;will-change:transform}
#scenes .scene.on img,#scenes .scene.sortante img{animation-play-state:running}
#scenes .scene video{opacity:0;transition:opacity 1.6s;transform:scale(1.04)}
#scenes .scene video.joue{opacity:1}
@keyframes respire{0%{transform:scale(1.08) translate3d(0,0,0)}100%{transform:scale(1.17) translate3d(-1.6%,-1.2%,0)}}
/* le voile qui rend le texte lisible sans éteindre la forêt */
#scenes .scene::before{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;
  background:radial-gradient(ellipse 70% 60% at 50% 45%,rgba(3,8,6,.55),rgba(3,8,6,.25) 70%),
    linear-gradient(180deg,rgba(3,8,6,.38),rgba(3,8,6,.55) 60%,rgba(3,8,6,.82))}
#scenes .scene[data-nom="biche"]::before{
  background:radial-gradient(ellipse 40% 70% at 50% 45%,rgba(3,8,6,.6),rgba(3,8,6,.2) 100%),
    linear-gradient(180deg,rgba(3,8,6,.35),rgba(3,8,6,.3) 60%,rgba(3,8,6,.75))}
#scenes .scene[data-nom="portail"]::before{        /* le sentier de lumière : voilé, car le contact s'écrit dessus */
  background:linear-gradient(180deg,rgba(3,8,6,.55),rgba(3,8,6,.62) 50%,rgba(3,8,6,.85))}
#scenes .scene[data-nom="ecureuil"] img,#scenes .scene[data-nom="ecureuil"] video{object-position:30% 50%}
#scenes .scene[data-nom="oiseau"] img,#scenes .scene[data-nom="oiseau"] video{object-position:40% 30%}
html[data-ciel=nuit] #scenes .scene[data-nom="biche"] img{object-position:45% 60%}
html[data-ciel=nuit] #scenes .scene[data-nom="oiseau"] img{object-position:62% 30%}

/* les rayons de soleil (jamais la nuit) et la brume au ras du sol */
#scenes .rayons{position:absolute;inset:-20% -10%;z-index:5;opacity:.9;mix-blend-mode:screen;transition:opacity 2s;
  background:repeating-linear-gradient(104deg,transparent 0 6%,rgba(255,226,150,.10) 7% 9%,transparent 10% 15%,rgba(255,240,200,.06) 16% 17%,transparent 18% 24%);
  -webkit-mask-image:radial-gradient(ellipse 60% 70% at 62% 0%,#000,transparent 75%);mask-image:radial-gradient(ellipse 60% 70% at 62% 0%,#000,transparent 75%);
  animation:rayons 18s ease-in-out infinite alternate}
@keyframes rayons{0%{transform:translateX(-3%) skewX(-2deg);filter:brightness(.8)}50%{filter:brightness(1.25)}100%{transform:translateX(4%) skewX(3deg);filter:brightness(.9)}}
html[data-ciel=nuit] #scenes .rayons{display:none}
html[data-ciel=jour] #scenes .rayons{opacity:1}
#scenes .brume{position:absolute;left:-30%;right:-30%;height:46%;bottom:-8%;z-index:5;opacity:.5;
  background:radial-gradient(ellipse 30% 40% at 20% 60%,rgba(220,235,225,.16),transparent 70%),
    radial-gradient(ellipse 26% 36% at 55% 70%,rgba(220,235,225,.13),transparent 70%),
    radial-gradient(ellipse 30% 40% at 85% 55%,rgba(220,235,225,.15),transparent 70%);
  filter:blur(18px);animation:brume 46s linear infinite alternate}
@keyframes brume{from{transform:translateX(-8%)}to{transform:translateX(8%)}}

/* ── LA LUMIÈRE DU MOMENT, DE LA SAISON, DE LA FÊTE (un calque teinté) ── */
#scenes .teinte,#scenes .saison{position:absolute;inset:0;z-index:4;pointer-events:none}
html[data-ciel=aube] #scenes .teinte{background:linear-gradient(180deg,rgba(255,190,150,.16),rgba(255,220,170,.06) 45%,transparent 70%);mix-blend-mode:soft-light}
html[data-ciel=jour] #scenes .teinte{background:radial-gradient(ellipse 80% 60% at 70% -5%,rgba(255,248,215,.32),transparent 65%);mix-blend-mode:screen}
html[data-ciel=soir] #scenes .teinte{background:linear-gradient(180deg,rgba(255,120,60,.32),rgba(255,160,90,.16) 50%,rgba(60,20,60,.22));mix-blend-mode:soft-light}
html[data-ciel=soir]{--clarte:.88;--sature:1.1}
html[data-ciel=nuit] #scenes .teinte{background:radial-gradient(ellipse 90% 70% at 50% 0,rgba(120,150,220,.12),transparent 70%);mix-blend-mode:screen}
html[data-saison=hiver]{--sature:.94}   /* la vraie neige des photos fait le travail */
html[data-saison=hiver] #scenes .saison{background:linear-gradient(180deg,rgba(200,220,255,.16),rgba(230,240,255,.08));mix-blend-mode:screen}
html[data-saison=automne] #scenes .saison{background:linear-gradient(180deg,rgba(255,140,40,.22),rgba(180,70,20,.14));mix-blend-mode:soft-light}
html[data-saison=printemps] #scenes .saison{background:radial-gradient(ellipse 90% 60% at 30% 0,rgba(255,200,225,.16),transparent 70%);mix-blend-mode:screen}
html[data-saison=ete] #scenes .saison{background:radial-gradient(ellipse 90% 60% at 70% 0,rgba(255,230,150,.14),transparent 70%);mix-blend-mode:screen}
html[data-fete=valentin] #scenes .saison{background:radial-gradient(ellipse 100% 80% at 50% 100%,rgba(255,120,170,.18),transparent 70%);mix-blend-mode:screen}
html[data-fete=noel] #scenes .saison{background:linear-gradient(180deg,rgba(255,200,120,.12),rgba(200,220,255,.10));mix-blend-mode:screen}
html[data-fete=assomption] #scenes .saison{background:radial-gradient(ellipse 90% 70% at 50% 0,rgba(110,150,255,.20),rgba(255,215,120,.06) 60%,transparent 80%);mix-blend-mode:screen}

/* la lune qui tremble dans la rivière */
#scenes .reflet{position:absolute;z-index:5;transform:translate(-50%,-50%);pointer-events:none;mix-blend-mode:screen;
  background:repeating-linear-gradient(0deg,rgba(255,250,232,0) 0 5px,rgba(255,250,232,.42) 5px 7px,rgba(255,250,232,0) 7px 12px);
  -webkit-mask:radial-gradient(ellipse 50% 50%,#000 25%,transparent 72%);mask:radial-gradient(ellipse 50% 50%,#000 25%,transparent 72%);
  animation:miroite 2.6s linear infinite,tremble 3.7s ease-in-out infinite alternate}
@keyframes miroite{to{background-position:0 24px}}
@keyframes tremble{0%{opacity:.55;scale:1 1}50%{opacity:.95;scale:1.08 .96}100%{opacity:.7;scale:.94 1.04}}

/* fées, lucioles, neige, feuilles… entre le décor et le texte ; la poussière sous la main, au-dessus */
#fees{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
#poussiere{position:fixed;inset:0;width:100%;height:100%;z-index:9990;pointer-events:none}
html.sur-fee,html.sur-fee *{cursor:pointer!important}

/* ── LE SITE DEVIENT TRANSPARENT SUR LA FORÊT ── */
/* le ciel étoilé d'origine : seulement la nuit, au-dessus de la lune */
html.foret #hero .hero-gradient-mesh{display:none}
html.foret:not([data-ciel=nuit]) #hero-canvas,html.foret:not([data-ciel=nuit]) canvas#ciel{display:none}
html.foret #hero-canvas,html.foret canvas#ciel{opacity:.55}
html.foret #stats,html.foret #services,html.foret #parcours,html.foret #about,html.foret #philosophy,html.foret #contact,html.foret footer{background:transparent!important}
html.foret .service-card,html.foret .bloc,html.foret .produit,html.foret .vitrine .cadre{
  background:linear-gradient(165deg,rgba(10,22,17,.80),rgba(4,10,8,.88))!important;
  -webkit-backdrop-filter:blur(16px) saturate(1.1);backdrop-filter:blur(16px) saturate(1.1);
  border-color:rgba(232,210,140,.2)!important}
html.foret .about-portrait-frame{background:transparent}
/* la photo de Michaël au contact : fondue par un masque, plus par des aplats noirs */
html.foret #contact-bg-photo::before,html.foret #contact-bg-photo::after{background:none!important}
html.foret #contact-bg-photo{
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 60%),linear-gradient(180deg,transparent 0,#000 18%,#000 78%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent 0,#000 60%),linear-gradient(180deg,transparent 0,#000 18%,#000 78%,transparent 100%);
  mask-composite:intersect}

@media (prefers-reduced-motion:reduce){
  #scenes .scene img,#scenes .rayons,#scenes .brume,#scenes .reflet{animation:none!important}
  #scenes .scene{transition:none}}

/* ── LA BARRE DE DÉFILEMENT suit le moment, la saison et la fête (08/10) ── */
html.foret{--sb-pouce:#7c8f4e;--sb-rail:#08130d;scrollbar-width:thin!important;
  scrollbar-color:color-mix(in srgb,var(--sb-pouce) 58%,transparent) var(--sb-rail)!important}
html.foret[data-ciel=aube]{--sb-pouce:#c9a45a;--sb-rail:#0e1410}
html.foret[data-ciel=jour]{--sb-pouce:#a8b864;--sb-rail:#0c1a10}
html.foret[data-ciel=soir]{--sb-pouce:#c98a4a;--sb-rail:#140c08}
html.foret[data-ciel=nuit]{--sb-pouce:#5d6f9a;--sb-rail:#05080e}
html.foret[data-saison=automne]:not([data-ciel=nuit]){--sb-pouce:#c07a3a}
html.foret[data-saison=hiver]:not([data-ciel=nuit]){--sb-pouce:#b9c6d6}
html.foret[data-fete=noel]{--sb-pouce:#c9a45a;--sb-rail:#140808}
html.foret[data-fete=valentin]{--sb-pouce:#e08aa8}
html.foret[data-fete=paques]{--sb-pouce:#e6cf7a}
html.foret[data-fete=assomption]{--sb-pouce:#7f9de0;--sb-rail:#070b18}
html.foret::-webkit-scrollbar{width:8px;background:var(--sb-rail)}
html.foret::-webkit-scrollbar-track{background:var(--sb-rail)}
html.foret::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--sb-pouce) 58%,transparent)!important;border-radius:8px;border:2px solid var(--sb-rail)!important}
html.foret::-webkit-scrollbar-thumb:hover{background:var(--sb-pouce)!important}

/* ── PLUS DE VIDE SOUS LE PIED DE PAGE (08/10) ── */
html.foret footer{padding-top:1.6rem;padding-bottom:.9rem}
html.foret [data-dg-credit]{padding:0 0 10px!important}
/* sous-pages : le pied gardait 5,5rem pour le bouton Aa ; on lui laisse la place à droite seulement */
html.foret .pied{padding-bottom:1.2rem!important}   /* le bouton Aa n'existe plus (08/10) */

/* ── PASSE « GÉNIE » (08/10) ── */
/* les oisillons au premier plan : on recadre sur les becs ouverts, la feuille floue sort du cadre */
html:not([data-saison=hiver]) #scenes .scene[data-nom="oiseau"] video{transform:scale(1.5);transform-origin:26% 20%}
html:not([data-ciel=nuit]):not([data-saison=hiver]) #scenes .scene[data-nom="oiseau"] img{object-position:26% 20%;transform-origin:26% 20%}
/* le texte se détache de la forêt sans voile lourd */
html.foret section p,html.foret section li,html.foret .timeline-desc,html.foret .hero-subtitle,html.foret .stat-label,
html.foret main p,html.foret main li{text-shadow:0 1px 14px rgba(0,0,0,.6),0 0 2px rgba(0,0,0,.35)}
html.foret h1,html.foret h2,html.foret h3{text-shadow:0 2px 24px rgba(0,0,0,.55)}
/* le formulaire de contact : des champs lisibles même devant une lanterne */
html.foret .form-group input,html.foret .form-group select,html.foret .form-group textarea{
  background:rgba(6,14,10,.72)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-color:rgba(232,210,140,.22)!important}
html.foret .form-group input:focus,html.foret .form-group select:focus,html.foret .form-group textarea:focus{background:rgba(8,18,12,.85)!important;border-color:rgba(232,210,140,.5)!important}

/* ── LISIBILITÉ ABSOLUE (08/10, mesurée : chaque texte ≥ 4,5:1 visé) ── */
/* le contact : un vrai panneau de verre sombre, plus jamais du texte posé sur une clairière lumineuse */
html.foret #contact .contact-grid{background:linear-gradient(165deg,rgba(8,18,14,.82),rgba(4,10,8,.9));
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(232,210,140,.18);
  border-radius:18px;padding:clamp(1.4rem,4vw,3rem);box-shadow:0 40px 90px -40px rgba(0,0,0,.9)}
html.foret #contact-bg-photo{opacity:.55}
/* les petites étiquettes dorées : or plus clair, et jamais plus petites que 11 px */
html.foret .logo-sub,html.foret .hero-eyebrow,html.foret .section-label,html.foret .timeline-date,
html.foret .contact-detail-label,html.foret .form-group label,html.foret .quote-attr{color:#e6c97f!important}
html.foret .footer-left,html.foret .footer-right a,html.foret .contact-detail small{color:rgba(240,232,212,.82)!important;opacity:1!important}
html.foret [data-dg-credit] a{opacity:.62!important;color:#b9b2a2!important}
@media(max-width:760px){
  html.foret .logo-sub,html.foret .hero-eyebrow,html.foret .section-label,html.foret .contact-detail-label,
  html.foret .form-group label,html.foret .footer-right a,html.foret .quote-attr{font-size:11px!important}
  html.foret .timeline-date,html.foret .footer-left{font-size:12px!important}
}
/* derniers cas limites mesurés (08/10) */
html.foret #main-header,html.foret header.entete{background:rgba(5,11,8,.9)!important}
html.foret .quote-attr,html.foret .logo-sub{color:#f0d995!important}
html.foret .cartel{color:#f0d995!important}
#scenes .scene[data-nom="oiseau"]::before{background:radial-gradient(ellipse 70% 60% at 50% 45%,rgba(3,8,6,.62),rgba(3,8,6,.4) 70%),
  linear-gradient(180deg,rgba(3,8,6,.45),rgba(3,8,6,.6) 60%,rgba(3,8,6,.85))}
html.foret .scroll-hint span{color:#e6c97f!important;opacity:.95!important;font-size:max(11px,.6rem)!important}
html.foret .pillar-title,html.foret .timeline-date{color:#f0d995!important}
html.foret .scroll-hint{opacity:1!important}html.foret .scroll-hint span{color:#f0d995!important}
html.foret [data-dg-credit] a{opacity:.85!important;color:#c9c1ae!important}
html.foret .about-tag{background:rgba(5,11,8,.78)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#efe6d0!important;border-color:rgba(232,210,140,.3)!important}
#scenes .astre{position:absolute;z-index:5;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;mix-blend-mode:screen;
  background:radial-gradient(circle,rgba(255,255,248,.95) 0 9%,rgba(235,240,255,.45) 14%,rgba(200,215,255,.16) 34%,transparent 66%);
  animation:astre 7s ease-in-out infinite alternate}
@keyframes astre{from{opacity:.8;scale:1}to{opacity:1;scale:1.08}}

/* ── SMARTPHONE PARFAIT (08/10) : jamais de texte sous 12 px, chaque geste a 44 px sous le pouce ── */
@media(max-width:760px){
  html.foret .logo-sub,html.foret .hero-eyebrow,html.foret .section-label,html.foret .contact-detail-label,html.foret .form-group label,
  html.foret .footer-right a,html.foret .quote-attr,html.foret .stat-label,html.foret .about-tag,html.foret .card-link,
  html.foret .btn-secondary,html.foret .scroll-hint span{font-size:12px!important}
  html.foret .card-link,html.foret .btn-secondary{min-height:44px;align-items:center}
  html.foret .hamburger{padding:12px!important;margin-right:-8px}
  html.foret .footer-right a{display:inline-block;padding:10px 4px}
}
@media(max-width:760px){
  html.foret .btn-primary,html.foret .btn-primary span,html.foret .form-submit,html.foret .form-submit span{font-size:12.5px!important}
  html.foret [data-dg-credit] a{font-size:11px!important}
}

/* ── UN SEUL MENU (08/10) : au téléphone, les sous-pages reprennent le hamburger et le grand menu de l'accueil ── */
.burger-foret{display:none}
@media(max-width:760px){
  html.foret header.entete{flex-wrap:nowrap!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(5,11,8,.94)!important}
  html.foret header.entete .menu{position:fixed;inset:0;z-index:30;display:flex!important;flex-direction:column;align-items:center;justify-content:center;
    gap:1.1rem;background:rgba(4,9,7,.97);opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s}
  html.foret.menu-ouvert header.entete .menu{opacity:1;visibility:visible}
  html.foret header.entete .menu a{font-family:'Cormorant Garamond',Georgia,serif;font-size:27px;font-weight:500;letter-spacing:.02em;
    text-transform:none;color:#efe6d0;padding:.25rem 1rem}
  html.foret header.entete .menu a::after{display:none}
  html.foret header.entete .menu a[aria-current="page"]{color:#e6c97f}
  html.foret header.entete .menu .cta{border:0;color:#e6c97f;font-size:25px;padding:.25rem 1rem}
  .burger-foret{display:flex;flex-direction:column;gap:5px;padding:12px;margin:0 -8px 0 auto;background:none;border:0;cursor:pointer;position:relative;z-index:31}
  .burger-foret span{display:block;width:24px;height:1.5px;background:#c9a45a;transition:transform .3s,opacity .3s}
  html.menu-ouvert .burger-foret span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
  html.menu-ouvert .burger-foret span:nth-child(2){opacity:0}
  html.menu-ouvert .burger-foret span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
  html.menu-ouvert{overflow:hidden}
}
/* les sous-pages, au pixel près comme l'accueil (08/10) */
@media(max-width:760px){
  html.foret header.entete .menu{background:#050b08;gap:1.5rem}
  html.foret header.entete .marque{position:relative;z-index:31}
  html.foret header.entete .marque .logo-mt{width:40px;height:40px}
  html.foret header.entete .marque b{font-size:16px!important;letter-spacing:.03em}
  html.foret header.entete .marque small{font-size:10.5px!important;letter-spacing:.16em;white-space:nowrap}
  html.foret header.entete{padding-top:.7rem!important;padding-bottom:.7rem!important}
}
@media(max-width:760px){html.foret header.entete .marque small{font-size:11.5px!important;letter-spacing:.12em}html.foret [data-dg-credit] a{font-size:11.5px!important}}

/* ── LA NEIGE ÉBLOUIT (08/10, mesuré : 47 textes sous 4,5:1 en hiver de jour) ── */
html.foret[data-saison=hiver]:not([data-ciel=nuit]) #scenes .scene img,
html.foret[data-saison=hiver]:not([data-ciel=nuit]) #scenes .scene video{filter:brightness(calc(var(--clarte,1) * .78)) saturate(var(--sature,1))}
html.foret[data-saison=hiver]:not([data-ciel=nuit]) #scenes .scene::after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;
  background:radial-gradient(ellipse 75% 65% at 50% 45%,rgba(5,11,9,.5),rgba(5,11,9,.34) 75%)}
/* le bouton doré : la même lumière en toute saison */
html.foret .btn-primary,html.foret .form-submit{background:linear-gradient(180deg,#e6c780,#c79d4e)!important;color:#140f05!important}
html.foret .btn-primary span,html.foret .form-submit span{color:#140f05!important}
html.foret .btn-secondary{color:#efe6d0!important;opacity:1!important}
html.foret .counter,html.foret .stat-number{color:#f0d995!important;-webkit-text-fill-color:#f0d995!important;text-shadow:0 2px 18px rgba(0,0,0,.6)}
/* l'herbe du hérisson est très claire : voile un peu plus dense */
#scenes .scene[data-nom="herisson"]::before{background:radial-gradient(ellipse 70% 60% at 50% 45%,rgba(3,8,6,.66),rgba(3,8,6,.45) 70%),
  linear-gradient(180deg,rgba(3,8,6,.45),rgba(3,8,6,.62) 60%,rgba(3,8,6,.86))}
html.foret .btn-primary,html.foret .btn-primary span,html.foret .form-submit,html.foret .form-submit span{color:#000!important}
html.foret .btn-secondary{text-shadow:0 1px 10px rgba(0,0,0,.75)}
/* le portrait de Michaël était invisible au téléphone (cadre de 0 px : le bloc n'avait pas de largeur) — 08/10 */
@media(max-width:1024px){html.foret .about-visual{width:100%;max-width:380px;justify-self:center}}
/* [08/10] photo de fond du contact retirée (Maha : « on ne la voit pas, autant ne pas la mettre ») */ html.foret #contact-bg-photo{display:none!important}
/* les champs débordaient du panneau de quelques pixels (colonnes 1fr = largeur minimale des champs) — 08/10 */
html.foret .contact-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
html.foret .form-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
html.foret .form-group,html.foret .form-group input,html.foret .form-group select,html.foret .form-group textarea{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:900px){html.foret .contact-grid{grid-template-columns:minmax(0,1fr)}html.foret .form-row{grid-template-columns:minmax(0,1fr)}}
/* ── PÂQUES (09/10) : le panier aux œufs clairs passe derrière le texte → même voile que la neige ── */
html.foret[data-fete=paques]:not([data-ciel=nuit]) #scenes .scene[data-nom="biche"] img,
html.foret[data-fete=paques]:not([data-ciel=nuit]) #scenes .scene[data-nom="biche"] video{filter:brightness(calc(var(--clarte,1) * .8)) saturate(var(--sature,1))}
html.foret[data-fete=paques]:not([data-ciel=nuit]) #scenes .scene[data-nom="biche"]::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
  background:radial-gradient(ellipse 75% 65% at 50% 45%,rgba(5,11,9,.5),rgba(5,11,9,.3) 75%)}
