/* Polices hébergées sur le site (aucun appel à Google Fonts) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/figtree-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/figtree-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/figtree-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/figtree-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== williamluong.fr — palette, typographie et animations =====
   Palette Bordeaux & or. Variables de couleur utilisées par tout le site :
   --al / --ac / --ah : luminosité, saturation, teinte de l'accent (ex-orange)
   --pc / --ph        : saturation et teinte des tons clairs (papier, bordures claires)
   --ic / --ih        : saturation et teinte des tons foncés (encre, textes)
   --a2               : couleur d'appoint (mot du hero, surlignages, particules)
   --tint             : fond des sections alternées */

/* Palette par défaut : Bordeaux & or */
:root {
  --al: 0.45; --ac: 0.15; --ah: 15;
  --pc: 0.014; --ph: 75;
  --ic: 0.025; --ih: 20;
  --a2: oklch(0.82 0.13 80);
  --tint: oklch(0.935 0.025 55);
  --f-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --f-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wl-acc: oklch(var(--al) var(--ac) var(--ah));
  --wl-acc2: var(--a2);
  --wl-ink: oklch(0.22 var(--ic) var(--ih));
  --wl-paper: oklch(0.975 var(--pc) var(--ph));
  --wl-tint: var(--tint);
  --wl-ease: cubic-bezier(.16, 1, .3, 1);
  --wl-spring: cubic-bezier(.3, 1.6, .5, 1);
}


h1, h2, h3 { font-family: var(--f-display); }
h1, h2 { font-variation-settings: "wdth" 88; font-weight: 800 !important; }

/* ===== Fond vivant derrière les sections transparentes ===== */
.wl-amb { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.wl-amb i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .16; will-change: transform; }
.wl-amb i:nth-child(1) { width: 42vw; height: 42vw; left: -10vw; top: 6vh; background: var(--wl-acc); animation: wlBlobA 26s ease-in-out infinite alternate; }
.wl-amb i:nth-child(2) { width: 34vw; height: 34vw; right: -8vw; top: 40vh; background: var(--wl-acc2); opacity: .2; animation: wlBlobB 30s ease-in-out infinite alternate; }
.wl-amb i:nth-child(3) { width: 26vw; height: 26vw; left: 40vw; top: 70vh; background: var(--wl-acc); opacity: .1; animation: wlBlobA 22s ease-in-out infinite alternate-reverse; }
@keyframes wlBlobA { to { transform: translate(22vw, 18vh) scale(1.25); } }
@keyframes wlBlobB { to { transform: translate(-26vw, -14vh) scale(.85); } }

/* ===== Barre de progression ===== */
.wl-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100000; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--wl-acc), var(--wl-acc2)); pointer-events: none; }

/* ===== Rideau d'ouverture ===== */
.wl-intro { position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; background: var(--wl-ink); color: var(--wl-paper); transition: clip-path 1s cubic-bezier(.77, 0, .18, 1); clip-path: inset(0 0 0 0); }
.wl-intro.out { clip-path: inset(0 0 100% 0); }
.wl-intro b { font: 800 clamp(48px, 9vw, 120px)/1 var(--f-display); letter-spacing: -0.04em; display: flex; align-items: center; overflow: hidden; }
.wl-intro b span { display: inline-block; animation: wlIntroL .7s var(--wl-ease) both; }
.wl-intro b span:nth-child(2) { animation-delay: .06s; } .wl-intro b span:nth-child(3) { animation-delay: .12s; }
.wl-intro b span:last-child { color: var(--wl-acc); animation: wlIntroL .7s var(--wl-ease) .18s both, wlBlink 1s steps(1) .9s infinite; }
.wl-intro em { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--wl-acc), var(--wl-acc2)); transform-origin: left; animation: wlBar .9s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes wlIntroL { from { transform: translateY(110%) rotate(8deg); } }
@keyframes wlBar { from { transform: scaleX(0); } }
@keyframes wlBlink { 50% { opacity: 0; } }

