/* =====================================================================
   Yona Events — thème 2027 (aperçu), v2 « lin & or »
   Chargé APRÈS le <style> de la page. Ne change ni le contenu, ni les
   balises SEO, ni les URL : uniquement l apparence et le comportement.
   Modes : data-mode="jour" (défaut) | data-mode="nuit"
   ===================================================================== */

/* ---------- Polices auto-hébergées (plus de requête Google Fonts) ---------- */
@font-face{font-family:"Instrument Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/instrument-serif-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Serif";font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/instrument-serif-latin-400-italic.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/instrument-sans-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/instrument-sans-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/instrument-sans-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/instrument-sans-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Jeu de couleurs : lin & or ----------
   Jour : lin ivoire, encre chaude, bronze (texte) et or (décor)
   Nuit : noir chaud, ivoire, or lumineux                         */
:root{
  --fd:"Instrument Serif","Cormorant Garamond",Georgia,serif;
  --fb:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --cream:#F6F1E8;            /* ivoire : texte clair sur fond sombre (héros) */
  --hh:64px;                  /* hauteur d'en-tête */
  --e-out:cubic-bezier(.22,1,.36,1);
}
html[data-mode="jour"]{
  color-scheme:light;
  --bg:#F6F1E8;--bg-2:#EDE5D8;--bg-3:#E3D8C6;
  --bone:#F0E9DD;--bone-2:#E8DFD0;--paper:#EDE5D8;
  --ink:#1B1713;--ink-2:#2A241E;
  --night:#1B1713;--night-2:#120F0C;
  --soft:rgba(27,23,19,.78);--soft-2:rgba(27,23,19,.68);
  --clay:#7E5A22;--clay-deep:#5F4217;--clay-soft:#E3C689;
  --sun:#C9A35E;--olive:#4F5D4A;--sand:#D9B878;
  --line:rgba(27,23,19,.16);--line-light:rgba(246,241,232,.24);
  --rule:rgba(27,23,19,.12);--rule-light:rgba(246,241,232,.22);
  --hdr:rgba(246,241,232,.88);
  --btn-bg:#1B1713;--btn-fg:#F6F1E8;--btn-hover:#7E5A22;
}
html[data-mode="nuit"]{
  color-scheme:dark;
  --bg:#0F0D0B;--bg-2:#171310;--bg-3:#211B15;
  --bone:#1A1612;--bone-2:#211B15;--paper:#171310;
  --ink:#F2EADC;--ink-2:#FFFFFF;
  --night:#0A0807;--night-2:#14100D;
  --soft:rgba(242,234,220,.8);--soft-2:rgba(242,234,220,.68);
  --clay:#D6B170;--clay-deep:#BD9650;--clay-soft:#E6CB97;
  --sun:#D6B170;--olive:#9DB08F;--sand:#D9B878;
  --line:rgba(242,234,220,.17);--line-light:rgba(242,234,220,.2);
  --rule:rgba(242,234,220,.13);--rule-light:rgba(242,234,220,.18);
  --hdr:rgba(15,13,11,.84);
  --btn-bg:#D6B170;--btn-fg:#14100D;--btn-hover:#E6CB97;
}

/* ---------- Règles de robustesse conservées (accessibilité) ---------- */
#pre{display:none!important}
.cursor,.cursor-dot,#cur,#curDot{display:none!important}
body,a,button,input,select,textarea,label{cursor:auto!important}
a,button{cursor:pointer!important}
.faq-a{max-height:none!important;overflow:visible!important}
.faq-a[hidden]{display:none!important}
.faq-item:not(.faq-ready) .faq-q .icon,.faq-item:not(.faq-ready) .faq-icon{display:none}
:is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--sun)!important;outline-offset:3px!important;box-shadow:0 0 0 2px var(--night)}
.skip-link{position:fixed;z-index:20000;inset-block-start:8px;inset-inline-start:8px;padding:12px 20px;background:#F6F1E8;color:#1B1713;transform:translateY(-180%)}
.skip-link:focus{transform:none}
.lightbox:not(.open),.cookie:not(.show){visibility:hidden}
#gl,.gl-fallback{display:none!important}
.hero-watermark{display:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* ---------- Typographie ---------- */
html{font-size:106.25%}
body{font-family:var(--fb);background:var(--bg);color:var(--ink);transition:background-color .5s,color .5s}
h1,h2,h3,h4{font-weight:400}
.sec-head h2{font-size:clamp(2.7rem,10.5vw,6.2rem);line-height:.98;margin-bottom:.12em}
.sec-head .lead{margin-top:26px}
.statement{font-size:clamp(2.1rem,9vw,5rem);line-height:1.02;max-width:18ch}
.statement .word.accent,.sec-head h2 i{font-style:italic;color:var(--clay)}
.eyebrow{font-size:.95rem;font-weight:500;letter-spacing:.01em;text-transform:none;color:var(--clay)}
.eyebrow::before{width:28px;height:1px;border-radius:0;background:var(--sun)}
.btn,.tlink{font-size:.95rem;font-weight:600;letter-spacing:.005em;text-transform:none}
.btn{padding:1em 1.7em}
.btn-solid{background:var(--btn-bg);color:var(--btn-fg)}
.btn-solid::before{background:var(--btn-hover)}
.btn-solid:hover{color:#fff}
html[data-mode="nuit"] .btn-solid:hover{color:#14100D}
.btn-line{border-color:var(--line);color:var(--ink)}
.btn-line:hover{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.lead,.founder-text,.step p,.svc .sbody p{color:var(--soft)}

/* Soulignement qui se dessine au survol */
.f-col a,.blog-link,.tlink-plain{background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .45s var(--e-out),color .3s}
.f-col a:hover,.blog-link:hover,.tlink-plain:hover{background-size:100% 1px}

/* ---------- En-tête : TOUJOURS visible (fixe, ne se masque jamais) ---------- */
html body #header,html body #header.hide{position:fixed!important;inset-inline:0;top:0;transform:none!important;background:transparent!important;border-bottom:1px solid transparent!important;transition:background .4s,border-color .4s,box-shadow .4s}
html body #header::before{content:"";position:absolute;inset:0 0 -34px;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(15,12,9,.55),rgba(15,12,9,0));opacity:1;transition:opacity .4s}
html body #header.solid::before,html body #header:has(.burger.open)::before{opacity:0}
html body #header.solid{background:var(--hdr)!important;border-bottom-color:var(--line)!important;box-shadow:0 10px 30px -22px rgba(0,0,0,.45);-webkit-backdrop-filter:blur(16px) saturate(150%);backdrop-filter:blur(16px) saturate(150%)}
html body #header .wrap.nav{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px;padding-block:8px;min-height:var(--hh)}
html body #header .logo-img{height:44px;width:auto}
html body #header .nav-right{display:flex;align-items:center;gap:8px;margin:0;flex-wrap:nowrap}
html body #header .nav-links{display:none!important;margin:0;border:0;padding:0;overflow:visible}
html body #header .nav-links a{color:#F6F1E8;min-height:0;font-size:.95rem!important;font-weight:500;background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .45s var(--e-out),color .3s;padding-block:6px}
html body #header .nav-links a::after{display:none}
html body #header .nav-links a:hover,html body #header .nav-links a.active{background-size:100% 1px}
html body #header.solid .nav-links a{color:var(--soft)}
html body #header.solid .nav-links a:hover,html body #header.solid .nav-links a.active{color:var(--ink)}
html body #header .snd,html body #header .lang{display:none}
html body #header .nav-cta{display:none!important}
html body #header .burger{display:grid!important;width:44px;height:44px}
html body #header .burger span{background:#F6F1E8;width:22px}
html body #header.solid .burger span,html body #header .burger.open span{background:var(--ink)}
/* CTA d'en-tête : ivoire sur la vidéo, encre (ou or de nuit) une fois l'en-tête plein */
html body #header .nav-cta{background:#F6F1E8;color:#1B1713}
html body #header.solid .nav-cta{background:var(--btn-bg);color:var(--btn-fg)}
@media(min-width:601px){
  html body #header .nav-cta{display:inline-flex!important;min-height:42px;padding:0 1.3em;font-size:.92rem;letter-spacing:.005em;text-transform:none}
  html body #header .lang{display:flex;height:40px;padding:3px;font-size:.8rem;border-color:rgba(246,241,232,.32)}
  html body #header .lang button,html body #header .lang a{color:rgba(246,241,232,.85);padding:6px 11px}
  html body #header .lang button.active{background:#F6F1E8;color:#1B1713}
  html body #header.solid .lang{border-color:var(--line)}
  html body #header.solid .lang button,html body #header.solid .lang a{color:var(--soft)}
  html body #header.solid .lang button.active{background:var(--ink);color:var(--bg)}
}
@media(min-width:1024px){
  :root{--hh:78px}
  html body #header .wrap.nav{display:grid;grid-template-columns:auto 1fr auto;gap:24px;padding-block:12px}
  html body #header .logo-img{height:52px}
  html body #header .nav-links{display:flex!important;gap:30px!important;justify-self:center}
  html body #header .nav-right{justify-self:end;gap:10px}
  html body #header .burger{display:none!important}
  html body #header .snd{display:grid;width:40px;height:40px;border-color:rgba(246,241,232,.32);color:rgba(246,241,232,.88)}
  html body #header.solid .snd{border-color:var(--line);color:var(--soft)}
}
/* Grand écran : logo centré, liens à gauche, actions à droite (comme la référence) */
@media(min-width:1280px){
  html body #header .wrap.nav{grid-template-columns:1fr auto 1fr}
  html body #header .logo{grid-column:2;grid-row:1}
  html body #header .nav-links{grid-column:1;grid-row:1;justify-self:start;gap:32px!important}
  html body #header .nav-right{grid-column:3;grid-row:1}
  html body #header .logo-img{height:58px}
}

/* ---------- Bouton Jour / Nuit ---------- */
.mode-toggle{position:relative;width:44px;height:44px;border-radius:50%;display:grid;place-content:center;flex:none;border:1px solid rgba(246,241,232,.32);color:#F6F1E8;background:rgba(246,241,232,.08);transition:background .3s,border-color .3s,color .3s,transform .3s var(--ease)}
.mode-toggle:hover{transform:rotate(-12deg) scale(1.06);background:rgba(246,241,232,.18)}
html body #header.solid .mode-toggle{border-color:var(--line);color:var(--ink);background:transparent}
.mode-toggle svg{grid-area:1/1;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .6s var(--ease),opacity .35s}
.mode-toggle .ic-moon{opacity:0;transform:rotate(-70deg) scale(.4)}
html[data-mode="nuit"] .mode-toggle .ic-sun{opacity:0;transform:rotate(70deg) scale(.4)}
html[data-mode="nuit"] .mode-toggle .ic-moon{opacity:1;transform:none}
html[data-mode="jour"] .mode-toggle .ic-sun{opacity:1}
/* Transition jour/nuit : activée uniquement pendant la bascule (classe posée par le script) */
html.theming::view-transition-old(root),html.theming::view-transition-new(root){animation:none;mix-blend-mode:normal}
html.theming::view-transition-old(root){z-index:1}
html.theming::view-transition-new(root){z-index:2}

/* ---------- Menu mobile (burger) ---------- */
.mobile-menu{background:var(--bg)!important;color:var(--ink)!important;justify-content:flex-start;padding:calc(var(--hh) + 26px) 26px 32px;overflow-y:auto;visibility:hidden;transition:clip-path .6s var(--ease),visibility 0s .6s}
.mobile-menu.open{visibility:visible;transition:clip-path .6s var(--ease),visibility 0s}
.mobile-menu a{font-family:var(--fd);font-size:clamp(2.2rem,10vw,3rem);line-height:1.1;padding:12px 0;border-bottom:1px solid var(--line)!important;color:var(--ink)!important;opacity:0;transform:translateY(22px);transition:opacity .5s,transform .6s var(--ease),color .3s,padding-inline-start .4s var(--ease)}
.mobile-menu.open a{opacity:1;transform:none}
.mobile-menu.open a:nth-child(1){transition-delay:.12s}.mobile-menu.open a:nth-child(2){transition-delay:.17s}.mobile-menu.open a:nth-child(3){transition-delay:.22s}.mobile-menu.open a:nth-child(4){transition-delay:.27s}.mobile-menu.open a:nth-child(5){transition-delay:.32s}.mobile-menu.open a:nth-child(n+6){transition-delay:.37s}
.mobile-menu a:hover{color:var(--clay)!important;padding-inline-start:12px}
.mobile-menu a[hreflang]{font-family:var(--fb);font-size:1.05rem;border:0!important;padding:10px 0;display:inline-block;margin-inline-end:22px;color:var(--soft)!important}
.mobile-menu .mm-cta{margin-top:26px;border:0!important;background:var(--btn-bg)!important;color:var(--btn-fg)!important;font-family:var(--fb);font-size:1.05rem;padding:1.05em 1.6em;justify-content:center;width:100%}
.mobile-menu .mm-wa{display:block;margin-top:12px;border:1px solid var(--line)!important;border-radius:99px;font-family:var(--fb);font-size:1.02rem;text-align:center;padding:1em 1.4em}

/* ---------- Héros : film plein cadre, titre empilé (petit romain + grand italique) ---------- */
.hero{padding-top:var(--hh)!important;min-height:100svh!important;background:linear-gradient(160deg,#241A12 0%,#0F0C09 100%)}
.hero-inner{padding-block:18px 32px;position:relative;z-index:2}
.hero-video{overflow:hidden}
html[data-mode="jour"] .hero-video-tint{background:linear-gradient(180deg,rgba(20,14,9,.55),rgba(20,14,9,.18) 38%,rgba(20,14,9,.30) 62%,rgba(20,14,9,.78) 100%)!important}
html[data-mode="nuit"] .hero-video-tint{background:linear-gradient(180deg,rgba(8,6,4,.7),rgba(8,6,4,.45) 40%,rgba(8,6,4,.88) 100%)!important}
.hero-top{text-shadow:0 1px 14px rgba(0,0,0,.6);color:#F6F1E8!important}
.hero-eyebrow{font-size:1.02rem;max-width:42ch;color:rgba(246,241,232,.92);margin-inline:auto;text-shadow:0 1px 18px rgba(0,0,0,.5)}
.hero h1{text-shadow:0 2px 34px rgba(0,0,0,.4);color:#F6F1E8}
.hero h1:has(.mask){display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;column-gap:.16em;row-gap:0;line-height:.9}
.hero h1 .mask{display:inline-block;padding-bottom:.14em;margin-bottom:-.14em}
.hero h1 .mask:nth-child(-n+2){font-size:clamp(2rem,8.4vw,3.4rem);letter-spacing:-.005em}
.hero h1 .mask:nth-child(3){flex-basis:100%;text-align:center;font-size:clamp(6.4rem,31vw,17rem);line-height:.82;letter-spacing:-.04em;margin-top:.02em}
.hero h1 .mask:nth-child(3){color:var(--clay-soft)}
.hero h1 .mask:nth-child(3) i{font-style:italic}
@media(min-width:900px){
  .hero h1 .mask:nth-child(-n+2){font-size:clamp(2.6rem,4.6vw,4.4rem)}
  .hero h1 .mask:nth-child(3){font-size:clamp(11rem,19vw,19rem)}
}
.hero-actions .tlink{background:#F6F1E8;color:#1B1713;padding:1em 1.7em;border-radius:99px;font-size:1rem;box-shadow:0 16px 38px -14px rgba(0,0,0,.6);transition:transform .35s var(--ease),background .3s,gap .4s var(--ease)}
.hero-actions .tlink::after{display:none}
.hero-actions .tlink:hover{background:var(--clay-soft);transform:translateY(-2px)}
.hero-video video{animation:drift 26s ease-in-out infinite alternate}
@keyframes drift{from{transform:scale(1)}to{transform:scale(1.07)}}
.scroll-hint{color:rgba(246,241,232,.88)}

/* ---------- Bande défilante : sobre, encre et or ---------- */
.marquee{background:var(--ink)!important;color:var(--bg)!important;border-color:transparent!important;padding-block:20px}
.marquee-track span{font-size:clamp(1.5rem,3.4vw,2.4rem);letter-spacing:.01em;font-style:italic}
.marquee-track span::after{content:"";width:.34em;height:.34em;border-radius:50%;background:var(--sun);font-size:inherit}
html[data-mode="nuit"] .marquee{background:var(--bg-3)!important;color:var(--clay)!important;border-block:1px solid var(--line)!important}

/* ---------- Sections ---------- */
.manifesto,.approach,.contact,.testimonials,.approach .step{background:var(--bg)}
.services,.hbudget{background:var(--bg-2)}
.hbudget-card{background:var(--bg);border-color:var(--line)}
footer{background:var(--night);color:#F6F1E8}
html[data-mode="jour"] footer{background:#1B1713}
.f-col h4{color:var(--clay-soft)}
.f-col a,.f-col p{color:rgba(246,241,232,.84)}
.f-col a:hover{color:#fff}
.f-bottom{color:rgba(246,241,232,.64);border-top-color:rgba(246,241,232,.16)}
.svc{background:var(--bg)!important;border-color:var(--line)!important}
html[data-mode="jour"] .svc{background:#FBF8F2!important}
.svc .sn,.svc .sx{color:var(--clay)}
.svc:hover{box-shadow:0 30px 70px -30px rgba(126,90,34,.4)}
.tcard{background:var(--bg-2)}
.stats-strip,.sstat::after{border-color:var(--line)}
.step::before{color:var(--ink)}
.field input,.field select,.field textarea{background:transparent;color:var(--ink);border-color:var(--line)}
.field label,.field .lab{color:var(--soft)}
html[data-mode="nuit"] ::selection{background:var(--clay);color:#0F0D0B}
::selection{background:var(--sun);color:#1B1713}

/* Fondatrice : arche dorée */
.founder-photo{width:96px;border-radius:999px 999px 16px 16px;box-shadow:0 0 0 3px var(--bg),0 0 0 4px var(--sun)}

/* ---------- Manifeste : mot fantôme + deux arches superposées ---------- */
.manifesto{position:relative;overflow:hidden}
.manifesto::before{content:"Yona";content:"Yona" / "";position:absolute;inset-block-start:-.12em;inset-inline-start:-.05em;font-family:var(--fd);font-style:italic;font-size:clamp(11rem,46vw,38rem);line-height:.8;letter-spacing:-.04em;color:var(--ink);opacity:.055;pointer-events:none;user-select:none;z-index:0}
.manifesto-grid{position:relative;z-index:1}
.mf-visual{position:relative;margin-top:40px;aspect-ratio:5/6;max-width:520px}
.mf-visual .arch{margin:0;position:absolute;overflow:hidden;border-radius:999px 999px 14px 14px;background:var(--bg-3)}
.mf-visual .arch img{display:block;width:100%;height:100%;object-fit:cover}
.mf-visual .a1{inset:0 24% 6% 0}
.mf-visual .a2{width:48%;aspect-ratio:3/4;inset-inline-end:0;inset-block-end:0;border:6px solid var(--bg);box-sizing:content-box}
.mf-visual .a1 img{object-position:46% 60%}
.mf-visual .a2 img{object-position:38% 62%}
@media(min-width:980px){.mf-visual{margin-top:56px}}

/* ---------- Bandeau cookies, barre mobile ---------- */
.cookie{background:var(--bg-2)!important;color:var(--ink);border-top:1px solid var(--line);padding:10px 14px;gap:6px 12px}
.cookie p{color:var(--soft);font-size:.78rem;line-height:1.4}
.cookie p a{color:var(--clay)}
.cookie .btn-line{border-color:var(--line);color:var(--ink)}
.sticky-cta{background:var(--bg);border-top:1px solid var(--line)}
.sticky-cta a{background:var(--btn-bg);color:var(--btn-fg)}
.sticky-cta a+a{background:transparent;border:1px solid var(--line);color:var(--ink)}
@media(max-width:639px){
  .hero{min-height:calc(100svh - 96px)!important}
}

/* ---------- Mouvement : peu, lent, jamais sur le texte courant ----------
   Tout est lié au défilement (aucun JavaScript), sous @supports : sans
   support, la page est simplement statique et lisible.                      */
@supports (animation-timeline:view()){
  /* Héros : le film recule et le titre s'efface en douceur quand on descend */
  .hero-video{animation:hv linear both;animation-timeline:scroll(root);animation-range:0 90vh}
  .hero-inner{animation:hi linear both;animation-timeline:scroll(root);animation-range:0 70vh}
  @keyframes hv{to{transform:translateY(14vh) scale(1.08)}}
  @keyframes hi{to{transform:translateY(-6vh);opacity:.0}}
  /* Arches : se dévoilent de bas en haut, puis la photo se pose */
  .mf-visual .arch{animation:arch both var(--e-out);animation-timeline:view();animation-range:entry 0% entry 70%}
  .mf-visual .a2{animation-range:entry 12% entry 90%}
  .mf-visual .arch img{animation:settle linear both;animation-timeline:view();animation-range:entry 0% exit 60%}
  @keyframes arch{from{clip-path:inset(100% 0 0 0 round 999px 999px 14px 14px)}to{clip-path:inset(0 0 0 0 round 999px 999px 14px 14px)}}
  @keyframes settle{from{transform:scale(1.22) translateY(5%)}to{transform:scale(1) translateY(-2%)}}
  /* Mot fantôme : dérive lente */
  .manifesto::before{animation:ghost linear both;animation-timeline:view();animation-range:entry 0% exit 100%}
  @keyframes ghost{from{transform:translateX(-4%)}to{transform:translateX(8%)}}
  /* Cartes de services et portrait */
  .svc{animation:lift linear both;animation-timeline:view();animation-range:entry 0% entry 55%}
  .founder-photo{animation:float linear both;animation-timeline:view();animation-range:entry 0% exit 100%}
  @keyframes lift{from{transform:translateY(34px) scale(.97)}to{transform:none}}
  @keyframes float{from{transform:translateY(14px)}to{transform:translateY(-14px)}}
}
@media(prefers-reduced-motion:no-preference){
  .btn,.svc,.mode-toggle{will-change:transform}
}

/* Menu ouvert : le bouton jour/nuit reste visible sur le fond clair */
html body #header:has(.burger.open) .mode-toggle{color:var(--ink);border-color:var(--line);background:transparent}

/* ---------- Hébreu : polices hébraïques (Instrument n'a pas de glyphes hébreux) ---------- */
html[lang="he"]{--fd:"Frank Ruhl Libre",Georgia,serif;--fb:"Assistant",system-ui,sans-serif}
html[lang="he"] .hero h1,html[lang="he"] .sec-head h2,html[lang="he"] .statement{letter-spacing:0}
html[lang="he"] .eyebrow,html[lang="he"] .btn,html[lang="he"] .tlink{letter-spacing:.01em}
html[lang="he"] .mobile-menu a{font-family:var(--fd)}
html[lang="he"] .mobile-menu a[hreflang]{font-family:var(--fb)}

/* ---------- Pages secondaires (mariage-*, hébreu, anglais) : titre de héros ---------- */
.hero h1{color:#F6F1E8}
.hero h1 i{font-style:italic;color:var(--clay-soft)}
html[lang="he"] .hero h1 i{font-style:normal}

/* ---------- Pages secondaires : en-tête simple (liens + devis + langue dans .nav-links) ---------- */
@media(min-width:1024px){
  html body #header.hdr-simple .wrap.nav{grid-template-columns:auto 1fr auto}
  html body #header.hdr-simple .logo{grid-column:1;grid-row:1}
  html body #header.hdr-simple .nav-links{grid-column:2;grid-row:1;justify-self:end;flex-wrap:nowrap;gap:22px!important;align-items:center}
  html body #header.hdr-simple .nav-links a{white-space:nowrap;font-size:.92rem!important}
  html body #header.hdr-simple .nav-right{grid-column:3;grid-row:1}
  html body #header.hdr-simple .nav-links .nav-devis{padding:.6em 1.2em;border-radius:99px;background:#F6F1E8;color:#1B1713;background-image:none}
  html body #header.hdr-simple.solid .nav-links .nav-devis{background:var(--btn-bg);color:var(--btn-fg)}
}
@media(min-width:1024px) and (max-width:1279px){
  html body #header.hdr-simple .nav-links{gap:16px!important}
  html body #header.hdr-simple .nav-links a{font-size:.86rem!important}
}

/* ---------- Finitions : fondu entre pages + liseré de lecture (cohérent avec les pages SEO) ---------- */
html body #header{view-transition-name:site-header}
#header::after{content:"";position:absolute;inset:auto 0 -1px;height:2px;background:linear-gradient(90deg,var(--gold,#C9A35E),#F0DBA9);transform-origin:0 50%;transform:scaleX(0);pointer-events:none}
:lang(he) #header::after{transform-origin:100% 50%}
@media(prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root){animation:.28s ease both vt-out}
  ::view-transition-new(root){animation:.4s ease both vt-in}
  ::view-transition-group(site-header){animation-duration:0s}
  @keyframes vt-out{to{opacity:0}}@keyframes vt-in{from{opacity:0}}
}
@supports (animation-timeline:view()){
  @media(prefers-reduced-motion:no-preference){
    #header::after{animation:prog linear both;animation-timeline:scroll(root)}
    @keyframes prog{to{transform:scaleX(1)}}
  }
}

/* ---------- Mode nuit : surfaces claires héritées des styles inline des pages (lisibilité du texte) ---------- */
html[data-mode="nuit"] .intro,
html[data-mode="nuit"] .article,
html[data-mode="nuit"] section[style*="background:var(--cream)"]{background:var(--bg-2)!important;color:var(--ink)}
html[data-mode="nuit"] section[style*="background:#fff"],
html[data-mode="nuit"] section[style*="background:#FFF"]{background:var(--bg)!important;color:var(--ink)}
html[data-mode="nuit"] section[style*="background:var(--paper)"]{background:var(--bg-2)!important}
html[data-mode="nuit"] .card,
html[data-mode="nuit"] .post-card,
html[data-mode="nuit"] .toc,
html[data-mode="nuit"] .prose .tip,
html[data-mode="nuit"] .prose th{background:var(--bg-3);border-color:var(--line);color:var(--ink)}
html[data-mode="nuit"] .card h2,html[data-mode="nuit"] .card h3,html[data-mode="nuit"] .post-card h2,html[data-mode="nuit"] .post-card h3,
html[data-mode="nuit"] .intro .lead,html[data-mode="nuit"] .intro-quote,html[data-mode="nuit"] .intro b{color:var(--ink)}
html[data-mode="nuit"] .card p,html[data-mode="nuit"] .post-card p,html[data-mode="nuit"] .intro p{color:var(--ink-soft,rgba(242,234,220,.78))}
html[data-mode="nuit"] .btn-clay,html[data-mode="nuit"] .btn-clay span{color:#15110D}

/* ---------- Formulaire de contact : champs encadrés, lisibles sur mobile / mode nuit ---------- */
html .field input,html .field select,html .field textarea{
  background-color:var(--bg-2);color:var(--ink);
  border:1px solid color-mix(in srgb,var(--ink) 38%,transparent);border-radius:12px;
  padding:25px 15px 8px;min-height:58px;font-size:1rem;line-height:1.3;
  -webkit-appearance:none;appearance:none;
}
html .field textarea{min-height:120px;padding-top:28px}
html .field input:focus,html .field select:focus,html .field textarea:focus{
  outline:none;border-color:var(--clay);box-shadow:0 0 0 3px color-mix(in srgb,var(--clay) 30%,transparent);
}
html .field input.err,html .field select.err{border-color:#C0392B}
/* étiquette : posée dans le cadre, puis réduite en haut ; l'origine du zoom était invalide (valeur « inline-start ») */
html .field .fl{inset-inline-start:16px;top:19px;font-size:1rem;transform-origin:left top}
html[dir="rtl"] .field .fl{transform-origin:right top}
html .field input:focus~.fl,html .field input:not(:placeholder-shown)~.fl,html .field input.filled~.fl,
html .field select~.fl,html .field input[type="date"]~.fl,
html .field textarea:focus~.fl,html .field textarea:not(:placeholder-shown)~.fl,html .field textarea.filled~.fl{
  transform:translateY(-12px) scale(.76);color:var(--clay);
}
html .field select{background-position:right 16px center;padding-inline-end:40px}
html[dir="rtl"] .field select{background-position:left 16px center}
/* date : sur iOS le champ vide reste blanc ; on affiche un repère explicite */
html .field input[type="date"]{display:block;text-align:start;min-width:0}
html .field input[type="date"]::-webkit-date-and-time-value{text-align:start;min-height:1.3em}
html .field:has(input[type="date"]:not(.filled):not(:focus)) input[type="date"]{color:transparent}
html .field:has(input[type="date"]:not(.filled):not(:focus))::after{
  content:"jj / mm / aaaa";position:absolute;inset-inline-start:16px;top:30px;font-size:1rem;color:var(--soft);pointer-events:none;
}
html[lang="en"] .field:has(input[type="date"]:not(.filled):not(:focus))::after{content:"mm / dd / yyyy"}
html[lang="he"] .field:has(input[type="date"]:not(.filled):not(:focus))::after{content:"dd / mm / yyyy"}
/* la barre « Demander un devis / WhatsApp » ne doit pas recouvrir le formulaire */
.sticky-cta{transition:transform .3s var(--e-out),opacity .3s}
.sticky-cta.is-hidden{transform:translateY(110%);opacity:0;pointer-events:none}
/* flèche des listes déroulantes (l'ancienne image était effacée par « background:transparent ») */
html[data-mode="jour"] .field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%237E5A22' fill='none' stroke-width='1.8'/%3E%3C/svg%3E");background-repeat:no-repeat}
html[data-mode="nuit"] .field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23D6B170' fill='none' stroke-width='1.8'/%3E%3C/svg%3E");background-repeat:no-repeat}
html[data-mode="nuit"] .field input[type="date"]::-webkit-calendar-picker-indicator{filter:invert(.85) sepia(.3);opacity:.9}

/* Débordements horizontaux (QA 02/12) : blocs grille/flex rétractables, longues valeurs saisies coupées. */
.fade,.intro-quote,.lead,.stats-list,.stats-list li,.venue-item{min-width:0;max-width:100%}
.venue-item .vmark{flex:0 1 auto;min-width:0}
[id*="summary"],[class*="summary"]{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:639px){.intro-grid{grid-template-columns:minmax(0,1fr)}}
.stats-list li>*{min-width:0;overflow-wrap:anywhere}
@media(max-width:380px){.stats-list li{flex-wrap:wrap;padding-inline:16px}}
