/* ════════════════════════════════════════════════════
   KAIROSTECH — Feuille de style partagée
   ════════════════════════════════════════════════════ */

/* ── Fonts auto-hébergées (FOSS — OFL 1.1) ── */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/Outfit-Light.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Outfit-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Outfit-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Outfit-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Outfit-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Outfit-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/IBMPlexMono-Medium.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/IBMPlexMono-SemiBold.woff2') format('woff2'); }

/* ── Variables — Mode sombre (défaut) ── */
:root {
    --bg:             #1C2333;
    --bg-card:        #232D3F;
    --bg-body:        linear-gradient(180deg,#1C2333 0%,#1F2840 55%,#202B42 100%);
    --nav-bg:         rgba(28,35,51,.94);
    --drawer-bg:      rgba(28,35,51,.98);
    --watermark-color: rgba(16,185,129,0.022);
    --logo-col:   #ffffff;
    --txt-hi:     #E6ECF5;
    --txt-mid:    #8A9BB8;
    --txt-dim:    #8195B5;
    --em:         #10B981;
    --em-dim:     rgba(16,185,129,.10);
    --em-glow:    rgba(16,185,129,.22);
    --cy:         #06B6D4;
    --go:         #F59E0B;
    --bdr:        rgba(16,185,129,.15);
    --bdr-sub:    rgba(255,255,255,.06);
    --sans:       'Outfit', sans-serif;
    --mono:       'IBM Plex Mono', monospace;
    --ease:       cubic-bezier(.16,1,.3,1);
    --nav-h:      68px;
    --s-pt:       calc(var(--nav-h) + 72px);
    --s-pb:       80px;
    --r:          4px;
}

/* ── Mode clair — ardoise industrielle ── */
html.light {
    --bg:              #E8ECF1;
    --bg-card:         #D8DDE6;
    --bg-body:         linear-gradient(180deg,#E8ECF1 0%,#E2E7EE 55%,#DCE2EA 100%);
    --nav-bg:          rgba(222,227,234,.96);
    --drawer-bg:       rgba(222,227,234,.99);
    --watermark-color: rgba(15,22,35,0.042);
    --logo-col:   #0F1623;
    --txt-hi:     #0F1623;
    --txt-mid:    #38485E;
    --txt-dim:    #58687E;
    --em:         #087A55;
    --em-dim:     rgba(10,150,104,.12);
    --em-glow:    rgba(10,150,104,.20);
    --cy:         #0596AF;
    --go:         #B86A00;
    --bdr:        rgba(10,150,104,.20);
    --bdr-sub:    rgba(0,0,0,.09);
}

/* ── White Mode : masquer le filigrane grille (Blueprint) ── */
html.light body {
    background-image: var(--bg-body);
    background-size: auto;
}

/* ── Illustrations SVG : conserver fond sombre en mode clair (conçues pour dark) ── */
html.light .pillar-illustration svg > rect:first-child,
html.light .hero-illustration svg > rect:first-child { fill:#1C2535 }
html.light .news-img svg > rect:first-child,
html.light .article-hero svg > rect:first-child { fill:var(--bg-card) }
html.light .news-img,
html.light .article-hero,
html.light .pillar-illustration,
html.light .hero-illustration { border-color:rgba(0,0,0,.14); box-shadow:0 2px 10px rgba(0,0,0,.08) }

/* ── Transition thème ── */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
    transition: background-color .35s ease, background .35s ease, color .3s ease,
                border-color .3s ease, box-shadow .3s ease !important;
}

/* ════════════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════════════ */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box }
html { scroll-behavior:smooth; font-size:110% }
body {
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--watermark-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--watermark-color) 1px, transparent 1px),
        var(--bg-body);
    background-size: 48px 48px, 48px 48px, auto;
    color: var(--txt-hi);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
    padding-left:  env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
:focus-visible { outline:2px solid var(--em); outline-offset:3px; border-radius:2px }

