/* Thème « Dépêche » — couche de surcharge chargée APRÈS site.css.
   Site d'information en ligne : bandeau bleu nuit pleine largeur avec liseré
   rouge, titres en sans serif condensé, actualité à la une en photo plein
   cadre avec titre superposé, puis flux de dépêches sur deux colonnes.
   Pensé pour des articles courts et peu d'images : une vignette absente ne
   laisse pas de dégradé, elle disparaît.
   Ne redéfinit que ce qui change — tout le reste vient de site.css. */

/* Polices auto-hébergées (public/fonts) : aucune requête vers un tiers.
   Chemins relatifs à CE fichier, donc indépendants du <base href> des pages.
   Archivo est une police variable : un seul fichier couvre toutes les graisses,
   d'où la plage font-weight: 100 900. Barlow Condensed est statique : un
   fichier par graisse (600 et 800). Sous-ensembles latin et latin-ext,
   suffisants pour le français ; font-display: swap évite le texte invisible
   pendant le téléchargement. Les deux familles sont sous licence OFL 1.1. */

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../../fonts/archivo-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../../fonts/archivo-latin-ext.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;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../../fonts/barlow-condensed-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../../fonts/barlow-condensed-600-latin-ext.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;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../../fonts/barlow-condensed-800-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../../fonts/barlow-condensed-800-latin-ext.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;
}

:root {
    --ink: #0b1220;           /* texte courant, presque noir bleuté */
    --muted: #5a6475;
    --accent: #d7141a;        /* rouge vif : rubriques, liserés, lien actif */
    --accent-dark: #0b1f3a;
    --bg: #f2f3f5;            /* gris froid */
    --card: #ffffff;
    --line: #d9dde3;
    --radius: 0;              /* angles droits partout */

    /* Bleu nuit des bandeaux (en-tête, à la une, pied de page). Jeton distinct
       de --accent-dark : le réglage « Couleur d'accent » redéfinit --accent et
       --accent-dark, les bandeaux doivent rester bleu nuit quelle que soit la
       couleur choisie pour les rubriques. */
    --band: #0b1f3a;
    --band-ink: #ffffff;
    --band-muted: #a9b6c9;

    /* Polices : titres et libellés en condensé, texte courant en Archivo */
    --font-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
    --font-text: 'Archivo', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body { font-family: var(--font-text); line-height: 1.6; }

h1, h2, h3, h4, h5, h6 { letter-spacing: -.02em; }

/* Liens du contenu en bleu nuit, le rouge est réservé aux rubriques et aux états actifs */
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

/* ---------- En-tête : bandeau bleu nuit, liseré rouge ---------- */

.site-header {
    background: var(--band);
    border-top: 4px solid var(--accent);
    border-bottom: 0;
}
/* Gouttière latérale : site.css n'en met pas (il décale le nom de .5rem) ;
   ici le logo et le menu s'alignent sur le contenu, et rien ne touche le
   bord sur téléphone. */
.site-header .inner { padding: .7rem 1.25rem; }

.brand,
.site-footer .brand {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 2rem;
    line-height: 1;
    color: var(--band-ink);
}
.brand:hover { color: var(--band-ink); }
.site-header .brand { margin-left: 0; }

.brand-block .tagline {
    color: var(--band-muted);
    border-left-color: rgb(255 255 255 / .25);
}

.nav-item > a {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 1.05rem;
    color: var(--band-ink);
    border-radius: 0;
    padding: .5rem .9rem;
}
/* Survol et page courante : pas de pastille, un trait rouge sous le libellé.
   box-shadow plutôt que border-bottom : rien ne bouge au survol. */
.nav-item > a:hover,
.nav-item:focus-within > a,
.nav-item > a[aria-current="page"] {
    background: none;
    color: var(--band-ink);
    box-shadow: inset 0 -4px 0 var(--accent);
}

/* Sous-menu : panneau blanc, liseré rouge, angles droits (écran large) */
@media (min-width: 801px) {
    .dropdown {
        border: 0;
        border-top: 3px solid var(--accent);
        border-radius: 0;
        padding: .25rem 0;
        box-shadow: 0 10px 24px rgb(11 18 32 / .18);
    }
    .dropdown a {
        border-radius: 0;
        padding: .5rem 1rem;
        font-weight: 600;
        color: var(--ink);
    }
    .dropdown a:hover,
    .dropdown a:focus-visible { background: var(--bg); color: var(--accent); }
}

/* Mobile : bouton et panneau du menu sur le bandeau sombre */
@media (max-width: 800px) {
    .nav-toggle { color: var(--band-ink); }
    .nav-item > a { border-radius: 0; }
    .nav-item > a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); }
    .dropdown a { color: var(--band-muted); }
    .dropdown a:hover { color: var(--band-ink); }
}

