/*
   Le temps du silence — feuille de style unique (site public + administration).
   Références : docs/04-charte-graphique.md et docs/maquettes/.
   Aucun style en ligne dans les pages : la politique de sécurité (CSP) les bloque.
*/

/* ==========================================================================
   Polices auto-hébergées (SIL OFL 1.1, voir wwwroot/polices/LICENSE-*.txt)
   Sous-ensemble latin : couvre le français, œ et la ponctuation typographique.
   ========================================================================== */

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../polices/barlow-condensed-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../polices/barlow-condensed-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../polices/barlow-condensed-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../polices/newsreader-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../polices/newsreader-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Newsreader';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../polices/newsreader-latin-400-italic.woff2') format('woff2');
}

/* ==========================================================================
   Variables de la charte
   ========================================================================== */

:root {
    /* Fonds */
    --fond: #171614;
    --fond-profond: #0F0F0E;
    --fond-panneau: #1A1917;
    --fond-champ: #1C1B19;
    --fond-menu-admin: #121110;
    --fond-survol: #22211E;
    --fond-avatar: #26251F;
    --fond-plaque-survol: #201F1C;

    /* Lignes et bordures */
    --ligne: #34332F;
    --ligne-douce: #2A2925;
    --bordure-champ: #4A4843;

    /* Textes */
    --texte: #ECE8DF;
    --texte-titre-photo: #F2EEE6;
    --texte-corps: #D6D1C6;
    --texte-secondaire: #CFCAC0;
    --texte-menu: #BDB8AD;
    --texte-attenue: #A6A196;
    --texte-indication: #8A867C;
    --texte-survol: #FFFFFF;

    /* États — l'accent est la seule couleur vive */
    --accent: #D9B44A;
    --succes: #A9C79E;
    --erreur: #F0907A;
    --bordure-erreur: #E07A62;
    --danger: #B4533F;

    /* Alerte de la connexion (maquette AdminConnexion.dc.html) */
    --alerte-fond: #2A1C18;
    --alerte-bordure: #7A4A3E;
    --alerte-titre: #F6B5A6;
    --alerte-texte: #E8CFC7;
    --lien-soulignement: #6A665E;

    /* Typographie */
    --police-titre: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --police-texte: 'Newsreader', Georgia, 'Times New Roman', serif;
    --police-code: ui-monospace, Consolas, monospace;

    /* Mise en page */
    --largeur-max: 1440px;
    --gouttiere-site: clamp(20px, 4vw, 56px);
    --gouttiere-admin: clamp(20px, 3vw, 48px);
    --rayon: 2px;

    color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: var(--police-texte);
    font-size: 19px;
    line-height: 1.6;
}

a {
    color: var(--texte);
}

a:hover {
    color: var(--texte-survol);
}

img {
    max-width: 100%;
}

button {
    font: inherit;
}

/* L'attribut hidden l'emporte toujours, même sur un composant en display: flex. */
[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--texte);
    outline-offset: 3px;
}

/* Texte réservé aux lecteurs d'écran. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Lien d'évitement : visible seulement au clavier. */
.evitement {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--texte);
    color: var(--fond);
    font-family: var(--police-titre);
    font-size: 18px;
    font-weight: 500;
}

.evitement:focus {
    top: 8px;
    color: var(--fond);
}

.titre-condense {
    font-family: var(--police-titre);
}

.liste-nue {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   En-tête et pied de page publics
   ========================================================================== */

.entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 40px;
    padding: 18px var(--gouttiere-site);
    border-bottom: 1px solid var(--ligne);
}

.entete-marque {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    color: var(--texte);
    text-decoration: none;
}

.entete-nom {
    font-family: var(--police-titre);
    font-size: 27px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
}

.entete-sous-titre {
    margin-top: 3px;
    font-family: var(--police-titre);
    font-size: 16px;
    line-height: 1.3;
    color: var(--texte-attenue);
}

.menu-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-lien {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-top: 3px;
    border-bottom: 3px solid transparent;
    font-family: var(--police-titre);
    font-size: 20px;
    font-weight: 500;
    color: var(--texte-menu);
    text-decoration: none;
}

.menu-lien:hover {
    color: var(--texte-survol);
}

.menu-lien[aria-current='page'] {
    border-bottom-color: var(--accent);
    color: var(--texte);
}

.pied {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 40px;
    padding: 36px var(--gouttiere-site);
    border-top: 1px solid var(--ligne);
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--texte-attenue);
}

.pied p {
    margin: 0;
}

.pied-liens {
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pied-lien {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--texte-secondaire);
    text-decoration: none;
}

.pied-lien:hover {
    color: var(--texte-survol);
}

/* ==========================================================================
   Composants communs
   ========================================================================== */

/* Bouton à contour clair (« Voir la galerie », « Écrire un message »). */
.bouton-contour {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--texte);
    border-radius: var(--rayon);
    background: transparent;
    font-family: var(--police-titre);
    font-size: 19px;
    font-weight: 500;
    color: var(--texte);
    text-decoration: none;
    cursor: pointer;
}

.bouton-contour:hover {
    background: var(--texte);
    color: var(--fond);
}

.bouton-contour--discret {
    border-color: var(--bordure-champ);
}

.bouton-contour--grand {
    min-height: 48px;
    font-size: 20px;
}

/* Bouton carré à icône (flèches du carrousel et de la visionneuse). */
.bouton-icone {
    width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(236, 232, 223, 0.45);
    border-radius: var(--rayon);
    background: rgba(23, 22, 20, 0.45);
    color: var(--texte);
    cursor: pointer;
}

.bouton-icone:hover {
    border-color: var(--texte);
    background: rgba(23, 22, 20, 0.85);
}

.bouton-icone svg {
    width: 22px;
    height: 22px;
}

/* En-tête de page : grand titre + phrase d'introduction. */
.page-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 48px;
}

.page-titre {
    margin: 0;
    font-family: var(--police-titre);
    font-size: clamp(56px, 7vw, 104px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.015em;
}

.page-intro {
    margin: 0;
    max-width: 40ch;
    font-size: 20px;
    line-height: 1.5;
    color: var(--texte-secondaire);
}

.contenu-page {
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: 72px var(--gouttiere-site) 96px;
}

/* Liste « libellé — valeur » (fiche technique, matériel). */
.liste-details {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: var(--police-titre);
}

.liste-details > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ligne);
}

.liste-details dt {
    font-size: 17px;
    color: var(--texte-attenue);
}

.liste-details dd {
    margin: 0;
    font-size: 19px;
    text-align: right;
}

.a-completer {
    font-style: italic;
    color: var(--texte-attenue);
}

/* ==========================================================================
   Accueil — carrousel des dernières galeries
   ========================================================================== */

.carrousel {
    position: relative;
    /* Largeur explicite : sans elle, aspect-ratio + min-height élargit le bloc au-delà de l'écran
       (460 px × 16/7 = 1051 px) et crée un défilement horizontal de la page. */
    width: 100%;
    /* clip plutôt que hidden : un bloc « hidden » reste défilable par le navigateur (prise de focus),
       ce qui décalait les diapositives. hidden reste en repli pour les navigateurs anciens. */
    overflow: hidden;
    overflow: clip;
    aspect-ratio: 16 / 7;
    min-height: 460px;
    max-height: 780px;
    background: var(--fond-profond);
}

/* Sans JavaScript : les diapositives défilent horizontalement, à la main. */
.carrousel-piste {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

/* Avec JavaScript (carrousel.js) : une diapositive à la fois, déplacée par transformation. */
.carrousel--actif .carrousel-piste {
    overflow: visible;
    transition: transform 800ms cubic-bezier(0.65, 0, 0.25, 1);
}

.diapo {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
}

.diapo-image,
.bandeau-image,
.galerie-couverture-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diapo-degrade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(23, 22, 20, 0.92) 0%, rgba(23, 22, 20, 0.45) 38%, rgba(23, 22, 20, 0) 66%),
        linear-gradient(to bottom, rgba(23, 22, 20, 0.6) 0%, rgba(23, 22, 20, 0) 18%);
}

.diapo-texte {
    position: absolute;
    left: var(--gouttiere-site);
    right: var(--gouttiere-site);
    bottom: clamp(28px, 4.5vw, 64px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.etiquette-rubrique {
    margin: 0;
    font-family: var(--police-titre);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.diapo-titre {
    margin: 0;
    font-family: var(--police-titre);
    font-size: clamp(56px, 9vw, 144px);
    font-weight: 500;
    line-height: 0.86;
    letter-spacing: -0.015em;
    color: var(--texte-titre-photo);
}

.diapo-infos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 12px;
}

.diapo-lieu {
    margin: 0;
    font-size: 19px;
    font-style: italic;
    color: var(--texte-corps);
}

.diapo-compte {
    margin: 0;
    font-family: var(--police-titre);
    font-size: 19px;
    color: var(--texte-corps);
}

.carrousel-entete {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px var(--gouttiere-site);
    pointer-events: none;
    font-family: var(--police-titre);
    font-size: 20px;
    font-weight: 500;
}

.carrousel-entete h1,
.carrousel-entete p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.carrousel-compteur {
    font-variant-numeric: tabular-nums;
}

.carrousel-compteur-total {
    color: var(--texte-attenue);
}

.carrousel-fleche {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carrousel-fleche--precedente {
    left: clamp(8px, 2vw, 28px);
}

.carrousel-fleche--suivante {
    right: clamp(8px, 2vw, 28px);
}

.plaques {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    overflow-x: auto;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--ligne);
    border-bottom: 1px solid var(--ligne);
}

.plaque {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 14px 16px;
    border-top: 3px solid transparent;
    background: var(--fond);
    color: var(--texte-attenue);
    text-decoration: none;
}

.plaque:hover {
    background: var(--fond-plaque-survol);
    color: var(--texte-survol);
}

.plaque[aria-current='true'] {
    border-top-color: var(--accent);
    color: var(--texte);
}

.plaque img {
    flex: none;
    width: 88px;
    height: 58px;
    object-fit: cover;
    filter: grayscale(1) brightness(0.7);
}

.plaque[aria-current='true'] img,
.plaque:hover img {
    filter: none;
}

.plaque-textes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-family: var(--police-titre);
}

.plaque-numero {
    font-size: 16px;
    color: var(--texte-attenue);
}

.plaque-titre {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.1;
}

/* Accueil — présentation */

.presentation {
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: clamp(56px, 8vw, 112px) var(--gouttiere-site);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px clamp(40px, 6vw, 96px);
}

.presentation-phrase {
    flex: 1 1 420px;
    max-width: 16ch;
    margin: 0;
    font-family: var(--police-titre);
    font-size: clamp(34px, 3.8vw, 56px);
    font-weight: 400;
    line-height: 1.04;
}

.presentation-colonne {
    flex: 1 1 360px;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.presentation-texte {
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
    color: var(--texte-secondaire);
}

.liste-rubriques {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ligne);
}

.liste-rubriques li {
    border-bottom: 1px solid var(--ligne);
}

.liste-rubriques a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    text-decoration: none;
    font-family: var(--police-titre);
    font-size: 23px;
    font-weight: 500;
}

