/* presse.css — the press kit's own stylesheet, shared by /presse (public/presse.html)
   and /fr/presse/ (public/fr/presse/index.html). Vite copies both pages without
   bundling them, so this file is served as is: /*.css is cached immutable
   (firebase.json), so bump the ?v= in both pages' <link> when it changes.
   These pages do not load src/styles/theme.css: the palette below is their own. */
:root{
  --paper:#f5f3ec; --card:#fffdf8; --ink:#1a2b23; --ink-soft:#4c5b52;
  --line:#e4dfd2; --line-soft:#eee9dd;
  --green:#0f5132; --green-2:#17714a; --gold:#a8790a; --gold-soft:#f2e6c6; --on-gold:#3d2b00;
  /* Gold for small text: #a8790a was 3.1–3.5:1 on the paper, cards and badges. */
  --gold-text:#7a5606;
  --code-bg:#eef4ef; --code-ink:#0f5132;
  --shadow:0 1px 2px rgba(26,43,35,.05),0 10px 30px -14px rgba(26,43,35,.16);
  --radius:16px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#10140f; --card:#181e17; --ink:#eef3ea; --ink-soft:#a6b3a8;
  --line:#2a332b; --line-soft:#222a23;
  --green:#5cc38c; --green-2:#7ad3a3; --gold:#e0b64c; --gold-soft:#37300f; --on-gold:#0f140a; --gold-text:#e0b64c;
  --code-bg:#12211a; --code-ink:#7ad3a3;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 12px 34px -16px rgba(0,0,0,.65);
}}
:root[data-theme="dark"]{
  --paper:#10140f; --card:#181e17; --ink:#eef3ea; --ink-soft:#a6b3a8;
  --line:#2a332b; --line-soft:#222a23;
  --green:#5cc38c; --green-2:#7ad3a3; --gold:#e0b64c; --gold-soft:#37300f; --on-gold:#0f140a; --gold-text:#e0b64c;
  --code-bg:#12211a; --code-ink:#7ad3a3;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 12px 34px -16px rgba(0,0,0,.65);
}
*{box-sizing:border-box}
/* Shared word for word with /fr/presse/: the direction comes from <html dir>. */
body{margin:0;background:var(--paper);color:var(--ink);line-height:1.65;
  font-family:"Tajawal",system-ui,"Segoe UI",sans-serif}
.wrap{max-width:940px;margin:0 auto;padding:clamp(18px,4vw,48px) clamp(14px,4vw,40px) 90px}
code,.mono{font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;direction:ltr;unicode-bidi:isolate;font-size:max(12px,.85em)}
a{color:var(--green-2)}

