/* Polices hébergées localement (Fraunces, Inter – SIL Open Font License) */
/* Fraunces – latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext-796716.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces – latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/fraunces-latin-39ce20.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;
}
/* Fraunces – latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 650;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext-796716.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces – latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 650;
  font-display: swap;
  src: url(../fonts/fraunces-latin-39ce20.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;
}
/* Inter – latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-latin-ext-395290.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter – latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-latin-567244.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;
}
/* Inter – latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-latin-ext-395290.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter – latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-latin-567244.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;
}
/* Inter – latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-latin-ext-395290.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter – latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-latin-567244.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;
}
/* Inter – latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter-latin-ext-395290.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter – latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter-latin-567244.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;
}

/* Swiss Knowhow — feuille de style */
:root {
  --red: #FF0000;
  --red-ink: #D40000;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-2: #f6f5f2;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px -12px rgba(17, 24, 39, .18);
  --shadow-lg: 0 24px 60px -20px rgba(17, 24, 39, .35);
  --radius: 14px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f3f4f6; --ink-2: #d1d5db; --muted: #9ca3af; --line: #2a2f3a;
    --bg: #0d1117; --bg-2: #141a22; --card: #161c25;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f3f4f6; --ink-2: #d1d5db; --muted: #9ca3af; --line: #2a2f3a;
  --bg: #0d1117; --bg-2: #141a22; --card: #161c25;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font: 650 clamp(2rem, 4.2vw, 3.3rem)/1.08 var(--serif); letter-spacing: -.02em; }
h2 { font: 650 clamp(1.35rem, 2.2vw, 1.75rem)/1.2 var(--serif); }
h3 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 20px; height: 20px; flex: none; }
.ico.sm { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--red); margin: 0 0 .6em; }
.eyebrow.light { color: #fff; opacity: .9; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- en-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { color: inherit; }
.brand-mark svg { width: 30px; height: 30px; display: block; }
.brand-text b { color: var(--red); font-weight: 700; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--bg-2); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--red); background: color-mix(in srgb, var(--red) 9%, transparent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-trigger { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--muted); cursor: pointer; min-width: 220px; transition: border-color .15s; }
.search-trigger:hover { border-color: var(--muted); }
.search-trigger span { flex: 1; text-align: left; font-size: .92rem; }
kbd { font: 600 .7rem var(--sans); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; background: var(--bg); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }
.menu-btn { display: none; }