.liste-rubriques-compte {
    font-size: 17px;
    font-weight: 400;
    color: var(--texte-attenue);
}

.liste-rubriques a:hover .liste-rubriques-compte {
    color: var(--texte);
}

/* ==========================================================================
   Rubriques — bandeaux
   ========================================================================== */

.rubriques-page {
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: 0 0 96px;
}

.rubriques-page .page-entete {
    padding: 72px var(--gouttiere-site) 48px;
}

.bandeaux {
    list-style: none;
    margin: 0;
    padding: 0 clamp(0px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bandeau {
    position: relative;
    display: block;
    height: clamp(220px, 22vw, 320px);
    overflow: hidden;
    background: var(--fond-profond);
    color: var(--texte);
    text-decoration: none;
}

.bandeau-image {
    filter: brightness(0.78);
    transition: filter 0.6s ease;
}

.bandeau:hover .bandeau-image {
    filter: brightness(1);
}

.bandeau-degrade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(23, 22, 20, 0.9) 0%, rgba(23, 22, 20, 0.55) 42%, rgba(23, 22, 20, 0.05) 80%);
}

.bandeau-texte {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 32px;
    padding: clamp(20px, 3vw, 40px) var(--gouttiere-site);
}

.bandeau-titres {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 520px;
}

.bandeau-nom {
    margin: 0;
    font-family: var(--police-titre);
    font-size: clamp(52px, 7vw, 104px);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.01em;
}

.bandeau-description {
    margin: 0;
    font-size: 19px;
    line-height: 1.45;
    color: var(--texte-corps);
}

.bandeau-compte {
    margin: 0;
    font-family: var(--police-titre);
    font-size: 21px;
    font-weight: 500;
    color: var(--accent);
}

/* ==========================================================================
   Galeries — filtres, cartes, pagination
   ========================================================================== */

.filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 36px 0 48px;
    padding: 0;
    list-style: none;
}

.filtre {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--bordure-champ);
    border-radius: var(--rayon);
    font-family: var(--police-titre);
    font-size: 19px;
    font-weight: 500;
    color: var(--texte);
    text-decoration: none;
}

.filtre:hover {
    border-color: var(--texte);
}

.filtre[aria-current='page'] {
    background: var(--texte);
    color: var(--fond);
}

.filtre-compte {
    font-weight: 400;
    opacity: 0.7;
}

.grille-galeries {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 48px 24px;
}

.carte {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--texte);
    text-decoration: none;
}

.carte-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--fond-profond);
}

.carte-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82);
    transition: filter 0.6s ease;
}

.carte:hover .carte-image img {
    filter: brightness(1);
}

.carte-ligne {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.carte-titre {
    font-family: var(--police-titre);
    font-size: 31px;
    font-weight: 500;
    line-height: 1.05;
}

.carte:hover .carte-titre {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.carte-compte {
    flex: none;
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--texte-attenue);
}

.carte-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    margin-top: -6px;
    font-size: 17px;
}

.carte-rubrique {
    font-family: var(--police-titre);
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
}

.carte-lieu {
    font-style: italic;
    color: var(--texte-attenue);
}

.liste-vide {
    margin: 0;
    font-size: 20px;
    color: var(--texte-secondaire);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--ligne);
    font-family: var(--police-titre);
    font-size: 19px;
    color: var(--texte-attenue);
}

/* ==========================================================================
   Fiche galerie
   ========================================================================== */

.fil-ariane {
    padding: 0 var(--gouttiere-site);
}

.fil-ariane ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--police-titre);
    font-size: 18px;
    color: var(--texte-attenue);
}

.fil-ariane a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--texte-menu);
    text-decoration: none;
}

.fil-ariane a:hover {
    color: var(--texte-survol);
}

.fil-ariane [aria-current='page'] {
    color: var(--texte);
}

.galerie-couverture {
    position: relative;
    height: clamp(380px, 46vw, 680px);
    overflow: hidden;
    background: var(--fond-profond);
}

.galerie-couverture-image {
    object-position: center 40%;
}

.galerie-couverture-degrade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(23, 22, 20, 0.92) 0%, rgba(23, 22, 20, 0.4) 34%, rgba(23, 22, 20, 0) 60%);
}

.galerie-couverture-texte {
    position: absolute;
    left: var(--gouttiere-site);
    right: var(--gouttiere-site);
    bottom: clamp(24px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.galerie-titre {
    margin: 0;
    font-family: var(--police-titre);
    font-size: clamp(64px, 10vw, 160px);
    font-weight: 500;
    line-height: 0.84;
    letter-spacing: -0.02em;
    color: var(--texte-titre-photo);
}

.galerie-infos {
    margin: 0;
    padding: 28px var(--gouttiere-site);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px 32px;
    border-bottom: 1px solid var(--ligne);
    font-family: var(--police-titre);
}

.galerie-infos dt {
    font-size: 16px;
    color: var(--texte-attenue);
}

.galerie-infos dd {
    margin: 4px 0 0;
    font-size: 22px;
    font-weight: 500;
}

.galerie-corps {
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 80px) var(--gouttiere-site);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 56px clamp(40px, 6vw, 112px);
}

/* Récit : HTML assaini (p, strong, em, h3, blockquote, ul, ol, li). */
.recit {
    flex: 999 1 560px;
    min-width: 0;
    max-width: 720px;
    font-size: 19px;
    line-height: 1.7;
    color: var(--texte-corps);
}

.recit p {
    margin: 0 0 22px;
}

.recit > p:first-of-type {
    margin-bottom: 28px;
    font-size: clamp(22px, 2vw, 26px);
    line-height: 1.5;
    color: var(--texte);
}

.recit strong,
.recit b {
    font-weight: 500;
    color: var(--texte);
}

.recit h3 {
    margin: 48px 0 14px;
    font-family: var(--police-titre);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.15;
    color: var(--texte);
}

.recit blockquote {
    margin: 44px 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--bordure-champ);
    font-family: var(--police-titre);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--texte);
}

.recit ul,
.recit ol {
    margin: 0 0 22px;
    padding-left: 1.1em;
}

.recit li {
    margin-bottom: 10px;
}

.recit li::marker {
    color: var(--texte-attenue);
}

.fiche-technique {
    flex: 1 1 260px;
    max-width: 380px;
    padding-top: 20px;
    border-top: 1px solid var(--bordure-champ);
}

.fiche-technique h2 {
    margin: 0 0 16px;
    font-family: var(--police-titre);
    font-size: 24px;
    font-weight: 500;
}

.titre-section {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 28px;
    font-family: var(--police-titre);
    font-size: 36px;
    font-weight: 500;
}

.titre-section-compte {
    font-size: 20px;
    font-weight: 400;
    color: var(--texte-attenue);
}

.galerie-photos {
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: 0 var(--gouttiere-site) 96px;
}

/* Miniatures en colonnes (masonry), chacune ouvre la visionneuse. */
.mosaique {
    columns: 3 300px;
    column-gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mosaique li {
    margin: 0 0 16px;
    break-inside: avoid;
}

.vignette {
    display: block;
    background: var(--fond-profond);
    cursor: zoom-in;
}

.vignette img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0.86);
    transition: filter 0.5s ease;
}

.vignette:hover img {
    filter: brightness(1.05);
}

/* Commentaires */

.commentaires {
    border-top: 1px solid var(--ligne);
}

.commentaires-contenu {
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: 72px var(--gouttiere-site) 96px;
}

.commentaires-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 40px;
}

.commentaires-titre {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--police-titre);
    font-size: 44px;
    font-weight: 500;
    line-height: 1;
}

.commentaires-titre .titre-section-compte {
    font-size: 22px;
}

.commentaires-note {
    margin: 0;
    font-family: var(--police-titre);
    font-size: 18px;
    color: var(--texte-attenue);
}

.commentaires-corps {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 56px clamp(48px, 6vw, 104px);
    margin-top: 40px;
}

.liste-commentaires {
    flex: 999 1 560px;
    max-width: 780px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ligne);
}

.liste-commentaires > li {
    padding: 28px 0;
    border-bottom: 1px solid var(--ligne);
}

.commentaire {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 4px 16px;
}