header.hd{position:relative;padding:34px 30px;border-radius:var(--radius);overflow:hidden;
  /* Fixed dark green in both themes: the dark theme's mint --green put white text at ~2:1 (audit 2026-11-10). */
  background:linear-gradient(135deg,#0f5132,#17714a);color:#fff;box-shadow:var(--shadow)}
@media (max-width:420px){header.hd{padding:28px 20px}}
header.hd::after{content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:6px;background:linear-gradient(var(--gold),#e6c667)}
.kick{font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;font-size:.75rem;letter-spacing:.2em;text-transform:uppercase;opacity:.85;text-align:start}
/* The kicker breaks between its parts only («BACGUIDE · / KIT PRESSE & OPEN
   DATA · 2026» on a phone), never inside one: each part is a nowrap span
   that carries its own «·». */
.kick span{white-space:nowrap}
@media (max-width:360px){.kick{letter-spacing:.12em}}
/* Arabic kicker: the page's font, no capitals, no letter-spacing (spacing
   pulls joined Arabic letters apart). */
[dir="rtl"] .kick{font-family:"Tajawal",system-ui,"Segoe UI",sans-serif;font-size:.85rem;font-weight:700;letter-spacing:0;text-transform:none}
header.hd h1{margin:.3em 0 .15em;font-size:clamp(1.7rem,4.6vw,2.6rem);font-weight:700;letter-spacing:-.01em;text-wrap:balance}
header.hd p{margin:0;max-width:60ch;opacity:.93}

.pitch{margin-top:22px;background:var(--card);border:1px solid var(--line);border-inline-start:5px solid var(--gold);border-radius:var(--radius);padding:20px 24px;box-shadow:var(--shadow);font-size:1.05rem}
.pitch b{color:var(--green-2)}

h2.sec{font-size:1.35rem;font-weight:700;margin:42px 2px 6px;display:flex;align-items:center;gap:10px}
h2.sec .n{font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;color:var(--gold-text);font-size:1rem}
.sub{color:var(--ink-soft);font-size:.92rem;margin:0 2px 14px}

.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px 24px;margin-top:14px}

.api{display:grid;gap:12px;grid-template-columns:1fr}
.ep{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px 16px;box-shadow:var(--shadow)}
.ep .url{font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;direction:ltr;font-size:.82rem;color:var(--green-2);font-weight:600;word-break:break-all}
.ep .d{color:var(--ink-soft);font-size:.9rem;margin-top:4px}
.badges{margin-top:6px;display:flex;flex-wrap:wrap;gap:6px}
.badges span{background:var(--gold-soft);color:var(--gold-text);font-size:.78rem;font-weight:700;padding:2px 8px;border-radius:6px;font-family:ui-monospace,"Cascadia Mono",Consolas,monospace}

.stats{display:grid;gap:12px;grid-template-columns:repeat(2,1fr);margin-top:4px}
@media(min-width:640px){.stats{grid-template-columns:repeat(4,1fr)}}
.stat{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;text-align:center;box-shadow:var(--shadow)}
.stat .v{font-size:1.7rem;font-weight:700;color:var(--gold);font-family:ui-monospace,"Cascadia Mono",Consolas,monospace}
.stat .l{font-size:.82rem;color:var(--ink-soft);margin-top:2px}

ul.data{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
/* Block text with a hanging marker: as a flex row, «<strong>…</strong> text <a>» became three narrow columns on phones. */
ul.data li{position:relative;padding-inline-start:16px;font-size:.95rem}
ul.data li::before{content:"›";position:absolute;inset-inline-start:0;color:var(--gold);font-weight:700}

.snippet{background:var(--code-bg);border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin-top:10px}
.snippet .lbl{font-size:.78rem;font-weight:700;color:var(--gold-text);font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;margin-bottom:6px}
.snippet code{display:block;color:var(--code-ink);white-space:pre-wrap;word-break:break-word;line-height:1.7}
.snippet.ar code{direction:rtl;font-family:"Tajawal",sans-serif;font-size:.95em}
.snippet + .sub{margin-top:12px}

.boiler{display:grid;gap:14px;grid-template-columns:1fr}
@media(min-width:680px){.boiler{grid-template-columns:1fr 1fr}}
.bcol{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px 22px;box-shadow:var(--shadow)}
.bcol h3{margin:0 0 8px;font-size:1rem;font-weight:700}
.bcol.fr{direction:ltr;text-align:left} .bcol.fr h3{text-align:left}
.bcol p{margin:0;font-size:.92rem;color:var(--ink-soft)}

/* Fixed deep green in both themes: the dark theme's mint --green/--green-2
   left the white text at 1.8–2.2:1 and the links at 1.5–1.8:1. */
.contact{margin-top:14px;background:linear-gradient(135deg,#0f5132,#17714a);color:#fff;border-radius:var(--radius);padding:20px 24px;box-shadow:var(--shadow)}
.contact h3{margin:0 0 6px;font-size:1.1rem;font-weight:700}
.contact p{margin:.5em 0;opacity:.94;font-size:.95rem;line-height:1.8}
.contact a{color:#ffe9b0;font-weight:700;display:inline-block;padding-block:4px;margin-block:0}

.note{margin-top:16px;color:var(--ink-soft);font-size:.86rem;border-top:1px solid var(--line);padding-top:14px}
/* Site chrome (audit 2026-11-09: the page had no header, no main landmark
   and 17 blocks outside landmarks). Same compass mark as the home page. */
.skip-link{position:absolute;inset-inline-start:12px;top:-64px;z-index:1000;background:#c8961e;color:#1a1024;padding:10px 18px;border-radius:0 0 10px 10px;font-weight:700;text-decoration:none;transition:top .15s ease}
.skip-link:focus{top:0}
a:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
main[tabindex="-1"]:focus{outline:none}
/* The shared site header: Vite copies this page as is, so the empty
   .site-head placeholder below is filled at postbuild by
   scripts/localizeSiteChrome.mjs (markup scripts/lib/siteHeader.mjs), which
   also inlines its stylesheet (src/styles/site-header.css). Map this
   page's palette onto the theme.css tokens that stylesheet uses. */
.site-head{--white:var(--card);--line-strong:var(--line);--royal:#5b2a86;--gold:#a8790a;--gold-deep:#7a5606;--cream-warm:var(--paper)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .site-head{--royal:#b184e8;--gold:#e0b64c;--gold-deep:#e0b64c}}
:root[data-theme="dark"] .site-head{--royal:#b184e8;--gold:#e0b64c;--gold-deep:#e0b64c}
/* The theme switch in the header (public/theme-toggle.js): the site's button
   (theme.css, which this page does not load), on the tokens mapped above.
   The palette follows <html data-theme>, which theme-bootstrap.js sets
   before the first paint and the switch flips; the system setting only
   decides while no choice is stored. */
.theme-toggle{position:relative;overflow:hidden;width:38px;height:38px;margin:0;padding:0;border-radius:999px;border:1px solid var(--line-strong);background:transparent;color:var(--ink-soft);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,border-color .15s}
.theme-toggle:hover{background:var(--cream-warm);border-color:var(--gold-deep)}
.theme-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.theme-toggle svg{position:absolute;inset:0;margin:auto;width:18px;height:18px;transition:opacity .3s ease,transform .45s cubic-bezier(.4,0,.2,1)}
.theme-toggle .icon-sun{opacity:0;transform:rotate(-90deg) scale(.4)}
.theme-toggle .icon-moon{opacity:1;transform:none}
:root[data-theme="dark"] .theme-toggle{background:rgba(255,255,255,.04)}
:root[data-theme="dark"] .theme-toggle:hover{background:rgba(224,182,76,.12);color:var(--gold)}
:root[data-theme="dark"] .theme-toggle .icon-sun{opacity:1;transform:none}
:root[data-theme="dark"] .theme-toggle .icon-moon{opacity:0;transform:rotate(90deg) scale(.4)}
:root{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark}
html.theme-anim body,html.theme-anim .site-head,html.theme-anim .pitch,html.theme-anim .panel,html.theme-anim .ep,html.theme-anim .stat,html.theme-anim .bcol,html.theme-anim .snippet,html.theme-anim .site-foot{transition:background-color .32s ease,color .32s ease,border-color .32s ease}
@media (prefers-reduced-motion:reduce){.theme-toggle svg,html.theme-anim body,html.theme-anim .site-head,html.theme-anim .pitch,html.theme-anim .panel,html.theme-anim .ep,html.theme-anim .stat,html.theme-anim .bcol,html.theme-anim .snippet,html.theme-anim .site-foot{transition:none}}
.site-foot a{display:inline-flex;align-items:center;min-height:32px;color:var(--ink);font-weight:700;text-decoration:none}
.site-foot a:hover{text-decoration:underline}
.site-foot{border-top:1px solid var(--line);background:var(--card);color:var(--ink-soft);font-size:.86rem}
.site-foot-in{max-width:940px;margin:0 auto;padding:20px clamp(14px,4vw,40px) 28px;display:grid;gap:8px;text-align:center}
.site-foot p{margin:0}
.site-foot ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:2px 18px}
.site-foot a{color:var(--ink-soft);text-decoration:underline;text-underline-offset:3px;min-height:28px}
