/* ADEB : mise en page de Gest_Kitab, couleurs relevées sur le site adeb.be (à confirmer). */
:root {
    --bleu: #1b75b5;
    --bleu-texte: #1a6fad;
    --marine: #0d3a66;
    --texte-doux: #4f6478;
    --fond: #e9f1f6;
    --panneau: #f8fbfd;
    --blanc: #ffffff;
    --bordure: #d5e3ec;
    --bordure-ligne: #e6eef3;
    --bordure-champ: #748c9f;

    --editeurs: #1b75b5;
    --editeurs-texte: #1a6fad;
    --auteurs: #6d0a78;
    --auteurs-texte: #6d0a78;
    --journalistes: #c9252a;
    --journalistes-texte: #b3201f;
    --libraires: #2a7562;
    --libraires-texte: #236353;

    --vert-texte: #236353;
    --orange-fond: #fdf0dc;
    --orange-bord: #f0d5ae;
    --orange-texte: #8a4b00;

    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --cible: 2.75rem;
}

/* Boutons A A A : tout le texte suit la taille de la racine. */
html { font-size: 100%; }
html[data-taille="2"] { font-size: 112.5%; }
html[data-taille="3"] { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--fond);
    color: var(--marine);
    font: 400 1rem/1.45 var(--sans);
}

a { color: var(--bleu-texte); }
a:hover { color: var(--marine); }
p { margin: 0; }

h1 {
    margin: 0;
    font: 500 2.5rem/1.15 var(--serif);
    letter-spacing: -0.01em;
}
h2 { margin: 0; font-size: 1.125rem; line-height: 1.4; font-weight: 600; }

:focus-visible { outline: 3px solid var(--marine); outline-offset: 2px; }

.icone {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* En-tête */
.entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.625rem 1.25rem;
}
.logo { display: flex; flex-direction: column; text-decoration: none; }
.logo__image { display: block; width: auto; height: 3.25rem; }
.logo__image--grand { height: 4.5rem; }

.modules { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; }
.modules a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--cible);
    padding: 0 0.875rem;
    border-radius: 999px;
    background: var(--blanc);
    color: var(--marine);
    font-weight: 500;
    text-decoration: none;
}
.modules a:hover { box-shadow: 0 0 0 1px var(--bordure-champ); }
.modules a[aria-current] { background: var(--marine); color: var(--blanc); font-weight: 600; }

.outils { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.875rem; }
.utilisateur { display: flex; align-items: center; gap: 0.625rem; padding-right: 0.875rem; border-right: 1px solid var(--bordure); }
.utilisateur__photo { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; }
.utilisateur__nom { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.utilisateur__role { display: block; color: var(--texte-doux); font-size: 0.8125rem; line-height: 1.25; }

.tailles { display: flex; align-items: center; gap: 0.125rem; }
.taille {
    width: var(--cible);
    height: var(--cible);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--marine);
    font-family: var(--serif);
    font-weight: 600;
    cursor: pointer;
}
.taille--1 { font-size: 1rem; }
.taille--2 { font-size: 1.25rem; }
.taille--3 { font-size: 1.5rem; }
.taille:hover { background: var(--blanc); }
.taille[aria-pressed="true"] { background: var(--marine); color: var(--blanc); }

.sortie {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--cible);
    height: var(--cible);
    border: 0;
    border-radius: 50%;
    background: var(--blanc);
    color: var(--marine);
    cursor: pointer;
}
.sortie:hover { box-shadow: 0 0 0 1px var(--bordure-champ); }

/* Bouton tout l'écran / centré */
.largeur {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--cible);
    height: var(--cible);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--blanc);
    color: var(--marine);
    cursor: pointer;
}
.largeur:hover { box-shadow: 0 0 0 1px var(--bordure-champ); }
.largeur span { display: flex; }
.largeur__centre, [data-largeur="centre"] .largeur__pleine { display: none !important; }
[data-largeur="centre"] .largeur__centre { display: flex !important; }

