/*
Theme Name: ecom-ai Media Signal
Theme URI: https://ecom-ai.fr
Author: La redaction
Description: Theme editorial V2 pour ecom-ai.fr. Direction artistique de bureau d'analyse : graphite, blanc froid, bleu cobalt, jaune acide en reperes ponctuels. Aucune dependance externe, polices auto-hebergees.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: Proprietary
Text Domain: ecomai-media
*/

/* =========================================================================
   0. Polices auto-hebergees
   ========================================================================= */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-w100_900.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: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext-w100_900.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: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/plexmono-latin-w400.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: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/plexmono-latin-ext-w400.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: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/plexmono-latin-w500.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: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/plexmono-latin-ext-w500.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: "Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/plexmono-latin-w600.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: "Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/plexmono-latin-ext-w600.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; }

/* =========================================================================
   1. Jetons
   ========================================================================= */
:root {
  --ink:        #0A0C11;
  --ink-2:      #12161E;
  --surface-d:  #171C26;
  --surface-d2: #1E2430;
  --line-d:     #2A3240;
  --line-d2:    #3A4354;

  --paper:      #FFFFFF;
  --pearl:      #F4F6F9;
  --pearl-2:    #E9EDF3;
  --line:       #DCE2EB;
  --line-2:     #C4CDDB;

  --text:       #0F131A;
  --muted:      #5B6575;
  --muted-2:    #8B94A3;

  --cobalt:     #1B4DFF;
  --cobalt-d:   #0B33C7;
  --cobalt-p:   #E7ECFF;
  --cobalt-l:   #8FA8FF;

  --acid:       #E2FF3D;
  --acid-d:     #7E8F14;

  --red:        #D93A40;
  --red-p:      #FCEAEA;

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap:       1240px;
  --measure:    68ch;
  --r:          2px;
  --r-lg:       4px;
  --hdr:        58px;
}

/* =========================================================================
   2. Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--cobalt-d); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--cobalt); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -.028em;
  line-height: 1.06;
  color: var(--ink);
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.3rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.14rem, 1rem + .6vw, 1.4rem); margin-top: 1.9em; font-stretch: 104%; }
h4 { font-size: 1.05rem; margin-top: 1.7em; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }
li { margin-bottom: .42em; }
strong { font-weight: 650; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
blockquote {
  margin: 1.9em 0; padding: .1em 0 .1em 1.3em;
  border-left: 3px solid var(--cobalt);
  font-size: 1.08rem; line-height: 1.5; color: var(--ink-2);
}
blockquote p:last-child { margin-bottom: 0; }
code, pre { font-family: var(--font-mono); font-size: .88em; }
code { background: var(--pearl-2); padding: .1em .35em; border-radius: var(--r); }
pre { background: var(--ink); color: #E8ECF3; padding: 1.1em 1.25em; border-radius: var(--r-lg); overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--cobalt); color: #fff; padding: .6em 1em; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

/* =========================================================================
   3. Primitives typographiques
   ========================================================================= */
.mono, .kicker, .meta, .tag, .num {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}
.kicker {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .72rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cobalt-d);
  margin-bottom: 1em;
}
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--cobalt); flex: none; }
.kicker--acid::before { background: var(--acid); }
.kicker--plain { color: var(--muted); }
.kicker--plain::before { background: var(--line-2); }
.kicker--onDark { color: #C9D3E4; }
.kicker--onDark::before { background: var(--acid); }

.tag {
  display: inline-block; padding: .22em .55em;
  font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--muted); background: var(--paper);
  text-decoration: none; border-radius: var(--r);
}
.tag--cobalt { border-color: var(--cobalt); color: var(--cobalt-d); background: var(--cobalt-p); }
.tag--acid { border-color: var(--acid-d); color: var(--acid-d); background: #FAFFE0; }
.tag--red { border-color: var(--red); color: var(--red); background: var(--red-p); }
.tag--onDark { background: transparent; border-color: var(--line-d2); color: #B9C4D6; }

.meta { font-size: .74rem; color: var(--muted); display: inline-flex; flex-wrap: wrap; align-items: center; gap: .55em; letter-spacing: .04em; text-transform: uppercase; }
.meta__sep { color: var(--line-2); }

.arrow { display: inline-block; width: 14px; height: 9px; position: relative; flex: none; }
.arrow::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 1.5px; background: currentColor; }
.arrow::after { content: ""; position: absolute; right: 0; top: 1px; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }

.link-more { display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--cobalt-d); }
.link-more:hover { color: var(--cobalt); }
.link-more:hover .arrow { transform: translateX(4px); }
.link-more .arrow { transition: transform .16s ease; }