.avatar {
    grid-row: span 2;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bordure-champ);
    background: var(--fond-avatar);
    font-family: var(--police-titre);
    font-size: 20px;
    font-weight: 500;
    color: var(--texte-secondaire);
}

.avatar--auteur {
    border: 0;
    background: var(--texte);
    font-size: 17px;
    font-weight: 600;
    color: var(--fond);
}

.commentaire-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    align-content: center;
    gap: 4px 14px;
    min-height: 46px;
}

.commentaire-nom {
    font-family: var(--police-titre);
    font-size: 23px;
    font-weight: 500;
}

.commentaire-date {
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--texte-attenue);
}

.commentaire-texte {
    grid-column: 2;
    margin: 6px 0 0;
    font-size: 19px;
    line-height: 1.62;
    color: var(--texte-corps);
    white-space: pre-line;
}

.etiquette-auteur {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid var(--accent);
    border-radius: var(--rayon);
    font-family: var(--police-titre);
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
}

.reponse-auteur {
    margin: 24px 0 0 clamp(14px, 4vw, 62px);
    padding: 4px 0 4px clamp(14px, 2vw, 22px);
    border-left: 3px solid var(--accent);
}

/* Galeries voisines */

.galeries-voisines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1px;
    background: var(--ligne);
    border-top: 1px solid var(--ligne);
    border-bottom: 1px solid var(--ligne);
}

.voisine {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px var(--gouttiere-site);
    background: var(--fond);
    text-decoration: none;
}

.voisine--suivante {
    justify-content: flex-end;
    text-align: right;
}

/* Une seule voisine : elle reste à sa place (précédente à gauche, suivante à droite). */
.voisine--suivante:only-child {
    grid-column: -2;
}

.voisine img {
    flex: none;
    width: 96px;
    height: 64px;
    object-fit: cover;
}

.voisine-textes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--police-titre);
}

.voisine-sens {
    font-size: 17px;
    color: var(--texte-attenue);
}

.voisine-titre {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
}

.voisine:hover .voisine-titre {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

/* ==========================================================================
   Visionneuse (élément <dialog>, visionneuse.js)
   ========================================================================== */

.visionneuse {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(15, 15, 14, 0.97);
    color: var(--texte);
}

.visionneuse[open] {
    display: flex;
    flex-direction: column;
}

.visionneuse::backdrop {
    background: rgba(15, 15, 14, 0.97);
}

.visionneuse-barre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px clamp(12px, 3vw, 32px);
}

.visionneuse-titre {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--police-titre);
    font-size: 20px;
}

.visionneuse-compteur {
    font-variant-numeric: tabular-nums;
    color: var(--texte-attenue);
}

.visionneuse .bouton-icone {
    border-color: rgba(236, 232, 223, 0.35);
    background: rgba(15, 15, 14, 0.55);
}

.visionneuse .bouton-icone:hover {
    border-color: var(--texte);
    background: rgba(236, 232, 223, 0.14);
}

.visionneuse-fermer {
    flex: none;
    width: 48px;
    height: 48px;
}

.visionneuse-fermer svg {
    width: 20px;
    height: 20px;
}

.visionneuse-scene {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(8px, 6vw, 96px);
}

.visionneuse-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.visionneuse-fleche {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.visionneuse-fleche--precedente {
    left: clamp(4px, 1.5vw, 24px);
}

.visionneuse-fleche--suivante {
    right: clamp(4px, 1.5vw, 24px);
}

.visionneuse-legende {
    margin: 0;
    padding: 14px clamp(12px, 3vw, 32px) 20px;
    text-align: center;
    font-size: 16px;
    font-style: italic;
    line-height: 1.4;
    color: var(--texte-attenue);
}

/* ==========================================================================
   À propos
   ========================================================================== */

.contenu-a-propos {
    max-width: var(--largeur-max);
    margin: 0 auto;
}

.apropos-intro {
    padding: clamp(48px, 6vw, 88px) var(--gouttiere-site);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px clamp(40px, 6vw, 96px);
}

.portrait {
    flex: 1 1 300px;
    max-width: 460px;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--fond-profond);
}

.portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apropos-texte {
    flex: 999 1 520px;
    min-width: 0;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.apropos-texte p {
    margin: 0;
    font-size: 20px;
    line-height: 1.65;
    color: var(--texte-corps);
}

.apropos-texte .apropos-accroche {
    font-family: var(--police-titre);
    font-size: clamp(26px, 2.4vw, 32px);
    line-height: 1.2;
    color: var(--texte);
}

.apropos-section {
    padding: clamp(48px, 5vw, 72px) var(--gouttiere-site);
    border-top: 1px solid var(--ligne);
}

.apropos-section h2 {
    margin: 0 0 32px;
    font-family: var(--police-titre);
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
}

.charte {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 32px clamp(24px, 4vw, 56px);
}

.charte li {
    padding-top: 18px;
    border-top: 3px solid var(--accent);
}

.charte h3 {
    margin: 0 0 8px;
    font-family: var(--police-titre);
    font-size: 28px;
    font-weight: 500;
}

.charte p {
    margin: 0;
    font-size: 19px;
    line-height: 1.6;
    color: var(--texte-corps);
}

.apropos-bas {
    padding-bottom: 96px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px clamp(40px, 6vw, 96px);
}

.apropos-bas > div {
    flex: 1 1 340px;
    max-width: 560px;
}

.apropos-bas h2 {
    margin-bottom: 20px;
}

.apropos-bas .liste-details dt {
    font-size: 18px;
}

.apropos-bas .liste-details dd {
    font-size: 20px;
}

.apropos-contact-texte {
    margin: 0 0 24px;
    font-size: 20px;
    line-height: 1.6;
    color: var(--texte-corps);
}

.boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   Formulaires publics (Contact.dc.html, Galerie.dc.html)
   ========================================================================== */

.formulaire {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.formulaire--compact {
    gap: 22px;
}

.formulaire-titre {
    margin: 0 0 2px;
    font-family: var(--police-titre);
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
}

.formulaire-titre--petit {
    margin: 0;
    font-size: 30px;
}

.champs-ligne {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 26px 24px;
}

.champ {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.champ-libelle {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--police-titre);
    font-size: 19px;
    font-weight: 500;
    color: var(--texte-secondaire);
}

.champ-obligatoire {
    color: var(--accent);
}

.champ-indication {
    margin-left: auto;
    font-size: 16px;
    font-weight: 400;
    color: var(--texte-attenue);
}

.champ-saisie {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--bordure-champ);
    border-radius: var(--rayon);
    background: var(--fond-champ);
    font-family: var(--police-texte);
    font-size: 19px;
    color: var(--texte);
}

textarea.champ-saisie {
    padding: 14px 16px;
    line-height: 1.55;
    resize: vertical;
}

.champ-saisie::placeholder {
    font-style: italic;
    color: var(--texte-indication);
}

.champ-saisie:focus {
    outline: 2px solid var(--texte);
    outline-offset: 2px;
    border-color: var(--texte);
}

.champ-saisie[aria-invalid="true"] {
    border-color: var(--bordure-erreur);
}

/* Liste déroulante : flèche dessinée par un SVG posé par-dessus le champ. */
.champ-liste {
    position: relative;
}

.champ-liste .champ-saisie {
    padding-right: 48px;
    appearance: none;
    cursor: pointer;
}

.champ-liste svg {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.champ-pied {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.champ-erreur {
    margin: 0;
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--erreur);
}

.champ-erreur--case {
    margin-left: 36px;
}

.champ-compteur {
    margin: 0 0 0 auto;
    font-family: var(--police-titre);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    color: var(--texte-attenue);
}

/* Champ piège : hors de l'écran (et non display:none, que certains robots savent repérer). */
.champ-piege {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.case {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--texte-corps);
    cursor: pointer;
}

.case--petite {
    font-size: 17px;
}

.case input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 3px 0 0;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Vérification anti-robot : état porté par data-etat (attente, calcul, ok, erreur) — formulaires.js. */
.anti-robot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--bordure-champ);
    border-radius: var(--rayon);
    background: var(--fond-champ);
}

.anti-robot--erreur {
    border-color: var(--bordure-erreur);
}

.anti-robot-indicateur {
    flex: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bordure-champ);
    border-radius: 50%;
    color: var(--accent);
}

.anti-robot-indicateur svg {
    width: 16px;
    height: 16px;
    visibility: hidden;
}

.anti-robot[data-etat="calcul"] .anti-robot-indicateur {
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    animation: rotation 0.9s linear infinite;
}

.anti-robot[data-etat="ok"] .anti-robot-indicateur {
    border-color: var(--accent);
}

.anti-robot[data-etat="ok"] .anti-robot-indicateur svg {
    visibility: visible;
}

.anti-robot-textes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.anti-robot-titre {
    font-family: var(--police-titre);
    font-size: 20px;
    font-weight: 500;
}

.anti-robot-sous-titre {
    font-family: var(--police-titre);
    font-size: 16px;
    color: var(--texte-attenue);
}

.anti-robot-bouclier {
    flex: none;
    width: 26px;
    height: 26px;
    margin-left: auto;
    color: var(--texte-attenue);
}

@keyframes rotation {
    to {
        transform: rotate(360deg);
    }
}

.formulaire-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 4px;
}

.formulaire-note {
    margin: 0;
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--texte-attenue);
}

.formulaire-note--commentaire {
    margin-top: -4px;
    font-family: var(--police-texte);
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
}

.formulaire-note--erreur {
    color: var(--erreur);
}

/* Bouton plein clair (« Envoyer le message », « Publier le commentaire »). */
.bouton-plein {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--rayon);
    background: var(--texte);
    font-family: var(--police-titre);
    font-size: 21px;
    font-weight: 600;
    color: var(--fond);
    cursor: pointer;
}