/* Programme centré : en-tête et corps limités en largeur, au milieu de l'écran. */
/* Le bandeau garde toute la largeur pour son trait ; son contenu s'aligne sur le programme. */
.entete { border-bottom: 1px solid var(--bordure-champ); }
[data-largeur="centre"] body > .entete { padding-left: max(1.25rem, calc((100% - 90rem) / 2 + 1.25rem)); padding-right: max(1.25rem, calc((100% - 90rem) / 2 + 1.25rem)); }
[data-largeur="centre"] body > .corps { width: 100%; max-width: 90rem; margin-left: auto; margin-right: auto; }
/* Séparateur à gauche du programme, visible quand il reste de la place sur le côté. */
@media (min-width: 90.0625rem) {
    [data-largeur="centre"] body > .corps { border-left: 1px solid var(--bordure-champ); }
}
[data-largeur="centre"] .panneau { border-top-right-radius: 1.5rem; }

/* Corps : menu du module et panneau */
.corps { flex: 1; display: flex; flex-wrap: wrap; align-items: stretch; }

.colonne { flex: 1 1 15rem; max-width: 100%; padding: 0.75rem 1rem 1.25rem; }
/* Réglages d'affichage : barre arrondie foncée, le choix actif dans une pastille plus claire. */
.reglages {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    margin: 0 0 0.875rem;
    padding: 0.3125rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: linear-gradient(180deg, #164a7d 0%, var(--marine) 100%);
    box-shadow: 0 6px 16px rgba(13, 58, 102, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.reglages .tailles { gap: 0.125rem; }
.reglages .taille, .reglages .largeur {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: transparent;
    color: var(--blanc);
    box-shadow: none;
    transition: background-color 0.15s, width 0.15s;
}
.reglages .taille:hover, .reglages .largeur:hover { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.reglages .taille[aria-pressed="true"] { width: 3.25rem; background: rgba(255, 255, 255, 0.24); color: var(--blanc); }
.reglages .largeur { margin-left: 0.25rem; }
.reglages .largeur::before { content: ''; position: absolute; width: 1px; height: 1.5rem; margin-left: -2.75rem; background: rgba(255, 255, 255, 0.2); }
.reglages .largeur { position: relative; }
.reglages .largeur[aria-pressed="true"] { background: rgba(255, 255, 255, 0.24); }
.reglages :focus-visible { outline: 2px solid var(--blanc); outline-offset: -3px; }
.menu {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.menu__titre { padding: 0 0.625rem 0.75rem; font: 500 1.5rem/1.2 var(--serif); }
.menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--cible);
    padding: 0 0.75rem;
    border-radius: 0.625rem;
    color: var(--texte-doux);
    text-decoration: none;
}
.menu a:hover { color: var(--marine); background: rgba(255, 255, 255, 0.6); }
.menu a[aria-current] {
    background: var(--blanc);
    color: var(--marine);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--bordure);
}

.panneau {
    flex: 999 1 35rem;
    min-width: 0;
    padding: 2rem 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--panneau);
    border-top-left-radius: 1.5rem;
}
.panneau__haut {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.fil { margin-bottom: 0.25rem; color: var(--texte-doux); font-size: 0.875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.625rem; }

/* Boutons */
.bouton {
    display: inline-flex;
    align-items: center;
    min-height: var(--cible);
    padding: 0 1.125rem;
    border: 1px solid var(--bordure-champ);
    border-radius: 0.625rem;
    background: var(--blanc);
    color: var(--marine);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}
.bouton--principal { border-color: var(--bleu); background: var(--bleu); color: var(--blanc); font-weight: 700; }
.bouton--principal:hover { border-color: var(--marine); background: var(--marine); color: var(--blanc); }

.bandeau {
    padding: 0.75rem 1.125rem;
    border: 1px solid var(--orange-bord);
    border-radius: 0.625rem;
    background: var(--orange-fond);
    color: var(--orange-texte);
    font-size: 0.9375rem;
}

/* Cartes des publics */
.publics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
}
.public {
    --couleur: var(--editeurs);
    --couleur-texte: var(--editeurs-texte);
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--bordure);
    border-top: 5px solid var(--couleur);
    border-radius: 0.75rem;
    background: var(--blanc);
    color: var(--couleur-texte);
    text-decoration: none;
}
.public:hover { color: var(--couleur-texte); border-color: var(--couleur); }
.public--auteurs { --couleur: var(--auteurs); --couleur-texte: var(--auteurs-texte); }
.public--journalistes { --couleur: var(--journalistes); --couleur-texte: var(--journalistes-texte); }
.public--libraires { --couleur: var(--libraires); --couleur-texte: var(--libraires-texte); }
.public__nom { font: 500 1.5rem/1.2 var(--serif); }
.public__nombre { color: var(--marine); font-size: 0.9375rem; }
.public__lien { margin-top: 0.375rem; font-size: 0.875rem; font-weight: 500; text-decoration: underline; }