/* ===== Entrée du hero ===== */
.wl-ready [data-screen-label="Hero"] h1 ~ * { animation: wlUp .9s var(--wl-ease) .25s both; }
.wl-ready [data-screen-label="Hero"] h1 ~ * ~ * { animation-delay: .35s; }
.wl-ready [data-screen-label="Hero"] h1 ~ * ~ * ~ * { animation-delay: .45s; }
.wl-ready [data-screen-label="Hero"] h1 ~ * ~ * ~ * ~ * { animation-delay: .55s; }
.wl-ready [data-screen-label="Hero"] img { animation: wlImg 1.4s cubic-bezier(.77, 0, .18, 1) .1s both, wlKen 14s ease-in-out 1.6s infinite alternate; }
@keyframes wlH1 { from { clip-path: inset(0 0 100% 0); transform: translateY(60px) skewY(5deg); } to { clip-path: inset(-10% -10% -10% -10%); } }
@keyframes wlUp { from { opacity: 0; transform: translateY(30px); } }
@keyframes wlImg { from { clip-path: inset(100% 0 0 0); scale: 1.25; } to { clip-path: inset(0 0 0 0); } }
@keyframes wlKen { to { scale: 1.07; } }

/* Mot qui tourne (« agents IA », « Hermes Agent »…) : bascule 3D */
@keyframes wordIn {
  0% { opacity: 0; transform: perspective(500px) rotateX(-90deg) translateY(10px); filter: blur(6px); }
  60% { opacity: 1; transform: perspective(500px) rotateX(14deg); filter: blur(0); }
  100% { opacity: 1; transform: none; }
}

/* ===== Titres : balayage de couleur à l'apparition ===== */
h1, h2 {
  background-image: linear-gradient(100deg, currentColor 0 40%, var(--wl-acc) 46%, var(--wl-acc2) 50%, var(--wl-acc) 54%, currentColor 60% 100%);
  background-size: 280% 100%; background-position: 100% 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
h1 *, h2 * { -webkit-text-fill-color: currentColor; }
h2[data-wl-in][data-wl-in][data-wl-in] { animation: wlSweep 1.8s cubic-bezier(.6, 0, .2, 1) .25s both, wlH2 1.1s var(--wl-ease) both; }
.wl-ready h1 { animation-name: wlH1, wlSweep; animation-duration: 1.2s, 2s; animation-delay: 0s, .7s; animation-timing-function: var(--wl-ease), cubic-bezier(.6, 0, .2, 1); animation-fill-mode: both; }
@keyframes wlSweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes wlH2 { from { clip-path: inset(0 0 100% 0); transform: translateY(40px); letter-spacing: .04em; } to { clip-path: inset(-20% -5% -20% -5%); } }

/* ===== Révélations au scroll : flou + échelle + enfants en cascade ===== */
[data-reveal] { filter: blur(10px); transition: opacity .9s var(--wl-ease), transform 1s var(--wl-ease), filter .9s var(--wl-ease), rotate .25s ease-out, scale .35s var(--wl-spring) !important; }
[data-reveal][style*="opacity: 1"] { filter: none; }
[data-reveal][data-wl-in] > :not(h1, h2) { animation: wlKid .8s var(--wl-ease) both; }
[data-reveal][data-wl-in] > :nth-child(2) { animation-delay: .07s; } [data-reveal][data-wl-in] > :nth-child(3) { animation-delay: .14s; }
[data-reveal][data-wl-in] > :nth-child(4) { animation-delay: .21s; } [data-reveal][data-wl-in] > :nth-child(5) { animation-delay: .28s; }
[data-reveal][data-wl-in] > :nth-child(6) { animation-delay: .35s; } [data-reveal][data-wl-in] > :nth-child(7) { animation-delay: .42s; }
[data-reveal][data-wl-in] > :nth-child(8) { animation-delay: .49s; } [data-reveal][data-wl-in] > :nth-child(n+9) { animation-delay: .56s; }
@keyframes wlKid { from { opacity: 0; translate: 0 22px; } }

/* ===== Cartes inclinables et carte recommandée ===== */
[data-wl-tilt] { will-change: rotate; }
[data-wl-reco] { outline: 2px solid var(--wl-acc); outline-offset: 6px; animation: wlReco 2.4s ease-in-out infinite; }
@keyframes wlReco { 50% { outline-offset: 12px; outline-color: color-mix(in oklch, var(--wl-acc) 25%, transparent); } }

/* ===== Boutons : reflet au survol ===== */
[data-magnet] { position: relative; overflow: hidden; isolation: isolate; }
[data-magnet]::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); translate: -130% 0; transition: translate .75s var(--wl-ease); }
[data-magnet]:hover::after { translate: 130% 0; }


