/* =========================================================
   WIDNIE DELICE — STYLE « ATELIER » (atelier.css)
   Feuille de style unique des pages publiques.
   Les couleurs suivent la palette choisie dans Admin > Apparence :
     --navy  -> grand aplat (bleu nuit)      --cyan  -> accent principal (mandarine)
     --coral -> second accent (jaune soleil)  --bg    -> fond crème
   ========================================================= */

:root {
  --navy: #26315c; --cyan: #e8613c; --coral: #f6b83c; --bg: #f6f0e6;
  --border: #e5dccd; --text-muted: #6b6660;

  --side: var(--navy);
  --tang: var(--cyan);
  --sun: var(--coral);
  --cream: var(--bg);
  --paper: #fffaf3;
  --ink: #23242a;
  --soft: var(--text-muted);
  --dark: #202125;
  --line: #3a3b40;

  --f-title: var(--font-display, 'Bricolage Grotesque', sans-serif);
  --f-text: var(--font-body, 'Bricolage Grotesque', sans-serif);
  --f-hand: 'Caveat', cursive;
  --f-mono: 'DM Mono', monospace;
}

/* Mode nuit (la lampe ou l'interrupteur) */
body.nuit {
  --cream: #26272e; --paper: #1d1e24; --ink: #f2ece2; --soft: #b7b0a6;
  --dark: #141519; --line: #2c2d33;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--f-text); color: var(--ink); background: var(--paper); line-height: 1.5; overflow-x: hidden; transition: background .4s, color .4s; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200000; background: var(--sun); color: #23242a; border: 2px solid #23242a; border-radius: 10px; padding: 10px 16px; font-weight: 800; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.hand { font-family: var(--f-hand); font-weight: 700; }
.mono { font-family: var(--f-mono); }
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.notranslate { }

/* ---------- Boutons « autocollant » ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 14px 22px; border-radius: 12px; border: 2px solid var(--ink); background: var(--sun); color: #23242a; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; cursor: pointer; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--tang); }
.btn:disabled { opacity: .6; cursor: wait; }

/* =========================================================
   EN-TÊTE COMMUN (généré par site-core.js)
   ========================================================= */
.site-header { position: relative; z-index: 30; }
.site-header .nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.logo { font-family: var(--f-hand); font-size: 40px; font-weight: 700; color: var(--tang); line-height: 1; }
.links { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
.links a { position: relative; }
.links a.active { text-decoration: underline 2px; text-underline-offset: 7px; text-decoration-color: var(--sun); }
.links a:hover { color: var(--sun); }
.tools { display: flex; align-items: center; gap: 14px; }
.lang-switcher { display: flex; border: 2px solid currentColor; border-radius: 10px; overflow: hidden; }
.lang-btn { background: transparent; border: 0; color: inherit; font-family: var(--f-mono); font-size: 12px; padding: 5px 8px; }
.lang-btn.active { background: var(--sun); color: #23242a; }
.switch { width: 50px; height: 26px; border-radius: 99px; background: var(--paper); border: 2px solid currentColor; position: relative; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--sun); transition: left .3s, background .3s; }
body.nuit .switch::after { left: 27px; background: #dfe3ff; }
.menu-toggle { display: none; background: var(--sun); color: #23242a; border: 2px solid currentColor; border-radius: 10px; width: 42px; height: 38px; font-size: 20px; line-height: 1; }

/* pages intérieures : en-tête sur fond sombre */
.page-head { background: var(--dark); color: #f5efe6; position: relative; overflow: hidden; }
.page-head .logo { color: var(--tang); }
.page-head .links a.active { color: var(--sun); }
.page-head .arc { position: absolute; left: -10%; top: -30%; width: 120%; height: 160%; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.page-head .wrap { position: relative; z-index: 2; }

/* menu latéral (mobile) */
.menu-backdrop { position: fixed; inset: 0; background: rgba(20, 21, 25, .7); z-index: 100000; opacity: 0; pointer-events: none; transition: opacity .3s; }
.menu-backdrop.active { opacity: 1; pointer-events: auto; }
.site-menu { position: fixed; top: 0; right: -100%; width: 100%; max-width: 420px; height: 100vh; background: var(--paper); color: var(--ink); z-index: 100001; padding: 30px; transition: right .4s cubic-bezier(.23, 1, .32, 1); overflow-y: auto; border-left: 2px solid var(--ink); }
.site-menu.open { right: 0; }
.menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.menu-close { background: var(--sun); border: 2px solid var(--ink); border-radius: 10px; width: 40px; height: 40px; font-size: 20px; color: #23242a; }
.menu-item { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 2px solid var(--ink); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.menu-item .n { font-family: var(--f-hand); color: var(--tang); font-size: 26px; min-width: 36px; }
.menu-item.active { color: var(--tang); }
.menu-domains { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.menu-domains a { border: 2px solid var(--ink); border-radius: 99px; padding: 8px 14px; font-weight: 700; font-size: 15px; }
.menu-domains a.active { background: var(--ink); color: var(--paper); }
.site-footer .footer-domains { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 22px 0; border-bottom: 1px solid #3a3b40; font-weight: 600; }
.site-footer .footer-domains a:hover { color: var(--sun); }

/* =========================================================
   ACCUEIL
   ========================================================= */
/* bande du haut de l'accueil : le menu reste toujours lisible */
.topbar { background: var(--paper); border-bottom: 2px solid var(--ink); position: relative; z-index: 30; }
.home { position: relative; overflow: hidden; background: var(--cream); color: var(--ink); }
.home::after { content: ''; position: absolute; top: 0; left: 50%; bottom: 0; width: 50%; background: var(--side); transition: background .4s; }
body.nuit .home::after { background: color-mix(in srgb, var(--side) 45%, #101114); }
.home .stage { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 620px; }
.scene { display: block; width: 100%; max-width: 540px; padding: 30px 30px 30px 0; overflow: visible; }
.scene .click { cursor: pointer; transition: filter .2s; outline: none; }
.scene .click:hover, .scene .click:focus-visible { filter: brightness(1.08) drop-shadow(0 0 8px color-mix(in srgb, var(--sun) 70%, transparent)); }
/* couleurs du dessin : elles suivent la palette choisie dans l'admin */
.scene .ink { fill: #23242a; } .scene .line { stroke: #23242a; fill: none; }
.scene .s { stroke: #23242a; }
.scene .ca { fill: var(--tang); } .scene .cb { fill: var(--side); } .scene .cc { fill: var(--sun); }
.scene .cp { fill: #fffaf3; } .scene .cm { fill: #d7dbe6; } .scene .cg { fill: #9aa1ad; }
.scene .screen { fill: color-mix(in srgb, var(--side) 55%, #0b0c10); }
.scene .leaf { fill: color-mix(in srgb, var(--side) 35%, #3f8f6b); }
.scene .hill1 { fill: #3f8f6b; } .scene .hill2 { fill: #2f6e52; } .scene .pot { fill: #c9764f; }
.scene .code1 { fill: var(--sun); } .scene .code2 { fill: color-mix(in srgb, var(--side) 30%, #ffffff); } .scene .code3 { fill: var(--tang); }
@keyframes pop { 0%, 60%, 100% { transform: scale(0); } 70%, 92% { transform: scale(1); } }
.notif { transform-box: fill-box; transform-origin: bottom left; animation: pop 4s infinite; }
.hello { color: #fff; padding: 50px 0 50px 56px; }
.hello .hi { font-family: var(--f-hand); font-weight: 700; font-size: 34px; color: var(--sun); margin-bottom: 14px; }
.roles { font-family: var(--f-title); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; font-size: clamp(30px, 3.4vw, 46px); }
.roles > span { display: block; }
.roles .r { white-space: nowrap; }
.roles > span + span { font-weight: 400; font-size: .72em; margin-top: .25em; color: #e4e8f2; }
.roles > span:first-child::after { content: ''; display: block; width: 90px; height: 6px; border-radius: 6px; background: var(--sun); margin: 14px 0 6px; }
.hello .lede { margin-top: 22px; font-size: 18px; line-height: 1.6; color: #d5daea; max-width: 470px; }
.hello .now { margin-top: 18px; display: inline-flex; gap: 10px; align-items: baseline; font-size: 15px; color: #fff; border: 2px dashed color-mix(in srgb, #ffffff 50%, transparent); border-radius: 12px; padding: 8px 14px; }
.hello .now b { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--sun); white-space: nowrap; }
.hello .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hello .actions .btn.ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: 4px 4px 0 #fff; }
.hint { margin-top: 26px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 1px; color: var(--sun); }
.bubble { position: absolute; z-index: 5; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; padding: 9px 14px; font-size: 14px; font-weight: 600; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.bubble.show { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: .15; } }
.led1 { animation: blink 1.1s infinite; } .led2 { animation: blink .7s infinite .3s; } .led3 { animation: blink 1.6s infinite .6s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-14px); } }
.steam path { animation: steam 2.6s infinite; } .steam path:nth-child(2) { animation-delay: 1.3s; }
@keyframes type { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.code rect { transform-box: fill-box; transform-origin: left; animation: type 4s infinite steps(18); }
.code rect:nth-child(2) { animation-delay: .5s; } .code rect:nth-child(3) { animation-delay: 1s; } .code rect:nth-child(4) { animation-delay: 1.5s; } .code rect:nth-child(5) { animation-delay: 2s; } .code rect:nth-child(6) { animation-delay: 2.5s; }
@keyframes sway { 50% { transform: rotate(2deg); } }
.lamp { transform-origin: 470px 0; animation: sway 5s ease-in-out infinite; }
.glow { opacity: 0; transition: opacity .4s; } body.nuit .glow { opacity: 1; }
.sky { transition: fill .5s; } body.nuit .sky { fill: #2b3366; }
.sunmoon { transition: fill .5s; } body.nuit .sunmoon { fill: #e8ecff; }
.stars { opacity: 0; transition: opacity .5s; } body.nuit .stars { opacity: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* bande « qui suis-je » */
.about { background: var(--paper); padding: 100px 0; }
.about .grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.polaroid { background: #fff; border: 2px solid var(--ink); padding: 14px 14px 56px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-3deg); position: relative; max-width: 360px; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-family: var(--f-hand); font-weight: 700; font-size: 28px; color: #23242a; }
.availability { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 99px; padding: 6px 14px; margin-bottom: 22px; background: var(--paper); }
.availability::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #3bbf7a; animation: blink 1.6s infinite; }
.about h2 { font-family: var(--f-title); font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px; }
.about h2 em { font-style: normal; color: var(--tang); }
.about p { font-size: 18px; line-height: 1.7; color: var(--soft); margin-bottom: 28px; max-width: 560px; }
.about .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* titres de section (accueil) */
.sec { padding: 90px 0; }
.sec-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-title h2 { font-family: var(--f-title); font-size: 56px; font-weight: 300; text-transform: uppercase; letter-spacing: -0.04em; line-height: .95; }
.sec-title h2 .hand { text-transform: none; color: var(--tang); font-size: .6em; letter-spacing: 0; display: inline-block; transform: rotate(-5deg); }
.sec-title a { font-weight: 700; text-decoration: underline 2px; text-underline-offset: 5px; }

/* témoignages */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 28px; box-shadow: 6px 6px 0 var(--ink); }
.quote blockquote { font-size: 18px; line-height: 1.6; margin-bottom: 18px; }
.quote blockquote::before { content: '« '; color: var(--tang); font-weight: 800; }
.quote blockquote::after { content: ' »'; color: var(--tang); font-weight: 800; }
.quote figcaption strong { display: block; font-weight: 800; }
.quote figcaption span { font-family: var(--f-mono); font-size: 12px; color: var(--soft); text-transform: uppercase; letter-spacing: 1px; }

/* appel final */
.cta { background: var(--side); color: #fff; padding: 90px 0; text-align: center; }
.cta h2 { font-family: var(--f-title); font-size: clamp(44px, 7vw, 92px); font-weight: 300; text-transform: uppercase; letter-spacing: -0.04em; line-height: .92; margin-bottom: 30px; }
.cta h2 .hand { text-transform: none; color: var(--sun); font-size: .5em; letter-spacing: 0; display: inline-block; transform: rotate(-5deg); }

/* =========================================================
   PAGES INTÉRIEURES : TITRE GÉANT DÉCALÉ
   ========================================================= */
.giant { padding: 60px 0 70px; font-family: var(--f-title); font-weight: 300; text-transform: uppercase; letter-spacing: -0.035em; line-height: .9; font-size: clamp(56px, 9.4vw, 136px); }
.giant .eyebrow { display: block; font-size: 13px; letter-spacing: 2px; font-weight: 400; margin-bottom: 26px; color: var(--sun); line-height: 1.4; }
.giant .l2 { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .5em; margin-top: .12em; }
.giant .amp { font-size: .55em; padding-left: 1.6em; color: var(--tang); }
.giant .shift { padding-left: 2.2em; }
.giant .hand { text-transform: none; color: var(--sun); font-size: .42em; letter-spacing: 0; transform: rotate(-6deg); display: inline-block; }
.giant .dname { display: block; font-size: min(1em, 10.5vw); overflow-wrap: anywhere; }
.page-intro { display: block; font-family: var(--f-text); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 18px; line-height: 1.6; color: #c9c4bb; max-width: 560px; margin-top: 34px; }
.body { background: var(--paper); padding: 60px 0 100px; }

/* filtres */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { font-family: var(--f-mono); font-size: 13px; border: 2px solid var(--ink); border-radius: 99px; padding: 7px 14px; background: var(--paper); color: var(--ink); }
.chip.active, .chip:hover { background: var(--ink); color: var(--paper); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags span { font-family: var(--f-mono); font-size: 12px; border: 2px solid var(--ink); border-radius: 99px; padding: 4px 11px; }
.empty { text-align: center; padding: 60px 20px; color: var(--soft); font-size: 18px; }

/* services */
.svc { border-top: 2px solid var(--ink); }
.svc .row { display: grid; grid-template-columns: 90px 1.1fr 1.4fr 190px; gap: 28px; padding: 34px 0; border-bottom: 2px solid var(--ink); align-items: start; transition: background .2s, padding .2s; }
.svc .row:hover { background: color-mix(in srgb, var(--sun) 14%, var(--paper)); padding-left: 16px; padding-right: 16px; }
.svc .n { font-family: var(--f-hand); font-weight: 700; font-size: 44px; color: var(--tang); line-height: 1; }
.svc .badge { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; background: var(--sun); color: #23242a; border: 2px solid var(--ink); border-radius: 99px; padding: 3px 10px; margin-bottom: 10px; }
.svc h3 { font-family: var(--f-title); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.svc .sub { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--soft); margin-top: 8px; }
.svc p { color: var(--soft); line-height: 1.6; font-size: 16px; }
.svc .price { text-align: right; }
.svc .price strong { display: block; font-family: var(--f-mono); font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.svc .price a { font-weight: 700; font-size: 14px; text-decoration: underline 2px; text-underline-offset: 4px; }
.svc .price a:hover { color: var(--tang); }
.pay { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pay div { border: 2px solid var(--ink); border-radius: 18px; padding: 26px; background: var(--cream); }
.pay b { display: block; font-family: var(--f-hand); font-size: 32px; color: var(--tang); line-height: 1; margin-bottom: 12px; }
.pay h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.pay p { color: var(--soft); line-height: 1.6; }

/* projets */
.proj { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; padding: 50px 0; border-bottom: 2px solid var(--ink); }
.proj:first-child { padding-top: 10px; }
.proj:nth-child(even) .pic { order: 2; }
.proj .pic { background: var(--side); border-radius: 22px; padding: 26px; transform: rotate(-1.5deg); transition: transform .3s; border: 2px solid var(--ink); }
.proj:nth-child(even) .pic { background: var(--tang); transform: rotate(1.5deg); }
.proj .pic:hover { transform: rotate(0); }
.proj .pic img { border-radius: 12px; border: 2px solid var(--ink); width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; background: #fff; }
.proj .meta { font-family: var(--f-mono); font-size: 13px; color: var(--tang); }
.proj h3 { font-family: var(--f-title); font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 10px 0 16px; }
.proj p { color: var(--soft); line-height: 1.7; margin-bottom: 18px; font-size: 17px; }

/* parcours */
.tl { position: relative; padding: 10px 0 20px; }
.tl::before { content: ''; position: absolute; left: 200px; top: 10px; bottom: 20px; width: 2px; background: var(--ink); }
.tl .it { display: grid; grid-template-columns: 200px 1fr; padding: 24px 0; position: relative; }
.tl .it::before { content: ''; position: absolute; left: 192px; top: 32px; width: 18px; height: 18px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); }
.tl .it.formation::before { background: var(--tang); }
.tl .it.engagement::before { background: var(--side); }
.tl .what ul { margin: 6px 0 10px 18px; color: var(--soft); line-height: 1.6; }
.tl .what li { margin-bottom: 4px; }
.tl .what p + p { margin-top: 8px; }
.tl .when { font-family: var(--f-hand); font-weight: 700; font-size: 28px; color: var(--tang); padding-right: 30px; text-align: right; line-height: 1.1; }
.tl .what { padding-left: 46px; }
.tl .what .kind { font-family: var(--f-mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--soft); }
.tl .what h3 { font-family: var(--f-title); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 4px; line-height: 1.15; }
.tl .what .org { font-weight: 600; margin-bottom: 8px; }
.tl .what p { color: var(--soft); line-height: 1.6; max-width: 660px; }

/* certifications */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cert { background: #fff; color: #23242a; border: 2px solid var(--ink); border-radius: 6px; padding: 22px 20px 20px; min-height: 230px; display: flex; flex-direction: column; position: relative; box-shadow: 6px 6px 0 var(--ink); transition: transform .2s; text-align: left; }
.cert:nth-child(odd) { transform: rotate(-1.2deg); } .cert:nth-child(even) { transform: rotate(1deg); }
.cert:hover { transform: rotate(0) translateY(-4px); }
.cert .grp { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #6b6660; }
.cert h3 { font-family: var(--f-title); font-size: 22px; font-weight: 800; margin: 12px 0; line-height: 1.1; }
.cert .stamp { margin-top: auto; align-self: flex-end; width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--tang); color: var(--tang); display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: 1px; transform: rotate(-14deg); }
.cert .pdf { font-weight: 700; font-size: 14px; text-decoration: underline 2px; text-underline-offset: 4px; position: absolute; left: 20px; bottom: 24px; }
.cert:disabled { cursor: default; }
.pdf-modal { position: fixed; inset: 0; background: rgba(20, 21, 25, .85); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.pdf-modal.active { opacity: 1; pointer-events: auto; }
.pdf-box { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; width: 100%; max-width: 900px; height: 86vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 8px 8px 0 var(--sun); }
.pdf-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 2px solid var(--ink); font-weight: 800; }
.pdf-top button { background: var(--sun); border: 2px solid var(--ink); border-radius: 10px; width: 38px; height: 38px; font-size: 18px; color: #23242a; }
.pdf-box iframe { flex: 1; border: 0; background: #525659; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.big-link { display: block; font-family: var(--f-title); font-size: 38px; font-weight: 800; letter-spacing: -0.03em; padding: 18px 0; border-bottom: 2px solid var(--ink); overflow-wrap: anywhere; }
.big-link small { display: block; font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: var(--soft); margin-bottom: 4px; }
a.big-link:hover { color: var(--tang); }
.socials { display: flex; flex-wrap: wrap; gap: 18px; padding: 18px 0; border-bottom: 2px solid var(--ink); font-weight: 700; }
.socials a { text-decoration: underline 2px; text-underline-offset: 4px; }
.socials a:hover { color: var(--tang); }
.note { font-family: var(--f-hand); font-size: 26px; color: var(--tang); margin-top: 16px; }
.form-card { background: var(--side); color: #fff; border-radius: 22px; padding: 34px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.form-card label { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin: 16px 0 8px; color: #dfe3f0; }
.form-card label:first-of-type { margin-top: 0; }
.form-card input, .form-card textarea, .form-card select { width: 100%; border: 2px solid #23242a; border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 16px; background: #fffaf3; color: #23242a; }
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card .btn { margin-top: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: none; border: 2px solid #23242a; border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; background: #fffaf3; color: #23242a; }
.notice h4 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.notice.ok { border-left: 10px solid #3bbf7a; }
.notice.err { border-left: 10px solid #e2401c; }

/* =========================================================
   DOMAINES
   ========================================================= */
.doms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dom { position: relative; display: flex; flex-direction: column; background: var(--cream); border: 2px solid var(--ink); border-radius: 22px; padding: 30px; box-shadow: 6px 6px 0 var(--ink); transition: transform .2s, box-shadow .2s; }
.dom:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--tang); }
.dom .n { font-family: var(--f-hand); font-weight: 700; font-size: 34px; color: var(--tang); line-height: 1; }
.dom h3 { font-family: var(--f-title); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 6px; }
.dom .eye { font-family: var(--f-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; }
.dom p { color: var(--soft); line-height: 1.6; }
.dom ul { list-style: none; margin: 18px 0 0; border-top: 2px solid var(--ink); }
.dom li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--ink); font-size: 15px; }
.dom li b { font-family: var(--f-mono); font-weight: 400; font-size: 13px; white-space: nowrap; }
.dom .go { margin-top: auto; padding-top: 18px; font-weight: 800; }
.dom:hover .go { color: var(--tang); }

.block { background: var(--paper); padding: 70px 0; }
.block.alt { background: var(--cream); }
.block-title { font-family: var(--f-title); font-size: 46px; font-weight: 300; text-transform: uppercase; letter-spacing: -0.04em; line-height: 1; margin-bottom: 30px; }
.block-intro { color: var(--soft); font-size: 18px; line-height: 1.6; max-width: 640px; margin: -14px 0 30px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: s; }
.steps li { border: 2px solid var(--ink); border-radius: 18px; padding: 22px; background: var(--cream); display: flex; flex-direction: column; gap: 10px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.steps .n { font-family: var(--f-hand); font-size: 34px; color: var(--tang); line-height: 1; }
.faqs { border-top: 2px solid var(--ink); }
.faq { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 20px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 30px; color: var(--tang); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 22px; color: var(--soft); line-height: 1.7; max-width: 760px; }
.others { display: flex; flex-wrap: wrap; gap: 14px; }
.others a { border: 2px solid var(--ink); border-radius: 99px; padding: 10px 18px; font-weight: 800; background: var(--cream); }
.others a:hover { background: var(--ink); color: var(--paper); }

/* compétences */
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.skill-group { background: var(--cream); border: 2px solid var(--ink); border-radius: 22px; padding: 28px; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; }
.skill-group .n { font-family: var(--f-hand); font-weight: 700; font-size: 34px; color: var(--tang); line-height: 1; }
.skill-group h3 { font-family: var(--f-title); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 18px; }
.skill-group .more { margin-top: 20px; font-weight: 800; }
.skill-group .more:hover { color: var(--tang); }
.skills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.skills li { border: 2px solid var(--ink); border-radius: 99px; padding: 8px 16px; background: var(--paper); font-weight: 600; }

/* outils */
.tool.diag, .tool.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }
.tool .checks { display: flex; flex-direction: column; gap: 10px; }
.tool .check, .tool .base-line { display: flex; align-items: center; gap: 14px; border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; background: var(--paper); cursor: pointer; font-weight: 600; }
.tool .base-line { cursor: default; background: transparent; border-style: dashed; justify-content: space-between; }
.tool .check b, .tool .base-line b { margin-left: auto; font-family: var(--f-mono); font-weight: 400; font-size: 13px; white-space: nowrap; }
.tool .check input { width: 20px; height: 20px; accent-color: var(--tang); flex-shrink: 0; }
.tool .check:has(input:checked) { background: color-mix(in srgb, var(--sun) 25%, var(--paper)); }
.tool .result { position: sticky; top: 20px; background: var(--side); color: #fff; border: 2px solid var(--ink); border-radius: 22px; padding: 28px; box-shadow: 6px 6px 0 var(--ink); }
.tool .result .placeholder { color: #dfe3f0; }
.tool .answers { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.tool .answers li { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px dashed rgba(255,255,255,.35); padding-bottom: 12px; }
.tool .answers span { color: #dfe3f0; line-height: 1.5; }
.tool .result .btn { margin-top: 20px; }
.tool .total { font-family: var(--f-title); font-size: 52px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0; }
.tool .small { font-size: 14px; color: #dfe3f0; }
.tool .eyebrow { color: var(--sun); }
.tool.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat { border: 2px solid var(--ink); border-radius: 18px; padding: 26px; background: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
.stat .num { display: block; font-family: var(--f-title); font-size: 56px; font-weight: 800; letter-spacing: -0.04em; color: var(--tang); line-height: 1; margin-bottom: 8px; }
.stat span:last-child { color: var(--soft); font-weight: 600; }

/* avant / après */
.compare { position: relative; overflow: hidden; padding: 0 !important; }
.compare img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 0 !important; border-radius: 20px !important; }
.compare .before { position: absolute; inset: 0; height: 100%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--sun); transform: translateX(-50%); pointer-events: none; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag-before, .compare .tag-after { position: absolute; top: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 99px; pointer-events: none; }
.compare .tag-before { left: 12px; } .compare .tag-after { right: 12px; }

/* =========================================================
   PIED DE PAGE + BOUTONS FLOTTANTS
   ========================================================= */
.site-footer { background: #23242a; color: #f5efe6; padding: 60px 0 40px; }
.site-footer .top { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid #3a3b40; }
.site-footer .logo { color: var(--sun); font-size: 54px; }
.site-footer .role { color: #b7b0a6; margin-top: 6px; }
.site-footer .footer-socials { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 700; }
.site-footer .footer-socials a:hover { color: var(--sun); }
.site-footer .privacy { margin-top: 14px; font-size: 12px; line-height: 1.5; color: #8a847b; max-width: 720px; }
.site-footer .legal { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; color: #9a948b; }

/* icônes des liens : pastilles façon autocollant */
.ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 2px solid #23242a; background: var(--sun); color: #23242a; box-shadow: 3px 3px 0 #23242a; transition: transform .15s, box-shadow .15s, background .15s; }
.ico svg { width: 22px; height: 22px; }
.ico-whatsapp { background: #25d366; }
.ico-linkedin, .ico-facebook { background: color-mix(in srgb, var(--side) 30%, #ffffff); }
.ico-github, .ico-email, .ico-location { background: var(--paper); }
a:hover > .ico, a:focus-visible > .ico { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #23242a; }
.site-footer .footer-socials { gap: 14px; }
.site-footer .footer-socials .ico { box-shadow: 3px 3px 0 var(--sun); }
.big-link.with-ico { font-size: clamp(22px, 2.5vw, 32px); overflow-wrap: normal; word-break: normal; }
.big-link.with-ico span:not(.slot):not(.ico) { overflow-wrap: anywhere; }
.big-link.with-ico { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
.big-link.with-ico .slot { grid-row: span 2; }
.socials a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.socials a span { text-decoration: underline 2px; text-underline-offset: 4px; }

/* boutons flottants : petits et discrets */
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 9990; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #25d366; color: #0b2e18; border: 2px solid #23242a; border-radius: 50%; box-shadow: 3px 3px 0 #23242a; transition: transform .15s, box-shadow .15s; }
.whatsapp-float:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #23242a; }
.whatsapp-float svg { width: 22px; height: 22px; }
.whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =========================================================
   ASSISTANT IA
   ========================================================= */
.wd-chat-fab { position: fixed; right: 20px; bottom: 78px; z-index: 9991; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #23242a; background: var(--sun); color: #23242a; box-shadow: 3px 3px 0 #23242a; font-family: var(--f-mono); font-weight: 500; font-size: 14px; letter-spacing: 1px; transition: transform .15s, box-shadow .15s; }
.wd-chat-fab:hover, .wd-chat.open .wd-chat-fab { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #23242a; }
.wd-chat-panel { position: fixed; right: 20px; bottom: 140px; z-index: 9992; width: 370px; max-width: calc(100vw - 28px); max-height: min(560px, calc(100vh - 170px)); display: flex; flex-direction: column; background: #fffaf3; color: #23242a; border: 2px solid #23242a; border-radius: 20px; box-shadow: 8px 8px 0 #23242a; overflow: hidden; font-family: var(--f-text); }
.wd-chat-panel[hidden] { display: none; }
.wd-chat-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: var(--side); color: #fff; }
.wd-chat-top .who { display: flex; align-items: center; gap: 10px; }
.wd-chat-top img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.wd-chat-top strong { font-size: 15px; }
.wd-chat-top .badge { margin-left: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; background: var(--sun); color: #23242a; border: 2px solid #23242a; border-radius: 99px; padding: 1px 8px; vertical-align: 2px; }
.wd-chat-close { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #23242a; background: var(--sun); color: #23242a; font-size: 20px; line-height: 1; }
.wd-chat-note { font-size: 12px; line-height: 1.4; color: #6b6660; padding: 8px 16px; border-bottom: 1px dashed #23242a; background: #f5efe6; }
.wd-chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 140px; }
.wd-msg { max-width: 86%; padding: 10px 13px; border: 2px solid #23242a; border-radius: 14px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.wd-msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.wd-msg.user { align-self: flex-end; background: var(--side); color: #fff; border-bottom-right-radius: 4px; }
.wd-msg.typing { color: #6b6660; letter-spacing: 3px; }
.wd-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.wd-chat-chips button { border: 2px solid #23242a; border-radius: 99px; background: #fff; color: #23242a; font-size: 13px; padding: 5px 11px; }
.wd-chat-chips button:hover { background: var(--sun); }
.wd-chat-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 2px solid #23242a; }
.wd-chat-form input { flex: 1; min-width: 0; border: 2px solid #23242a; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; color: #23242a; }
.wd-chat-form button { width: 42px; border-radius: 10px; border: 2px solid #23242a; background: var(--sun); color: #23242a; font-size: 18px; font-weight: 800; }
.wd-chat-wa { display: block; text-align: center; font-size: 13px; font-weight: 700; padding: 9px; background: #25d366; color: #0b2e18; border-top: 2px solid #23242a; }
@media (max-width: 600px) {
  .wd-chat-fab { right: 14px; bottom: 68px; width: 44px; height: 44px; }
  .wd-chat-panel { right: 10px; bottom: 124px; }
}

/* =========================================================
   TABLETTE & TÉLÉPHONE
   ========================================================= */
@media (max-width: 980px) {
  .links { display: none; }
  .menu-toggle { display: block; }
  .home .stage { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .home::after { display: none; }
  .scene { margin: 0 auto; max-width: 480px; padding: 20px 0; }
  .hello { background: var(--side); margin: 0 -40px; padding: 40px 40px 56px; }
  body.nuit .hello { background: color-mix(in srgb, var(--side) 45%, #101114); }
  .about .grid, .contact, .proj { grid-template-columns: 1fr; gap: 34px; }
  .proj:nth-child(even) .pic { order: 0; }
  .svc .row { grid-template-columns: 60px 1fr; }
  .svc .row p, .svc .price { grid-column: 2; text-align: left; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .pay { grid-template-columns: 1fr; }
  .doms, .tool.diag, .tool.calc, .skill-grid { grid-template-columns: minmax(0, 1fr); }
  .tool .result { position: static; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .site-header .nav { padding: 16px 0; }
  .logo { font-size: 34px; }
  .tools { gap: 8px; }
  .lang-btn { padding: 5px 6px; }
  .hello { margin: 0 -18px; padding: 34px 18px 48px; }
  .hello .hi { font-size: 30px; }
  .hello .lede { font-size: 16px; }
  .about { padding: 60px 0; }
  .about h2, .proj h3 { font-size: 34px; }
  .polaroid { margin: 0 auto; max-width: 280px; }
  .sec { padding: 60px 0; }
  .sec-title h2 { font-size: 40px; }
  .giant { padding: 30px 0 50px; }
  .giant .amp, .giant .shift { padding-left: .5em; }
  .tl::before { left: 8px; }
  .tl .it::before { left: 0; }
  .tl .it { grid-template-columns: 1fr; padding-left: 36px; }
  .tl .when { text-align: left; padding: 0 0 6px; }
  .tl .what { padding-left: 0; }
  .certs { grid-template-columns: 1fr; }
  .block { padding: 50px 0; }
  .block-title { font-size: 34px; }
  .dom { padding: 22px; }
  .dom h3 { font-size: 28px; }
  .big-link { font-size: 26px; }
  .form-card { padding: 24px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