/* ---------- boutons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-ink); color: #fff; }
.btn-ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .86rem; }
.btn-block { width: 100%; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.chip .ico { width: 16px; height: 16px; }
.chip:hover { color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--card)); }
.tag { font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; color: var(--c); background: color-mix(in srgb, var(--c) 11%, transparent); }
.tag-muted { --c: var(--muted); }
.badge { position: absolute; top: 12px; left: 12px; background: rgba(17, 24, 39, .78); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px); }

/* ---------- héros accueil ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: #111; overflow: hidden; }
.hero h1, .hero .lead, .hero .eyebrow { text-shadow: 0 2px 20px rgba(0, 0, 0, .7), 0 1px 4px rgba(0, 0, 0, .6); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: heroFade 30s infinite; animation-delay: calc(var(--i) * 6s); }
.hero-bg img:first-child { opacity: 1; }
/* Photos en couleurs d'origine, sans voile ; la lisibilité du texte repose sur son ombre portée */
@keyframes heroFade { 0%, 100% { opacity: 0; } 3%, 20% { opacity: 1; } 24% { opacity: 0; } }
.hero-inner { padding: clamp(64px, 11vw, 140px) 0 clamp(56px, 8vw, 110px); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.4rem); max-width: 16ch; }
.hero .lead { color: rgba(255, 255, 255, .86); }
.hero-search { display: flex; align-items: center; gap: 10px; background: #fff; color: #111827; border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 640px; box-shadow: var(--shadow-lg); margin-top: 28px; }
.hero-search input { flex: 1; border: 0; outline: 0; background: transparent; height: 46px; font-size: 1.02rem; min-width: 0; color: #111827; }
.hero-search .ico { color: #6b7280; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-quick a { font-size: .86rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); }
.hero-quick a:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.page-search { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.page-search input { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -36px; position: relative; box-shadow: var(--shadow); }
.stats div { background: var(--card); padding: 22px 24px; }
.stats b { display: block; font: 650 2rem/1 var(--serif); color: var(--red); }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0 0; }
.section:last-child { padding-bottom: 72px; }
.band { background: var(--bg-2); padding-bottom: clamp(40px, 6vw, 72px); margin-top: clamp(40px, 6vw, 72px); }
.band + .section { padding-top: clamp(40px, 6vw, 72px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.link-arrow .ico { transition: transform .15s; }
.link-arrow:hover .ico { transform: translateX(3px); }
.page-head { padding: 36px 0 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a:not(:last-child)::after, .crumbs > *:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--line); }
.crumbs span[aria-current] { color: var(--ink-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- grilles & cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
[data-list] > .card { content-visibility: auto; contain-intrinsic-size: auto 320px; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.04); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; font-size: .9rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.company-card .card-media { aspect-ratio: 16 / 9; }

/* placeholder graphique (pas de photo) */
.ph { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--c) 55%, #fff) 0%, transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--c) 92%, #000) 0%, color-mix(in srgb, var(--c) 70%, #111827) 100%); }
.ph::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); }
.ph span { position: relative; font: 650 clamp(1.6rem, 3vw, 2.4rem)/1 var(--serif); letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.ph-ico { position: absolute; right: -6%; bottom: -14%; width: 55%; height: auto; opacity: .16; stroke-width: 1.2; }

/* ---------- thèmes ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.theme-card { position: relative; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.theme-card::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: color-mix(in srgb, var(--c) 10%, transparent); transition: transform .3s; }
.theme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 40%, transparent); color: inherit; }
.theme-card:hover::after { transform: scale(1.3); }
.theme-ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); margin-bottom: 14px; }
.theme-ico.xl { width: 72px; height: 72px; padding: 16px; border-radius: 18px; margin: 0; flex: none; }
.theme-card h3 { margin: 0 0 4px; font-size: 1rem; }
.theme-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.theme-grid.large .theme-card { padding: 28px; }
.theme-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, var(--bg)) 0%, var(--bg) 70%); border-bottom: 1px solid var(--line); padding: 32px 0 40px; }
.theme-hero-row { display: flex; align-items: center; gap: 22px; }
.theme-hero h1 { margin: 0 0 6px; }
.theme-hero .lead { margin: 0; }

/* ---------- magazines ---------- */
.mag-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.mag-rail > * { scroll-snap-align: start; }
.mag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 22px; }
.mag-card { display: flex; flex-direction: column; gap: 12px; }
.mag-card h3 { margin: 0; font-size: .98rem; }
.mag-body { display: flex; flex-direction: column; gap: 4px; }
.mag-body .eyebrow { margin: 0; }
.mag-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cover { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--bg-2); box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 10px 26px -10px rgba(17, 24, 39, .45); transition: transform .25s ease, box-shadow .25s ease; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18) 0, rgba(255,255,255,.12) 2.5%, transparent 5%); pointer-events: none; }
.mag-cover-link:hover .cover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 22px 40px -14px rgba(17, 24, 39, .55); }
.cover-gen { display: flex; flex-direction: column; padding: 14% 12%; color: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 85%, #000) 0%, #111827 100%); }
.cover-gen .cg-brand { font: 800 .8rem/1.05 var(--sans); letter-spacing: .14em; border-top: 3px solid var(--red); padding-top: 8px; }
.cover-gen .cg-title { font: 650 1.45rem/1.08 var(--serif); margin-top: auto; position: relative; z-index: 1; }
.cover-gen .cg-year { font: 700 2.6rem/1 var(--serif); color: color-mix(in srgb, var(--c) 40%, #fff); margin-top: 6px; position: relative; z-index: 1; }
.cover-gen .cg-ico { position: absolute; right: -14%; top: 22%; width: 80%; height: auto; opacity: .14; stroke-width: 1; }
.cover.xs { width: 44px; flex: none; border-radius: 3px; }
.cover.xs.cover-gen { padding: 4px; } .cover.xs .cg-brand, .cover.xs .cg-title, .cover.xs .cg-ico { display: none; } .cover.xs .cg-year { font-size: .7rem; }
.cover.sm { width: 92px; flex: none; }
.cover.sm .cg-brand { font-size: .45rem; } .cover.sm .cg-title { font-size: .7rem; } .cover.sm .cg-year { font-size: 1.1rem; }
.cover.lg { width: min(320px, 100%); flex: none; }
.mag-hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 40px 0 48px; }
.mag-hero-inner { display: flex; gap: 48px; align-items: flex-start; }
.file-list { display: grid; gap: 10px; margin-top: 24px; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); flex-wrap: wrap; }
.file-row > span:first-child { display: flex; gap: 12px; align-items: center; min-width: 0; }
.file-row > span:first-child > span { display: flex; flex-direction: column; min-width: 0; }
.file-row .muted { font-size: .84rem; overflow-wrap: anywhere; }
.file-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: .88rem; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filter-search { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.filter-search .ico { color: var(--muted); }
.filter-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; }
.filters select { height: 44px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; appearance: none; max-width: 100%; cursor: pointer; }
.toggle { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.toggle input { accent-color: var(--red); width: 18px; height: 18px; }
.filter-count { margin-left: auto; color: var(--muted); font-size: .88rem; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 22px; }
.letters button { min-width: 34px; height: 34px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--ink-2); padding: 0 8px; }
.letters button:hover { border-color: var(--muted); }
.letters button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
[hidden] { display: none !important; }

/* ---------- fiche détail ---------- */
.detail-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, var(--bg)) 0%, var(--bg) 75%); border-bottom: 1px solid var(--line); padding: 36px 0; }
.detail-hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.detail-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); }
.detail-img { width: 100%; height: 100%; object-fit: cover; }
.detail-text h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 44px 0 0; align-items: start; }
.detail-main section { margin-bottom: 40px; }
.prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); white-space: pre-line; }
.detail-side { position: sticky; top: 88px; display: grid; gap: 16px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--card); box-shadow: var(--shadow); }
.contact-card h2 { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.ci { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; font-size: .95rem; overflow-wrap: anywhere; }
.ci .ico { color: var(--red); margin-top: 2px; }
.ci a { color: var(--ink); border-bottom: 1px solid var(--line); }
.ci a:hover { color: var(--red); border-color: var(--red); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 24px 0; }
.gallery a { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; display: block; background: var(--bg-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.appear-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.appear-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.appear-list li > a:first-child { display: flex; align-items: center; gap: 14px; min-width: 0; }
.appear-list li > a:first-child > span { display: flex; flex-direction: column; min-width: 0; }
.appear-list .muted { font-size: .85rem; }

/* ---------- article ---------- */
.article-head { padding: 40px 0 24px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.article-media { margin-bottom: 36px; }
.article-img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-media .ph { aspect-ratio: 21 / 9; border-radius: var(--radius); }
.article-body .prose:first-of-type::first-letter { font: 650 3.4rem/.9 var(--serif); float: left; margin: 6px 10px 0 0; color: var(--red); }
blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--red); font: 500 clamp(1.25rem, 2.2vw, 1.55rem)/1.4 var(--serif); color: var(--ink); }
blockquote cite { display: block; margin-top: 10px; font: 500 .9rem var(--sans); color: var(--muted); font-style: normal; }
.people { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.people li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.people li .ico { color: var(--red); margin-top: 2px; }
.people li span { display: flex; flex-direction: column; font-size: .92rem; }
.source-box { display: flex; gap: 20px; align-items: center; padding: 20px; margin: 36px 0 0; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.source-box h3 { margin: 0 0 4px; font: 650 1.15rem var(--serif); }
.source-box .eyebrow { margin-bottom: 4px; }
.source-box .muted { margin-bottom: 12px; font-size: .9rem; }

/* ---------- recherche ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10, 12, 18, .55); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.search-panel { width: min(720px, 100%); max-height: 78vh; display: flex; flex-direction: column; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(-8px) scale(.98); opacity: 0; } }
.search-field { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.search-field > .ico { color: var(--red); width: 22px; height: 22px; }
.search-field input { flex: 1; height: 44px; border: 0; outline: 0; background: transparent; font-size: 1.1rem; min-width: 0; }
.search-results { overflow-y: auto; padding: 8px; }
.sr-group { padding: 10px 12px 4px; font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.sr-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; }
.sr-item:hover, .sr-item[aria-selected="true"] { background: var(--bg-2); color: inherit; }
.sr-thumb { width: 52px; height: 40px; border-radius: 8px; overflow: hidden; flex: none; background: var(--bg-2); display: grid; place-items: center; }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-thumb .ph span { font-size: .85rem; }
.sr-thumb .ph-ico { display: none; }
.sr-thumb.ico-only { color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.sr-text { min-width: 0; display: flex; flex-direction: column; }
.sr-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-text span { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-text mark, .search-page-results mark { background: color-mix(in srgb, var(--red) 18%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.sr-hint { padding: 16px; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sr-hint a { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; }
.search-page-results { padding-bottom: 72px; }
.search-page-results .sr-item { border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 4px; }

/* ---------- pied de page ---------- */
.site-footer { margin-top: 80px; background: #0f1218; color: #c9ced8; padding: 56px 0 24px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.footer-grid p { max-width: 44ch; font-size: .92rem; color: #9aa3b2; }
.footer-grid h3 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; font-size: .92rem; padding: 3px 0; color: #c9ced8; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #262b35; margin-top: 40px; padding-top: 18px; font-size: .82rem; color: #7d8696; }

/* ---------- visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 10, 14, .92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; animation: fadeIn .15s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: var(--shadow-lg); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-trigger { min-width: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .main-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; margin: 0; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; border-radius: 10px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero-inner, .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-side { position: static; }
  .mag-hero-inner { flex-direction: column; gap: 28px; }
  .cover.lg { width: min(240px, 70%); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .company-card { flex-direction: row; }
  .company-card .card-media { width: 112px; aspect-ratio: auto; flex: none; }
  .company-card .card-body { padding: 12px 14px; }
  .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .mag-rail { grid-auto-columns: 62%; }
  .hero-search { flex-wrap: nowrap; padding-left: 14px; }
  .hero-search .btn { padding: 0 14px; }
  .section-head { flex-wrap: wrap; }
  .filter-count { margin-left: 0; width: 100%; }
  .source-box { flex-direction: column; align-items: flex-start; }
  .theme-hero-row { flex-direction: column; align-items: flex-start; }
  .article-img, .article-media .ph { aspect-ratio: 16 / 10; }
  .brand-text { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-bg img:not(:first-child) { display: none; }
}

/* ---------- visuels de thème (photos) ---------- */
.ph-photo { background: #111827; }
.ph-photo::before { display: none; }
.ph-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.ph-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, transparent) 0%, rgba(17, 24, 39, .72) 100%); }
.ph-photo span { z-index: 1; font-size: clamp(1.3rem, 2.4vw, 2rem); padding: 6px 14px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 10px; backdrop-filter: blur(2px); }
.theme-card.has-photo { color: #fff; border: 0; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.theme-card.has-photo::after { inset: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(180deg, rgba(17, 24, 39, .05) 0%, rgba(17, 24, 39, .82) 75%); z-index: -1; transform: none !important; }
.theme-card .tc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.theme-card.has-photo:hover { color: #fff; }
.theme-card.has-photo:hover .tc-img { transform: scale(1.06); }
.theme-card.has-photo p { color: rgba(255, 255, 255, .82); }
.theme-card.has-photo .theme-ico { color: #fff; background: color-mix(in srgb, var(--c) 75%, transparent); backdrop-filter: blur(4px); }
.theme-grid.large .theme-card.has-photo { min-height: 240px; }
.theme-hero.has-photo { position: relative; isolation: isolate; color: #fff; border-bottom: 0; padding: 48px 0 56px; overflow: hidden; }
.theme-hero .th-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.theme-hero.has-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(17, 24, 39, .88) 0%, color-mix(in srgb, var(--c) 55%, rgba(17, 24, 39, .4)) 100%); }
.theme-hero.has-photo .lead, .theme-hero.has-photo .crumbs, .theme-hero.has-photo .crumbs span[aria-current] { color: rgba(255, 255, 255, .85); }
.theme-hero.has-photo .theme-ico { color: #fff; background: rgba(255, 255, 255, .14); }

/* Filtre de collections : défilement horizontal plutôt que retour à la ligne */
.seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; white-space: nowrap; }
@media (max-width: 620px) {
  .filters select { flex: 1 1 45%; }
  .letters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .letters button { flex: none; }
}
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.mag-actions { flex-wrap: nowrap; gap: 6px; }
.mag-actions .btn-sm { padding: 0 10px; font-size: .8rem; gap: 5px; }

/* ---------- texte intégral ---------- */
.summary-box { background: var(--bg-2); border-left: 3px solid var(--red); border-radius: 0 12px 12px 0; padding: 16px 20px; margin-bottom: 28px; }
.summary-box .eyebrow { margin-bottom: 6px; }
.summary-box p:last-child { margin: 0; color: var(--ink-2); }
.full-text { margin-top: 36px; font-size: 1.06rem; line-height: 1.78; color: var(--ink-2); }
.full-text h2 { margin-bottom: 18px; }
.full-text h3 { font: 650 1.2rem/1.3 var(--serif); color: var(--ink); margin: 28px 0 10px; }
.full-text p { margin: 0 0 1.05em; }
.full-text .ft-q { font-weight: 650; color: var(--ink); margin-top: 1.6em; }
.full-text > h2 + p:not(.ft-q)::first-letter { font: 650 3.2rem/.9 var(--serif); float: left; margin: 6px 10px 0 0; color: var(--red); }
.full-text .ft-note, .full-text .ft-source { font-size: .88rem; color: var(--muted); font-style: italic; }
.full-text .ft-source { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 28px; }

/* ---------- transparence IA & pages légales ---------- */
.ai-badge { position: absolute; right: 8px; bottom: 8px; z-index: 2; font: 600 .66rem/1 var(--sans); letter-spacing: .04em; color: #fff; background: rgba(17, 24, 39, .72); padding: 4px 7px; border-radius: 999px; backdrop-filter: blur(4px); pointer-events: none; }
.theme-card .ai-badge { top: 10px; bottom: auto; right: 10px; }
.theme-hero .ai-badge { top: 12px; bottom: auto; }
.ph .ph-mono { position: relative; z-index: 1; }
.hero-ai-note { position: absolute; right: 6px; bottom: 40px; margin: 0; font-size: .55rem; line-height: 1.2; color: rgba(255, 255, 255, .75); background: rgba(0, 0, 0, .25); padding: 1px 5px; border-radius: 4px; z-index: 1; }
.ai-note { display: flex; gap: 6px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.ai-note .ico { margin-top: 2px; }
.ai-note a { text-decoration: underline; }
.report-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-size: .85rem; color: var(--muted); text-decoration: underline; }
.contact-card .report-link { display: flex; }
.source-box .report-link { margin: 0 12px 8px 0; }
.legal section { margin-bottom: 36px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 10px; }
.legal a { text-decoration: underline; }
.legal code { font-size: .9em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
/* le badge IA ne doit pas hériter du style du monogramme (.ph span) */
.ph span.ai-badge, .ph-photo span.ai-badge { position: absolute; top: auto; right: 8px; bottom: 8px; font: 600 .66rem/1 var(--sans); letter-spacing: .04em; padding: 4px 7px; border: 0; border-radius: 999px; text-shadow: none; background: rgba(17, 24, 39, .72); }
.co-notice { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; line-height: 1.45; background: var(--soft, rgba(0,0,0,.04)); border-left: 3px solid var(--red-ink); padding: 10px 12px; border-radius: 6px; margin: 0 0 14px; }