/* ===== Particules au clic ===== */
.wl-bit { position: fixed; z-index: 99999; pointer-events: none; width: 8px; height: 8px; }


/* ===== Retouches visuelles ===== */
html, body { overflow-x: clip; }
/* grain papier sur toute la page */
.wl-grain { position: fixed; inset: -50%; z-index: 99996; pointer-events: none; opacity: .055; mix-blend-mode: multiply;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: wlGrain .7s steps(3) infinite; }
@keyframes wlGrain { 33% { transform: translate(-2%, 1.5%); } 66% { transform: translate(1.5%, -2%); } }
/* bulles du chat de démo : apparition à ressort */
[style*="12px 12px 3px 12px"], [style*="12px 12px 12px 3px"] { animation: wlBubble .55s var(--wl-spring) both; }
[style*="12px 12px 3px 12px"] { transform-origin: bottom right; } [style*="12px 12px 12px 3px"] { transform-origin: bottom left; }
@keyframes wlBubble { from { opacity: 0; scale: .4; translate: 0 14px; } }
/* sections teintées et pied de page : s'ouvrent comme une carte au scroll */
@supports (animation-timeline: view()) {
  [data-screen-label="FAQ"], [data-screen-label="Contact"] {
    animation: wlSecIn linear both; animation-timeline: view(); animation-range: entry 0% entry 45%;
  }
  @keyframes wlSecIn { from { clip-path: inset(0 6% 0 6% round 48px); } to { clip-path: inset(0 0 0 0 round 0); } }
}

/* ===== Étiquettes de section (« 01 / HERMES AGENT ») : effet machine à écrire ===== */
[data-wl-label][data-wl-on] { animation: wlType .9s steps(22, end) both; }
[data-wl-label][data-wl-on]::after { content: "_"; margin-left: 2px; color: var(--wl-acc); animation: wlBlink .7s steps(1) 6 both; }
@keyframes wlType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -20px 0 0); } }

/* ===== Décor du hero : formes qui flottent + badge tournant ===== */
.wl-deco { position: absolute; left: 0; top: 0; width: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.wl-deco > span { position: absolute; display: grid; place-items: center; will-change: transform; }
.wl-deco .ast { font: 800 54px/1 var(--f-display); color: var(--wl-acc2); text-shadow: 3px 3px 0 var(--wl-ink); animation: wlSpin 14s linear infinite; }
.wl-deco .sq { width: 46px; height: 46px; border: 2px solid var(--wl-ink); background: var(--wl-acc); box-shadow: 5px 5px 0 var(--wl-ink); animation: wlFloat 7s ease-in-out infinite; }
.wl-deco .ci { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--wl-ink); background: var(--wl-acc2); animation: wlFloat 9s ease-in-out -3s infinite; }
.wl-deco .ring2 { width: 120px; height: 120px; border-radius: 50%; border: 2px dashed var(--wl-acc); animation: wlSpin 30s linear infinite reverse; }
.wl-deco .tri { width: 0; height: 0; border-left: 26px solid transparent; border-right: 26px solid transparent; border-bottom: 44px solid var(--wl-ink); animation: wlFloat 8s ease-in-out -5s infinite; }
@keyframes wlSpin { to { rotate: 360deg; } }
@keyframes wlFloat { 50% { translate: 0 -18px; rotate: 12deg; } }
.wl-badge { position: absolute; z-index: 30; width: 132px; height: 132px; pointer-events: none; }
.wl-badge svg { width: 100%; height: 100%; animation: wlSpin 16s linear infinite; }
.wl-badge text { font: 700 11.5px var(--f-mono); letter-spacing: .2em; fill: var(--wl-ink); }
.wl-badge b { position: absolute; inset: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--wl-acc2); border: 2px solid var(--wl-ink); font: 800 28px var(--f-display); color: var(--wl-ink); animation: wlPulse 2.4s ease-in-out infinite; }
.wl-badge::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--wl-paper); border: 2px solid var(--wl-ink); }
@keyframes wlPulse { 50% { scale: 1.1; } }
@media (max-width: 820px) { .wl-deco > span { opacity: .35; } .wl-badge { width: 100px; height: 100px; } .wl-badge b { inset: 26px; font-size: 22px; } .wl-deco .ring2, .wl-deco .tri { display: none; } }