/* =========================================================================
   4. Structure
   ========================================================================= */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 26px; }
.wrap--narrow { max-width: 800px; }
.site-main { min-height: 40vh; }

/* =========================================================================
   5. Bandeau superieur + en-tete
   ========================================================================= */
.topline { background: var(--ink); color: #93A0B4; border-bottom: 1px solid var(--line-d); }
.topline__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 30px; }
.topline span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.topline b { color: var(--acid); font-weight: 500; }
.topline__legend { display: flex; gap: 1.1em; align-items: center; }
.topline__legend i { display: inline-block; width: 7px; height: 7px; margin-right: .5em; vertical-align: 1px; }
.topline__legend i.f { background: var(--cobalt); }
.topline__legend i.o { background: #7E8A9E; }
.topline__legend i.h { background: var(--acid); }
@media (max-width: 780px) { .topline__legend { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 2px solid var(--cobalt);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--hdr); position: relative; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__text { display: inline-flex; align-items: baseline; gap: 2px; }
.brand__name { font-family: var(--font-sans); font-weight: 700; font-stretch: 108%; font-size: 1.14rem; letter-spacing: -.03em; color: var(--ink); }
.brand__tld { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--cobalt); }

.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li { list-style: none; margin: 0; padding: 0; }
.nav a, .nav .menu-item > a {
  display: inline-block; padding: .42em .62em; border-radius: var(--r);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--pearl); }
.nav a.is-active, .nav .current-menu-item > a { color: var(--cobalt-d); box-shadow: inset 0 -2px 0 var(--cobalt); }

.nav-toggle {
  display: none; align-items: center; gap: .6em;
  background: var(--ink); color: #fff; border: 0; border-radius: var(--r);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .55em .8em; cursor: pointer;
}
.nav-toggle__bars { display: inline-block; width: 14px; height: 9px; position: relative; }
.nav-toggle__bars i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; }
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 4px; }
.nav-toggle__bars i:nth-child(3) { top: 8px; }

/* =========================================================================
   6. Hero
   ========================================================================= */
.hero {
  position: relative; background: var(--ink); color: #E6EAF2; overflow: hidden;
  border-bottom: 1px solid var(--line-d);
}
.hero__motif { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.hero__glow { position: absolute; width: 720px; height: 720px; right: -220px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(27,77,255,.34), rgba(27,77,255,0) 62%); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr); gap: clamp(28px,4vw,72px); align-items: start;
  padding-block: clamp(2.6rem,1.8rem+3.6vw,4.6rem) clamp(2.4rem,1.6rem+3vw,4rem); }
