/* ==========================================================================
   DEMOCRATIENEWS
   Bleu et rouge du logo, or réservé aux contenus abonnés.
   Titres : Schibsted Grotesk. Lecture : Newsreader.
   ========================================================================== */

@font-face { font-family: "Schibsted"; src: url("../fonts/schibsted.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("../fonts/schibsted-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }

:root {
    --bleu: #1b3580;
    --bleu-nuit: #0b1633;
    --rouge: #d60d0d;
    --or: #e2a72e;
    --or-texte: #8a5a00;

    --fond: #ffffff;
    --fond-2: #f2f4f9;
    --surface: #ffffff;
    --encre: #0e1730;
    --encre-2: #3a4563;
    --gris: #5b6683;
    --trait: #e0e5ef;
    --trait-fort: #c6cede;
    --lien: #1b3580;
    --logo: #1b3580;
    --erreur: #b3140f;
    --erreur-fond: #fdecea;
    --ok: #17663f;
    --ok-fond: #e5f4ec;

    --titre: "Schibsted", "Helvetica Neue", Arial, sans-serif;
    --lecture: "Newsreader", Georgia, "Times New Roman", serif;
    --rayon: 4px;
    --large: 1240px;
}

[data-theme="sombre"] {
    --fond: #0d1426;
    --fond-2: #131c33;
    --surface: #16203a;
    --encre: #eef2fb;
    --encre-2: #c5cde0;
    --gris: #9aa6c1;
    --trait: #26324f;
    --trait-fort: #3b496b;
    --lien: #9db6ff;
    --logo: #ffffff;
    --or-texte: #f0bf57;
    --erreur: #ff9d97;
    --erreur-fond: #3a1a1d;
    --ok: #86dcb0;
    --ok-fond: #12332a;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 16px/1.5 var(--titre); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.012em; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--rouge); color: #fff; }
[hidden] { display: none !important; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.cache { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; }
.evitement { position: fixed; top: -60px; left: 16px; z-index: 200; background: var(--rouge); color: #fff; padding: 12px 18px; font-weight: 700; }
.evitement:focus { top: 12px; }
.cadre { width: 100%; max-width: calc(var(--large) + 48px); margin: 0 auto; padding: 0 24px; }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1.5px solid transparent; border-radius: var(--rayon); background: var(--bleu); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; transition: background .16s, border-color .16s, color .16s; }
.bouton:hover { background: #24449f; }
.bouton-rouge { background: var(--rouge); }
.bouton-rouge:hover { background: #b00a0a; }
.bouton-or { background: var(--or); color: #1a1200; }
.bouton-or:hover { background: #f0bb4c; }
.bouton-ligne { background: transparent; border-color: var(--trait-fort); color: var(--encre); }
.bouton-ligne:hover { background: transparent; border-color: var(--encre); }
.bouton-plein { width: 100%; min-height: 50px; }
.bouton-icone { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; font-size: 18px; transition: background .16s; }
.bouton-icone:hover { background: var(--fond-2); }
.bouton-rond { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--trait-fort); border-radius: 50%; font-size: 15px; transition: background .16s, color .16s, border-color .16s; }
.bouton-rond:hover { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.bouton-rond.est-actif { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.bouton-rond.est-actif svg { fill: currentColor; }

/* ---------- En-tête ---------- */
.masthead { background: var(--fond); }
.masthead-ligne { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 96px; }
.masthead-gauche, .masthead-droite { display: flex; align-items: center; gap: 8px; }
.masthead-droite { justify-content: flex-end; }
.masthead-date { margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--trait); color: var(--gris); font-size: 14px; }
.bouton-menu { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding-right: 8px; font-weight: 700; font-size: 15px; }
.bouton-menu .ico { width: 22px; height: 22px; }
.bouton-compte { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; font-weight: 600; font-size: 15px; }
.bouton-compte:hover { color: var(--rouge); }
.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo-icone svg { display: block; height: 62px; width: auto; }
.logo-blue { fill: var(--logo); }
.logo-texte strong { display: block; color: var(--logo); font-weight: 900; font-size: 31px; line-height: 1; letter-spacing: -.02em; }
.logo-texte small { display: block; margin-top: 6px; color: var(--encre-2); font-size: 13.4px; line-height: 1.2; }
.ico-soleil, [data-theme="sombre"] .ico-lune { display: none; }
[data-theme="sombre"] .ico-soleil { display: block; }

.barre { position: sticky; top: 0; z-index: 50; background: var(--fond); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); transition: box-shadow .2s; }
.barre.est-collee { box-shadow: 0 8px 24px rgba(11, 22, 51, .1); }
.barre-ligne { display: flex; align-items: stretch; justify-content: center; min-height: 58px; position: relative; }
.barre-menu { display: flex; }
.barre-menu > li { position: relative; display: flex; }
.barre-menu > li > a { position: relative; display: flex; align-items: center; gap: 4px; padding: 0 17px; font-weight: 700; font-size: 16px; white-space: nowrap; transition: color .16s, background .16s; }
.barre-menu > li > a .ico { width: 15px; height: 15px; opacity: .65; }
.barre-menu > li > a::after { content: ""; position: absolute; left: 50%; bottom: 13px; width: 22px; height: 2px; margin-left: -11px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.barre-menu > li > a:hover { color: var(--rouge); }
.barre-menu > li.est-actif > a { margin: -1px 0; background: var(--teinte, var(--rouge)); color: #fff; }
.barre-menu > li.est-actif > a::after { transform: scaleX(1); }
.sous-menu { position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px 0; background: var(--surface); border-top: 3px solid var(--teinte, var(--rouge)); box-shadow: 0 18px 40px rgba(11, 22, 51, .16); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s; }
.a-enfants:hover .sous-menu, .a-enfants:focus-within .sous-menu { opacity: 1; visibility: visible; transform: none; }
.sous-menu a { display: block; padding: 9px 20px; font-size: 15px; font-weight: 500; }
.sous-menu a:hover { background: var(--fond-2); color: var(--rouge); }
.barre-logo, .barre-fin { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.barre-logo { left: 24px; }
.barre-logo svg { height: 40px; width: auto; display: block; }
.barre-fin { right: 24px; }
.barre-fin .bouton { min-height: 38px; padding: 8px 16px; }
.est-collee .barre-ligne { justify-content: flex-start; }
.est-collee .barre-menu { margin-left: 62px; }
.est-collee .barre-menu > li > a { padding: 0 12px; font-size: 15.5px; }
.est-collee .barre-logo, .est-collee .barre-fin { opacity: 1; visibility: visible; }

.bandeau { border-bottom: 1px solid var(--trait); }
.bandeau-ligne { display: flex; align-items: center; gap: 20px; min-height: 48px; }
.bandeau-titre { align-self: stretch; display: flex; align-items: center; padding: 0 18px; background: var(--rouge); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.bandeau-fil { position: relative; flex: 1; height: 24px; overflow: hidden; }
.bandeau-fil a { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s; pointer-events: none; }
.bandeau-fil a.est-visible { opacity: 1; transform: none; pointer-events: auto; }
.bandeau-fil a:hover { color: var(--rouge); }
.bandeau-fil time { margin-right: 10px; color: var(--rouge); font-weight: 700; }
[data-theme="sombre"] .bandeau-fil time { color: #ff7a72; }
.bandeau-liens { display: flex; gap: 22px; font-size: 15px; color: var(--encre-2); }
.bandeau-liens a:hover { color: var(--rouge); }

/* Tiroir et recherche */
.tiroir, .recherche { position: fixed; inset: 0; z-index: 120; background: rgba(11, 22, 51, .55); animation: voile .18s; }
.tiroir-panneau { width: min(380px, 88vw); height: 100%; overflow-y: auto; padding: 20px 26px 40px; background: var(--fond); animation: glisse .24s cubic-bezier(.2, .7, .2, 1); }
.tiroir-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 18px; }
.tiroir-rubriques > li { border-bottom: 1px solid var(--trait); }
.tiroir-rubriques > li > a { display: block; padding: 12px 0; font-weight: 700; font-size: 18px; }
.tiroir-rubriques a:hover, .tiroir-liens a:hover { color: var(--rouge); }
.tiroir-rubriques ul { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 12px; color: var(--encre-2); font-size: 15px; }
.tiroir-liens { columns: 2; margin: 20px 0; font-size: 15px; }
.tiroir-liens li { padding: 5px 0; break-inside: avoid; }
.recherche-panneau { background: var(--fond); padding: 34px 24px; animation: descend .22s cubic-bezier(.2, .7, .2, 1); }
.recherche-panneau form { display: flex; align-items: center; gap: 14px; max-width: 900px; margin: 0 auto; border-bottom: 2px solid var(--encre); padding-bottom: 10px; }
.recherche-panneau .ico { width: 24px; height: 24px; }
.recherche-panneau input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: clamp(20px, 3vw, 30px); font-weight: 600; }
@keyframes voile { from { opacity: 0; } }
@keyframes glisse { from { transform: translateX(-40px); } }
@keyframes descend { from { transform: translateY(-30px); } }

.reseaux { display: flex; flex-wrap: wrap; gap: 8px; }
.reseaux a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--trait-fort); border-radius: 50%; }
.reseaux a:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; }

/* ---------- La une ---------- */
.une { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 310px 310px; gap: 6px; margin: 34px 0 0; }
.tuile { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 26px; overflow: hidden; background: var(--bleu-nuit); color: #fff; isolation: isolate; }
.tuile-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.tuile-2 { grid-column: 3 / 5; }
.une-1 .tuile-1 { grid-column: 1 / 5; }
.une-2 .tuile-2 { grid-row: 1 / 3; }
.une-3 .tuile-3 { grid-column: 3 / 5; }
.tuile-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.tuile:hover .tuile-image { transform: scale(1.05); }
.tuile-teinte { position: absolute; inset: 0; z-index: -1; transition: opacity .5s; background: linear-gradient(to top, rgba(5, 10, 28, .82) 0%, rgba(5, 10, 28, .46) 30%, rgba(5, 10, 28, 0) 62%), linear-gradient(125deg, var(--t1), var(--t2)); }
.tuile-1 { --t1: rgba(60, 175, 130, .4); --t2: rgba(30, 85, 190, .46); }
.tuile-2 { --t1: rgba(20, 45, 140, .58); --t2: rgba(235, 135, 10, .36); }
.tuile-3 { --t1: rgba(60, 24, 150, .5); --t2: rgba(224, 30, 40, .42); }
.tuile-4 { --t1: rgba(214, 60, 13, .5); --t2: rgba(240, 190, 40, .42); }
.tuile-5 { --t1: color-mix(in srgb, var(--teinte) 60%, transparent); --t2: rgba(11, 22, 51, .55); }
.tuile .etiquette { position: relative; z-index: 2; }
.tuile-texte { width: 100%; }
.tuile h2 { font-weight: 800; font-size: 25px; line-height: 1.16; }
.tuile-1 h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; max-width: 17em; }
.tuile-3 h2, .tuile-4 h2 { font-size: 21px; line-height: 1.2; }
.tuile h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s; }
.tuile:hover h2 a { background-size: 100% 2px; }
.tuile h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tuile .meta { margin: 0 0 8px; color: #fff; }
.tuile-chapo { margin-top: 10px; max-width: 34em; color: #e6ebf8; font-size: 16px; }
.anneau { position: absolute; top: 22px; right: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 54px; border: 3px solid rgba(255, 255, 255, .55); border-top-color: #fff; border-radius: 50%; background: rgba(5, 10, 28, .32); line-height: 1; }
.anneau b { font-size: 17px; }
.anneau small { margin-top: 2px; font-size: 10.5px; }
.anneau .ico { width: 20px; height: 20px; }
.anneau.est-reserve { border-color: var(--or); background: var(--or); color: #1a1200; }
.eclair { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--rouge); color: #fff; font-size: 12px; }

/* ---------- Étiquettes et méta ---------- */
.etiquette { display: inline-block; padding: 5px 11px; border-radius: var(--rayon); background: var(--teinte, var(--bleu)); color: #fff; font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.etiquette:hover { filter: brightness(1.12); }
.surtitre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 9px; }
.surtitre .etiquette { padding: 0; background: none; color: var(--teinte); font-weight: 700; font-size: 13.5px; }
[data-theme="sombre"] .surtitre .etiquette { color: color-mix(in srgb, var(--teinte) 45%, #fff); }
.marque-abonne { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 3px; background: color-mix(in srgb, var(--or) 20%, transparent); color: var(--or-texte); font-weight: 700; font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
.marque-abonne .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--gris); font-size: 13.5px; line-height: 1.4; }
.meta > * + *:not(.marque-abonne):not(.etat):not(.eclair)::before { content: "·"; margin-right: 12px; color: var(--trait-fort); }
.eclair + time::before { display: none; }
.meta time { word-spacing: .08em; }
.meta a:hover { color: var(--rouge); }
.genre { color: var(--gris); font-size: 13.5px; font-weight: 600; }

/* ---------- Titres de bloc ---------- */
.titre-bloc { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; padding-top: 14px; border-top: 3px solid var(--teinte, var(--encre)); }
[data-theme="sombre"] .titre-bloc { border-top-color: color-mix(in srgb, var(--teinte, #fff) 70%, #fff); }
.titre-bloc h2 { font-weight: 800; font-size: 23px; line-height: 1.2; }
.titre-bloc h2 a:hover { color: var(--rouge); }
.titre-onglets { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--gris); }
.titre-onglets a:hover { color: var(--rouge); }
.tout-voir { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--lien); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.tout-voir:hover { color: var(--rouge); }
.tout-voir .ico { width: 15px; height: 15px; transition: transform .2s; }
.tout-voir:hover .ico { transform: translateX(3px); }

/* ---------- Cartes ---------- */
.vignette { position: relative; display: block; overflow: hidden; background: var(--fond-2); aspect-ratio: 3 / 2; }
.vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
article:hover > .vignette img { transform: scale(1.04); }
.lecture { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--rouge); color: #fff; }
.lecture svg { fill: currentColor; margin-left: 2px; }
.carte-texte { padding-top: 14px; }
.carte h3 { font-weight: 700; font-size: 18.5px; line-height: 1.28; }
.carte.est-grande h3 { font-weight: 800; font-size: clamp(23px, 2.3vw, 29px); line-height: 1.16; }
.carte h3 a, .ligne h3 a, .large h2 a, .fil-liste a, .classement h3 a, .avis h3 a { transition: color .16s; }
.carte h3 a:hover, .ligne h3 a:hover, .large h2 a:hover, .fil-liste > li > a:hover, .classement h3 a:hover, .avis h3 a:hover { color: var(--rouge); }
[data-theme="sombre"] .carte h3 a:hover, [data-theme="sombre"] .ligne h3 a:hover, [data-theme="sombre"] .large h2 a:hover, [data-theme="sombre"] .fil-liste > li > a:hover, [data-theme="sombre"] .classement h3 a:hover { color: #ff8d86; }
.chapo { margin-top: 9px; color: var(--encre-2); font-family: var(--lecture); font-size: 17.5px; line-height: 1.48; }
.carte .meta { margin-top: 10px; }
.ligne { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.ligne .vignette { aspect-ratio: 4 / 3; }
.ligne .lecture { left: 8px; bottom: 8px; width: 30px; height: 30px; font-size: 12px; }
.ligne h3 { font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.ligne .meta { margin-top: 6px; }
.ligne .surtitre { margin-bottom: 5px; }
.pile { display: grid; gap: 22px; align-content: start; }
.pile .ligne + .ligne { padding-top: 22px; border-top: 1px solid var(--trait); }
.large { display: grid; grid-template-columns: 290px 1fr; gap: 26px; padding: 26px 0; border-top: 1px solid var(--trait); }
.large:first-child { border-top: 0; padding-top: 0; }
.large h2 { font-weight: 800; font-size: 23px; line-height: 1.2; }
.large .meta { margin-top: 11px; }
.grille-2, .grille-3, .grille-4 { display: grid; gap: 30px 26px; }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
.une-liste { display: grid; grid-template-columns: 1.18fr 1fr; gap: 32px; }
.une-liste.est-seule { grid-template-columns: 1fr; }
.grille-tuiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 350px; gap: 6px; }
.grille-tuiles .tuile { grid-column: auto; grid-row: auto; }
.grille-tuiles .tuile h2 { font-size: 22px; }
.rubrique { margin-bottom: 50px; }

/* Trois colonnes sous la une */
.trio { display: grid; grid-template-columns: 270px minmax(0, 1fr) 300px; gap: 40px; margin: 46px 0 56px; }
.selection .grille-2 { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--trait); }
.fil-liste > li { position: relative; padding: 0 0 17px 18px; border-left: 1px solid var(--trait); line-height: 1.36; }
.fil-liste > li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--rouge); }
.fil-liste > li:last-child { border-left-color: transparent; }
.fil-liste time { display: block; color: var(--rouge); font-weight: 700; font-size: 13.5px; }
[data-theme="sombre"] .fil-liste time { color: #ff7a72; }
.fil-liste > li > a { font-weight: 500; font-size: 15.5px; }
.fil-liste .marque-abonne { margin-left: 6px; padding: 1px 6px; }
.fil .bouton { width: 100%; margin-top: 4px; }
.fil-page .fil-liste > li > a { font-weight: 700; font-size: 19px; }
.fil-page .fil-liste > li { padding-bottom: 24px; padding-left: 26px; }
.fil-jour { margin: 0 0 18px; font-size: 20px; font-weight: 800; }
.fil-liste + .fil-jour { margin-top: 26px; }

/* Colonne latérale */
.avec-cote { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; margin: 46px 0; align-items: start; }
.cote { display: grid; gap: 36px; align-content: start; }
.cote .emplacement { margin: 0; }
.cote-fixe { position: sticky; top: 84px; }
.titre-cote { margin-bottom: 18px; padding-top: 13px; border-top: 3px solid var(--rouge); font-weight: 800; font-size: 20px; }
.classement { counter-reset: rang; }
.classement li { display: grid; grid-template-columns: 42px 1fr; padding: 14px 0; border-top: 1px solid var(--trait); counter-increment: rang; }
.classement li:first-child { border-top: 0; padding-top: 0; }
.classement li::before { content: counter(rang); color: var(--rouge); font-family: var(--lecture); font-weight: 600; font-size: 38px; line-height: .9; }
[data-theme="sombre"] .classement li::before { color: #ff7a72; }
.classement h3 { font-weight: 700; font-size: 16px; line-height: 1.32; }
.classement .meta { margin-top: 5px; }
.avis { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--trait); }
.titre-cote + .avis { border-top: 0; padding-top: 0; }
.avis-nom { color: var(--rouge); font-weight: 700; font-size: 14px; }
[data-theme="sombre"] .avis-nom { color: #ff8d86; }
.avis h3 { font-family: var(--lecture); font-weight: 600; font-size: 19px; line-height: 1.24; }
.portrait { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; overflow: hidden; border-radius: 50%; background: var(--bleu); color: #fff; font-weight: 700; font-size: 16px; flex: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-grand { width: 104px; height: 104px; font-size: 32px; }
.bloc-lettre, .bloc-abonnement { padding: 26px 24px; background: var(--fond-2); }
.bloc-lettre h2, .bloc-abonnement h2 { font-weight: 800; font-size: 21px; line-height: 1.2; }
.bloc-lettre p, .bloc-abonnement > p:not(.marque-abonne) { margin: 8px 0 16px; color: var(--encre-2); font-size: 15px; }
.bloc-abonnement { background: var(--bleu-nuit); color: #fff; }
.bloc-abonnement > p:not(.marque-abonne) { color: #c8d2ea; }
.bloc-abonnement .marque-abonne, .reserve .marque-abonne, .formules-tete .marque-abonne { background: rgba(226, 167, 46, .18); color: #f3c766; }
.bloc-abonnement h2 { margin-top: 12px; }
.bloc-abonnement .bouton:not(.bouton-or) { background: #fff; color: var(--bleu); }
.bloc-lettre form { display: grid; gap: 10px; }
.bloc-lettre input[type="email"], .pied-lettre input[type="email"] { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--trait-fort); border-radius: var(--rayon); background: var(--surface); }
.coordonnees p { display: flex; gap: 12px; padding: 8px 0; overflow-wrap: anywhere; }
.coordonnees .ico { color: var(--rouge); margin-top: 3px; }

/* Bande abonnés */
.reserve { margin: 0 0 10px; padding: 46px 0 52px; background: var(--bleu-nuit); color: #fff; }
.reserve-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.reserve-tete h2 { margin-top: 12px; font-weight: 800; font-size: 32px; line-height: 1.1; }
.reserve-tete p:not(.marque-abonne) { margin-top: 8px; color: #c8d2ea; }
.reserve .surtitre .etiquette { color: #aebff0; }
.reserve .meta { color: #a9b5d1; }
.reserve .carte h3 a:hover { color: #f3c766; }
.reserve .surtitre .marque-abonne { display: none; }

.videos { margin: 46px 0; padding: 40px 0 46px; background: var(--fond-2); }
.videos-grille { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; }
.videos-grille .est-grande { grid-row: span 2; }

/* ---------- Emplacements publicitaires ---------- */
.emplacement { position: relative; width: 100%; max-width: calc(var(--w) * 1px); margin: 34px auto; }
.emplacement-mention { display: block; margin-bottom: 5px; color: var(--gris); font-size: 11.5px; text-align: center; }
.emplacement .visuel { display: block; }
.emplacement img { width: 100%; height: auto; }
.emplacement picture { display: block; }
.est-libre .visuel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: var(--w) / var(--h); padding: 10px; border: 1px dashed var(--trait-fort); background: var(--fond-2); color: var(--gris); text-align: center; transition: border-color .2s, color .2s; overflow: hidden; }
.est-libre .visuel:hover { border-color: var(--rouge); color: var(--encre); }
.libre-titre { font-weight: 800; font-size: 19px; line-height: 1.2; color: var(--encre-2); }
.libre-format { font-size: 14px; font-variant-numeric: tabular-nums; }
.libre-petit { display: none; }
.libre-lien { color: var(--lien); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.emplacement-bande.est-libre .visuel { max-height: 250px; }
.emplacement-texte { margin: 36px auto; padding: 18px 0; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); font-family: var(--titre); }
.fixe-mobile { display: none; }

/* ---------- Article ---------- */
.progression { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 3px; background: var(--rouge); transform: scaleX(0); transform-origin: left; }
.article-tete { max-width: 900px; padding: 46px 0 30px; }
.article-tete .surtitre { margin-bottom: 16px; gap: 10px; }
.article-tete .surtitre .etiquette { padding: 5px 11px; background: var(--teinte); color: #fff; }
.article-tete h1 { font-weight: 900; font-size: clamp(31px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.022em; }
.article-chapo { margin-top: 18px; color: var(--encre-2); font-family: var(--lecture); font-size: clamp(20px, 2vw, 23px); line-height: 1.42; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--trait); }
.signature-nom { font-weight: 700; }
.signature-nom a { color: var(--lien); text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; gap: 8px; margin-left: auto; }
.article-image img { width: 100%; height: auto; max-height: 680px; object-fit: cover; background: var(--fond-2); }
.article-image figcaption { padding-top: 10px; color: var(--gris); font-size: 14px; }
.article-corps { margin-top: 40px; }
.article-corps > div:first-child { max-width: 720px; width: 100%; justify-self: center; }
.texte { font-family: var(--lecture); font-size: 20.5px; line-height: 1.62; overflow-wrap: break-word; }
.texte > * + * { margin-top: 1.1em; }
.texte > p:first-child::first-letter { float: left; margin: .06em .1em 0 0; color: var(--teinte, var(--bleu)); font-family: var(--titre); font-weight: 900; font-size: 3.5em; line-height: .8; }
[data-theme="sombre"] .texte > p:first-child::first-letter { color: #fff; }
.texte h2 { margin-top: 1.7em; font-family: var(--titre); font-weight: 800; font-size: 27px; line-height: 1.2; }
.texte h3, .texte h4 { margin-top: 1.5em; font-family: var(--titre); font-weight: 700; font-size: 21px; line-height: 1.3; }
.texte h2 + *, .texte h3 + * { margin-top: .6em; }
.texte a:not(.visuel) { color: var(--lien); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.texte a:not(.visuel):hover { color: var(--rouge); }
.texte ul, .texte ol { padding-left: 1.3em; list-style: disc; }
.texte ol { list-style: decimal; }
.texte li + li { margin-top: .4em; }
.texte blockquote { margin: 1.6em 0; padding-left: 26px; border-left: 4px solid var(--rouge); font-style: italic; font-size: 1.220em; line-height: 1.4; }
.texte img { width: 100%; height: auto; }
.texte figcaption { margin-top: 8px; color: var(--gris); font-family: var(--titre); font-size: 14px; }
.texte iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.texte hr { border: 0; height: 1px; background: var(--trait); }
.texte table { display: block; overflow-x: auto; border-collapse: collapse; font-family: var(--titre); font-size: 16px; }
.texte th, .texte td { padding: 10px 14px; border: 1px solid var(--trait); text-align: left; }
.texte-page { max-width: 760px; margin-bottom: 70px; }
.texte-page > p:first-child::first-letter { float: none; margin: 0; color: inherit; font: inherit; }
.est-coupe { position: relative; }
.est-coupe::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; background: linear-gradient(to top, var(--fond), transparent); pointer-events: none; }
.mur { position: relative; margin-top: 10px; padding: 38px 34px; border-top: 4px solid var(--or); background: var(--fond-2); text-align: center; }
.mur h2 { margin-top: 14px; font-weight: 800; font-size: 29px; line-height: 1.15; }
.mur-reste { margin-top: 8px; color: var(--encre-2); }
.mur-formules { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0; }
.mur-formules a { flex: 1 1 150px; max-width: 200px; padding: 16px 12px; border: 1.5px solid var(--trait-fort); border-radius: var(--rayon); background: var(--surface); transition: border-color .16s; }
.mur-formules a:hover, .mur-formules .est-choisie { border-color: var(--or); }
.mur-formules span, .mur-formules small { display: block; color: var(--gris); font-size: 14px; }
.mur-formules span { color: var(--encre); font-weight: 600; }
.mur-formules strong { display: block; margin: 2px 0; font-size: 25px; font-weight: 800; }
.mur-connexion { margin-top: 18px; font-size: 15px; }
.mur-connexion a, .note a, .lead a, .champ-aide a, .case a { color: var(--lien); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.mots a { display: block; padding: 7px 14px; border: 1px solid var(--trait-fort); border-radius: 99px; font-size: 14.5px; }
.mots a:hover { border-color: var(--rouge); color: var(--rouge); }
.note-demo { display: flex; gap: 10px; margin-top: 30px; padding: 12px 16px; border: 1px dashed var(--trait-fort); color: var(--gris); font-size: 14.5px; }
.note-demo .ico { margin-top: 3px; }
.lies { margin-top: 50px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video button, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video .lecture { left: 50%; top: 50%; bottom: auto; width: 86px; height: 86px; margin: -43px 0 0 -43px; font-size: 28px; }

/* Commentaires */
.commentaires { margin-top: 50px; }
.note { padding: 14px 18px; background: var(--fond-2); color: var(--encre-2); font-size: 15.5px; }
.form-commentaire { display: grid; gap: 8px; margin-bottom: 26px; }
.form-commentaire label { font-weight: 600; font-size: 15px; }
.form-ligne { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.form-ligne small { color: var(--gris); font-size: 13.5px; }
.commentaire { display: grid; grid-template-columns: 50px 1fr; gap: 0 14px; padding: 20px 0; border-top: 1px solid var(--trait); scroll-margin-top: 90px; }
.commentaire.est-masque { grid-template-columns: 1fr; }
.commentaire.est-masque .note { font-style: italic; }
.commentaire-corps { min-width: 0; overflow-wrap: break-word; }
.commentaire-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.commentaire-nom time { color: var(--gris); font-size: 13.5px; }
.commentaire-actions { display: flex; gap: 18px; margin-top: 8px; color: var(--gris); font-size: 14px; }
.commentaire-actions button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.commentaire-actions button:hover { color: var(--rouge); }
.commentaire-actions .ico { width: 14px; height: 14px; }
.commentaire .form-commentaire { margin: 12px 0 0; }
.reponses { grid-column: 1 / -1; margin: 16px 0 0 26px; padding-left: 26px; border-left: 2px solid var(--trait); }
.reponses .commentaire:first-child { border-top: 0; padding-top: 0; }
.reponses .commentaire:last-child { padding-bottom: 0; }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; gap: 18px; }
.formulaire-2 { grid-template-columns: 1fr 1fr; align-items: end; max-width: 860px; }
.formulaire-2 .champ-large { grid-column: 1 / -1; }
.formulaire-2 .bouton { justify-self: start; }
.champ label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.champ label small { color: var(--gris); font-weight: 400; }
.champ input, .champ select, .champ textarea, .form-commentaire textarea, .recherche-page input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--trait-fort); border-radius: var(--rayon); background: var(--surface); }
.champ input:focus, .champ select:focus, .champ textarea:focus, .form-commentaire textarea:focus, .recherche-page input:focus { border-color: var(--bleu); outline: 2px solid color-mix(in srgb, var(--bleu) 35%, transparent); outline-offset: 0; }
textarea { resize: vertical; }
.champ-mdp { position: relative; }
.champ-mdp input { padding-right: 52px; }
.champ-mdp button { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; color: var(--gris); }
.champ-aide { font-size: 15px; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.case input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--bleu); flex: none; }
.alerte { display: flex; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border-left: 4px solid; font-size: 15.5px; }
.alerte .ico { margin-top: 3px; }
.alerte.est-erreur { background: var(--erreur-fond); color: var(--erreur); }
.alerte.est-ok { background: var(--ok-fond); color: var(--ok); }
.alerte.est-apercu { margin: 0; padding: 10px 0; border: 0; background: var(--or); color: #1a1200; font-weight: 600; }
.recherche-page { display: flex; gap: 10px; max-width: 620px; margin-top: 20px; }

/* ---------- Pages ---------- */
.entete-page { position: relative; max-width: 860px; padding: 48px 0 8px; margin-bottom: 30px; }
.entete-page[style]::before { content: ""; display: block; width: 64px; height: 5px; margin-bottom: 18px; background: var(--teinte); }
.entete-sur { margin-bottom: 6px; color: var(--rouge); font-weight: 700; font-size: 15px; }
[data-theme="sombre"] .entete-sur { color: #ff8d86; }
.entete-page h1 { font-weight: 900; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -.024em; overflow-wrap: anywhere; }
.entete-page > p:not(.entete-sur):not(.meta) { margin-top: 14px; color: var(--encre-2); font-family: var(--lecture); font-size: 20px; line-height: 1.45; }
.entete-page .meta { margin-top: 12px; }
.entete-page .titre-onglets { margin-top: 18px; }
.entete-photo { width: 110px; height: 110px; margin-bottom: 18px; border-radius: 50%; object-fit: cover; }
.entete-page + .une { margin-top: 0; }
.vide { max-width: 560px; margin: 50px auto; text-align: center; color: var(--encre-2); }
.vide h1, .vide h2 { margin-bottom: 8px; color: var(--encre); font-weight: 800; }
.vide .bouton { margin-top: 18px; }
.vide-404 { padding-bottom: 40px; }
.vide-404 .tout-voir { margin: 24px 0 0; }
.grand-nombre { color: var(--rouge); font-weight: 900; font-size: 120px; line-height: 1; letter-spacing: -.05em; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--trait); font-weight: 600; }
.pagination span { color: var(--gris); font-weight: 400; margin: 0 auto; }
.pagination a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.pagination a:hover { color: var(--rouge); }
.equipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 30px; margin-bottom: 70px; }
.membre .portrait { margin-bottom: 16px; }
.membre h2 { font-weight: 800; font-size: 21px; }
.membre-titre { color: var(--rouge); font-weight: 600; font-size: 15px; }
[data-theme="sombre"] .membre-titre { color: #ff8d86; }
.membre p + p { margin-top: 8px; color: var(--encre-2); font-size: 15.5px; }
.membre .tout-voir { margin: 10px 0 0; }

/* Compte */
.compte-cadre { display: grid; grid-template-columns: minmax(0, 480px) 320px; justify-content: center; gap: 70px; align-items: start; padding-top: 56px; padding-bottom: 80px; }
.compte-cadre.est-seul { grid-template-columns: minmax(0, 520px); }
.compte-form h1 { font-weight: 900; font-size: 38px; line-height: 1.08; letter-spacing: -.02em; }
.lead { margin: 8px 0 24px; color: var(--encre-2); }
.compte-cote { padding: 30px 28px; border-top: 4px solid var(--rouge); background: var(--fond-2); }
.compte-cote h2 { margin-bottom: 18px; font-weight: 800; font-size: 20px; }
.compte-cote li { display: flex; gap: 12px; padding: 9px 0; font-size: 15.5px; }
.compte-cote li .ico { margin-top: 3px; color: var(--rouge); }
.entete-compte { display: flex; align-items: center; gap: 24px; max-width: none; }
.entete-compte h1 { font-size: clamp(26px, 3.6vw, 40px); }
.entete-compte .bouton { margin-left: auto; }
.onglets { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 34px; border-bottom: 1px solid var(--trait); }
.onglets a { padding: 12px 16px; border-bottom: 3px solid transparent; color: var(--encre-2); font-weight: 600; white-space: nowrap; }
.onglets a:hover { color: var(--rouge); }
.onglets .est-actif { border-bottom-color: var(--rouge); color: var(--encre); }
.compte-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 60px; align-items: start; }
.panneau { padding: 28px; border: 1px solid var(--trait); background: var(--surface); }
.panneau h2 { margin: 0 0 12px; font-weight: 800; font-size: 22px; }
.panneau .marque-abonne { margin-bottom: 12px; }
.panneau .bouton { margin-top: 18px; }
.panneau .formulaire .bouton { margin-top: 0; justify-self: start; }
.paiements li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--trait); }
.paiements li:first-child { border-top: 0; }
.paiements li > div { min-width: 0; }
.paiements li > div:last-child { text-align: right; }
.paiements small { display: block; color: var(--gris); font-size: 13.5px; }
.etat { display: inline-block; padding: 2px 8px; border-radius: 3px; background: var(--fond-2); color: var(--encre-2); font-weight: 600; font-size: 12.5px; }
.etat.is-success { background: var(--ok-fond); color: var(--ok); }
.etat.is-danger { background: var(--erreur-fond); color: var(--erreur); }
.etat.is-warning { background: color-mix(in srgb, var(--or) 22%, transparent); color: var(--or-texte); }
.mon-commentaire { max-width: 760px; padding: 18px 0; border-top: 1px solid var(--trait); }
.mon-commentaire small { color: var(--gris); }
.operateurs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.operateurs legend { margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.operateurs label { position: relative; cursor: pointer; }
.operateurs input { position: absolute; opacity: 0; }
.operateurs span { display: block; padding: 14px; border: 1.5px solid var(--trait-fort); border-radius: var(--rayon); font-weight: 600; text-align: center; }
.operateurs input:checked + span { border-color: var(--bleu); background: color-mix(in srgb, var(--bleu) 10%, transparent); box-shadow: inset 0 0 0 1px var(--bleu); }
.operateurs input:focus-visible + span { outline: 3px solid var(--rouge); outline-offset: 2px; }
.recap-nom { font-weight: 800; font-size: 26px; }
.recap .meta { margin: 14px 0 6px; }
.paiement { text-align: center; }
.paiement .formulaire { text-align: left; }
.paiement-icone { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin-bottom: 20px; border-radius: 50%; font-size: 34px; }
.paiement-icone.est-ok { background: var(--ok-fond); color: var(--ok); }
.paiement-icone.est-attente { background: color-mix(in srgb, var(--or) 22%, transparent); color: var(--or-texte); }
.paiement-icone.est-erreur { background: var(--erreur-fond); color: var(--erreur); }
.paiement p + p, .paiement .note, .paiement form { margin-top: 14px; }
.paiement-ref { justify-content: center; margin-top: 26px !important; padding-top: 18px; border-top: 1px solid var(--trait); }
.simulation { margin-top: 24px; padding: 18px; border: 1px dashed var(--trait-fort); }

/* Formules */
.formules-tete { padding: 64px 0 150px; background: var(--bleu-nuit); color: #fff; text-align: center; }
.formules-tete h1 { max-width: 17em; margin: 16px auto 0; font-weight: 900; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.024em; }
.formules-tete .cadre > p:not(.marque-abonne):not(.alerte) { max-width: 36em; margin: 16px auto 0; color: #c8d2ea; font-size: 18px; }
.formules-tete .alerte { display: inline-flex; margin: 24px auto 0; text-align: left; }
.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 22px; margin: -96px 0 24px; align-items: start; }
.formule { position: relative; padding: 34px 30px; border: 1px solid var(--trait); background: var(--surface); box-shadow: 0 20px 50px rgba(11, 22, 51, .12); }
.formule.est-choisie { border-top: 5px solid var(--or); padding-top: 30px; }
.formule-ruban { position: absolute; top: -17px; left: 30px; padding: 5px 12px; background: var(--or); color: #1a1200; font-weight: 700; font-size: 13.5px; }
.formule h2 { font-weight: 800; font-size: 24px; }
.formule-accroche { min-height: 1.5em; color: var(--gris); }
.formule-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.formule-prix strong { font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: -.03em; }
.formule-prix span, .formule-mois { color: var(--gris); }
.formule .bouton { margin: 18px 0 20px; }
.formule li, .recap li { display: flex; gap: 10px; padding: 6px 0; font-size: 15.5px; }
.formule li .ico, .recap li .ico { margin-top: 4px; color: var(--ok); }
.formules-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 60px; color: var(--gris); text-align: center; }
.formules-note + section { margin-bottom: 70px; }

/* Annoncer */
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin-bottom: 56px; }
.zone { padding: 22px; border: 1px solid var(--trait); background: var(--surface); scroll-margin-top: 90px; }
.zone:target { border-color: var(--rouge); box-shadow: inset 0 0 0 1px var(--rouge); }
.zone-plan { display: flex; align-items: center; justify-content: center; height: 150px; margin-bottom: 16px; background: var(--fond-2); }
.zone-plan span { background: linear-gradient(125deg, var(--bleu), var(--rouge)); border-radius: 2px; }
.zone h3 { font-weight: 800; font-size: 18px; }
.zone p:not(.meta):not(.zone-prix) { margin: 4px 0 8px; color: var(--encre-2); font-size: 15px; }
.zone-prix { margin-top: 10px; font-weight: 800; font-size: 22px; }
.zone-prix small { color: var(--gris); font-weight: 400; font-size: 14px; }
.demande { margin-bottom: 70px; }
.chiffres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-bottom: 30px; background: var(--trait); border: 1px solid var(--trait); }
.chiffres div { padding: 18px 20px; background: var(--surface); }
.chiffres span { display: block; color: var(--gris); font-size: 14px; }
.chiffres strong { font-weight: 800; font-size: 24px; }
.no-print { margin-bottom: 50px; }

/* ---------- Pied de page ---------- */
.pied { margin-top: 30px; background: var(--bleu-nuit); color: #c8d2ea; font-size: 15px; }
.pied-lettre { background: var(--bleu); color: #fff; }
.pied-lettre .cadre { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 30px; padding-bottom: 30px; }
.pied-lettre h2 { font-weight: 800; font-size: 26px; line-height: 1.15; }
.pied-lettre p { color: #cfd9f5; }
.pied-lettre form { display: flex; gap: 8px; flex: 0 1 460px; }
.pied-lettre input[type="email"] { border-color: transparent; background: #fff; color: #0e1730; }
.pied-colonnes { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-top: 50px; padding-bottom: 44px; }
.pied .logo-blue { fill: #fff; }
.pied .logo-texte strong { color: #fff; font-size: 25px; }
.pied .logo-texte small { color: #a9b5d1; }
.pied .logo-icone svg { height: 54px; }
.pied-marque p { max-width: 34em; margin: 18px 0; }
.pied h3 { margin-bottom: 14px; color: #fff; font-weight: 700; font-size: 16px; }
.pied li a { display: inline-block; padding: 4px 0; }
.pied a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pied .logo:hover { text-decoration: none; }
.pied .reseaux a { border-color: #35446d; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-top: 20px; padding-bottom: 26px; border-top: 1px solid #22305a; font-size: 14px; color: #a9b5d1; }
.pied-bas ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.page-simple { display: flex; flex-direction: column; min-height: 100vh; }
.page-simple main { flex: 1; border-top: 1px solid var(--trait); }
.page-simple .pied-bas { border-top: 0; }
.haut { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--rouge); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.haut.est-visible { opacity: 1; visibility: visible; transform: none; }
.message { position: fixed; left: 50%; bottom: 28px; z-index: 150; display: flex; gap: 10px; width: max-content; max-width: calc(100vw - 40px); padding: 14px 22px; border-radius: var(--rayon); background: var(--ok); color: #fff; font-weight: 600; box-shadow: 0 16px 40px rgba(11, 22, 51, .3); transform: translateX(-50%); animation: monte .3s; }
[data-theme="sombre"] .message { background: #1d7a4f; }
.message.est-erreur, [data-theme="sombre"] .message.est-erreur { background: #a3140f; }
.message .ico { margin-top: 3px; }
@keyframes monte { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ---------- Adaptation ---------- */
@media (max-width: 1180px) {
    .barre-menu > li > a { padding: 0 11px; font-size: 15px; }
    .masthead-ligne { gap: 12px; }
    .barre-fin { display: none; }
    .masthead-date { display: none; }
    .trio { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
    .trio .fil { grid-column: 1 / -1; order: 3; }
    .trio .fil-liste { columns: 3; column-gap: 34px; }
    .trio .fil-liste li { break-inside: avoid; }
    .trio .fil .bouton { width: auto; }
    .avec-cote { gap: 40px; }
    .grille-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
    .barre { display: none; }
    .masthead { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--trait); }
    .masthead-ligne { min-height: 74px; gap: 10px; }
    .logo-icone svg { height: 46px; }
    .logo-texte strong { font-size: 22px; }
    .logo-texte small { font-size: 10.4px; margin-top: 4px; }
    .masthead .logo { gap: 9px; }
    .bouton-compte span, .bouton-menu span, .masthead-gauche .bouton-icone { display: none; }
    .bandeau-liens { display: none; }
    .une { grid-template-rows: 420px 270px; grid-template-columns: repeat(2, 1fr); }
    .tuile-1, .tuile-2 { grid-column: 1 / 3; grid-row: auto; }
    .une-2 .tuile-2 { grid-row: auto; }
    .une { grid-auto-rows: 270px; }
    .une-3 .tuile-3 { grid-column: 1 / 3; }
    .avec-cote { grid-template-columns: 1fr; }
    .cote-fixe { position: static; }
    .avec-cote > .cote { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .avec-cote > .cote .emplacement { justify-self: center; }
    .grille-tuiles { grid-auto-rows: 290px; }
    .videos-grille { grid-template-columns: 1fr 1fr; }
    .videos-grille .est-grande { grid-column: 1 / -1; }
    .pied-colonnes { grid-template-columns: repeat(3, 1fr); }
    .pied-marque { grid-column: 1 / -1; }
    .compte-cadre { grid-template-columns: minmax(0, 560px); gap: 40px; }
    .chiffres { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    html { scroll-padding-top: 76px; }
    .cadre { padding: 0 16px; }
    .masthead-ligne { grid-template-columns: auto 1fr auto; min-height: 66px; gap: 4px; }
    .masthead .logo { justify-self: start; }
    .masthead .logo-icone svg { height: 36px; }
    .masthead .logo { gap: 7px; }
    .masthead .logo-texte strong { font-size: 14.5px; }
    .masthead .logo-texte small { display: none; }
    .masthead-droite { gap: 0; }
    .masthead-droite .bouton { min-height: 38px; padding: 8px 10px; font-size: 13.5px; }
    .bouton-theme { display: none; }
    .bouton-compte { padding: 0 8px; font-size: 19px; }
    .bouton-menu { padding-right: 4px; }
    .bandeau-ligne { padding-left: 0; gap: 12px; }
    .bandeau-titre { padding: 0 12px; font-size: 13.5px; }
    .bandeau-fil a { font-size: 14px; }
    .une { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 250px; gap: 4px; margin: 0 -16px; }
    .tuile { padding: 20px 18px; }
    .tuile-1, .tuile-2, .tuile-3, .tuile-4, .une-3 .tuile-3, .une-1 .tuile-1 { grid-column: 1; grid-row: auto; }
    .une .tuile-1 { min-height: 400px; grid-row: auto; }
    .une { grid-template-rows: 400px; }
    .tuile h2, .tuile-3 h2, .tuile-4 h2 { font-size: 21px; }
    .tuile-1 h2 { font-size: 27px; }
    .tuile-chapo { display: none; }
    .anneau { width: 46px; height: 46px; top: 16px; right: 16px; }
    .trio { grid-template-columns: 1fr; margin: 34px 0 40px; }
    .trio .fil { order: 0; }
    .trio .fil-liste { columns: 1; }
    .trio .fil-liste li:nth-child(n+6) { display: none; }
    .trio .fil .bouton { width: 100%; }
    .avec-cote > .cote { grid-template-columns: minmax(0, 1fr); }
    .grille-2, .grille-3, .grille-4, .une-liste, .videos-grille, .grille-tuiles { grid-template-columns: 1fr; }
    .reserve .grille-4, .rubrique .grille-3 { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; }
    .reserve .grille-4 > *, .rubrique .grille-3 > * { flex: 0 0 74%; scroll-snap-align: center; }
    .titre-bloc { flex-wrap: wrap; gap: 6px 16px; }
    .titre-bloc .titre-onglets { order: 3; width: 100%; }
    .reserve-tete { flex-direction: column; align-items: flex-start; }
    .large { grid-template-columns: 118px 1fr; gap: 14px; padding: 18px 0; }
    .large .vignette { aspect-ratio: 1; align-self: start; }
    .large h2 { font-size: 17.5px; }
    .large .chapo { display: none; }
    .article-tete { padding: 28px 0 22px; }
    .signature { flex-wrap: wrap; }
    .signature > div:not(.actions) { flex: 1; min-width: 0; }
    .actions { width: 100%; margin: 4px 0 0; }
    .article-image { margin: 0 -16px; }
    .article-image figcaption { padding: 10px 16px 0; }
    .texte { font-size: 19px; }
    .mur { padding: 30px 18px; margin: 10px -16px 0; }
    .commentaire { grid-template-columns: 40px 1fr; }
    .commentaire .portrait { width: 38px; height: 38px; font-size: 13px; }
    .reponses { margin-left: 8px; padding-left: 14px; }
    .form-ligne { flex-direction: column; align-items: stretch; }
    .formulaire-2, .compte-grille { grid-template-columns: 1fr; }
    .compte-cadre { padding-top: 34px; }
    .entete-page { padding-top: 32px; }
    .entete-compte { flex-wrap: wrap; gap: 16px; }
    .entete-compte .portrait { width: 64px; height: 64px; font-size: 20px; }
    .entete-compte .bouton { margin-left: 0; }
    .pied-lettre .cadre, .pied-lettre form { flex-direction: column; align-items: stretch; flex-basis: auto; gap: 14px; }
    .pied-colonnes { grid-template-columns: 1fr 1fr; gap: 30px; }
    .recherche-panneau .bouton { display: none; }
    .emplacement { max-width: calc(var(--mw) * 1px); margin: 28px auto; }
    .est-libre .visuel { aspect-ratio: var(--mw) / var(--mh); }
    .libre-grand { display: none; }
    .libre-petit { display: inline; }
    .fixe-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; justify-content: center; padding: 4px 44px 6px; background: var(--fond); border-top: 1px solid var(--trait); box-shadow: 0 -8px 24px rgba(11, 22, 51, .12); }
    .fixe-mobile .emplacement { margin: 0; }
    .fixe-mobile .emplacement img { max-height: calc(var(--mh) * 1px); object-fit: contain; }
    .fixe-mobile .bouton-icone { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
    .fixe-mobile ~ .haut { bottom: 90px; }
}
@media (max-width: 380px) { .masthead .logo-texte strong { font-size: 12.5px; } .masthead-droite .bouton-compte { padding: 0 6px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
    .masthead, .barre, .bandeau, .emplacement, .pied, .cote, .haut, .actions, .commentaires, .lies, .no-print, .progression, .fixe-mobile { display: none !important; }
    .avec-cote { display: block; }
}

/* Blocs pleine largeur : images moins hautes */
.cadre > .rubrique .est-grande .vignette { aspect-ratio: 16 / 9; }