/* ===== Liens du menu : soulignement qui se dessine ===== */
nav[data-screen-label="Nav"] a[href^="#"]:not([data-magnet]) { background: linear-gradient(var(--wl-acc), var(--wl-acc)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--wl-ease); padding-bottom: 2px; }
nav[data-screen-label="Nav"] a[href^="#"]:not([data-magnet]):hover { background-size: 100% 2px; }


/* ===== Total du simulateur qui saute ===== */
[data-wl-total] { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .wl-intro, .wl-amb, .wl-grain, .wl-deco { display: none !important; }
  [data-reveal] { filter: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* ===== Bouton retour en haut ===== */
.wl-top { position: fixed; right: 20px; bottom: 20px; z-index: 9000; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; cursor: pointer; background: var(--wl-acc); color: var(--wl-paper); border: 2px solid var(--wl-ink); box-shadow: 4px 4px 0 var(--wl-ink); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s, box-shadow .15s; }
.wl-top.on { opacity: 1; transform: none; pointer-events: auto; }
.wl-top:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--wl-ink); }
.wl-top:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--wl-ink); }
.wl-top:focus-visible { outline: 3px solid var(--wl-acc2); outline-offset: 3px; }
.wl-top svg { width: 22px; height: 22px; }
@media (max-width: 820px) { .wl-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .wl-top, .wl-top:hover { transition: none; } }

/* ===== Éléments « offert » : l'inversion du mode sombre les rend sombres sur fond clair, donc lisibles ===== */
.wl-offer-ring { position: absolute; inset: 0; border: 1.5px dashed var(--wl-acc2); pointer-events: none; }
.wl-offer-tag, .wl-offered { color: var(--wl-acc2); }