.skip-link {
    position:absolute; top:-100%; left:1rem; z-index:9999;
    background:var(--em); color:#0a1a12; padding:.5rem 1rem;
    border-radius:3px; font-weight:700; font-size:.85rem;
    text-decoration:none; transition:top .2s;
}
.skip-link:focus { top:1rem }

/* ════════════════════════════════════════════════════
   TYPOGRAPHIE
   ════════════════════════════════════════════════════ */
h1,h2,h3,h4 { font-family:var(--sans); font-weight:700; line-height:1.2 }
h1 { font-size:clamp(2.18rem,5.5vw,3.82rem); margin-bottom:1.4rem }
h2 { font-size:clamp(1.8rem,3.5vw,2.6rem); margin-bottom:1.4rem }
h3 { font-size:1.15rem; font-weight:700; margin-bottom:.6rem }
p  { color:var(--txt-mid); margin-bottom:1rem; font-size:1rem; font-weight:300 }
strong { color:var(--txt-hi); font-weight:600 }
a  { transition:color .25s }

.mono-label {
    font-family:var(--mono); font-size:.72rem; letter-spacing:.16em;
    text-transform:uppercase; color:var(--em); display:block; margin-bottom:1rem;
}

/* ════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════ */
.container { max-width:1200px; margin:0 auto; padding:0 2rem }

/* SPA sections (index.html uniquement) */
section { padding:var(--s-pt) 0 var(--s-pb); display:none; background:transparent }
section.active { display:block; animation:fadeUp .6s var(--ease) forwards }
#home.active { min-height:100vh; display:flex; align-items:center }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* Pages statiques (articles, legal) */
.static-main { padding-top:var(--nav-h); min-height:100vh }

/* ════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════ */
nav {
    position:fixed; top:0; width:100%; z-index:1000;
    background:var(--nav-bg); backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px); border-bottom:1px solid var(--bdr);
}
.nav-content {
    display:flex; justify-content:space-between; align-items:center;
    height:var(--nav-h); padding:0 2rem; max-width:1400px; margin:0 auto; gap:1rem;
}
.logo { display:flex; align-items:center; text-decoration:none; flex-shrink:0; }
.logo-mark {
    font-family:var(--sans); font-size:1.35rem; font-weight:800;
    color:var(--logo-col); letter-spacing:-.02em; flex-shrink:0; line-height:1;
}
.logo-mark em { color:var(--em); font-style:normal }

.nav-links { display:flex; gap:1.6rem; align-items:center }
.nav-links a:not(.btn-nav) {
    text-decoration:none; color:var(--txt-mid); font-weight:500;
    transition:color .25s; font-size:.88rem;
}
.nav-links a:not(.btn-nav):hover, .nav-links a:not(.btn-nav).active { color:var(--txt-hi) }

.btn-nav {
    background:var(--em); color:#0a1a12; padding:.5rem 1.2rem;
    border-radius:var(--r); font-weight:600; font-size:.85rem;
    border:none; cursor:pointer; font-family:var(--sans);
    transition:transform .25s var(--ease), box-shadow .25s var(--ease);
    text-decoration:none; display:inline-block;
}
.btn-nav:hover { transform:translateY(-1px); box-shadow:0 6px 20px var(--em-glow) }

/* Contrôles thème + langue */
.nav-controls {
    display:flex; align-items:center; gap:.4rem; flex-shrink:0;
    padding-left:.9rem; border-left:1px solid var(--bdr-sub);
}
.ctrl-btn {
    display:flex; align-items:center; justify-content:center;
    min-width:32px; height:32px; padding:0 .45rem; border-radius:var(--r);
    border:1px solid var(--bdr-sub); background:transparent; color:var(--txt-dim);
    cursor:pointer; font-family:var(--mono); font-size:.68rem; font-weight:600;
    letter-spacing:.06em; transition:background .2s, border-color .2s, color .2s;
}
.ctrl-btn svg { width:13px; height:13px; flex-shrink:0 }
.ctrl-btn:hover { border-color:var(--em); color:var(--em); background:var(--em-dim) }
.ctrl-btn.on   { border-color:var(--em); color:var(--em); background:var(--em-dim) }
.ctrl-sep { color:var(--bdr-sub); font-family:var(--mono); font-size:.7rem; user-select:none }