/* Barre « Appelez-nous » et réseaux sociaux : sur le bandeau sombre */
.top-bar {
    background: rgb(0 0 0 / .25);
    border-bottom: 1px solid rgb(255 255 255 / .1);
}
.top-bar a { color: var(--band-muted); }
.top-bar a:hover { color: var(--band-ink); }
.top-bar strong { color: var(--band-ink); }

.social-link { color: var(--band-muted); border-radius: 0; }
.social-link:hover { color: var(--band-ink); background: var(--accent); }

/* ---------- Titres de section : condensé, barre rouge à gauche ---------- */

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: .03em;
    line-height: 1.1;
    color: var(--ink);
    border-left: 5px solid var(--accent);
    padding-left: .7rem;
}
.section-title::after { height: 1px; background: var(--line); }
.section-title a:hover { color: var(--accent); text-decoration: none; }

/* Accueil par rubriques : le lien « Toute la rubrique » en condensé */
.section-more { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }

.kicker {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .08em;
}

/* Vignette sans image : le gabarit ne pose l'attribut style que si l'article
   a une image. Plutôt qu'un dégradé de remplissage, rien. */
.thumb:not([style]) { display: none; }
.thumb { border-radius: 0; }

/* ---------- À la une : photo plein cadre, titre superposé ---------- */