/* ===== Mode sombre : Anthracite et or (remplace l'ancienne inversion automatique) ===== */
html.wl-dark { color-scheme: dark; --al: 0.77; --ac: 0.115; --ah: 88; --a2: oklch(0.82 0.11 90); --pc: 0.004; --ph: 90; --ic: 0.004; --ih: 90; --tint: oklch(0.19 0 0); --wl-ink: #F2F0EB; --wl-paper: #141414; }
html.wl-dark body { background: #141414 !important; color: #F2F0EB; }
html.wl-dark [data-wl-cursor] { filter: none; }
html.wl-dark [style*="background: oklch(0.975 var(--pc) var(--ph) / 0.85)"] { background:rgba(20,20,20,.85) !important; }
html.wl-dark [style*="border-bottom: 2px solid oklch(0.22 var(--ic) var(--ih))"] { border-color:#55534F !important; }
html.wl-dark [style*="color: oklch(0.22 var(--ic) var(--ih))"] { color:#F2F0EB !important; }
html.wl-dark [style*="color: oklch(0.35 var(--ic) var(--ih))"] { color:#B8B5AE !important; }
html.wl-dark [style*="border: 2px solid oklch(0.22 var(--ic) var(--ih))"] { border-color:#55534F !important; }
html.wl-dark [style*="background: white"] { background:#1F1F1F !important; }
html.wl-dark [style*="background: oklch(0.22 var(--ic) var(--ih))"] { background:#2A2A2A !important; }
html.wl-dark [style*="box-shadow: 4px 4px 0 oklch(0.22 var(--ic) var(--ih))"] { box-shadow:4px 4px 0 #050505 !important; }
html.wl-dark [style*="color: oklch(0.38 var(--ic) var(--ih))"] { color:#B4B1AA !important; }
html.wl-dark [style*="box-shadow: 5px 5px 0 oklch(0.22 var(--ic) var(--ih))"] { box-shadow:5px 5px 0 #050505 !important; }
html.wl-dark [style*="box-shadow: 4px 4px 0 oklch(var(--al) var(--ac) var(--ah))"] { box-shadow:4px 4px 0 oklch(0.5 calc(var(--ac) * 0.8) var(--ah)) !important; }
html.wl-dark [style*="box-shadow: 10px 10px 0 oklch(var(--al) var(--ac) var(--ah))"] { box-shadow:10px 10px 0 oklch(0.5 calc(var(--ac) * 0.8) var(--ah)) !important; }
html.wl-dark [style*="box-shadow: 6px 6px 0 oklch(0.22 var(--ic) var(--ih))"] { box-shadow:6px 6px 0 #050505 !important; }
html.wl-dark [style*="background: repeating-linear-gradient(0deg, transparent, transparent 39px, oklch(0.22 var(--ic) var(--ih) / 0.05) 39px, oklch(0.22 var(--ic) var(--ih) / 0.05) 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, oklch(0.22 var(--ic) var(--ih) / 0.05) 39px, oklch(0.22 var(--ic) var(--ih) / 0.05) 40px)"] { background:repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(242,240,235,0.05) 39px, rgba(242,240,235,0.05) 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(242,240,235,0.05) 39px, rgba(242,240,235,0.05) 40px) !important; }
html.wl-dark [style*="color: oklch(0.5 var(--ic) var(--ih))"] { color:#9D9A93 !important; }
html.wl-dark [style*="box-shadow: 6px 6px 0 oklch(0.22 var(--ic) var(--ih) / 0.12)"] { box-shadow:6px 6px 0 rgba(0,0,0,0.36) !important; }
html.wl-dark [style*="background: oklch(0.975 var(--pc) var(--ph))"] { background:#141414 !important; }
html.wl-dark [style*="color: oklch(0.45 var(--ic) var(--ih))"] { color:#A6A39C !important; }
html.wl-dark [style*="color: oklch(0.42 var(--ic) var(--ih))"] { color:#ADAAA3 !important; }
html.wl-dark [style*="box-shadow: 3px 3px 0 oklch(0.22 var(--ic) var(--ih) / 0.15)"] { box-shadow:3px 3px 0 rgba(0,0,0,0.44999999999999996) !important; }
html.wl-dark [style*="box-shadow: 10px 10px 0 oklch(0.22 var(--ic) var(--ih))"] { box-shadow:10px 10px 0 #050505 !important; }
html.wl-dark [style*="background: oklch(0.93 var(--pc) var(--ph))"] { background:#1F1F1F !important; }
html.wl-dark [style*="box-shadow: 3px 3px 0 oklch(0.22 var(--ic) var(--ih) / 0.12)"] { box-shadow:3px 3px 0 rgba(0,0,0,0.36) !important; }
html.wl-dark [style*="border-top: 2px solid oklch(0.22 var(--ic) var(--ih))"] { border-color:#55534F !important; }
html.wl-dark [style*="border: 2px solid oklch(0.22 var(--ic) var(--ih) / 0.2)"] { border-color:rgba(242,240,235,0.2) !important; }
html.wl-dark [style*="box-shadow: 8px 8px 0 oklch(var(--al) var(--ac) var(--ah))"] { box-shadow:8px 8px 0 oklch(0.5 calc(var(--ac) * 0.8) var(--ah)) !important; }
html.wl-dark [style*="box-shadow: 6px 6px 0 oklch(var(--al) var(--ac) var(--ah))"] { box-shadow:6px 6px 0 oklch(0.5 calc(var(--ac) * 0.8) var(--ah)) !important; }
html.wl-dark [style*="border-right: 2px dashed oklch(0.22 var(--ic) var(--ih) / 0.2)"] { border-color:rgba(242,240,235,0.2) !important; }
html.wl-dark [style*="border: 1px solid oklch(0.22 var(--ic) var(--ih) / 0.25)"] { border-color:rgba(242,240,235,0.25) !important; }
html.wl-dark [style*="-webkit-text-stroke: 2px oklch(0.22 var(--ic) var(--ih) / 0.3)"] { -webkit-text-stroke:2px rgba(242,240,235,.3) !important; }
html.wl-dark [style*="border-left: 2px solid oklch(0.22 var(--ic) var(--ih))"] { border-color:#55534F !important; }
html.wl-dark [style*="border: 2px dashed oklch(0.22 var(--ic) var(--ih) / 0.3)"] { border-color:rgba(242,240,235,0.3) !important; }
html.wl-dark [style*="box-shadow: 4px 4px 0 oklch(0.22 var(--ic) var(--ih) / 0.1)"] { box-shadow:4px 4px 0 rgba(0,0,0,0.30000000000000004) !important; }
html.wl-dark [style*="color: oklch(0.4 var(--ic) var(--ih))"] { color:#B0ADA6 !important; }
html.wl-dark [style*="stroke:oklch(0.22 var(--ic) var(--ih))"] { stroke:#55534F !important; }
html.wl-dark [style*="background: oklch(var(--al) var(--ac) var(--ah))"][style*="color: white"], html.wl-dark [style*="background: oklch(var(--al) var(--ac) var(--ah))"] [style*="color: white"] { color: #141414 !important; }
html.wl-dark ::selection { color: #141414; }
html.wl-dark .wl-intro { background: #141414; color: #F2F0EB; }
html.wl-dark .wl-amb i { opacity: .07 !important; }
html.wl-dark .wl-top { box-shadow: 4px 4px 0 rgba(242,240,235,.25); }
html.wl-dark .wl-top:hover { box-shadow: 6px 6px 0 rgba(242,240,235,.25); }
html.wl-dark [style*="color: oklch(0.25 var(--ic) var(--ih))"] { color: #F2F0EB !important; }
html.wl-dark [style*="background: oklch(0.97 calc(var(--ac) * 0.14) var(--ah))"] { background: oklch(0.3 calc(var(--ac) * 0.45) var(--ah)) !important; }
html.wl-dark [style*="background: var(--wl-acc2)"] { color: #141414 !important; box-shadow: 4px 4px 0 #050505 !important; }

/* ===== Mode clair : le texte d'accent (bordeaux) passe en or sur les fonds sombres ===== */
html:not(.wl-dark) [style*="background: oklch(0.22 var(--ic) var(--ih))"] [style*="color: oklch(var(--al) var(--ac) var(--ah))"],
html:not(.wl-dark) [style*="background: oklch(0.22 var(--ic) var(--ih))"][style*="color: oklch(var(--al) var(--ac) var(--ah))"] { color: var(--a2) !important; }

/* ===== Mobile : zones tactiles plus confortables ===== */
@media (max-width: 820px) {
  nav[data-screen-label] button { min-height: 34px !important; min-width: 34px !important; display: inline-flex !important; align-items: center; justify-content: center; }
  nav[data-screen-label] a[href^="mailto"] { padding: 8px 10px !important; font-size: 12px !important; line-height: 1.25 !important; text-align: center; max-width: 118px; }
  #demo p a, #offres p a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
  footer a, footer button { padding-top: 7px !important; padding-bottom: 7px !important; }
}

/* Le bouton « retour en haut » ne doit pas recouvrir les liens du pied de page */
footer#contact { padding-bottom: 116px !important; }

/* ===== Mode sombre : états de survol lisibles (les règles :hover du site sont définies à part) ===== */
/* « ↻ rejouer » : au survol le fond devient doré, le texte doit être foncé */
html.wl-dark .scp5:hover { color: #141414 !important; }
/* boutons dorés (accueil, Telegram, e-mail) : texte foncé au repos */
html.wl-dark .scp3, html.wl-dark .scp6, html.wl-dark .scp9 { color: #141414 !important; }
/* bouton e-mail du Contact et « Recevoir ce devis » : au survol, fond crème + texte foncé */
html.wl-dark .scp9:hover { background: #F2F0EB !important; color: #141414 !important; border-color: #F2F0EB !important; }
/* lignes de projets : fond gris foncé et texte clair au survol (le fond blanc d'origine rendait le texte invisible) */
html.wl-dark .scpa:hover { background: #2A2A2A !important; color: #F2F0EB !important; }
