/* Barre Insights French Tech au-dessus de l'en-tête de la section non dilutive : relie la section au site. */
.ift-bar { background: var(--sheet); color: var(--ink); font-family: var(--font); font-size: 13.5px; border-bottom: 1px solid var(--line); }
.ift-bar .wrap { display: flex; align-items: center; gap: 18px; height: 40px !important; }
.ift-brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; white-space: nowrap; }
.ift-brand .lg { display: none; align-items: baseline; gap: 8px; }
[data-style="edito"] .ift-brand .lg-edito, [data-style="bento"] .ift-brand .lg-bento { display: inline-flex; }
.lg-edito b { font-family: "Alegreya", Georgia, serif; font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; }
.lg-edito b i { font-style: normal; color: var(--terra); }
.lg-edito small { font-family: "Alegreya Sans", sans-serif; font-weight: 700; font-size: .55rem; letter-spacing: .26em; }
.lg-bento { gap: 0 !important; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.04em; }
.lg-bento .dot { position: relative; }
.lg-bento .dot::after { content: ""; position: absolute; left: 50%; top: .16em; width: .3em; height: .3em; margin-left: -.15em; border-radius: 50%; background: #FF5A36; }
.ift-links { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.ift-links::-webkit-scrollbar { display: none; }
.ift-links a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; white-space: nowrap; font-weight: 600; transition: color .2s, background .2s; }
.ift-links a:hover { color: var(--ink); }
.ift-links a[aria-current="page"] { color: var(--terra); }
[data-style="bento"] .ift-links a { border-radius: 99px; }
[data-style="bento"] .ift-links a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.stylesw { display: inline-flex; flex: none; padding: 2px; gap: 2px; border: 1px solid var(--line-2); background: var(--sheet); }
.stylesw button { border: 0; background: transparent; min-height: 28px; padding: 0 10px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.stylesw button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
[data-style="bento"] .stylesw, [data-style="bento"] .stylesw button { border-radius: 99px; }
[data-style="bento"] .stylesw { border-color: transparent; background: var(--bg); }
@media (max-width: 720px) { .ift-links a:nth-child(1), .ift-links a:nth-child(3), .ift-links a:nth-child(6) { display: none; } .ift-links a { padding: 6px 7px; } .ift-bar .wrap { gap: 8px; } }
@media (max-width: 420px) { .lg-edito small { display: none; } }
/* l'en-tête gagne 34 px : on décale le contenu en conséquence */
main { padding-top: 106px; }
@media (max-width: 1000px) { main { padding-top: 100px; } }
main.home { padding-top: 0; }
.top.over .ift-bar { background: color-mix(in srgb, var(--sheet) 92%, transparent); }
/* contenu rendu côté serveur, visible avant le chargement de l'application et sans JavaScript */
.ssr { padding-block: 40px 20px; }
.ssr h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; margin: 10px 0 16px; }
.ssr h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 32px 0 8px; }
.ssr dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.ssr dt { color: var(--ink-3); font-family: var(--mono); font-size: 13px; }
.ssr dd { margin: 0; }
main.home .ssr { padding-top: 140px; }
@media (max-width: 420px) { #theme { display: none; } }
@media (max-width: 1100px) { .brand b { font-size: 21px; } }
@media (max-width: 560px) { .brand .bw { display: none; } }

/* ---------- styles Édito / Bento partagés avec le reste du site (html[data-style]) ---------- */
:root[data-style="edito"] {
  --bg: #FFFFFF; --paper: #FFFFFF; --sheet: #FFFFFF; --sky: #1F4FA3; --sky-deep: #111111;
  --ink: #111111; --ink-2: #3D3D3D; --ink-3: #666666; --line: #E2E2E2; --line-2: #B5B5B5;
  --terra: #C8231A; --terra-2: #A01B14; --brass: #A8821A;
  --c-sub: #1F4FA3; --c-pret: #3F7F8C; --c-gar: #5A6B8E; --c-fisc: #A8821A; --c-vd: #C8231A; --ok: #2E7D4F; --warn: #A8821A; --hot: #C8231A;
  --serif: "Alegreya", Georgia, serif; --font: "Alegreya Sans", "Helvetica Neue", system-ui, sans-serif; --mono: "Alegreya Sans", "Helvetica Neue", system-ui, sans-serif;
  --r: 0px; --grain: none; color-scheme: light;
}
:root[data-style="bento"] {
  --bg: #ECECEA; --paper: #FFFFFF; --sheet: #FFFFFF; --sky: #2438F0; --sky-deep: #0E0E10;
  --ink: #0E0E10; --ink-2: #3A3A40; --ink-3: #66666E; --line: #DEDEDA; --line-2: #C4C4BE;
  --terra: #C23A17; --terra-2: #A02F12; --brass: #B08A00;
  --c-sub: #2438F0; --c-pret: #00875F; --c-gar: #5B6BE0; --c-fisc: #B08A00; --c-vd: #C23A17; --ok: #00875F; --warn: #B08A00; --hot: #C23A17;
  --serif: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif; --font: "Inter", "Helvetica Neue", system-ui, sans-serif; --mono: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --r: 18px; --grain: none; color-scheme: light;
}
:root[data-style="edito"][data-theme="dark"] {
  --bg: #111111; --paper: #151515; --sheet: #1A1A1A; --sky: #93B2FF; --sky-deep: #0A0A0A;
  --ink: #F2F0EB; --ink-2: #CFCBC2; --ink-3: #A6A39C; --line: #2A2A2A; --line-2: #4A4A4A;
  --terra: #FF5E52; --terra-2: #FF7D73; --c-sub: #93B2FF; --c-pret: #6FC1C9; --c-gar: #B3BCFF; --c-fisc: #E3C15A; --c-vd: #FF5E52; --ok: #7FC79A; --warn: #E3C15A; --hot: #FF5E52; color-scheme: dark;
}
:root[data-style="bento"][data-theme="dark"] {
  --bg: #0E0E10; --paper: #1A1A1F; --sheet: #1F1F25; --sky: #7686FF; --sky-deep: #050507;
  --ink: #F4F4F2; --ink-2: #C9C9CF; --ink-3: #9A9AA3; --line: #2A2A31; --line-2: #3A3A43;
  --terra: #FF7A5C; --terra-2: #FF9479; --c-sub: #7686FF; --c-pret: #3DD6A3; --c-gar: #B3BCFF; --c-fisc: #F2C94C; --c-vd: #FF7A5C; --ok: #3DD6A3; --warn: #F2C94C; --hot: #FF7A5C; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="edito"]:not([data-theme="light"]) {
    --bg: #111111; --paper: #151515; --sheet: #1A1A1A; --sky: #93B2FF; --sky-deep: #0A0A0A;
    --ink: #F2F0EB; --ink-2: #CFCBC2; --ink-3: #A6A39C; --line: #2A2A2A; --line-2: #4A4A4A;
    --terra: #FF5E52; --terra-2: #FF7D73; --c-sub: #93B2FF; --c-pret: #6FC1C9; --c-gar: #B3BCFF; --c-fisc: #E3C15A; --c-vd: #FF5E52; --ok: #7FC79A; --warn: #E3C15A; --hot: #FF5E52; color-scheme: dark;
  }
  :root[data-style="bento"]:not([data-theme="light"]) {
    --bg: #0E0E10; --paper: #1A1A1F; --sheet: #1F1F25; --sky: #7686FF; --sky-deep: #050507;
    --ink: #F4F4F2; --ink-2: #C9C9CF; --ink-3: #9A9AA3; --line: #2A2A31; --line-2: #3A3A43;
    --terra: #FF7A5C; --terra-2: #FF9479; --c-sub: #7686FF; --c-pret: #3DD6A3; --c-gar: #B3BCFF; --c-fisc: #F2C94C; --c-vd: #FF7A5C; --ok: #3DD6A3; --warn: #F2C94C; --hot: #FF7A5C; color-scheme: dark;
  }
}
[data-style="edito"] .top:not(.over) { border-bottom: 3px double var(--ink); }
[data-style="edito"] .brand b { font-weight: 500; }
[data-style="bento"] .brand b { font-weight: 700; letter-spacing: -0.04em; }
[data-style="bento"] .cta-top { border-radius: 99px; }
[data-style="bento"] main h1, [data-style="bento"] main h2, [data-style="bento"] main h3 { font-weight: 700; letter-spacing: -0.04em; }
[data-style="edito"] main h1, [data-style="edito"] main h2 { font-weight: 500; letter-spacing: -0.02em; }