.hero h1 { color: #fff; margin-bottom: .42em; max-width: 20ch; }
.hero h1 mark { background: none; color: var(--acid); }
.hero__lead { font-size: clamp(1.02rem,.95rem+.45vw,1.2rem); line-height: 1.55; color: #AFBACE; max-width: 52ch; }
.hero__note { margin-top: 1.7em; padding-top: 1.3em; border-top: 1px solid var(--line-d); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: #7E8A9E; max-width: 54ch; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.6em 2.4em; margin-top: 1.8em; }
.hero__stat { display: flex; flex-direction: column; gap: .3em; }
.hero__stat b { font-family: var(--font-sans); font-weight: 800; font-stretch: 110%; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.hero__stat span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #7E8A9E; }

/* Panneau brief */
.board { background: var(--surface-d); border: 1px solid var(--line-d); border-radius: var(--r-lg); }
.board__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: .8em 1.1em; border-bottom: 1px solid var(--line-d); }
.board__head span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #7E8A9E; }
.board__head b { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; color: var(--acid); letter-spacing: .1em; }
.board__list { list-style: none; margin: 0; padding: 0; }
.board__list li { border-bottom: 1px solid var(--line-d); }
.board__list li:last-child { border-bottom: 0; }
.board__list a { display: grid; grid-template-columns: auto 1fr; gap: 1em; padding: .95em 1.1em; text-decoration: none; align-items: baseline; }
.board__list a:hover { background: var(--surface-d2); }
.board__num { font-family: var(--font-mono); font-size: .7rem; color: var(--cobalt-l); letter-spacing: .05em; }
.board__title { font-weight: 600; font-size: .96rem; color: #E6EAF2; line-height: 1.32; }
.board__list a:hover .board__title { color: #fff; }
.board__meta { grid-column: 2; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #8E9AB0; margin-top: .4em; }

/* =========================================================================
   7. Dossier (mise en avant)
   ========================================================================= */
.dossier { padding-block: clamp(2.4rem,1.6rem+3vw,4rem); background: var(--paper); }
.dossier__frame { border: 1px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
.dossier__left { padding: clamp(24px,3vw,46px); border-right: 1px solid var(--line); }
.dossier__head { display: flex; align-items: center; gap: .9em; margin-bottom: 1.2em; }
.dossier__idx { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; color: var(--paper); background: var(--cobalt); padding: .3em .6em; }
.dossier h2 { font-size: clamp(1.5rem,1.1rem+1.8vw,2.4rem); margin: 0 0 .5em; }
.dossier h2 a { color: inherit; text-decoration: none; }
.dossier h2 a:hover { color: var(--cobalt-d); }
.dossier p { color: var(--muted); max-width: 58ch; }
.dossier__meta { display: flex; flex-wrap: wrap; gap: .7em 1.4em; align-items: center; margin-top: 1.4em; }
.dossier__figure { background: var(--ink); display: flex; align-items: center; justify-content: center; padding: clamp(18px,2.4vw,34px); }
.dossier__figure svg { width: 100%; height: auto; max-height: 340px; }

/* =========================================================================
   8. Sections
   ========================================================================= */
.section { padding-block: clamp(2.6rem,2rem+2.6vw,4.2rem); }
.section--pearl { background: var(--pearl); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #C9D3E4; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 2.2em; border-bottom: 2px solid var(--ink); padding-bottom: .8em; }
.section--dark .section__head { border-bottom-color: var(--line-d2); }
.section__head h2 { margin: 0; font-size: clamp(1.3rem,1.05rem+1vw,1.9rem); }
.section--dark .section__head h2 { color: #fff; }
.section__head .kicker { margin-bottom: .5em; }
.section__aside { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* =========================================================================
   9. Territoires (rubriques)
   ========================================================================= */
.territories { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.territory {
  position: relative; display: flex; flex-direction: column; gap: .7em;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px 22px;
  background: var(--paper); text-decoration: none; min-height: 210px;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.territory:hover { border-color: var(--cobalt); transform: translateY(-3px); }
.territory__idx { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; color: var(--muted-2); }
.territory__glyph { width: 46px; height: 46px; margin: .2em 0 .4em; }
.territory__name { font-family: var(--font-sans); font-weight: 750; font-stretch: 106%; font-size: 1.14rem; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.territory__desc { font-size: .9rem; color: var(--muted); line-height: 1.5; margin: 0; }
.territory__go { margin-top: auto; display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt-d); }
.territory:hover .territory__go { color: var(--cobalt); }
.territory--lead { grid-column: span 2; background: var(--ink); border-color: var(--ink); }
.territory--lead .territory__idx { color: var(--acid); }
.territory--lead .territory__name { color: #fff; font-size: 1.5rem; }
.territory--lead .territory__desc { color: #A9B4C7; }
.territory--lead .territory__go { color: var(--acid); }
.territory--lead:hover { border-color: var(--cobalt); }
.territory--lead .territory__glyph { width: 60px; height: 60px; }

/* =========================================================================
   10. Index d'articles
   ========================================================================= */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.index > li { border-bottom: 1px solid var(--line); }
.index__row { display: grid; grid-template-columns: minmax(62px, auto) minmax(0,1fr) auto; gap: 0 22px; align-items: start; padding: 1.35em 12px; margin-inline: -12px; text-decoration: none; transition: background .14s ease; }
.index__row:hover { background: var(--pearl); }
.index__num { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--muted-2); padding-top: .28em; letter-spacing: .06em; }
.index__row:hover .index__num { color: var(--cobalt); }
.index__title { display: block; font-family: var(--font-sans); font-weight: 700; font-stretch: 104%; font-size: 1.16rem; letter-spacing: -.018em; color: var(--ink); line-height: 1.25; margin: 0 0 .4em; }
.index__row:hover .index__title { color: var(--cobalt-d); }
.index__lead { display: block; margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; max-width: 74ch; }
.index__side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .5em; padding-top: .18em; }
.index__thumb { float: left; width: 148px; margin: .1em 20px .5em 0; }
.index__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
@media (max-width: 860px) { .index__thumb { width: 108px; margin-right: 14px; } }
@media (max-width: 430px) { .index__thumb { width: 84px; margin-right: 12px; } }
.index__cat { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt-d); white-space: nowrap; }
.index__date { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.section__more { margin-top: 1.7em; text-align: right; }
.section__more .link-more { font-size: .74rem; }
.section--dark .index, .section--dark .index > li { border-color: var(--line-d); }
.section--dark .index__title { color: #E6EAF2; }
.section--dark .index__lead { color: #99A5B9; }
.section--dark .index__row:hover { background: var(--surface-d); }
.section--dark .index__row:hover .index__title { color: #fff; }

/* =========================================================================
   11. Bloc methode
   ========================================================================= */
.method { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(26px,4vw,64px); align-items: start; }
.method h2 { color: #fff; margin-top: .5em; margin-bottom: .6em; }
.method__statuses { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.method__statuses li { background: var(--ink); padding: 1.05em 1.2em; display: grid; grid-template-columns: auto 1fr; gap: .9em; align-items: start; }
.method__statuses i { width: 12px; height: 12px; margin-top: .32em; display: block; }
.method__statuses b { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: .35em; font-weight: 500; }
.method__statuses span { font-size: .9rem; color: #99A5B9; }
.method__legend { display: flex; flex-wrap: wrap; gap: 1.2em; margin-top: 1.4em; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #7E8A9E; }
.method__legend i { display: inline-block; width: 9px; height: 9px; margin-right: .5em; vertical-align: 0; }
.method__links { display: flex; flex-wrap: wrap; gap: 1.6em; margin-top: 1.6em; }

/* =========================================================================
   12. Article
   ========================================================================= */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--cobalt); z-index: 80; }
.article-head { background: var(--pearl); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.article-head__motif { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.article-head__inner { position: relative; padding-block: clamp(1.6rem,1.2rem+1.6vw,2.6rem) clamp(1.8rem,1.4rem+1.8vw,2.8rem); }
.crumbs { display: flex; align-items: center; gap: .6em; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cobalt-d); }
.crumbs span { color: var(--line-2); }
.article-head h1 { max-width: 26ch; margin-bottom: .45em; }
.article-head__lead { font-size: clamp(1.02rem,.96rem+.4vw,1.16rem); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.article-head__meta { display: flex; flex-wrap: wrap; gap: .7em 1.5em; align-items: center; margin-top: 1.6em; }

.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 236px; gap: clamp(30px,4vw,64px); align-items: start; padding-block: clamp(2rem,1.6rem+2vw,3.2rem) 4.5rem; }
.article-body { max-width: var(--measure); min-width: 0; }
.article-body h2 {
  counter-increment: h2c; display: flex; gap: .6em; align-items: baseline;
}
.article-body h2::before {
  content: counter(h2c, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .62em; font-weight: 500; letter-spacing: .06em;
  color: var(--cobalt); flex: none; padding-top: .12em;
}
.article-body { counter-reset: h2c; }

/* Rail sommaire */
.rail { position: sticky; top: calc(var(--hdr) + 22px); }
.rail__box { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.rail__head { padding: .7em .95em; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.rail ol { list-style: none; margin: 0; padding: .5em 0; counter-reset: r; }
.rail li { counter-increment: r; margin: 0; }
.rail li a { display: grid; grid-template-columns: 26px 1fr; gap: .35em; padding: .5em .95em; font-size: .84rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.rail li a::before { content: counter(r, decimal-leading-zero); font-family: var(--font-mono); font-size: .68rem; color: var(--muted-2); padding-top: .18em; }
.rail li a:hover { background: var(--pearl); color: var(--ink); }
.rail__foot { padding: .8em .95em; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }

/* Annotations */
.annotation {
  margin: 2em 0; border: 1px solid var(--line-2); border-left-width: 4px; border-left-color: var(--cobalt);
  border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 1.2em 1.35em; background: var(--paper);
}
.annotation__label { display: block; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt-d); margin-bottom: .7em; }
.annotation p:last-child, .annotation ul:last-child, .annotation ol:last-child { margin-bottom: 0; }
.annotation--repere { border-left-color: var(--acid); background: #FCFEEF; }
.annotation--repere .annotation__label { color: var(--acid-d); }
.annotation--alerte { border-left-color: var(--red); background: var(--red-p); }
.annotation--alerte .annotation__label { color: var(--red); }
.annotation--methode { border-left-color: var(--ink); background: var(--pearl); }
.annotation--methode .annotation__label { color: var(--ink); }

/* Tableaux */
.article-body table, .page-body table { width: 100%; border-collapse: collapse; margin: 1.9em 0; font-size: .92rem; }
.article-body th, .page-body th {
  background: var(--ink); color: #fff; text-align: left; padding: .7em .85em;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.article-body td, .page-body td { padding: .7em .85em; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body tbody tr:nth-child(even), .page-body tbody tr:nth-child(even) { background: var(--pearl); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.9em 0; }
.table-scroll table { margin: 0; min-width: 540px; }

/* References */
.refs { margin-top: 2.4em; padding-top: 1.5em; border-top: 2px solid var(--ink); }
.refs h2 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1em; }
.refs h2::before { content: none; }
.refs ol, .refs ul { list-style: none; counter-reset: ref; padding: 0; margin: 0; }
.refs li {
  counter-increment: ref;
  position: relative;
  padding: .55em 0 .55em 34px;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  overflow-wrap: break-word;
}
.refs li::before {
  content: "[" counter(ref) "]";
  position: absolute;
  left: 0;
  top: .62em;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--cobalt);
}
.refs li a { color: var(--cobalt-d); }

/* Signature + transparence */
.byline { display: flex; align-items: center; gap: 14px; margin-top: 2.6em; padding: 1.05em 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.byline__mark { width: 34px; height: 34px; flex: none; }
.byline strong { display: block; color: var(--ink); font-size: .93rem; }
.disclosure { margin-top: 2.4em; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2em 1.4em; background: var(--pearl); font-size: .87rem; color: var(--muted); }
.disclosure strong { color: var(--ink); }

/* Lecture suivante */
.next-up { border-top: 2px solid var(--ink); margin-top: 4rem; padding-top: 2rem; }
.next-up h2 { margin-bottom: 1.4em; }

/* =========================================================================
   13. Pages
   ========================================================================= */
.page-head { background: var(--ink); color: #E6EAF2; position: relative; overflow: hidden; }
.page-head__motif { position: absolute; inset: 0; opacity: .45; }
.page-head__inner { position: relative; padding-block: clamp(2.2rem,1.6rem+2.6vw,3.4rem) clamp(2rem,1.5rem+2.4vw,3rem); }
.page-head h1 { color: #fff; max-width: 26ch; }
.page-head__lead { color: #AFBACE; max-width: 62ch; font-size: 1.06rem; }
.page-body { max-width: 76ch; }
.page-body h2 { margin-top: 2.2em; }
.page-body > h2:first-child { margin-top: 0; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 2em 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 3.4em; padding-bottom: 1.6em; border-left: 1px solid var(--line-2); margin-left: 1.1em; }
.steps > li:last-child { border-left-color: transparent; }
.steps > li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: -1.1em; top: -.1em;
  width: 2.2em; height: 2.2em; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
}
.steps > li strong:first-child { display: block; margin-bottom: .2em; }

.deflist { margin: 2em 0; }
.deflist dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt-d); margin-top: 1.5em; }
.deflist dd { margin: .4em 0 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin: 2em 0; }
.note-card { border: 1px solid var(--line); border-top: 3px solid var(--cobalt); border-radius: var(--r-lg); padding: 1.2em 1.3em; }
.note-card h3 { margin-top: 0; font-size: 1.05rem; }
.note-card p:last-child { margin-bottom: 0; }

/* =========================================================================
   14. Pied de page
   ========================================================================= */
.site-footer { background: var(--ink); color: #93A0B4; margin-top: 0; border-top: 3px solid var(--cobalt); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; padding-block: clamp(2.4rem,2rem+1.6vw,3.4rem) 2rem; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tld { color: var(--acid); }
.site-footer .brand__mark path, .site-footer .brand__mark rect { }
.site-footer__pitch { font-size: .92rem; line-height: 1.6; color: #8B96A9; max-width: 44ch; margin-top: 1.1em; }
.site-footer h2 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 1.1em; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer a { color: #93A0B4; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-block: 1.3rem; border-top: 1px solid var(--line-d); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: #6F7B90; }
.site-footer__bottom a { font-family: var(--font-mono); font-size: .7rem; }

/* =========================================================================
   15. Divers
   ========================================================================= */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 3rem 0; }
.pagination .page-numbers { padding: .5em .8em; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; color: var(--muted); font-family: var(--font-mono); font-size: .78rem; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-form { display: flex; gap: 8px; max-width: 460px; }
.search-form input[type="search"] { flex: 1; font: inherit; padding: .6em .8em; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.search-form button { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: .7em 1.1em; border: 0; border-radius: var(--r); background: var(--ink); color: #fff; cursor: pointer; }
.archive-head { background: var(--pearl); border-bottom: 1px solid var(--line); padding-block: clamp(1.8rem,1.4rem+1.6vw,2.6rem); }
.archive-head h1 { margin-bottom: .3em; }
.archive-head p { color: var(--muted); max-width: 68ch; margin: 0; }

/* Archive editoriale : acces aux rubriques */
.archive-rubriques { border-top: 1px solid var(--line); }
.archive-rubriques__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.archive-rubriques__list li { margin: 0; }
.archive-rubriques__list a {
  display: flex; align-items: center; gap: 14px; height: 100%;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
  padding: 16px 18px; text-decoration: none; color: var(--ink);
  font-family: var(--font-sans); font-weight: 700; font-stretch: 104%; font-size: 1rem; letter-spacing: -.015em;
  transition: border-color .16s ease, background .16s ease;
}
.archive-rubriques__list a:hover { border-color: var(--cobalt); background: var(--pearl); }
.archive-rubriques__list .territory__glyph { width: 30px; height: 30px; flex: none; }
.archive-rubriques__list a span:nth-child(2) { flex: 1; }
@media (max-width: 980px) { .archive-rubriques__list { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .archive-rubriques__list { grid-template-columns: minmax(0,1fr); } }
.empty-state { padding: 3rem 0; text-align: center; color: var(--muted); }
.pill-count { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* =========================================================================
   16. Responsive
   ========================================================================= */
@media (max-width: 1120px) {
  .article-layout { grid-template-columns: minmax(0,1fr); }
  .rail { position: static; margin-bottom: 2.2em; }
  .territories { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .territory--lead { grid-column: span 2; }
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0,1fr); }
  .dossier__frame { grid-template-columns: minmax(0,1fr); }
  .dossier__left { border-right: 0; border-bottom: 1px solid var(--line); }
  .method { grid-template-columns: minmax(0,1fr); }
  .territories { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .territory--lead { grid-column: span 2; }
  .grid-2 { grid-template-columns: minmax(0,1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav {
    display: none; position: absolute; top: 100%; left: -26px; right: -26px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--cobalt);
    padding: 6px 26px 14px;
  }
  .nav.is-open { display: flex; }
  .nav a, .nav .menu-item > a { padding: .8em .2em; border-bottom: 1px solid var(--line); font-size: .76rem; }
  .nav a.is-active, .nav .current-menu-item > a { box-shadow: inset 3px 0 0 var(--cobalt); padding-left: .7em; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 860px) {
  :root { --hdr: 54px; }
  .index__row { grid-template-columns: minmax(46px, auto) minmax(0,1fr); }
  .index__side { grid-column: 2; flex-direction: row; flex-wrap: wrap; min-width: 0; align-items: center; gap: .35em 1em; text-align: left; margin-top: .5em; }
}
@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }
  .nav { left: -18px; right: -18px; padding-inline: 18px; }
  .territories { grid-template-columns: minmax(0,1fr); }
  .territory--lead { grid-column: span 1; }
  .site-footer__grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .hero__stats { gap: 1.2em 1.8em; }
  .section__head { flex-wrap: wrap; row-gap: .7em; }
  .section__aside { white-space: normal; margin-left: auto; text-align: right; }
  .index__lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* =========================================================================
   17. Bandes editoriales photographiques
   ========================================================================= */
.band { margin: 0; }
.band__img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); background: var(--pearl); }
.article-figure { margin: clamp(22px,3vw,38px) 0 0; }
.article__img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); background: var(--pearl); }
.band__cap { margin: .9em 0 0; font-size: .82rem; line-height: 1.55; color: var(--muted); max-width: 72ch; }
.dossier .band { margin-top: clamp(28px,3.5vw,52px); }
.territories-band { margin-top: clamp(26px,3.5vw,50px); }
.section--dark .band__img { background: var(--surface-d); }
.section--dark .band__cap { color: #7E8A9E; }
.method__figure { margin: 1.7em 0 0; }
/* Bande 11 (dossier) et bande 13 (territoires) : sur ordinateur, la hauteur
   affichee est reduite d'environ 20 % par rapport au 16:9 d'origine, avec un
   recadrage maitrise. Le point de recadrage est choisi image par image pour ne
   couper ni visage ni main : la bande du dossier garde legerement plus de haut,
   celle des territoires est alignee sur le haut. La bande de la section Methode
   n'est pas concernee, et le cadrage naturel est conserve sur mobile. */
@media (min-width: 861px) {
  .dossier .band__img { aspect-ratio: 11 / 5; object-fit: cover; object-position: 50% 10%; }
  .territories-band .band__img { aspect-ratio: 11 / 5; object-fit: cover; object-position: 50% 0%; }
}
@media (max-width: 620px) {
  .band__cap { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .rail, .next-up, .topline, .progress, .nav-toggle { display: none; }
  body { background: #fff; }
}