.bouton-plein:hover {
    background: var(--texte-survol);
}

.bouton-plein svg {
    width: 20px;
    height: 20px;
}

.bouton-plein--seul {
    align-self: flex-start;
}

/* Confirmation après envoi. */
.confirmation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.confirmation--grande {
    gap: 20px;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--ligne);
    border-top: 3px solid var(--accent);
    background: var(--fond-panneau);
}

.confirmation-icone {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
}

.confirmation--grande .confirmation-icone {
    width: 52px;
    height: 52px;
}

.confirmation-icone svg {
    width: 22px;
    height: 22px;
}

.confirmation-titre {
    margin: 0;
    font-family: var(--police-titre);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.05;
}

.confirmation--grande .confirmation-titre {
    font-size: 44px;
    line-height: 1;
}

.confirmation-texte {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--texte-corps);
}

.confirmation--grande .confirmation-texte {
    font-size: 20px;
}

.confirmation-adresse {
    color: var(--texte);
}

/* Formulaire et états des commentaires de la fiche galerie. */
.commentaires-panneau {
    flex: 1 1 340px;
    max-width: 500px;
    min-width: 0;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--ligne);
    background: var(--fond-panneau);
}

.commentaires-vide,
.commentaires-fermes {
    flex: 999 1 560px;
    margin: 0;
}

.commentaires-fermes {
    font-size: 18px;
    color: var(--texte-attenue);
}

.liste-commentaires > .commentaire-en-attente {
    opacity: 0.75;
}

.etiquette-attente {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px dashed var(--texte-indication);
    border-radius: var(--rayon);
    font-family: var(--police-titre);
    font-size: 15px;
    color: var(--texte-secondaire);
}

/* ==========================================================================
   Page Contact (Contact.dc.html)
   ========================================================================== */

.contact {
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 88px) var(--gouttiere-site) 104px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 56px clamp(48px, 7vw, 120px);
}

.contact-presentation {
    flex: 1 1 340px;
    max-width: 500px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.contact-titre {
    margin: 0;
    font-family: var(--police-titre);
    font-size: clamp(56px, 7vw, 104px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.015em;
}

.contact-accroche {
    margin: 0;
    font-family: var(--police-titre);
    font-size: clamp(26px, 2.4vw, 31px);
    line-height: 1.2;
}

.contact-texte {
    margin: 0;
    font-size: 19px;
    line-height: 1.65;
    color: var(--texte-corps);
}

.contact-details {
    margin: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--ligne);
}

.contact-details > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--ligne);
}

.contact-details dt {
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--texte-attenue);
}

.contact-details dd {
    margin: 0;
    font-family: var(--police-titre);
    font-size: 20px;
    font-weight: 500;
    text-align: right;
}

.contact-details a {
    text-decoration: none;
}

.contact-rappel {
    margin: 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--accent);
    font-size: 18px;
    line-height: 1.55;
    color: var(--texte-corps);
}

.contact-figure {
    margin: 8px 0 0;
}

.contact-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.contact-figure figcaption {
    margin-top: 10px;
    font-size: 16px;
    font-style: italic;
    color: var(--texte-attenue);
}

.contact-formulaire {
    flex: 999 1 560px;
    max-width: 760px;
    min-width: 0;
}

/* ==========================================================================
   Page d'erreur
   ========================================================================== */

.erreur {
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: 96px var(--gouttiere-site);
}

.erreur h1 {
    margin: 0 0 24px;
    font-family: var(--police-titre);
    font-size: clamp(56px, 7vw, 104px);
    font-weight: 500;
    line-height: 0.92;
}

.erreur-code {
    margin: 0 0 8px;
    font-family: var(--police-titre);
    font-size: 20px;
    letter-spacing: 0.08em;
    color: var(--accent);
}

/* ==========================================================================
   Connexion à l'administration (AdminConnexion.dc.html)
   ========================================================================== */

.connexion {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}

.connexion-visuel {
    position: relative;
    flex: 1 1 420px;
    min-height: 240px;
    overflow: hidden;
    background: var(--fond-profond);
}

.connexion-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
}

.connexion-degrade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(23, 22, 20, 0.88) 0%, rgba(23, 22, 20, 0.2) 45%, rgba(23, 22, 20, 0.35) 100%);
}

.connexion-marque {
    position: absolute;
    left: clamp(20px, 4vw, 48px);
    bottom: clamp(20px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
}

.connexion-marque-nom {
    font-family: var(--police-titre);
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 600;
    line-height: 1;
}

.connexion-marque-sous-titre,
.admin-marque-sous-titre {
    font-family: var(--police-titre);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.connexion-panneau {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
}

.connexion-colonne {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.connexion-entete {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.connexion-reserve {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--texte-attenue);
}

.connexion-reserve svg {
    width: 16px;
    height: 16px;
}

.connexion-titre {
    margin: 0;
    font-family: var(--police-titre);
    font-size: clamp(44px, 5vw, 60px);
    font-weight: 500;
    line-height: 0.95;
}

.connexion-intro,
.connexion-texte {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--texte-corps);
}

.connexion-reussie {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.connexion-liens {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
}

.connexion-pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ligne-douce);
    font-family: var(--police-titre);
    font-size: 16px;
    color: var(--texte-attenue);
}

.connexion-chiffree {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.connexion-chiffree svg {
    width: 15px;
    height: 15px;
}

/* Lien souligné discret (« Mot de passe oublié ? », « Retour au site »). */
.lien-souligne {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--police-titre);
    font-size: 16px;
    color: var(--texte-secondaire);
    text-decoration: underline;
    text-decoration-color: var(--lien-soulignement);
    text-underline-offset: 4px;
}

.lien-souligne:hover {
    color: var(--texte-survol);
    text-decoration-color: var(--texte-survol);
}

.lien-souligne--petit {
    min-height: 32px;
    font-size: 17px;
}

/* Alerte en tête de formulaire. */
.alerte {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--alerte-bordure);
    border-left: 3px solid var(--erreur);
    background: var(--alerte-fond);
}

.alerte-icone {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--erreur);
}

.alerte-textes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alerte-titre {
    font-family: var(--police-titre);
    font-size: 19px;
    font-weight: 500;
    color: var(--alerte-titre);
}

.alerte-texte {
    font-size: 16px;
    line-height: 1.5;
    color: var(--alerte-texte);
}

.encadre-accent {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--ligne);
    border-left: 3px solid var(--accent);
    background: var(--fond-panneau);
    font-size: 18px;
    line-height: 1.55;
    color: var(--texte-corps);
}

/* Champs propres à la connexion. */
.champ-entete {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.champ-mot-de-passe {
    position: relative;
    display: block;
}

.champ-mot-de-passe .champ-saisie {
    padding-right: 56px;
}

.champ-saisie:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bouton-oeil {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--texte-secondaire);
    transform: translateY(-50%);
    cursor: pointer;
}

.bouton-oeil[hidden] {
    display: none;
}

.bouton-oeil:hover {
    color: var(--texte-survol);
}

.bouton-oeil svg {
    width: 22px;
    height: 22px;
}

.bouton-oeil .oeil-ferme,
.bouton-oeil[aria-pressed="true"] .oeil-ouvert {
    display: none;
}

.bouton-oeil[aria-pressed="true"] .oeil-ferme {
    display: block;
}

.champ-infos {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.verr-maj {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--accent);
}

.verr-maj[hidden] {
    display: none;
}

.verr-maj svg {
    width: 16px;
    height: 16px;
}

.champ-code {
    min-height: 60px;
    font-family: var(--police-code);
    font-size: 28px;
    letter-spacing: 0.35em;
    text-align: center;
}

.case-aide {
    display: block;
    font-family: var(--police-titre);
    font-size: 15px;
    color: var(--texte-attenue);
}

.bouton-plein--large {
    width: 100%;
    justify-content: center;
    padding: 0 24px;
    text-decoration: none;
}

.bouton-plein:disabled {
    background: var(--lien-soulignement);
    cursor: not-allowed;
}

/* ==========================================================================
   Administration — menu latéral et contenu (AdminTableauDeBord.dc.html)
   ========================================================================== */

.admin-page {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 100vh;
}

.admin-menu {
    flex: 1 1 232px;
    min-width: 0;
    padding: 24px 14px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: var(--fond-menu-admin);
    border-right: 1px solid var(--ligne);
}

.admin-marque {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
    text-decoration: none;
}

.admin-marque-nom {
    font-family: var(--police-titre);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.05;
}

.admin-marque-sous-titre {
    font-size: 15px;
}