/* Colonnes et cartes */
.colonnes { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.carte {
    flex: 999 1 32rem;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bordure);
    border-radius: 0.75rem;
    background: var(--blanc);
}
.carte--laterale { flex: 1 1 18rem; }
.carte__titre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.875rem 1.25rem;
}
.carte__titre a { font-size: 0.875rem; }

/* Listes : tableau plat avec filet bleu, comme la maquette Articles */
.panneau > * { width: 100%; }
[data-largeur="centre"] .panneau > * { max-width: none; }
.liste { flex: 999 1 32rem; min-width: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.panneau > .liste { flex: 0 0 auto; }
.panneau > .liste + .liste { margin-top: 1.75rem; }
/* Barre de défilement au-delà de 5 lignes : en-tête + 5 lignes de 2,5rem. */
.tableau--defilant { max-height: calc(14.9rem + 11px); overflow-y: auto; }
.tableau--defilant th, .tableau--grand th { position: sticky; top: 0; z-index: 1; }
.tableau--grand { max-height: 65vh; overflow-y: auto; }
/* Liste des articles : 10 lignes visibles, puis défilement. */
.tableau--articles { max-height: calc(2.75rem + 10 * 2.625rem + 7px); }
.tableau--articles th { height: 2.75rem; padding-top: 0; padding-bottom: 0; }
.tableau--articles tbody tr { cursor: pointer; }
.tableau--articles tbody td { height: 2.625rem; padding-top: 0; padding-bottom: 0; }
.tableau--articles .vignette img { width: 1.5rem; height: 2.125rem; object-fit: cover; }
.tableau--articles .vignette { width: 3.5rem; }
.titre-article--bouton { padding: 0; border: 0; background: none; font-family: inherit; font-size: 0.9375rem; line-height: 1.2; text-align: left; cursor: pointer; }

/* Auteur sélectionné : fiche, puis ses articles. */
.apercu-auteur, .articles-auteur { margin-top: 0.75rem; padding: 1.25rem; border: 1px solid var(--bordure); border-radius: 0.75rem; background: var(--blanc); }
.apercu-auteur { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem; }
.apercu-auteur__photo { display: flex; flex: 0 0 8rem; align-items: center; justify-content: center; height: 10rem; overflow: hidden; border-radius: 0.5rem; background: var(--fond); color: var(--texte-doux); font-size: 0.8125rem; }
.apercu-auteur__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.apercu-auteur__photo [hidden] { display: none; }
.apercu-auteur__texte { flex: 1 1 20rem; min-width: 0; max-width: 46rem; }
.apercu-auteur__texte h3, .articles-auteur__haut h3 { margin: 0; color: var(--marine); font-family: var(--serif); font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.apercu-auteur__infos { margin: 0.375rem 0 0.625rem; color: var(--bleu); font-size: 0.875rem; }
.apercu-auteur__biographie { margin: 0; font-size: 0.9375rem; line-height: 1.5; white-space: pre-line; }
.articles-auteur__haut { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--bordure); }
.articles-auteur__haut span { color: var(--bleu); font-size: 0.8125rem; font-weight: 500; }
.articles-auteur__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem; margin-top: 0.875rem; padding: 1rem; border-radius: 0.5rem; background: var(--fond); }
.articles-auteur__vide { grid-column: 1 / -1; margin: 0; color: var(--texte-doux); font-size: 0.875rem; text-align: center; }
.carte-article { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--bordure); border-radius: 0.5rem; background: var(--blanc); color: var(--marine); text-decoration: none; }
.carte-article:hover { box-shadow: 0 0 0 1px var(--bleu); }
.carte-article__image { display: flex; align-items: center; justify-content: center; height: 11rem; padding: 0.625rem; color: var(--texte-doux); font-size: 0.8125rem; }
.carte-article__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.carte-article p { margin: 0; padding: 0 0.75rem; overflow-wrap: anywhere; }
.carte-article__titre { padding-top: 0.625rem !important; font-size: 0.875rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.carte-article__categorie { margin-top: 0.25rem !important; color: var(--bleu); font-size: 0.8125rem; }
.carte-article__ean { margin-top: 0.25rem !important; color: var(--texte-doux); font-size: 0.75rem; }
.carte-article__prix { margin-top: auto !important; padding-top: 0.5rem !important; padding-bottom: 0.75rem !important; font-size: 1.125rem; font-weight: 700; }

/* Article sélectionné : image à gauche, informations au centre, textes à droite. */
.apercu-article {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--bordure);
    border-radius: 0.75rem;
    background: var(--blanc);
}
.apercu-article [hidden] { display: none; }
.apercu-article__visuel { flex: 0 0 14rem; max-width: 100%; }
.apercu-article__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 19rem;
    padding: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--bordure);
    border-radius: 0.5rem;
    background: var(--fond);
    color: var(--texte-doux);
    font-size: 0.875rem;
}
.apercu-article__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.apercu-article__navigation { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; color: var(--texte-doux); font-size: 0.875rem; }
.apercu-article__fleche { flex: 0 0 auto; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--bordure-champ); border-radius: 50%; background: var(--blanc); color: var(--bleu); font-size: 0.875rem; cursor: pointer; }
.apercu-article__fleche:hover:not(:disabled) { background: var(--fond); }
.apercu-article__fleche:disabled { color: var(--bordure-champ); cursor: default; }
.apercu-article__fiche { flex: 1 1 22rem; min-width: 0; }
.apercu-article__rubrique { margin: 0 0 0.25rem; color: var(--bleu); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.apercu-article__fiche h3 { margin: 0; color: var(--marine); font-family: var(--serif); font-size: 1.625rem; font-weight: 600; line-height: 1.2; }
.apercu-article__auteur { margin: 0.375rem 0 0; color: var(--texte-doux); font-style: italic; }
.apercu-article__lien-auteur { padding: 0; border: 0; background: none; color: var(--bleu); font: inherit; text-decoration: underline; cursor: pointer; }
.apercu-article__lien-auteur:hover { color: var(--marine); }
.apercu-article__vente { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0.75rem 0 0.5rem; }
.apercu-article__vente strong { color: var(--marine); font-size: 1.5rem; font-weight: 700; }
.apercu-article__etat { padding: 0.1875rem 0.625rem; border-radius: 1rem; background: #f9e1e1; color: #b3201f; font-size: 0.8125rem; font-weight: 500; }
.apercu-article__etat--visible { background: #dff1ea; color: var(--vert-texte); }
.apercu-article__infos { margin: 0; }
.apercu-article__infos div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4375rem 0; border-bottom: 1px solid var(--bordure); font-size: 0.875rem; }
.apercu-article__infos dt { flex: 0 0 auto; color: var(--texte-doux); }
.apercu-article__infos dd { min-width: 0; margin: 0; color: var(--marine); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.apercu-article__dates { margin: 0.625rem 0 0; color: var(--texte-doux); font-size: 0.8125rem; font-style: italic; }
.apercu-article__textes { flex: 1.4 1 20rem; min-width: 0; padding-left: 1.5rem; border-left: 1px solid var(--bordure); }
.apercu-article__textes:empty { display: none; }
.apercu-article__textes h4 { margin: 0 0 0.375rem; color: var(--bleu); font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; }
.apercu-article__textes p { margin: 0 0 1rem; font-size: 0.9375rem; line-height: 1.5; white-space: pre-line; }
.apercu-article__textes p:last-child { margin-bottom: 0; }
.liste__note { color: var(--texte-doux); font-size: 0.875rem; }
.liste__haut {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    min-height: var(--cible);
}
.liste__haut a { font-size: 0.875rem; }
.tableau { border: 1px solid var(--bordure); border-top: 4px solid var(--bleu); background: var(--blanc); }
.tableau th {
    padding: 0.5rem 0.75rem;
    border-bottom: 0;
    background: var(--marine);
    color: var(--blanc);
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.tableau td { padding: 0.25rem 0.75rem; }
.tableau th:first-child, .tableau td:first-child { padding-left: 1.25rem; }
.tableau th:last-child, .tableau td:last-child { padding-right: 1.25rem; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.pastilles { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.pastille { padding: 0.1875rem 0.5rem; border-radius: 3px; font-size: 0.8125rem; font-weight: 500; }
.pastille--editeurs { background: #e4f1f9; color: var(--editeurs-texte); }
.pastille--auteurs { background: #f4e8f5; color: var(--auteurs-texte); }
.pastille--journalistes { background: #fbe9e9; color: var(--journalistes-texte); }
.pastille--libraires { background: #e4f2ee; color: var(--libraires-texte); }

/* Sélection */
.liste__total { color: var(--texte-doux); font-weight: 400; }
.ligne-choisie td { background: #e4f1f9; }
.lien-ligne { display: inline-flex; align-items: center; min-height: 2rem; color: var(--marine); font-weight: 500; }
.lien-ligne[aria-current] { font-weight: 700; text-decoration: none; }

/* Fenêtre de saisie */
.fenetre.fenetre--large { width: min(46rem, calc(100vw - 2rem)); }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.fenetre .champ textarea { padding: 0.625rem 0.75rem; resize: vertical; }
.fenetre .champ input[readonly] { border-color: var(--bordure); background: var(--fond); font-weight: 700; }
.champ-photo { display: flex; align-items: center; gap: 1rem; }
.champ-photo .champ-fichier { flex: 1; min-width: 0; }
.apercu-photo {
    flex: 0 0 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    overflow: hidden;
    border: 1px solid var(--bordure);
    border-radius: 50%;
    background: var(--fond);
    color: var(--texte-doux);
    font-size: 0.75rem;
    text-align: center;
}
.apercu-photo img { width: 100%; height: 100%; object-fit: cover; }
.apercu-photo [hidden] { display: none; }
.fenetre.fenetre--article { width: min(62rem, calc(100vw - 2rem)); }
.grille-champs--deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Fiche article : libellés à gauche, panneau d'images à droite */
.fenetre.fenetre--article { width: min(72rem, calc(100vw - 2rem)); padding: 1rem 1.5rem 1.25rem; }
.fenetre--article .formulaire { gap: 0.75rem; }
.fenetre--article .fenetre__haut h2 { font-size: 1.5rem; }
.fenetre--article .fenetre__fermer { height: 2rem; }
.fenetre--article .fenetre__haut { padding-bottom: 0.5rem; border-bottom: 2px solid var(--bleu); }
.fenetre__section {
    margin: 0.375rem 0 0.125rem;
    padding-bottom: 0.1875rem;
    border-bottom: 1px solid var(--bleu);
    color: var(--bleu-texte);
    font: 600 1.125rem/1.3 var(--serif);
}
.bouton--petit { flex: 0 0 auto; min-height: 2.25rem; padding: 0 0.75rem; font-family: var(--sans); font-size: 0.875rem; white-space: nowrap; cursor: pointer; }
.fenetre.fenetre--petite { width: min(26rem, calc(100vw - 2rem)); }
.fenetre--petite .message-erreur[hidden] { display: none; }
.fiche select:disabled { background: var(--fond); color: var(--texte-doux); }
.fiche-article { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem; }
.fiche { flex: 999 1 34rem; min-width: 0; display: flex; flex-direction: column; gap: 0.375rem; }
.fiche .fenetre__section:first-child, .fiche-images .fenetre__section { margin-top: 0; }
.fiche__ligne { display: flex; align-items: center; gap: 0.5rem; }
.fiche__ligne label { flex: 0 0 auto; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.fiche__ligne > label:first-child { flex: 0 0 8.25rem; text-align: right; }
.fiche input:not([type="checkbox"]), .fiche select, .fiche__textes textarea {
    min-width: 0;
    border: 1px solid var(--bordure-champ);
    border-radius: 0.5rem;
    background: var(--blanc);
    color: var(--marine);
    font: inherit;
    font-size: 0.9375rem;
}
.fiche input:not([type="checkbox"]), .fiche select { flex: 1 1 0; height: 2.25rem; padding: 0 0.625rem; }
.fiche input.fiche__court, .fiche select.fiche__court { flex: 0 1 10.25rem; width: 10.25rem; min-width: 0; }
.fiche__ligne .fiche__libelle2 { flex: 0 0 5.5rem; text-align: right; }
.fiche input[readonly] { border-color: var(--bordure); background: var(--fond); font-weight: 700; }
.fiche__ligne .fiche__case { display: flex; align-items: center; gap: 0.375rem; margin-left: 0.25rem; }
.fiche__auteurs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-left: 8.75rem; }
.fiche__auteurs:empty { display: none; }
.fiche__auteurs span { display: inline-flex; align-items: center; gap: 0.125rem; min-height: 1.875rem; padding: 0 0.125rem 0 0.625rem; border-radius: 1rem; background: var(--fond); color: var(--marine); font-size: 0.875rem; font-weight: 500; }
.fiche__auteurs button { width: 1.5rem; height: 1.5rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--bleu); font-size: 1rem; line-height: 1; cursor: pointer; }
.fiche__auteurs button:hover { background: var(--bordure); }
.fiche__case input { width: 1.125rem; height: 1.125rem; accent-color: var(--bleu); }
.fenetre__section--textes { margin: 0; }
.fiche__textes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.375rem 1rem; }
.fiche__textes label { display: block; margin-bottom: 0.125rem; font-size: 0.9375rem; font-weight: 500; }
.fiche__textes textarea { display: block; width: 100%; padding: 0.375rem 0.625rem; line-height: 1.35; resize: vertical; }
.fenetre--article .fenetre__actions { margin-top: 0; padding-top: 0.75rem; border-top: 1px solid var(--bleu); }

.fiche-images { flex: 1 1 17rem; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.fiche-images__couverture {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 15rem;
    overflow: hidden;
    border: 1px solid var(--bordure);
    border-radius: 0.5rem;
    background: var(--fond);
    color: var(--texte-doux);
    font-size: 0.875rem;
}
.fiche-images__couverture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fiche-images__couverture [hidden] { display: none; }
/* Liste des images : en-tête, puis 5 lignes visibles avant le défilement. */
.fiche-images__table {
    flex: 0 0 auto;
    height: calc(1.75rem + 5 * 1.625rem + 2px);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-padding-top: 1.75rem;
    border: 1px solid var(--bordure);
    background: var(--blanc) repeating-linear-gradient(transparent 0 calc(1.625rem - 1px), var(--bordure) calc(1.625rem - 1px) 1.625rem) 0 1.75rem no-repeat;
}
.fiche-images__table table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; font-size: 0.8125rem; }
.fiche-images__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 1.75rem;
    padding: 0 0.375rem;
    background: var(--marine);
    color: var(--blanc);
    font-family: "Newsreader", Georgia, serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
}
.fiche-images__table thead th:nth-child(2) { width: 3.25rem; padding: 0; text-align: center; }
.fiche-images__table thead th:nth-child(3) { width: 3.125rem; padding: 0; text-align: center; }
.fiche-images__table tbody td { height: 1.625rem; padding: 0; border-bottom: 1px solid var(--bordure); background: var(--blanc); }
.fiche-images__table tbody tr:last-child td { border-bottom: 1px solid var(--bordure); }
.fiche-images__table tbody .fiche-images__choisie td { background: var(--fond); }
.fiche-images__nom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 0.375rem;
    overflow: hidden;
    border: 0;
    background: none;
    color: var(--marine);
    font: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.fiche-images__choisie .fiche-images__nom { font-weight: 500; }
.fiche-images__nom:focus-visible, .fiche-images__fleche:focus-visible { outline-offset: -2px; }
.fiche-images__table tr:has(input:checked) .fiche-images__nom { color: var(--texte-doux); text-decoration: line-through; }
.fiche-images__fleches { text-align: center; white-space: nowrap; }
.fiche-images__fleche {
    width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    border: 0;
    border-radius: 0.25rem;
    background: none;
    color: var(--bleu);
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
}
.fiche-images__fleche:hover:not(:disabled) { background: var(--bordure); }
.fiche-images__fleche:disabled { color: var(--bordure-champ); cursor: default; }
.fiche-images__retirer-case { text-align: center; }
.fiche-images__retirer-case input { display: inline-block; width: 1rem; height: 1rem; margin: 0; vertical-align: middle; accent-color: #b3201f; }
.fiche-images__ajout { justify-content: center; cursor: pointer; }
input:focus-visible + .fiche-images__ajout { outline: 3px solid var(--marine); outline-offset: 2px; }
.vignette--livre img { width: 2rem; height: 2.75rem; }
.champ__aide { color: var(--texte-doux); font-size: 0.8125rem; }
.fenetre .champ--numero { max-width: 14rem; }
.fenetre .champ--numero input, .fenetre .champ .champ-calcule {
    border-color: var(--bordure);
    background: var(--fond);
    color: var(--marine);
    font-weight: 700;
    opacity: 1;
    -webkit-text-fill-color: var(--marine);
}
.fenetre .champ .champ-fichier { padding: 0.625rem 0.75rem; }
.vignette { width: 4.5rem; }
.vignette img { display: block; width: 3.5rem; height: 2.5rem; object-fit: cover; }
.fenetre {
    width: min(30rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 1.5rem;
    border: 1px solid var(--bordure);
    border-top: 4px solid var(--bleu);
    background: var(--blanc);
    color: var(--marine);
}
.fenetre::backdrop { background: rgba(13, 58, 102, 0.45); }
.fenetre__haut { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fenetre__haut h2 { font: 500 1.625rem/1.2 var(--serif); }
.fenetre__fermer {
    flex: 0 0 var(--cible);
    height: var(--cible);
    border: 0;
    background: transparent;
    color: var(--marine);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}
.fenetre__actions { display: flex; justify-content: flex-end; gap: 0.625rem; margin-top: 0.25rem; }

/* Tableau */
.defilement { position: relative; overflow-x: auto; }
table { width: 100%; min-width: 38rem; border-collapse: collapse; }
th {
    padding: 0.75rem;
    border-bottom: 1px solid var(--bordure);
    color: var(--texte-doux);
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
}
td { padding: 0.75rem; border-bottom: 1px solid var(--bordure-ligne); font-size: 0.875rem; }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 1.25rem; }
th:last-child, td:last-child { padding-right: 1.25rem; }
.rubrique { display: block; color: var(--texte-doux); font-size: 0.8125rem; }
.titre-article { color: var(--marine); font-size: 1rem; font-weight: 500; text-decoration: none; }
.titre-article:hover { text-decoration: underline; }
.date { white-space: nowrap; }
.statut { font-weight: 500; }
.statut--publie { color: var(--vert-texte); }
.statut--planifie { color: var(--bleu-texte); }
.statut--brouillon { color: var(--texte-doux); }
.statut--bloque { color: #b3201f; }

/* À venir */
.agenda { margin: 0; padding: 0; list-style: none; }
.agenda li { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.75rem 1.25rem; border-top: 1px solid var(--bordure); }
.agenda__date { color: var(--texte-doux); font-size: 0.8125rem; }
.agenda__libelle { font-weight: 500; }

.vide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 1.5rem;
    border: 1px solid var(--bordure);
    border-radius: 0.75rem;
    background: var(--blanc);
    text-align: center;
}

/* Page de connexion */
.page-connexion { align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.connexion {
    width: 100%;
    max-width: 27rem;
    overflow: hidden;
    border: 1px solid var(--bordure);
    border-radius: 1.25rem;
    background: var(--panneau);
}
.connexion__publics { display: grid; grid-template-columns: repeat(4, 1fr); height: 0.5rem; }
.connexion__publics span:nth-child(1) { background: var(--editeurs); }
.connexion__publics span:nth-child(2) { background: var(--auteurs); }
.connexion__publics span:nth-child(3) { background: var(--journalistes); }
.connexion__publics span:nth-child(4) { background: var(--libraires); }
.connexion__corps { display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem 2.25rem 2.25rem; }
.connexion h1 { font-size: 2.25rem; }
.connexion__aide { color: var(--texte-doux); font-size: 0.875rem; }

.formulaire { display: flex; flex-direction: column; gap: 1rem; }
.champ { display: flex; flex-direction: column; gap: 0.375rem; }
.champ label { font-size: 0.9375rem; font-weight: 500; }
.champ input, .champ select, .champ textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0 0.75rem;
    border: 1px solid var(--bordure-champ);
    border-radius: 0.625rem;
    background: var(--blanc);
    color: var(--marine);
    font: inherit;
}
.mot-de-passe { position: relative; }
.mot-de-passe input { padding-right: 5.5rem; }
.mot-de-passe__voir {
    position: absolute;
    top: 0.125rem;
    right: 0.125rem;
    min-width: 4.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--bleu-texte);
    font: 500 0.875rem var(--sans);
    cursor: pointer;
}
.bouton--large { justify-content: center; width: 100%; min-height: 3rem; margin-top: 0.25rem; font-family: var(--sans); cursor: pointer; }
.message-erreur, .message-succes {
    padding: 0.75rem 1rem;
    border: 1px solid #efc4c4;
    border-radius: 0.625rem;
    background: #fbe9e9;
    color: #9c1c1b;
    font-size: 0.9375rem;
}
.message-succes { border-color: #b9dccf; background: #e4f2ee; color: var(--vert-texte); }
.panneau > .message-flottant {
    position: fixed;
    z-index: 50;
    top: 5.5rem;
    right: 1rem;
    width: auto;
    max-width: min(28rem, calc(100vw - 2rem));
    box-shadow: 0 4px 16px rgba(13, 58, 102, 0.18);
}

/* Référentiels */
.carte__corps { padding: 0 1.25rem 1.25rem; }
button.bouton { font-family: var(--sans); cursor: pointer; }
.case { display: flex; align-items: center; gap: 0.625rem; min-height: var(--cible); }
.case input { width: 1.25rem; height: 1.25rem; accent-color: var(--bleu); }
.code { font-weight: 600; white-space: nowrap; }
.nombre { text-align: right; }
.inactif { color: var(--texte-doux); }
.ligne-vide { padding: 1.5rem 1.25rem; color: var(--texte-doux); text-align: center; }
.ligne-actions { white-space: nowrap; text-align: right; }
.ligne-actions form { display: inline-flex; }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lien-action {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.5rem;
    border: 0;
    background: transparent;
    color: var(--bleu-texte);
    font: 500 0.875rem var(--sans);
    text-decoration: underline;
    cursor: pointer;
}
.lien-action--danger { color: #b3201f; }

/* Actions en icônes : Modifier et Supprimer */
.action-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--bordure);
    border-radius: 0.375rem;
    background: var(--blanc);
    color: var(--bleu);
    cursor: pointer;
}
.action-icone .icone { width: 1.0625rem; height: 1.0625rem; }
.action-icone:hover { border-color: var(--bleu); background: #e4f1f9; }
.action-icone--danger { color: #b3201f; }
.action-icone--danger:hover { border-color: #b3201f; background: #fbe9e9; }
.ligne-actions .action-icone + form { margin-left: 0.375rem; }

/* Liste des articles : une seule ligne par article, le titre et l'auteur coupés par « … ». */
.tableau--articles td, .tableau--articles th { white-space: nowrap; }
.tableau--articles .cellule-coupee { max-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tableau--articles .colonne-titre { width: 55%; }
.tableau--articles .colonne-auteur { width: 25%; }
.tableau--articles .cellule-coupee .titre-article--bouton { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tableau--articles .ligne-actions { width: 1%; }
.tableau--articles table { min-width: 54rem; }
.lien-action--danger:hover { color: #7f1514; }
.filtre { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.filtre input {
    min-height: var(--cible);
    padding: 0 0.75rem;
    border: 1px solid var(--bordure-champ);
    border-radius: 0.625rem;
    background: var(--blanc);
    color: var(--marine);
    font: inherit;
}
.filtre { flex: 1 1 18rem; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.filtre input { flex: 0 1 16rem; min-width: 0; width: 100%; }
.filtre select {
    min-height: var(--cible);
    padding: 0 0.5rem;
    border: 1px solid var(--bordure-champ);
    border-radius: 0.625rem;
    background: var(--blanc);
    color: var(--marine);
    font: inherit;
}

@media (max-width: 48.75rem) {
    .fiche__auteurs { margin-left: 0; }
    .apercu-article__textes { padding-left: 0; border-left: 0; }
    .grille-champs--deux, .fiche__textes { grid-template-columns: minmax(0, 1fr); }
    .fiche__ligne { flex-wrap: wrap; }
    .fiche-images { flex-basis: 100%; }
    .fiche__ligne > label:first-child { flex: 1 1 100%; text-align: left; }
    .fiche input:not([type="checkbox"]), .fiche select, .fiche .fiche__court { flex: 1 1 8rem; min-height: var(--cible); }
    .lien-action, .lien-ligne { min-height: var(--cible); }
    .tableau--defilant { max-height: calc(18.65rem + 11px); }
    .colonne { padding-bottom: 0.5rem; }
    .panneau { border-top-left-radius: 0; padding: 1.5rem 1rem 2rem; }
    h1 { font-size: 2rem; }
    .utilisateur { padding-right: 0; border-right: 0; }
}