/* Hamburger */
.burger {
    display:none; flex-direction:column; justify-content:space-between;
    width:28px; height:18px; background:none; border:none; cursor:pointer; padding:0;
}
.burger span { display:block; height:2px; background:var(--txt-hi); border-radius:2px; transition:transform .3s var(--ease), opacity .3s }
.burger.open span:nth-child(1) { transform:translateY(8px) rotate(45deg) }
.burger.open span:nth-child(2) { opacity:0 }
.burger.open span:nth-child(3) { transform:translateY(-8px) rotate(-45deg) }

/* Drawer mobile */
.nav-drawer {
    display:none; position:fixed; top:var(--nav-h); left:0; right:0;
    background:var(--drawer-bg); border-bottom:1px solid var(--bdr);
    padding:1.5rem 2rem 2rem; z-index:999; flex-direction:column; gap:1.1rem;
    animation:drawerIn .3s var(--ease);
}
.nav-drawer.open { display:flex }
.nav-drawer a {
    text-decoration:none; color:var(--txt-mid); font-weight:500;
    font-size:1.05rem; padding:.35rem 0; border-bottom:1px solid var(--bdr-sub); transition:color .2s;
}
.nav-drawer a:last-of-type { border-bottom:none }
.nav-drawer a:hover, .nav-drawer a.active { color:var(--txt-hi) }
.btn-nav-m {
    margin-top:.3rem; background:var(--em); color:#ffffff;
    padding:.85rem 1.2rem; border-radius:var(--r); font-weight:700;
    font-size:1rem; text-align:center; border:none; cursor:pointer;
    display:block; text-decoration:none; font-family:var(--sans);
}
.drawer-controls {
    display:flex; align-items:center; gap:.5rem; flex-wrap:wrap;
    padding-top:1rem; margin-top:.2rem; border-top:1px solid var(--bdr-sub);
}
.drawer-ctrl-label {
    font-family:var(--mono); font-size:.63rem; letter-spacing:.1em;
    color:var(--txt-dim); text-transform:uppercase;
}
@keyframes drawerIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

/* ════════════════════════════════════════════════════
   BOUTONS
   ════════════════════════════════════════════════════ */