.admin-menu-liste {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-menu-lien {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 12px;
    border-left: 3px solid transparent;
    font-family: var(--police-titre);
    font-size: 19px;
    font-weight: 500;
    color: var(--texte-menu);
    text-decoration: none;
}

.admin-menu-lien svg {
    flex: none;
    width: 20px;
    height: 20px;
}

.admin-menu-lien:hover {
    background: var(--fond-survol);
    color: var(--texte-survol);
}

.admin-menu-lien[aria-current='page'] {
    border-left-color: var(--accent);
    background: var(--fond-survol);
    color: var(--texte);
}

.admin-menu-bas {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 18px;
    border-top: 1px solid var(--ligne);
}

.admin-menu-bas form {
    margin: 0;
}

.admin-menu-lien--secondaire {
    min-height: 44px;
    border-left: 0;
    font-size: 18px;
    font-weight: 400;
}

.admin-menu-lien--secondaire svg {
    width: 18px;
    height: 18px;
}

/* Bouton de déconnexion présenté comme les liens du menu. */
.admin-menu-bouton {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.admin-contenu {
    flex: 999 1 560px;
    min-width: 0;
    padding: 28px var(--gouttiere-admin) 64px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.admin-titre {
    margin: 0;
    font-family: var(--police-titre);
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 500;
    line-height: 0.95;
}

.admin-texte {
    margin: 0;
    max-width: 62ch;
    font-size: 18px;
    color: var(--texte-corps);
}

/* ==========================================================================
   Administration — composants communs (AdminContenus, AdminRubrique, AdminGalerie, AdminPhoto)
   ========================================================================== */

.admin-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
}

.admin-entete-titres {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.admin-surtitre {
    margin: 0;
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--texte-attenue);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.admin-formulaire {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.fil-ariane-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--texte-attenue);
}

.fil-ariane-admin a {
    color: var(--texte-menu);
    text-decoration: none;
}

.fil-ariane-admin a:hover {
    color: var(--texte-survol);
}

.fil-ariane-admin [aria-current='page'] {
    color: var(--texte);
}

/* Boutons de l'administration : plein clair, contour, danger ; deux hauteurs. */
.bouton-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--texte);
    border-radius: var(--rayon);
    background: var(--texte);
    font-family: var(--police-titre);
    font-size: 19px;
    font-weight: 600;
    color: var(--fond);
    text-decoration: none;
    cursor: pointer;
}

.bouton-admin:hover {
    border-color: var(--texte-survol);
    background: var(--texte-survol);
    color: var(--fond);
}

.bouton-admin svg {
    flex: none;
    width: 18px;
    height: 18px;
}

.bouton-admin--contour {
    border-color: var(--bordure-champ);
    background: transparent;
    font-weight: 500;
    color: var(--texte);
}

.bouton-admin--contour:hover {
    border-color: var(--texte);
    background: var(--fond-survol);
    color: var(--texte);
}

.bouton-admin--petit {
    min-height: 40px;
    padding: 0 14px;
    font-size: 17px;
}

.bouton-admin--petit-plein {
    min-height: 46px;
    padding: 0 18px;
    font-size: 18px;
}

.bouton-admin--large {
    width: 100%;
}

.bouton-admin--danger {
    align-self: flex-start;
    min-height: 44px;
    padding: 0 18px;
    border-color: var(--alerte-bordure);
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    color: var(--erreur);
}

.bouton-admin--danger:hover {
    border-color: var(--erreur);
    background: var(--alerte-fond);
    color: var(--erreur);
}

.bouton-admin--plein-danger {
    min-height: 44px;
    padding: 0 16px;
    border-color: var(--danger);
    background: var(--danger);
    font-size: 18px;
    color: var(--texte-survol);
}

.bouton-admin--plein-danger:hover {
    border-color: var(--erreur);
    background: var(--erreur);
    color: var(--fond);
}

/* Bouton carré à icône (ordre, retrait, voir sur le site). */
.bouton-carre {
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bordure-champ);
    border-radius: var(--rayon);
    background: transparent;
    color: var(--texte-secondaire);
    cursor: pointer;
}

.bouton-carre:hover:not(:disabled) {
    border-color: var(--texte);
    color: var(--texte-survol);
}

.bouton-carre:disabled {
    opacity: 0.35;
    cursor: default;
}

.bouton-carre svg {
    width: 16px;
    height: 16px;
}

.bouton-carre--bas {
    width: 34px;
    height: 30px;
}

.bouton-carre--bas svg {
    width: 14px;
    height: 14px;
}

.bouton-carre--lien {
    width: 40px;
    height: 40px;
    margin-left: 6px;
    vertical-align: middle;
}

.bouton-carre--danger {
    width: 40px;
    height: 40px;
    color: var(--erreur);
}

.bouton-carre--danger:hover {
    border-color: var(--erreur);
    background: var(--alerte-fond);
}

.bouton-carre:focus-within {
    outline: 2px solid var(--texte);
    outline-offset: 3px;
}

.boutons-ordre {
    display: inline-flex;
    gap: 6px;
    margin: 0;
}

.boutons-ordre--colonne {
    flex-direction: column;
    gap: 4px;
}

/* Messages et états. */
.message-admin {
    margin: 0;
    padding: 14px 18px;
    border: 1px solid var(--ligne);
    border-left: 3px solid var(--succes);
    background: var(--fond-panneau);
    font-family: var(--police-titre);
    font-size: 18px;
    color: var(--texte-corps);
}

.message-admin--erreur {
    border-color: var(--alerte-bordure);
    border-left-color: var(--erreur);
    background: var(--alerte-fond);
    color: var(--alerte-texte);
}

.message-admin[hidden] {
    display: none;
}

.statut-enregistre {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--police-titre);
    font-size: 18px;
    color: var(--succes);
}

.statut-enregistre svg {
    width: 16px;
    height: 16px;
}

.texte-danger {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--erreur);
}

.texte-secondaire {
    color: var(--texte-secondaire);
}

.a-droite {
    text-align: right;
}

.chiffres {
    font-variant-numeric: tabular-nums;
}

.sans-retour {
    white-space: nowrap;
}

/* Panneaux (sections encadrées). */
.panneau {
    border: 1px solid var(--ligne);
    background: var(--fond-panneau);
    min-width: 0;
}

.panneau--marge {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
}

.panneau-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--ligne);
}

.panneau-entete--sans-trait {
    padding-bottom: 0;
    border-bottom: 0;
}

.panneau-titre {
    margin: 0;
    font-family: var(--police-titre);
    font-size: 26px;
    font-weight: 500;
}

.panneau-titre--petit {
    font-size: 22px;
}

.panneau-compte {
    font-size: 18px;
    font-weight: 400;
    color: var(--texte-attenue);
}

.panneau-note {
    margin: 0;
    font-family: var(--police-titre);
    font-size: 16px;
    color: var(--texte-attenue);
}

.liste-vide-admin {
    margin: 0;
    padding: 28px 22px;
    font-size: 18px;
    font-style: italic;
    color: var(--texte-attenue);
}

.liste-vide-admin--compacte {
    padding: 0;
    font-size: 17px;
}

.panneau .liste-vide-admin--compacte {
    padding: 14px 22px;
}

.panneau--marge .liste-vide-admin--compacte {
    padding: 0;
}

/* Deux colonnes : contenu principal et colonne latérale (publication, fiche technique…). */
.colonnes-admin {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
}

.colonne-principale {
    flex: 999 1 600px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.colonne-laterale {
    flex: 1 1 300px;
    max-width: 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.colonne-laterale--large {
    max-width: 480px;
}

@media (max-width: 960px) {
    .colonne-laterale {
        max-width: none;
    }
}

.grille-champs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 22px 20px;
}

.grille-champs--serree {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 16px;
}

.champ-libelle--petit {
    font-size: 18px;
}

.champ-saisie--compact {
    min-height: 46px;
    padding: 0 14px;
    font-size: 18px;
}

.champ-saisie--petit {
    min-height: 40px;
    padding: 0 12px;
    font-family: var(--police-titre);
    font-size: 17px;
}

.champ-saisie--date {
    color-scheme: dark;
}

.champ-saisie--code {
    font-family: var(--police-code);
    font-size: 16px;
}

/* Adresse de rubrique : « /rubriques/ » devant le champ. */
.champ-prefixe {
    display: flex;
    align-items: stretch;
}

.champ-prefixe-texte {
    display: flex;
    align-items: center;
    padding: 0 10px 0 14px;
    border: 1px solid var(--bordure-champ);
    border-right: 0;
    border-radius: var(--rayon) 0 0 var(--rayon);
    background: var(--fond-survol);
    font-family: var(--police-code);
    font-size: 15px;
    color: var(--texte-attenue);
}

.champ-prefixe .champ-saisie {
    min-width: 0;
    border-radius: 0 var(--rayon) var(--rayon) 0;
}

/* Adresse de galerie, en lecture seule. */
.adresse-page {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 14px;
    border: 1px dashed var(--bordure-champ);
    border-radius: var(--rayon);
    font-family: var(--police-code);
    font-size: 15px;
    color: var(--texte-secondaire);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Interrupteur : libellé à gauche, case à droite. */
.interrupteur {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--police-titre);
    font-size: 18px;
    color: var(--texte);
    cursor: pointer;
}

.interrupteur > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.interrupteur-aide {
    font-size: 15px;
    color: var(--texte-attenue);
}

.interrupteur input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.liste-dates {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--ligne-douce);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--police-titre);
    font-size: 17px;
}

.liste-dates > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.liste-dates dt {
    color: var(--texte-attenue);
}