.hero {
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    background: var(--band);
    color: var(--band-ink);
}
/* Image et texte dans la même cellule : le texte se superpose à la photo */
.hero .thumb,
.hero .body { grid-area: 1 / 1; }
.hero .thumb { min-height: 440px; }
.hero .body {
    justify-content: flex-end;
    padding: 6rem 2.5rem 2.25rem;
    background: linear-gradient(180deg, rgb(11 31 58 / 0) 0%, rgb(11 31 58 / .55) 45%, rgb(11 31 58 / .95) 100%);
}
.hero .kicker {
    align-self: flex-start;
    background: var(--accent);
    color: #fff;
    padding: .25rem .55rem;
    font-size: .8rem;
    letter-spacing: .1em;
}
.hero .kicker a { color: #fff; }
.hero h2 {
    font-size: 2.5rem;
    line-height: 1.05;
    letter-spacing: -.025em;
    font-weight: 800;
    margin: .8rem 0 .7rem;
    max-width: 22ch;
    text-wrap: balance;
}
.hero h2 a { color: var(--band-ink); }
.hero h2 a:hover { color: var(--band-ink); text-decoration: underline; text-decoration-color: var(--accent); }
.hero p.excerpt { color: #d6dde8; font-size: 1.05rem; max-width: 60ch; }
.hero .meta { color: var(--band-muted); }

/* Sans photo : un bloc bleu nuit, sans voile */
.hero:has(> .thumb:not([style])) .body { padding: 2.5rem; background: none; }
.hero:has(> .thumb:not([style])) h2 { font-size: 2.6rem; }

@media (max-width: 800px) {
    .hero .thumb { height: auto; min-height: 360px; }
    .hero .body { padding: 4rem 1.25rem 1.5rem; }
    .hero h2 { font-size: 1.7rem; }
    .hero:has(> .thumb:not([style])) .body { padding: 1.75rem 1.25rem; }
    .hero:has(> .thumb:not([style])) h2 { font-size: 1.8rem; }
}

/* ---------- Flux de dépêches : deux colonnes, vignette à gauche ----------
   Limité aux listes d'articles (accueil, rubriques) : les cadres des pages
   (.cards-grid) gardent leur présentation verticale. */

.grid:not(.cards-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
@media (max-width: 760px) {
    .grid:not(.cards-grid) { grid-template-columns: minmax(0, 1fr); }
}

.grid:not(.cards-grid) > .card {
    flex-direction: row;
    gap: 1rem;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding-bottom: 1rem;
}
/* align-self : sans lui la vignette s'étire à la hauteur de la rangée (une
   dépêche voisine plus longue, ou l'encart publicitaire) et perd son format. */
.grid:not(.cards-grid) > .card .thumb { width: 38%; flex: none; aspect-ratio: 4 / 3; align-self: flex-start; }
.grid:not(.cards-grid) > .card .body { padding: .1rem 0 0; }

/* Dépêche sans vignette : un trait à gauche, rouge au survol */
.grid:not(.cards-grid) > .card:has(> .thumb:not([style])) {
    padding-left: .9rem;
    border-left: 3px solid var(--line);
    transition: border-color .15s;
}
.grid:not(.cards-grid) > .card:has(> .thumb:not([style])):hover { border-left-color: var(--accent); }

.card { border-radius: 0; }
.card:hover { transform: none; box-shadow: none; }
.card h3 {
    font-size: 1.1rem;
    line-height: 1.25;
    font-weight: 800;
    margin: .3rem 0 .4rem;
}
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p.excerpt { font-size: .9rem; }
.card .meta { font-size: .8rem; margin: .5rem 0 0; }
/* Horodatage précédé d'un point rouge, comme un fil de dépêches */
.card .meta:not(:empty)::before,
.hero .meta:not(:empty)::before {
    content: '';
    display: inline-block;
    width: .45em;
    height: .45em;
    border-radius: 50%;
    background: var(--accent);
    margin-right: .45em;
    vertical-align: .1em;
}

/* Encart publicitaire dans la liste : une dépêche fait 150 px de haut, une
   annonce AdSense responsive en fait 250 à 300 ; posée dans une colonne,
   elle déborde et étire la rangée voisine. Elle prend donc sa propre rangée
   sur toute la largeur, en bandeau horizontal : AdSense choisit alors un
   format large et bas. Même spécificité que la règle des dépêches, qui
   lui retire fond et bordure. */
.grid:not(.cards-grid) > .card.ad-card {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* Cadres des pages : cartes blanches, angles droits */
.cards-grid .card { background: var(--card); border: 1px solid var(--line); }

/* ---------- Diaporama, bandeaux ---------- */

.slideshow,
.hero-banner,
.page-banner,
.article-page .lead-image,
.article-body img,
.contact-map { border-radius: 0; }

.slideshow .slide-content h2,
.hero-banner h2 { font-weight: 800; letter-spacing: -.025em; }
.slide-arrow { border-radius: 0; }
.slide-dots button { border-radius: 0; width: 18px; height: 4px; }
.slide-dots button.active { transform: none; background: var(--accent); }

.hero-banner,
.page-banner { background: var(--band); }
.page-banner.has-image { --banner-overlay: rgb(11 31 58 / .7); }
.page-banner .lead { font-size: 1.2rem; }

/* Boutons posés sur un visuel : blancs, texte bleu nuit */
.slideshow .slide-content .btn-primary,
.hero-banner .btn-primary { background: #fff; color: var(--band); }
.slideshow .slide-content .btn-primary:hover,
.hero-banner .btn-primary:hover { background: var(--bg); }

/* ---------- Page article ---------- */

.article-page h1 {
    font-weight: 800;
    letter-spacing: -.025em;
    max-width: 28ch;
    text-wrap: balance;
}
/* Articles courts : une colonne de lecture, pas toute la largeur */
.article-body { max-width: 46rem; font-size: 1.05rem; }
.article-page > .meta { font-size: .85rem; }

.breadcrumbs {
    font-family: var(--font-display);
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.subcats a,
.tags a, .tags span,
.share-btn,
.btn-secondary,
.pager a,
.alert,
.form-field input,
.form-field textarea { border-radius: 0; }

.subcats a:hover { background: var(--band); }

/* ---------- Boutons : bleu nuit, condensé, rouge au survol ---------- */

.btn-primary,
.pager a {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 1rem;
    background: var(--band);
    color: #fff;
    border: 0;
    border-radius: 0;
}
.btn-primary:hover,
.pager a:hover { background: var(--accent); color: #fff; }

.btn-secondary { border-color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.to-top { border-radius: 0; background: var(--band); }
.to-top:hover { background: var(--accent); }

.error-page .error-code { font-family: var(--font-display); font-size: 8rem; letter-spacing: 0; }

/* ---------- Formulaires ---------- */

.form-field input,
.form-field textarea { border-color: #b8c0cc; }
.form-field label {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 1rem;
}

/* ---------- Page contact, cartes de présentation ---------- */

.contact-header {
    border: 0;
    border-top: 4px solid var(--band);
    border-radius: 0;
}
.contact-header h3,
.contact-info h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; }

.card-icon .icon-circle { border-radius: 0; border-color: var(--band); color: var(--band); }
.card-person .card-subtitle { color: var(--accent); }

/* ---------- Pied de page : bleu nuit, liseré rouge ---------- */

.site-footer {
    background: var(--band);
    color: var(--band-muted);
    border-top: 4px solid var(--accent);
}
.site-footer a { color: var(--band-ink); }
.site-footer a:hover { color: var(--band-ink); text-decoration: underline; }
.site-footer .brand { font-size: 1.5rem; }
.footer-grid h3,
.footer-info h3 {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 1rem;
    color: var(--band-ink);
}
.footer-info .icon { color: var(--accent); }