.btn {
    display:inline-block; padding:.8rem 1.8rem; border-radius:var(--r);
    font-weight:600; text-decoration:none; cursor:pointer; border:none;
    font-family:var(--sans); font-size:.9rem; letter-spacing:.03em;
    transition:transform .28s var(--ease), box-shadow .28s var(--ease),
               background .25s, color .25s, border-color .25s;
}
.btn-primary { background:var(--em); color:#0a1a12 }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 8px 24px var(--em-glow) }
.btn-outline { border:1px solid rgba(16,185,129,.22); color:var(--txt-mid); background:transparent }
.btn-outline:hover { border-color:var(--em); color:var(--txt-hi); background:var(--em-dim) }
.btn-lg { font-size:1.05rem; padding:1rem 2.4rem }

/* ════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════ */
.card {
    background:var(--bg-card); border:1px solid var(--bdr-sub);
    padding:2rem 2.2rem; border-radius:var(--r);
    transition:border-color .3s, transform .3s var(--ease);
    position:relative; overflow:hidden;
}
.card:hover { border-color:var(--bdr); transform:translateY(-3px) }
.stripe { position:absolute; top:0; left:0; right:0; height:2px }
.stripe.em { background:linear-gradient(90deg,var(--em),#059669) }
.stripe.cy { background:linear-gradient(90deg,var(--cy),#3B82F6) }
.stripe.go { background:linear-gradient(90deg,var(--go),#EF4444) }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem }

/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */
#home .container { width:100% }
.hero-title em { font-style:normal; color:var(--em) }
.hero-sub-grid {
    display:grid; grid-template-columns:repeat(3,1fr);
    margin-top:4rem; gap:1.5rem;
}
.hsi {
    padding:1.6rem 1.8rem; background:var(--bg-card); transition:background .25s;
    border:1px solid var(--bdr-sub); border-radius:var(--r);
}
.hsi:hover { background:rgba(16,185,129,.06) }
.hsi h2 { font-size:.95rem; color:var(--txt-hi); margin-bottom:.35rem; font-weight:600 }
.hsi p  { font-size:.9rem; margin:0 }


/* ════════════════════════════════════════════════════
   OFFRES
   ════════════════════════════════════════════════════ */
.pillar {
    border:1px solid var(--bdr-sub); border-radius:5px; overflow:hidden;
    background:var(--bg-card); transition:border-color .3s, transform .3s var(--ease);
    display:flex; flex-direction:column;
}
.pillar:hover { border-color:rgba(16,185,129,.28); transform:translateY(-4px) }
.pillar-head { padding:2rem 2.2rem 1.6rem; border-bottom:1px solid var(--bdr-sub) }
.pmark { width:32px; height:3px; border-radius:2px; margin-bottom:1.2rem }
.pmark.em { background:var(--em) }
.pmark.cy { background:var(--cy) }
.pmark.go { background:var(--go) }
.pillar-head h3 { font-size:1.2rem; color:var(--txt-hi); margin-bottom:.5rem }
.pillar-head p  { font-size:.92rem; margin:0 }
.pillar-body { padding:1.6rem 2.2rem; flex:1 }
.sline { display:flex; gap:.75rem; align-items:flex-start; margin-bottom:1rem }
.sdot  { width:5px; height:5px; border-radius:50%; margin-top:.58rem; flex-shrink:0 }
.sdot.em { background:var(--em) }
.sdot.cy { background:var(--cy) }
.sdot.go { background:var(--go) }
.sline p { margin:0; font-size:.92rem }
.pillar-foot { padding:1.4rem 2.2rem; border-top:1px solid var(--bdr-sub) }
.pillar-foot .btn-outline { width:100%; text-align:center; display:block }
.pillar-illustration {
    width:100%; aspect-ratio:16/7; overflow:hidden; border-bottom:1px solid var(--bdr-sub);
    background:var(--bg-card); flex-shrink:0; position:relative;
}
.pillar-illustration svg { width:100%; height:100%; display:block }
.pillar-illustration svg > rect:first-child { fill:var(--bg-card) }
.offres-grid .pillar + .pillar { border-left:1px solid var(--bdr-sub) }

/* ── Hero 2 colonnes ── */
.hero-inner {
    display:grid; grid-template-columns:3fr 2fr; gap:3.5rem; align-items:center; width:100%;
}
.hero-text { min-width:0 }
.hero-illustration {
    aspect-ratio:4/3; border-radius:var(--r); overflow:hidden;
    border:1px solid var(--bdr-sub); background:var(--bg-card);
    position:relative; flex-shrink:0;
}
.hero-illustration svg { width:100%; height:100%; display:block }
.hero-illustration svg > rect:first-child { fill:var(--bg-card) }

/* ════════════════════════════════════════════════════
   CAS CLIENTS
   ════════════════════════════════════════════════════ */
.cas-list  { display:flex; flex-direction:column; gap:1.5rem; margin-top:1rem }
.cas-grid  { display:grid; grid-template-columns:200px 1fr; gap:2rem; align-items:start }
.cas-company h3 { font-size:1.25rem; margin-bottom:.2rem }
.cas-company p  { font-size:.85rem; margin:0 }
.cas-tag {
    display:inline-block; font-family:var(--mono); font-size:.62rem;
    letter-spacing:.1em; padding:.2rem .6rem; border-radius:2px;
    margin-bottom:.8rem; text-transform:uppercase;
}
.cas-tag.em { background:var(--em-dim); color:var(--em) }
.cas-tag.cy { background:rgba(6,182,212,.1); color:var(--cy) }
.cas-result {
    display:flex; align-items:flex-start; gap:.5rem; margin-top:.8rem;
    padding:.75rem 1rem; background:rgba(16,185,129,.04);
    border-left:2px solid var(--em); border-radius:0 var(--r) var(--r) 0;
}
.cas-result::before { content:'→'; color:var(--em); font-weight:700; flex-shrink:0 }
.cas-result span { color:var(--em); font-size:.92rem; font-weight:600 }
.cas-logo { margin-top:1rem }
.client-logo { height:26px; width:auto; max-width:140px; opacity:.82 }
html.light .client-logo { filter:brightness(0) saturate(100%) }

/* ════════════════════════════════════════════════════
   ACTUALITÉS (liste)
   ════════════════════════════════════════════════════ */
.news-list { display:flex; flex-direction:column }
.news-item {
    display:grid; grid-template-columns:1fr 260px;
    border-bottom:1px solid var(--bdr-sub); padding:2.4rem 0;
    transition:background .3s var(--ease);
}
.news-item:first-child { border-top:1px solid var(--bdr-sub) }
.news-item:hover { background:rgba(16,185,129,.03) }
.news-body { padding-right:2.5rem; display:flex; flex-direction:column; justify-content:center }
.news-meta { display:flex; align-items:center; gap:1rem; margin-bottom:.7rem }
.news-date {
    font-family:var(--mono); font-size:.67rem; letter-spacing:.1em;
    text-transform:uppercase; color:var(--txt-dim);
}
.news-cat {
    font-family:var(--mono); font-size:.62rem; letter-spacing:.1em;
    text-transform:uppercase; padding:.18rem .55rem; border-radius:2px;
}
.news-cat.em { background:var(--em-dim); color:var(--em) }
.news-cat.cy { background:rgba(6,182,212,.1); color:var(--cy) }
.news-cat.go { background:rgba(245,158,11,.1); color:var(--go) }
.news-body h3 { font-size:1.15rem; color:var(--txt-hi); margin-bottom:.6rem; font-weight:700; line-height:1.35 }
.news-body p  { font-size:.94rem; margin-bottom:.9rem }
.news-read { font-family:var(--mono); font-size:.74rem; letter-spacing:.06em; text-decoration:none; color:var(--em); font-weight:500 }
.news-read:hover { color:#34d399 }
/* Stretched link : tout le bloc est cliquable */
.news-item { position:relative; cursor:pointer }
.news-read::after { content:''; position:absolute; inset:0; z-index:1 }
.news-img {
    aspect-ratio:16/10; border-radius:var(--r); overflow:hidden;
    border:1px solid var(--bdr-sub); background:var(--bg-card);
    flex-shrink:0; align-self:center; position:relative;
}
.news-img svg { width:100%; height:100%; display:block }
.news-img svg > rect:first-child { fill:var(--bg-card) }
.img-label {
    position:absolute; bottom:6px; left:8px; font-family:var(--mono);
    font-size:.52rem; letter-spacing:.1em; text-transform:uppercase;
    color:rgba(16,185,129,.38);
}

/* ════════════════════════════════════════════════════
   CONTACT — Email client
   ════════════════════════════════════════════════════ */
.contact-grid {
    display:grid; grid-template-columns:repeat(4,1fr);
    gap:1.5rem; max-width:1060px; margin:0 auto;
}
.contact-tile {
    display:flex; flex-direction:column; align-items:center; text-align:center;
    padding:2.2rem 1.8rem; background:var(--bg-card); border:1px solid var(--bdr-sub);
    border-radius:var(--r); text-decoration:none; color:inherit;
    transition:border-color .3s, transform .3s var(--ease); gap:.55rem;
    position:relative; overflow:hidden;
}
.contact-tile::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; opacity:0; transition:opacity .3s }
.contact-tile.em::before { background:linear-gradient(90deg,var(--em),#059669); }
.contact-tile.cy::before { background:linear-gradient(90deg,var(--cy),#3B82F6); }
.contact-tile.li::before { background:linear-gradient(90deg,#0B66C3,#0A9668); }
.contact-tile:hover { border-color:var(--bdr); transform:translateY(-4px) }
.contact-tile:hover::before { opacity:1 }
.contact-tile-icon {
    width:46px; height:46px; border-radius:50%;
    background:var(--em-dim); border:1px solid var(--bdr);
    display:flex; align-items:center; justify-content:center;
    margin-bottom:.3rem;
}
.contact-tile-icon svg { width:20px; height:20px; color:var(--em) }
.contact-tile.cy .contact-tile-icon { background:rgba(6,182,212,.1); border-color:rgba(6,182,212,.25) }
.contact-tile.cy .contact-tile-icon svg { color:var(--cy) }
.contact-tile.li .contact-tile-icon { background:rgba(11,102,195,.1); border-color:rgba(11,102,195,.25) }
.contact-tile.li .contact-tile-icon svg { color:#0B66C3 }
.contact-tile-label {
    font-family:var(--mono); font-size:.63rem; letter-spacing:.12em;
    text-transform:uppercase; color:var(--txt-dim);
}
.contact-tile-value { color:var(--txt-hi); font-weight:600; font-size:.92rem; line-height:1.4 }
.contact-tile-action { font-family:var(--mono); font-size:.7rem; color:var(--em); margin-top:.2rem }
.contact-tile.cy .contact-tile-action { color:var(--cy) }
.contact-tile.li .contact-tile-action { color:#0B66C3 }
html.light .contact-tile.li .contact-tile-action { color:#0A4C92 }
html.light .btn-primary { color:#ffffff }
html.light .skip-link   { color:#ffffff }

.contact-primary { text-align:center; margin-top:3.5rem }
.contact-primary .btn-primary { font-size:1.05rem; padding:1rem 2.6rem }
.contact-tile-sub { font-size:.72rem; color:var(--txt-dim); margin-top:-.25rem; line-height:1.3 }

/* ════════════════════════════════════════════════════
   LÉGAL (section SPA)
   ════════════════════════════════════════════════════ */
.legal-block { line-height:1.85 }
.legal-block h3 {
    font-family:var(--mono); font-size:.72rem; letter-spacing:.14em;
    text-transform:uppercase; color:var(--em); margin-top:2.2rem; margin-bottom:.8rem;
}
.legal-block h3:first-child { margin-top:0 }
.legal-block p  { color:var(--txt-mid); font-size:.92rem }
.legal-block strong { color:var(--txt-hi) }
.legal-block a  { color:var(--em); text-decoration:none }
.legal-block ul { margin:.5rem 0 .8rem 1.2rem }
.legal-block ul li { margin-bottom:.35rem; color:var(--txt-mid); font-size:.92rem }

/* ════════════════════════════════════════════════════
   PAGE ARTICLE
   ════════════════════════════════════════════════════ */
.article-wrap { max-width:780px; margin:0 auto; padding:calc(var(--nav-h) + 48px) 2rem 80px }

.article-back {
    display:inline-flex; align-items:center; gap:.55rem;
    font-family:var(--mono); font-size:.72rem; letter-spacing:.06em;
    color:var(--txt-dim); text-decoration:none; margin-bottom:2.8rem;
    transition:color .2s;
}
.article-back:hover { color:var(--em) }
.article-back svg { width:14px; height:14px }

.article-meta { display:flex; align-items:center; gap:1rem; margin-bottom:1.4rem; flex-wrap:wrap }
.article-reading {
    font-family:var(--mono); font-size:.64rem; letter-spacing:.1em;
    text-transform:uppercase; color:var(--txt-dim);
}
.article-title {
    font-size:clamp(1.9rem,4.5vw,2.9rem); font-weight:800;
    line-height:1.15; margin-bottom:0; color:var(--txt-hi);
}
.article-title em { font-style:normal; color:var(--em) }
.article-lede {
    font-size:1.12rem; color:var(--txt-mid); line-height:1.7;
    margin:1.4rem 0 2.5rem; font-weight:300;
}
.article-hero {
    width:100%; aspect-ratio:16/7; border-radius:var(--r); overflow:hidden;
    border:1px solid var(--bdr-sub); margin-bottom:3rem; background:var(--bg-card);
    position:relative;
}
.article-hero svg { width:100%; height:100%; display:block }
.article-hero svg > rect:first-child { fill:var(--bg-card) }
.article-hero .img-label { font-size:.6rem }

.article-body { color:var(--txt-mid) }
.article-body h2 { color:var(--txt-hi); font-size:1.5rem; font-weight:700; margin:2.8rem 0 1rem }
.article-body h3 { color:var(--txt-hi); font-size:1.1rem; font-weight:700; margin:2rem 0 .7rem }
.article-body p  { font-size:1.02rem; line-height:1.78; margin-bottom:1.3rem }
.article-body ul { margin:.5rem 0 1.5rem 1.6rem }
.article-body ul li { margin-bottom:.65rem; font-size:1.02rem; line-height:1.65 }
.article-body strong { color:var(--txt-hi) }
.article-body a         { color:#60A5FA; text-underline-offset:2px }
.article-body a:visited { color:#C084FC }
.article-body a:hover   { color:#93C5FD }
html.light .article-body a         { color:#1D4ED8 }
html.light .article-body a:visited { color:#7C3AED }
html.light .article-body a:hover   { color:#2563EB }
.article-body blockquote {
    border-left:3px solid var(--em); padding:.9rem 1.6rem; margin:2rem 0;
    background:var(--em-dim); border-radius:0 var(--r) var(--r) 0;
}
.article-body blockquote p { font-size:1.05rem; font-style:italic; color:var(--txt-hi); margin:0 }

.article-divider {
    border:none; border-top:1px solid var(--bdr-sub); margin:2.5rem 0;
}
.key-number {
    display:inline-block; font-family:var(--mono); font-size:2.4rem;
    font-weight:600; color:var(--em); line-height:1;
}
.key-box {
    background:var(--bg-card); border:1px solid var(--bdr-sub);
    border-radius:var(--r); padding:1.6rem 2rem; margin:1.5rem 0;
}
.key-box .key-number { display:block; margin-bottom:.4rem }
.key-box p { margin:0; font-size:.92rem }

.article-cta-box {
    background:var(--bg-card); border:1px solid var(--bdr);
    border-radius:var(--r); padding:2.8rem 2.2rem; text-align:center; margin-top:4rem;
    position:relative; overflow:hidden;
}
.article-cta-box::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,var(--em),#059669) }
.article-cta-box h3 { color:var(--em); font-size:1.2rem; margin-bottom:.7rem }
.article-cta-box p { max-width:420px; margin:0 auto 1.8rem; font-size:.96rem }

.article-related { margin-top:4rem; padding-top:2.5rem; border-top:1px solid var(--bdr-sub) }
.article-related .mono-label { margin-bottom:1.4rem }
.related-list { display:grid; grid-template-columns:1fr 1fr; gap:1rem }
.related-item {
    padding:1.2rem 1.4rem; background:var(--bg-card); border:1px solid var(--bdr-sub);
    border-radius:var(--r); text-decoration:none; transition:border-color .25s, transform .25s var(--ease);
}
.related-item:hover { border-color:var(--bdr); transform:translateY(-2px) }
.related-item .news-cat { margin-bottom:.5rem; display:inline-block }
.related-item h4 { font-size:.93rem; color:var(--txt-hi); font-weight:600; line-height:1.35; margin:0 }

/* ════════════════════════════════════════════════════
   PAGE LÉGALE (standalone)
   ════════════════════════════════════════════════════ */
.legal-wrap { max-width:780px; margin:0 auto; padding:calc(var(--nav-h) + 48px) 2rem 80px }
.legal-wrap .legal-block h3:first-child { margin-top:0 }

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
footer { position:relative; border-top:1px solid var(--bdr-sub) }
footer::before {
    content:''; position:absolute; top:0; left:0; right:0; height:16px;
    background-image:
        repeating-linear-gradient(90deg,rgba(16,185,129,.12) 0,rgba(16,185,129,.12) 1px,transparent 1px,transparent 32px),
        repeating-linear-gradient(90deg,rgba(16,185,129,.24) 0,rgba(16,185,129,.24) 1px,transparent 1px,transparent 128px);
    pointer-events:none;
}
footer::after {
    content:''; position:absolute; bottom:0; left:0; right:0; height:80px;
    background-image:repeating-linear-gradient(-45deg,transparent,transparent 10px,rgba(16,185,129,.02) 10px,rgba(16,185,129,.02) 11px);
    pointer-events:none;
}
.footer-inner { position:relative; padding:3.5rem 0 2.5rem; text-align:center; z-index:1 }
.footer-logo  { margin-bottom:.25rem; display:flex; justify-content:center; align-items:center; }
.footer-logo .logo-mark { font-size:1.9rem; }
.footer-tagline { font-size:.88rem; color:var(--txt-dim); margin-bottom:0 }
.footer-links { margin:1.8rem 0 1.2rem; display:flex; justify-content:center; gap:1.5rem; flex-wrap:wrap }
.footer-links a { color:var(--txt-dim); text-decoration:none; font-size:.85rem; transition:color .25s }
.footer-links a:hover { color:var(--txt-hi) }
.footer-copy { font-size:.72rem; color:var(--txt-dim); margin:0 }
.footer-privacy {
    font-size:.68rem; color:var(--txt-dim); opacity:.55; margin-top:.5rem;
}
.footer-privacy a { color:var(--txt-dim); text-decoration:none }
.footer-privacy a:hover { color:var(--em) }

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media(max-width:1024px) { .grid-3 { grid-template-columns:1fr 1fr } .contact-grid { grid-template-columns:1fr 1fr } }

@media(max-width:768px) {
    :root { --s-pt:calc(var(--nav-h) + 48px); --s-pb:56px }
    .nav-links { display:none }
    .burger    { display:flex }
    .container { padding:0 1.2rem }
    .hero-inner { grid-template-columns:1fr }
    .hero-illustration { display:none }
    .hero-sub-grid { grid-template-columns:1fr }
    .hsi+.hsi  { border-left:none; border-top:1px solid var(--bdr-sub) }
    .grid-3    { grid-template-columns:1fr }
    .offres-grid .pillar + .pillar { border-left:none; border-top:1px solid var(--bdr-sub) }
    .cas-grid  { grid-template-columns:1fr; gap:1rem }
    .news-item { grid-template-columns:1fr }
    .news-img  { display:none }
    .news-body { padding-right:0 }
    .news-item:hover { padding-left:.6rem; padding-right:.6rem; margin:0 -.6rem }
    .card      { padding:1.6rem 1.4rem }
    .hero-cta  { flex-direction:column; align-items:flex-start }
    .hero-cta .btn { width:100%; text-align:center }
    .contact-grid  { grid-template-columns:1fr }
    .related-list  { grid-template-columns:1fr }
    .article-wrap  { padding-left:1.2rem; padding-right:1.2rem }
    .legal-wrap    { padding-left:1.2rem; padding-right:1.2rem }
}

@media(max-width:480px) {
    h1 { font-size:2.1rem }
    h2 { font-size:1.65rem }
    .footer-links { gap:1rem }

}