.liste-dates dd {
    margin: 0;
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.chiffres-cles {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.chiffres-cles dt {
    font-family: var(--police-titre);
    font-size: 16px;
    color: var(--texte-attenue);
}

.chiffres-cles dd {
    margin: 2px 0 0;
    font-family: var(--police-titre);
    font-size: 32px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.zone-danger {
    border-color: #4A2E27;
    background: transparent;
}

.confirmation-suppression {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.confirmation-suppression summary {
    list-style: none;
}

.confirmation-suppression summary::-webkit-details-marker {
    display: none;
}

.confirmation-suppression[open] summary {
    margin-bottom: 14px;
}

.confirmation-suppression .texte-danger {
    margin-bottom: 12px;
}

/* Liens de titre (soulignés au survol), pastilles, statuts. */
.lien-titre {
    font-family: var(--police-titre);
    font-size: 21px;
    font-weight: 500;
    color: var(--texte);
    text-decoration: none;
}

.lien-titre:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.lien-titre--grand {
    font-size: 22px;
}

.lien-titre--petit {
    font-size: 17px;
}

.lien-commentaires {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.pastille-attente {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border: 1px solid var(--accent);
    border-radius: var(--rayon);
    font-family: var(--police-titre);
    font-size: 15px;
    color: var(--accent);
    text-decoration: none;
}

.etiquette-masquee {
    margin-left: 8px;
    padding: 0 6px;
    border: 1px dashed var(--texte-indication);
    border-radius: var(--rayon);
    font-family: var(--police-titre);
    font-size: 14px;
    font-style: normal;
    color: var(--texte-secondaire);
}

.statut-galerie {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 17px;
    color: var(--texte-secondaire);
}

.statut-galerie-point {
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.statut-galerie--publiee {
    color: var(--succes);
}

.statut-galerie--publiee .statut-galerie-point {
    background: currentColor;
}

/* ==========================================================================
   Liste des rubriques et des galeries (AdminContenus.dc.html)
   ========================================================================== */

.tableau-admin {
    overflow-x: auto;
}

.tableau-admin-contenu {
    font-family: var(--police-titre);
    font-size: 18px;
}

.tableau-admin-contenu--rubriques {
    min-width: 680px;
}

.tableau-admin-contenu--galeries {
    min-width: 1000px;
}

.ligne-admin {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 12px 22px;
    border-top: 1px solid var(--ligne-douce);
}

.tableau-admin-entete {
    border-top: 0;
    font-weight: 500;
    color: var(--texte-attenue);
}

.ligne-rubrique {
    grid-template-columns: 90px minmax(0, 1fr) 90px 120px;
}

.ligne-galerie {
    grid-template-columns: minmax(220px, 2fr) 120px 70px 150px 110px 110px 150px;
}

.cellule-titre {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cellule-textes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cellule-description {
    font-family: var(--police-texte);
    font-size: 16px;
    color: var(--texte-attenue);
}

.cellule-lieu {
    font-family: var(--police-texte);
    font-size: 15px;
    font-style: italic;
    color: var(--texte-attenue);
}

.cellule-commentaires {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 8px;
}

.vignette-admin {
    flex: none;
    width: 72px;
    height: 48px;
    object-fit: cover;
    background: var(--fond-profond);
}

.vignette-admin--rubrique {
    width: 84px;
    height: 52px;
}

.vignette-admin--petite {
    width: 64px;
    height: 42px;
}

.vignette-vide {
    flex: none;
    width: 72px;
    height: 48px;
    border: 1px dashed var(--bordure-champ);
    background: var(--fond-champ);
}

.filtres-admin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 16px 22px 18px;
    border-bottom: 1px solid var(--ligne);
}

.recherche-admin {
    position: relative;
    flex: 1 1 260px;
    max-width: 360px;
}

.recherche-admin svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--texte-attenue);
    pointer-events: none;
}

.champ-saisie--recherche {
    min-height: 44px;
    padding: 0 14px 0 42px;
    font-size: 17px;
}

.puces {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.puce {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--bordure-champ);
    border-radius: var(--rayon);
    font-family: var(--police-titre);
    font-size: 17px;
    font-weight: 500;
    color: var(--texte);
    text-decoration: none;
}

.puce:hover {
    border-color: var(--texte);
}

.puce[aria-current='page'] {
    border-color: var(--texte);
    background: var(--texte);
    color: var(--fond);
}

.filtre-statut {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--texte-attenue);
}

.pagination-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 22px;
    border-top: 1px solid var(--ligne);
}

.liste-galeries-rubrique li {
    border-top: 1px solid var(--ligne-douce);
}

.liste-galeries-rubrique li:first-child {
    border-top: 0;
}

.liste-galeries-rubrique a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    color: var(--texte);
    text-decoration: none;
}

.liste-galeries-rubrique a:hover {
    background: var(--fond-survol);
}

/* ==========================================================================
   Fiche rubrique : choix et aperçu du bandeau (AdminRubrique.dc.html)
   ========================================================================== */

.choix-bandeau {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.choix-bandeau-option {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    border: 2px solid transparent;
    cursor: pointer;
}

.choix-bandeau-option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.choix-bandeau-option img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.choix-bandeau-option:has(input:checked) {
    border-color: var(--accent);
}

.choix-bandeau-option:has(input:checked) img {
    filter: none;
}

.choix-bandeau-option:has(input:focus-visible) {
    outline: 2px solid var(--texte);
    outline-offset: 3px;
}

.choix-bandeau-coche {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--fond);
}

.choix-bandeau-coche svg {
    width: 15px;
    height: 15px;
}

.choix-bandeau-option:has(input:checked) .choix-bandeau-coche {
    display: flex;
}

.apercu-bandeau {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    background: var(--fond-profond);
}

.apercu-bandeau img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apercu-bandeau-degrade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 15, 14, 0.85) 0%, rgba(15, 15, 14, 0.2) 70%);
}

.apercu-bandeau-textes {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 60%;
    padding: 28px;
}

.apercu-bandeau-etiquette {
    font-family: var(--police-titre);
    font-size: 15px;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.apercu-bandeau-nom {
    font-family: var(--police-titre);
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
}

.apercu-bandeau-description {
    font-size: 17px;
    color: var(--texte-corps);
}

/* ==========================================================================
   Fiche galerie : éditeur du récit et photos (AdminGalerie.dc.html)
   ========================================================================== */

.editeur {
    display: flex;
    flex-direction: column;
}

.editeur > .panneau-entete {
    padding-bottom: 16px;
}

.editeur-barre {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 6px 16px;
    border-top: 1px solid var(--ligne);
    border-bottom: 1px solid var(--ligne);
    background: #161513;
}

.editeur-barre[hidden],
.editeur-zone[hidden],
.editeur-source[hidden] {
    display: none;
}

.editeur-outil {
    min-width: 44px;
    height: 40px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--rayon);
    background: transparent;
    font-family: var(--police-titre);
    font-size: 18px;
    color: var(--texte-secondaire);
    cursor: pointer;
}

.editeur-outil:hover {
    background: var(--ligne-douce);
    color: var(--texte-survol);
}

.editeur-outil svg {
    width: 20px;
    height: 20px;
}

.editeur-glyphe {
    font-family: var(--police-texte);
}

.editeur-glyphe--gras {
    font-weight: 700;
}

.editeur-glyphe--italique {
    font-style: italic;
}

.editeur-glyphe--titre {
    font-family: var(--police-titre);
    font-weight: 500;
}

.editeur-zone {
    min-height: 360px;
    max-height: 620px;
    overflow-y: auto;
    padding: 24px 28px;
    font-size: 19px;
    line-height: 1.7;
    color: var(--texte-corps);
}

.editeur-zone:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--texte);
}

.editeur-zone p {
    margin: 0 0 18px;
}

.editeur-source {
    margin: 0 22px 16px;
    width: auto;
    font-family: var(--police-code);
    font-size: 15px;
}

.editeur-note {
    margin: 0;
    padding: 12px 22px;
    border-top: 1px solid var(--ligne);
    font-family: var(--police-titre);
    font-size: 16px;
    color: var(--texte-attenue);
}

.liste-photos-admin {
    margin: 0;
}

.photo-admin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--ligne-douce);
}

.photo-admin[hidden] {
    display: none;
}

.photo-admin-numero {
    flex: none;
    width: 22px;
    font-family: var(--police-titre);
    font-size: 19px;
    font-variant-numeric: tabular-nums;
    color: var(--texte-attenue);
}

.photo-admin-vignette {
    flex: none;
    width: 108px;
    height: 72px;
    object-fit: cover;
    background: var(--fond-profond);
}

.photo-admin-textes {
    flex: 999 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.photo-admin-titre {
    font-family: var(--police-titre);
    font-size: 20px;
    font-weight: 500;
}

.photo-admin-description {
    font-size: 15px;
    line-height: 1.45;
    color: var(--texte-attenue);
}

.photo-admin-meta {
    font-family: var(--police-titre);
    font-size: 15px;
    color: var(--texte-attenue);
}

.photo-admin-retrait {
    display: none;
    font-family: var(--police-titre);
    font-size: 15px;
    color: var(--erreur);
}

/* Sans JavaScript, une photo cochée « à retirer » reste visible, estompée, avec une mention. */
.photo-admin:has(input[data-retirer]:checked) {
    opacity: 0.55;
}

.photo-admin:has(input[data-retirer]:checked) .photo-admin-retrait {
    display: inline;
}

.photo-admin-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* « Mettre en couverture » : bouton radio présenté comme un bouton, étoile pleine quand il est coché. */
.bouton-couverture {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--bordure-champ);
    border-radius: var(--rayon);
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--texte-secondaire);
    cursor: pointer;
}

.bouton-couverture:hover {
    border-color: var(--texte);
    background: var(--fond-survol);
}

.bouton-couverture svg {
    width: 16px;
    height: 16px;
    fill: none;
}

.bouton-couverture-oui {
    display: none;
}

.bouton-couverture:has(input:checked) {
    border-color: var(--accent);
    color: var(--accent);
}

.bouton-couverture:has(input:checked) svg {
    fill: currentColor;
}

.bouton-couverture:has(input:checked) .bouton-couverture-oui {
    display: inline;
}

.bouton-couverture:has(input:checked) .bouton-couverture-non {
    display: none;
}

.bouton-couverture:has(input:focus-visible) {
    outline: 2px solid var(--texte);
    outline-offset: 3px;
}

.bandeau-retrait {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 14px 22px;
    background: var(--fond-survol);
    font-family: var(--police-titre);
    font-size: 18px;
    color: var(--texte-secondaire);
}

.bandeau-retrait[hidden] {
    display: none;
}

/* ==========================================================================
   Ajout de photo : dépôt, import, étapes (AdminPhoto.dc.html)
   ========================================================================== */

.depot-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 200px;
    padding: 28px;
    border: 2px dashed var(--bordure-champ);
    border-radius: var(--rayon);
    background: var(--fond-panneau);
    text-align: center;
    cursor: pointer;
}

.depot-photo:hover,
.depot-photo--survol {
    border-color: var(--texte);
    background: var(--fond-survol);
}

.depot-photo:focus-within {
    outline: 2px solid var(--texte);
    outline-offset: 3px;
}

.depot-photo-icone {
    width: 34px;
    height: 34px;
    color: var(--texte-attenue);
}

.depot-photo-titre {
    font-family: var(--police-titre);
    font-size: 22px;
    font-weight: 500;
}

.depot-photo-lien {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.depot-photo-aide {
    font-family: var(--police-titre);
    font-size: 16px;
    color: var(--texte-attenue);
}

.statut-import {
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--texte-secondaire);
}

.statut-import[data-etat='pret'] {
    color: var(--succes);
}

.statut-import[data-etat='erreur'] {
    color: var(--erreur);
}

.import-photo {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 22px;
}

.import-photo-apercu {
    flex: 1 1 260px;
    min-width: 0;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fond-profond);
}

.import-photo-apercu img {
    display: block;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.import-photo-vide {
    margin: 0;
    font-style: italic;
    color: var(--texte-attenue);
}

.import-photo-details {
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.import-photo-details .liste-dates {
    padding-top: 0;
    border-top: 0;
}

.progression {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progression-libelle {
    display: flex;
    justify-content: space-between;
    font-family: var(--police-titre);
    font-size: 16px;
    color: var(--texte-attenue);
}

.progression-barre {
    width: 100%;
    height: 6px;
    border: 0;
    border-radius: 3px;
    background: var(--ligne);
    appearance: none;
}

.progression-barre::-webkit-progress-bar {
    border-radius: 3px;
    background: var(--ligne);
}

.progression-barre::-webkit-progress-value {
    border-radius: 3px;
    background: var(--accent);
}

.progression-barre::-moz-progress-bar {
    border-radius: 3px;
    background: var(--accent);
}

.etapes-import {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--police-titre);
    font-size: 17px;
}

.etapes-import li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--texte-attenue);
}

.etape-indicateur {
    flex: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--bordure-champ);
    border-radius: 50%;
}

.etapes-import li[data-etat='encours'] .etape-indicateur {
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    animation: rotation 0.9s linear infinite;
}

.etapes-import li[data-etat='fait'] {
    color: var(--texte);
}

.etapes-import li[data-etat='fait'] .etape-indicateur {
    border-color: var(--accent);
    background: var(--accent);
}

.etapes-import li[data-etat='inutile'] .etape-indicateur {
    border-style: dashed;
}

.confirmation-admin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 16px 22px;
    border: 1px solid var(--ligne);
    border-left: 3px solid var(--succes);
    background: var(--fond-panneau);
}

.confirmation-admin-texte {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--police-titre);
    font-size: 19px;
    color: var(--succes);
}

.confirmation-admin-texte svg {
    width: 18px;
    height: 18px;
}

.import-photo-image {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Administration — messages et commentaires (AdminMessages, AdminMessage, AdminCommentaires)
   ========================================================================== */

.texte-attenue {
    color: var(--texte-attenue);
}

.lien-discret {
    color: var(--texte-secondaire);
    text-decoration: none;
}

.lien-discret:hover {
    color: var(--texte-survol);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Pastilles du menu latéral (non lus, en attente). */
.pastille-menu {
    margin-left: auto;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent);
    font-size: 15px;
    font-weight: 600;
    color: var(--fond);
}

.admin-entete-note {
    max-width: 46ch;
    font-size: 17px;
}

/* Notification après une action, avec « Annuler ». */
.notification-admin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 12px 20px;
    border: 1px solid var(--bordure-champ);
    background: var(--fond-survol);
}

.notification-admin--erreur {
    border-color: var(--alerte-bordure);
    background: var(--alerte-fond);
}

.notification-admin-texte {
    font-family: var(--police-titre);
    font-size: 18px;
    color: var(--texte);
}

.notification-admin--erreur .notification-admin-texte {
    color: var(--alerte-texte);
}

.notification-admin-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notification-admin-actions form {
    margin: 0;
}

/* Onglets des listes. */
.onglets-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 0 26px;
    padding: 0 22px;
    border-bottom: 1px solid var(--ligne);
}

.onglet-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding-top: 3px;
    border-bottom: 3px solid transparent;
    font-family: var(--police-titre);
    font-size: 19px;
    font-weight: 500;
    color: var(--texte-menu);
    text-decoration: none;
}

.onglet-admin:hover {
    color: var(--texte-survol);
}

.onglet-admin[aria-current='page'] {
    border-bottom-color: var(--accent);
    color: var(--texte);
}

.onglet-admin-compte {
    font-weight: 400;
    color: var(--texte-attenue);
}

/* Barre au-dessus d'une liste : sélection à gauche, filtres à droite. */
.barre-liste {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--ligne);
}

.barre-lot,
.barre-lot-actions,
.barre-filtres {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 0;
}

.barre-lot-actions {
    gap: 8px;
}

.barre-lot .case {
    align-items: center;
    min-height: 44px;
    font-family: var(--police-titre);
    color: var(--texte-secondaire);
}

.barre-lot .case input {
    margin: 0;
}

/* Prend la place restante, contenu calé à droite : liste et recherche restent sur une ligne tant qu'il y a la place. */
.barre-filtres {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 10px;
}

.barre-filtres .recherche-admin {
    flex: 0 1 260px;
}

/* Les champs occupent toute la largeur par défaut ; ici, la liste prend la place de son contenu. */
.barre-filtres select.champ-saisie,
.choix-modele select.champ-saisie {
    width: auto;
    max-width: 100%;
}

/* Liste des messages. */
.ligne-message {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--ligne-douce);
}

.ligne-message.est-selectionnee {
    background: var(--fond-plaque-survol);
}

.ligne-message-case {
    flex: none;
    display: flex;
    align-items: flex-start;
    padding: 22px 6px 0 22px;
    cursor: pointer;
}

.ligne-message-case input,
.carte-commentaire-case input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.ligne-message-lien {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px 18px 12px;
    color: var(--texte);
    text-decoration: none;
}

.ligne-message-lien:hover {
    background: var(--fond-plaque-survol);
}

.ligne-message-lien:hover .ligne-message-nom {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.point-non-lu {
    flex: none;
    width: 9px;
    height: 9px;
    margin-top: 9px;
    border-radius: 50%;
    background: transparent;
}

.ligne-message--non-lu .point-non-lu {
    background: var(--accent);
}

.ligne-message-corps {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ligne-message-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 14px;
    font-family: var(--police-titre);
    font-size: 16px;
}

.ligne-message-nom {
    font-size: 21px;
    font-weight: 400;
}

.ligne-message--non-lu .ligne-message-nom {
    font-weight: 600;
}

.ligne-message-date {
    margin-left: auto;
    color: var(--texte-attenue);
    white-space: nowrap;
}

.ligne-message-etiquettes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-family: var(--police-titre);
    font-size: 15px;
}

.ligne-message-extrait {
    overflow: hidden;
    font-size: 17px;
    line-height: 1.5;
    color: var(--texte-corps);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.etiquette-objet {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--bordure-champ);
    border-radius: var(--rayon);
    font-family: var(--police-titre);
    font-size: 15px;
    color: var(--texte-secondaire);
}

.etiquette-repondu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--police-titre);
    font-size: 15px;
    color: var(--succes);
}

.etiquette-repondu svg {
    width: 15px;
    height: 15px;
}

.etiquette-echec {
    margin-left: 8px;
    padding: 0 8px;
    border: 1px solid var(--alerte-bordure);
    border-radius: var(--rayon);
    font-family: var(--police-titre);
    font-size: 14px;
    color: var(--erreur);
}

/* Confirmation de suppression sur une ligne (<details>). */
.confirmation-en-ligne {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.confirmation-en-ligne summary {
    list-style: none;
}

.confirmation-en-ligne summary::-webkit-details-marker {
    display: none;
}

.confirmation-en-ligne[open] {
    display: flex;
}

.confirmation-en-ligne-texte {
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--erreur);
}

.admin-actions form,
.carte-commentaire-actions form {
    margin: 0;
}

/* Fiche message. */
.navigation-message {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    font-family: var(--police-titre);
    font-size: 16px;
    color: var(--texte-attenue);
}

.navigation-message .bouton-carre--lien {
    margin-left: 0;
}

.bouton-carre--inactif {
    width: 40px;
    height: 40px;
    opacity: 0.4;
    cursor: default;
}

.message-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--ligne);
}

.avatar--fiche {
    flex: none;
    width: 48px;
    height: 48px;
}

.message-expediteur {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--police-titre);
    font-size: 17px;
}

.message-expediteur a {
    color: var(--texte-secondaire);
    overflow-wrap: anywhere;
}

.message-expediteur-nom {
    font-size: 22px;
    font-weight: 500;
}

.message-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-family: var(--police-titre);
    font-size: 16px;
    color: var(--texte-attenue);
}

.message-texte {
    padding: 24px 22px 26px;
    font-size: 19px;
    line-height: 1.7;
    color: var(--texte-corps);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.message-texte--reponse {
    padding-top: 0;
    font-size: 18px;
    line-height: 1.65;
}

.reponse-envoyee {
    margin-left: clamp(0px, 4vw, 48px);
    border-left: 3px solid var(--accent);
}

.reponse-envoyee--echec {
    border-left-color: var(--erreur);
}

.reponse-envoyee-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 18px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--ligne);
    font-family: var(--police-titre);
    font-size: 16px;
}

.reponse-envoyee-auteur {
    font-size: 19px;
    font-weight: 500;
}

.reponse-envoyee-auteur .texte-attenue {
    font-weight: 400;
}

.reponse-envoyee-objet {
    margin: 0;
    padding: 16px 22px 10px;
    font-family: var(--police-titre);
    font-size: 17px;
    color: var(--texte-secondaire);
}

.choix-modele {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-family: var(--police-titre);
    font-size: 17px;
}

.formulaire-reponse-corps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 22px 22px;
}

.adresses-reponse {
    margin: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 16px;
    font-family: var(--police-titre);
    font-size: 17px;
}

.adresses-reponse dt {
    color: var(--texte-attenue);
}

.adresses-reponse dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.champ-saisie--reponse {
    font-size: 18px;
    line-height: 1.6;
    resize: vertical;
}

.formulaire-reponse-pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.formulaire-reponse-pied .bouton-admin--large {
    width: auto;
}

.liste-controles {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--police-titre);
    font-size: 17px;
}

.liste-controles li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.liste-controles li > span {
    display: flex;
    flex-direction: column;
}

.liste-controles svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--succes);
}

.liste-controles-detail {
    font-size: 15px;
    color: var(--texte-attenue);
}

.liste-controles-pied {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--ligne-douce);
    font-family: var(--police-titre);
    font-size: 15px;
    color: var(--texte-attenue);
}

.liste-valeurs {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--police-titre);
    font-size: 17px;
}

.liste-valeurs div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.liste-valeurs dt {
    color: var(--texte-attenue);
}

.liste-valeurs dd {
    margin: 0;
    text-align: right;
}

.liste-valeurs a {
    color: var(--texte);
}

/* Cartes de commentaires. */
.carte-commentaire {
    display: flex;
    gap: 14px;
    padding: 22px;
    border-bottom: 1px solid var(--ligne-douce);
}

.carte-commentaire.est-selectionnee {
    background: var(--fond-plaque-survol);
}

.carte-commentaire-case {
    flex: none;
    display: flex;
    padding-top: 13px;
    cursor: pointer;
}

.carte-commentaire-corps {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carte-commentaire-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.avatar--carte {
    flex: none;
    width: 44px;
    height: 44px;
    font-size: 19px;
}

.carte-commentaire-auteur {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-family: var(--police-titre);
    font-size: 16px;
}

.carte-commentaire-ligne {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 12px;
    font-family: var(--police-titre);
    font-size: 16px;
}

.carte-commentaire-nom {
    font-size: 21px;
    font-weight: 500;
}

.carte-commentaire-nom--petit {
    font-size: 19px;
}

.statut-commentaire {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid var(--accent);
    border-radius: var(--rayon);
    font-family: var(--police-titre);
    font-size: 15px;
    color: var(--accent);
}

.statut-commentaire--publie {
    border-color: #4F6648;
    color: var(--succes);
}

.statut-commentaire--indesirable {
    border-color: var(--alerte-bordure);
    color: var(--erreur);
}

.carte-commentaire-texte,
.carte-commentaire-trace,
.carte-commentaire-actions {
    margin: 0;
    padding-left: 58px;
}

.carte-commentaire-texte {
    font-size: 18px;
    line-height: 1.6;
    color: var(--texte-corps);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.carte-commentaire-trace {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-family: var(--police-titre);
    font-size: 15px;
    color: var(--texte-attenue);
}

.carte-commentaire-trace svg {
    width: 14px;
    height: 14px;
}

.carte-commentaire-trace--alerte {
    color: var(--erreur);
}

.carte-commentaire-reponse {
    margin-left: 58px;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.carte-commentaire-reponse-texte {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--texte-corps);
    white-space: pre-line;
}

.carte-commentaire-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.actions-statut {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Zone de réponse : ouverte, elle prend toute la largeur sous les boutons. */
.zone-reponse summary {
    list-style: none;
}

.zone-reponse summary::-webkit-details-marker {
    display: none;
}

.zone-reponse[open] {
    flex-basis: 100%;
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zone-reponse[open] summary {
    align-self: flex-start;
}

.zone-reponse-formulaire {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--ligne);
    background: var(--fond-profond);
}

.zone-reponse-pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-family: var(--police-titre);
    font-size: 15px;
}

/* ==========================================================================
   Administration — tableau de bord (AdminTableauDeBord.dc.html)
   ========================================================================== */

.choix-periode {
    display: inline-flex;
    border: 1px solid var(--bordure-champ);
    border-radius: var(--rayon);
}

.choix-periode-option {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    font-family: var(--police-titre);
    font-size: 18px;
    font-weight: 500;
    color: var(--texte);
    text-decoration: none;
}

.choix-periode-option:hover {
    background: var(--fond-survol);
}

.choix-periode-option[aria-current='page'] {
    background: var(--texte);
    color: var(--fond);
}

.compteurs-admin {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}

.compteur-admin {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px;
    border: 1px solid var(--ligne);
    border-top: 3px solid var(--bordure-champ);
    background: var(--fond-panneau);
    font-family: var(--police-titre);
}

.compteur-admin--accent {
    border-top-color: var(--accent);
}

.compteur-admin-libelle {
    font-size: 17px;
    color: var(--texte-attenue);
}

.compteur-admin-valeur {
    font-size: 44px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.compteur-admin-note {
    font-size: 16px;
    color: var(--texte-secondaire);
}

.grille-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 20px;
    align-items: start;
}

.panneau-entete .lien-discret {
    font-family: var(--police-titre);
    font-size: 17px;
}

.ligne-tableau-de-bord {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 18px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--ligne-douce);
}

.ligne-tableau-de-bord form {
    flex: none;
    margin: 0;
}

.ligne-tableau-de-bord-corps {
    flex: 999 1 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ligne-tableau-de-bord-corps .carte-commentaire-ligne {
    margin: 0;
}

.ligne-tableau-de-bord-texte {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: var(--texte-corps);
    overflow-wrap: anywhere;
}

.ligne-message-lien--compacte {
    padding-left: 22px;
}

/* Graphique des requêtes par jour : SVG étiré à la largeur, lignes d'épaisseur constante. */
.graphique-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
}

.graphique {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.graphique-zone {
    display: flex;
    gap: 10px;
}

.graphique-graduations {
    flex: none;
    width: 48px;
    height: 220px;
    margin: -0.6em 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    font-family: var(--police-titre);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    color: var(--texte-attenue);
}

.graphique-trace {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 220px;
}

.graphique-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.graphique-ligne {
    stroke: var(--ligne-douce);
    stroke-width: 1;
}

.graphique-ligne--base {
    stroke: var(--bordure-champ);
}

.graphique-barre {
    fill: var(--texte-menu);
}

.graphique-barre:hover,
.graphique-barre.est-survolee {
    fill: var(--texte);
}

.graphique-bulle {
    position: absolute;
    z-index: 2;
    padding: 8px 12px;
    border: 1px solid var(--bordure-champ);
    background: var(--fond-profond);
    font-family: var(--police-titre);
    font-size: 16px;
    white-space: nowrap;
    pointer-events: none;
}

.graphique-axe {
    display: flex;
    margin-left: 58px;
    font-family: var(--police-titre);
    font-size: 15px;
    color: var(--texte-attenue);
}

/* Une étiquette plus large que sa barre déborde des deux côtés, centrée sous elle. */
.graphique-axe span {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    white-space: nowrap;
}

.graphique-tableau summary {
    list-style: none;
    width: fit-content;
}

.graphique-tableau summary::-webkit-details-marker {
    display: none;
}

.graphique-tableau[open] summary {
    margin-bottom: 12px;
}

.tableau-simple {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--police-titre);
    font-size: 17px;
}

.tableau-simple th {
    padding: 10px 12px 10px 0;
    font-weight: 500;
    text-align: left;
    color: var(--texte-attenue);
}

.tableau-simple td {
    padding: 9px 12px 9px 0;
    border-top: 1px solid var(--ligne-douce);
}

.tableau-simple .a-droite {
    text-align: right;
}

.tableau-defilant {
    overflow-x: auto;
}

.tableau-points-acces {
    min-width: 600px;
    font-size: 18px;
}

.etiquette-methode {
    display: inline-block;
    min-width: 46px;
    padding: 2px 6px;
    border: 1px solid var(--bordure-champ);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: var(--texte-secondaire);
}

.texte-code {
    font-family: var(--police-code);
    font-size: 15px;
    overflow-wrap: anywhere;
}

/* Classements (galeries, photos). */
.classement {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.classement-ligne {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.classement-entete {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-family: var(--police-titre);
    font-size: 19px;
}

.classement-rang {
    display: inline-block;
    width: 22px;
    font-family: var(--police-titre);
    font-size: 19px;
    color: var(--texte-attenue);
}

.classement-jauge {
    display: block;
    width: calc(100% - 22px);
    height: 10px;
    margin-left: 22px;
    background: var(--fond-avatar);
}

.classement-jauge rect {
    fill: var(--texte-menu);
}

.classement-photo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--police-titre);
    font-size: 18px;
}

.classement-photo-textes {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 19px;
}

.classement-photo-textes .texte-attenue {
    font-size: 16px;
}

@media (max-width: 640px) {
    .carte-commentaire {
        padding: 18px 16px;
    }

    .carte-commentaire-texte,
    .carte-commentaire-trace,
    .carte-commentaire-actions {
        padding-left: 0;
    }

    .carte-commentaire-reponse {
        margin-left: 0;
    }

    .statut-commentaire {
        margin-left: 0;
    }

    .barre-filtres {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   Mouvements réduits : aucune transition ni animation
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
