@charset "UTF-8";
/* =====================================================================
   ARTS FRANC-COMTOIS — Système de design
   ---------------------------------------------------------------------
   Un seul principe : dans une galerie, les murs sont neutres.
   Seules les œuvres ont le droit d'être colorées. Toute l'interface
   (fonds, textes, boutons, cadres) reste dans une gamme ivoire / encre,
   avec un unique accent chaud emprunté au bois des cadres.

   Sommaire
     1. Jetons (couleurs, typographie, espacements, rayons, ombres)
     2. Réinitialisation et bases
     3. Mise en page (conteneurs, grilles, sections)
     4. Titres et texte
     5. Boutons
     6. Cartes d'œuvre et grille d'exposition
     7. Formulaires
     8. Badges, alertes, cartouches
     9. En-tête et pied de page
    10. Utilitaires
    11. Accessibilité et impression
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. JETONS                                                          */
/* ------------------------------------------------------------------ */
:root {
    /* --- Couleurs : la galerie ------------------------------------ */
    --afc-papier:        #faf9f7;  /* fond général, ivoire très clair  */
    --afc-mur:           #ffffff;  /* cartes, cartouches               */
    --afc-marie-louise:  #f2efe9;  /* passe-partout autour des œuvres  */
    --afc-encre:         #1a1815;  /* texte principal, presque noir    */
    --afc-encre-douce:   #4a453e;  /* texte secondaire                 */
    /* #7a736a tombait à 4,45:1 sur le fond ivoire et 4,08:1 sur le
       passe-partout : sous le seuil AA de 4,5:1. #706960 passe partout. */
    --afc-gris:          #706960;  /* légendes, mentions               */
    --afc-trait:         #e3ded5;  /* filets, bordures                 */
    --afc-trait-fort:    #cdc5b8;

    /* --- Accent unique : bois de cadre / terre de Sienne ----------- */
    --afc-accent:        #8c5326;
    /* #a9682f n'atteignait que 4,24:1 sur le fond ivoire : conservé pour
       les fonds et survols, il servait aussi de couleur de texte. */
    --afc-accent-clair:  #985d27;
    --afc-accent-fonce:  #6b3e1c;
    --afc-accent-voile:  #f6efe6;  /* aplat très clair de l'accent     */
    /* Variante claire de l'accent, à utiliser UNIQUEMENT sur un fond
       sombre : l'accent normal y descend sous le seuil de contraste. */
    --afc-accent-sur-sombre: #d29a5e;

    /* --- Couleurs de statut --------------------------------------- */
    --afc-dispo:         #2f6b46;
    --afc-dispo-voile:   #eaf3ee;
    --afc-vendu:         #6c6259;
    --afc-vendu-voile:   #f0ede8;
    --afc-alerte:        #9b2c2c;
    --afc-alerte-voile:  #fbeceb;

    /* --- Typographie ---------------------------------------------- */
    /* Polices système uniquement : aucun appel à un serveur tiers,
       donc aucun transfert d'adresse IP hors du site (RGPD), et
       aucune requête réseau supplémentaire au chargement.            */
    --afc-serif: "Iowan Old Style", "Palatino Linotype", Palatino,
                 "Book Antiqua", Georgia, "Times New Roman", serif;
    --afc-sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Échelle fluide : la taille s'adapte à la largeur de l'écran,
       sans palier brutal entre téléphone et grand écran.             */
    --afc-t-xs:   0.75rem;
    --afc-t-sm:   0.875rem;
    --afc-t-base: 1rem;
    --afc-t-md:   clamp(1.05rem, 0.99rem + 0.28vw, 1.2rem);
    --afc-t-lg:   clamp(1.25rem, 1.12rem + 0.6vw, 1.6rem);
    --afc-t-xl:   clamp(1.6rem,  1.34rem + 1.2vw, 2.3rem);
    --afc-t-2xl:  clamp(2rem,    1.5rem  + 2.4vw, 3.4rem);

    /* --- Espacements (échelle de 4 px) ---------------------------- */
    --afc-e-1: 0.25rem;  --afc-e-2: 0.5rem;   --afc-e-3: 0.75rem;
    --afc-e-4: 1rem;     --afc-e-5: 1.5rem;   --afc-e-6: 2rem;
    --afc-e-7: 3rem;     --afc-e-8: 4rem;     --afc-e-9: 6rem;

    /* Respiration verticale des sections, adaptée à l'écran */
    --afc-section: clamp(2.5rem, 1.6rem + 4vw, 5.5rem);
    --afc-gouttiere: clamp(1rem, 0.5rem + 2.2vw, 2.5rem);

    /* --- Rayons, traits, ombres ----------------------------------- */
    --afc-r-sm: 4px;
    --afc-r-md: 8px;
    --afc-r-lg: 14px;
    --afc-r-plein: 999px;

    /* Ombres discrètes : on suggère la profondeur, on ne l'assène pas */
    --afc-ombre-1: 0 1px 2px rgba(26, 24, 21, 0.05);
    --afc-ombre-2: 0 2px 8px rgba(26, 24, 21, 0.06),
                   0 1px 2px rgba(26, 24, 21, 0.04);
    --afc-ombre-3: 0 12px 32px rgba(26, 24, 21, 0.10),
                   0 2px 6px rgba(26, 24, 21, 0.05);

    /* --- Mouvement ------------------------------------------------ */
    --afc-transition: 180ms cubic-bezier(0.2, 0, 0.2, 1);

    /* --- Largeurs ------------------------------------------------- */
    --afc-largeur:       1220px;
    --afc-largeur-texte: 68ch;   /* longueur de ligne confortable     */

    color-scheme: light;
}

/* ------------------------------------------------------------------ */
/* 2. RÉINITIALISATION ET BASES                                       */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--afc-papier);
    color: var(--afc-encre);
    font-family: var(--afc-sans);
    font-size: var(--afc-t-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Le pied de page reste collé en bas même sur une page courte */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tout ce qui n'est ni l'en-tête ni le pied occupe l'espace restant */
body > main, body > .afc-page { flex: 1 0 auto; }

/* Le <body> est un conteneur flex en colonne : sans ce garde-fou, un enfant
   dont le contenu est plus large que l'écran (un tableau, une image) étire
   toute la ligne, et c'est la page entière qui défile horizontalement au
   lieu du seul élément concerné. */
body > * { max-width: 100%; min-width: 0; }

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

a { color: var(--afc-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--afc-accent-fonce); }

hr {
    border: 0;
    border-top: 1px solid var(--afc-trait);
    margin: var(--afc-e-6) 0;
}

/* Focus clavier visible partout : indispensable à la navigation
   sans souris et exigé par le RGAA / WCAG.                          */
:focus-visible {
    outline: 2px solid var(--afc-accent);
    outline-offset: 3px;
    border-radius: var(--afc-r-sm);
}

/* Lien d'évitement : premier élément focusable de chaque page.
   On le masque par translation plutôt qu'avec un left:-9999px, qui peut
   élargir la zone de défilement de la page. */
.afc-skip {
    position: fixed;
    top: 0; left: 0;
    z-index: 200;
    padding: var(--afc-e-3) var(--afc-e-4);
    background: var(--afc-encre);
    color: #fff;
    border-radius: 0 0 var(--afc-r-md) 0;
    text-decoration: none;
    transform: translateY(-120%);
    transition: transform var(--afc-transition);
}
.afc-skip:focus { transform: translateY(0); color: #fff; }

/* ------------------------------------------------------------------ */
/* 3. MISE EN PAGE                                                    */
/* ------------------------------------------------------------------ */
.afc-conteneur {
    width: 100%;
    max-width: var(--afc-largeur);
    margin-inline: auto;
    padding-inline: var(--afc-gouttiere);
}
.afc-conteneur--etroit { max-width: 860px; }
.afc-conteneur--texte  { max-width: 74ch; }

.afc-section { padding-block: var(--afc-section); }
.afc-section--haut  { padding-block: var(--afc-e-6) var(--afc-section); }
.afc-section--filet { border-top: 1px solid var(--afc-trait); }

/* En-tête de section : intitulé à gauche, lien « tout voir » à droite */
.afc-section-tete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--afc-e-3);
    margin-bottom: var(--afc-e-6);
}

/* Grille générique auto-adaptative : le nombre de colonnes découle de
   la largeur disponible, sans multiplier les points de rupture.

   Le seuil était à 260 px, ce qui laissait une seule colonne jusqu'à
   660 px : sur une tablette en portrait ou un grand téléphone couché, la
   carte s'étirait alors sur toute la largeur et son cadre au format 4/5
   la faisait monter à 796 px de haut — plus que l'écran. À 200 px, la
   deuxième colonne apparaît dès 460 px, et le téléphone garde une
   colonne unique, où l'œuvre a le droit d'être grande.               */
.afc-grille {
    display: grid;
    gap: var(--afc-e-5);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.afc-grille--large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.afc-grille--fine  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }


/* ------------------------------------------------------------------ */
/* 4. TITRES ET TEXTE                                                 */
/* ------------------------------------------------------------------ */
h1, h2, h3, h4 {
    font-family: var(--afc-serif);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    /* `inherit` et non une couleur figée : une règle posée directement sur
       h1 l'emporterait sur la couleur héritée du conteneur, et un titre
       placé dans un bloc sombre resterait illisible. */
    color: inherit;
    margin: 0 0 var(--afc-e-4);
    text-wrap: balance;
}
h1 { font-size: var(--afc-t-2xl); }
h2 { font-size: var(--afc-t-xl); }
h3 { font-size: var(--afc-t-lg); }
h4 { font-size: var(--afc-t-md); }

p { margin: 0 0 var(--afc-e-4); max-width: var(--afc-largeur-texte); }
p:last-child { margin-bottom: 0; }

/* Surtitre : petite capitale espacée, façon cartel de musée */
.afc-surtitre {
    font-family: var(--afc-sans);
    font-size: var(--afc-t-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--afc-gris);
    margin: 0 0 var(--afc-e-3);
}

.afc-chapo {
    font-size: var(--afc-t-md);
    color: var(--afc-encre-douce);
    max-width: var(--afc-largeur-texte);
}

.afc-legende { font-size: var(--afc-t-sm); color: var(--afc-gris); }
.afc-italique { font-family: var(--afc-serif); font-style: italic; }

/* Mot mis en avant dans un titre : italique + accent, jamais de gras
   supplémentaire (le gras dans un titre serif alourdit).             */
.afc-accent { color: var(--afc-accent); font-style: italic; }

/* ------------------------------------------------------------------ */
/* 5. BOUTONS                                                         */
/* ------------------------------------------------------------------ */
.afc-btn {
    --_fond: var(--afc-encre);
    --_texte: #fff;
    --_bord: transparent;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--afc-e-2);
    /* 44 px minimum : taille de cible tactile recommandée */
    min-height: 44px;
    padding: 0.7rem 1.35rem;
    border: 1px solid var(--_bord);
    border-radius: var(--afc-r-md);
    background: var(--_fond);
    color: var(--_texte);
    font-family: var(--afc-sans);
    font-size: var(--afc-t-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--afc-transition), color var(--afc-transition),
                border-color var(--afc-transition), transform var(--afc-transition);
}
.afc-btn:hover  { background: #000; color: #fff; }
.afc-btn:active { transform: translateY(1px); }
.afc-btn[disabled], .afc-btn[aria-disabled="true"] {
    opacity: 0.45; cursor: not-allowed; transform: none;
}

.afc-btn--accent { --_fond: var(--afc-accent); }
.afc-btn--accent:hover { background: var(--afc-accent-fonce); color: #fff; }

.afc-btn--fantome {
    --_fond: transparent; --_texte: var(--afc-encre); --_bord: var(--afc-trait-fort);
}
.afc-btn--fantome:hover { background: var(--afc-encre); color: #fff; border-color: var(--afc-encre); }

.afc-btn--discret {
    --_fond: transparent; --_texte: var(--afc-encre-douce); --_bord: transparent;
    padding-inline: var(--afc-e-2);
}
.afc-btn--discret:hover { background: var(--afc-marie-louise); color: var(--afc-encre); }

.afc-btn--danger { --_fond: var(--afc-alerte); }
.afc-btn--danger:hover { background: #7f2323; color: #fff; }

.afc-btn--sm { min-height: 38px; padding: 0.45rem 0.9rem; font-size: var(--afc-t-xs); }
.afc-btn--lg { min-height: 52px; padding: 0.9rem 1.8rem; font-size: var(--afc-t-base); }
.afc-btn--bloc { display: flex; width: 100%; }

.afc-btn svg { width: 18px; height: 18px; flex: none; }

/* Lien fléché : la flèche avance au survol */
.afc-lien-fleche {
    display: inline-flex; align-items: center; gap: var(--afc-e-2);
    font-weight: 600; font-size: var(--afc-t-sm); text-decoration: none;
    color: var(--afc-accent);
}
.afc-lien-fleche svg { transition: transform var(--afc-transition); }
.afc-lien-fleche:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ */
/* 6. CARTES D'ŒUVRE ET GRILLE D'EXPOSITION                           */
/* ------------------------------------------------------------------ */
.afc-carte {
    display: flex;
    flex-direction: column;
    background: var(--afc-mur);
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-lg);
    overflow: hidden;
    transition: box-shadow var(--afc-transition), transform var(--afc-transition),
                border-color var(--afc-transition);
}
.afc-carte:hover { box-shadow: var(--afc-ombre-3); border-color: var(--afc-trait-fort); }

/* Cadre de l'œuvre.
   `contain` sur un passe-partout : une toile n'est JAMAIS recadrée,
   quel que soit son format. C'est la différence entre une galerie et
   un catalogue de commerce en ligne.                                 */
.afc-cadre {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--afc-marie-louise);
    display: grid;
    place-items: center;
    padding: var(--afc-e-4);
    overflow: hidden;
}
.afc-cadre img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ombre portée qui suit la découpe : l'œuvre semble posée sur le mur */
    filter: drop-shadow(0 4px 10px rgba(26, 24, 21, 0.16));
    transition: transform 320ms cubic-bezier(0.2, 0, 0.2, 1);
}
.afc-carte:hover .afc-cadre img { transform: scale(1.03); }

.afc-cadre--libre { aspect-ratio: auto; }
.afc-cadre--paysage { aspect-ratio: 3 / 2; }

/* Œuvre sans photographie */
.afc-cadre--vide {
    color: var(--afc-trait-fort);
    font-family: var(--afc-serif);
    font-style: italic;
    font-size: var(--afc-t-sm);
    text-align: center;
}

.afc-carte-corps {
    display: flex;
    flex-direction: column;
    gap: var(--afc-e-1);
    padding: var(--afc-e-4);
    flex: 1;
}

/* Cartel : titre de l'œuvre, façon étiquette de musée */
.afc-cartel-titre {
    font-family: var(--afc-serif);
    font-size: var(--afc-t-md);
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}
.afc-cartel-titre a { color: inherit; text-decoration: none; }
.afc-cartel-titre a:hover { color: var(--afc-accent); }

.afc-cartel-auteur {
    font-size: var(--afc-t-sm);
    color: var(--afc-gris);
    margin: 0;
}
.afc-cartel-detail {
    font-size: var(--afc-t-xs);
    color: var(--afc-gris);
    margin: 0;
}

.afc-carte-pied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--afc-e-3);
    padding: var(--afc-e-3) var(--afc-e-4) var(--afc-e-4);
    margin-top: auto;
}

.afc-prix {
    font-family: var(--afc-serif);
    font-size: var(--afc-t-md);
    font-weight: 600;
    white-space: nowrap;
}
.afc-prix--barre { color: var(--afc-gris); text-decoration: line-through; font-weight: 400; }

/* Rend toute la carte cliquable sans imbriquer les liens :
   le lien du titre est étiré au-dessus de la carte.                  */
.afc-carte--cliquable { position: relative; }
.afc-carte--cliquable .afc-lien-etendu::after {
    content: ""; position: absolute; inset: 0;
}
.afc-carte--cliquable .afc-carte-pied > * { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ */
/* 7. FORMULAIRES                                                     */
/* ------------------------------------------------------------------ */
.afc-champ { display: flex; flex-direction: column; gap: var(--afc-e-2); margin-bottom: var(--afc-e-4); }

.afc-label {
    font-size: var(--afc-t-sm);
    font-weight: 600;
    color: var(--afc-encre-douce);
}
.afc-label .afc-requis { color: var(--afc-alerte); margin-left: 2px; }

.afc-saisie,
.afc-champ input[type="text"], .afc-champ input[type="email"],
.afc-champ input[type="password"], .afc-champ input[type="tel"],
.afc-champ input[type="date"], .afc-champ input[type="number"],
.afc-champ input[type="search"], .afc-champ input[type="url"],
.afc-champ select, .afc-champ textarea {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.85rem;
    background: var(--afc-mur);
    border: 1px solid var(--afc-trait-fort);
    border-radius: var(--afc-r-md);
    /* 16 px minimum sur mobile : en dessous, iOS zoome sur le champ
       à la mise au point, ce qui casse la mise en page.              */
    font-size: 16px;
    color: var(--afc-encre);
    transition: border-color var(--afc-transition), box-shadow var(--afc-transition);
}
.afc-saisie:focus, .afc-champ input:focus, .afc-champ select:focus, .afc-champ textarea:focus {
    outline: none;
    border-color: var(--afc-accent);
    box-shadow: 0 0 0 3px rgba(140, 83, 38, 0.14);
}
.afc-champ textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.afc-champ select { appearance: none; padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a736a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.85rem center; }

.afc-aide { font-size: var(--afc-t-xs); color: var(--afc-gris); }

.afc-case {
    display: flex; align-items: flex-start; gap: var(--afc-e-3);
    padding: var(--afc-e-3);
    background: var(--afc-papier);
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-md);
    cursor: pointer;
    font-size: var(--afc-t-sm);
}
.afc-case:hover { border-color: var(--afc-trait-fort); }
.afc-case input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--afc-accent); }

/* Grille de formulaire : 1 colonne sur téléphone, 2 dès 600 px */
.afc-form-grille { display: grid; gap: 0 var(--afc-e-4); }
@media (min-width: 600px) {
    .afc-form-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .afc-form-grille .afc-pleine { grid-column: 1 / -1; }
}

/* Barre de filtres */
.afc-filtres {
    display: grid;
    gap: var(--afc-e-3);
    align-items: end;
    padding: var(--afc-e-4);
    background: var(--afc-mur);
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-lg);
    margin-bottom: var(--afc-e-6);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.afc-filtres .afc-champ { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* 8. BADGES, ALERTES, CARTOUCHES                                     */
/* ------------------------------------------------------------------ */
.afc-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0.25rem 0.7rem;
    border-radius: var(--afc-r-plein);
    font-size: var(--afc-t-xs);
    font-weight: 600;
    letter-spacing: 0.03em;
    background: var(--afc-marie-louise);
    color: var(--afc-encre-douce);
    white-space: nowrap;
}
.afc-badge--dispo { background: var(--afc-dispo-voile); color: var(--afc-dispo); }
.afc-badge--vendu { background: var(--afc-vendu-voile); color: var(--afc-vendu); }
.afc-badge--accent{ background: var(--afc-accent-voile); color: var(--afc-accent-fonce); }

/* Pastille de statut */
.afc-pastille { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.afc-alerte {
    display: flex; gap: var(--afc-e-3); align-items: flex-start;
    padding: var(--afc-e-4);
    border: 1px solid var(--afc-trait);
    border-left: 3px solid var(--afc-gris);
    border-radius: var(--afc-r-md);
    background: var(--afc-mur);
    font-size: var(--afc-t-sm);
    margin-bottom: var(--afc-e-5);
}
.afc-alerte p { margin: 0; }
.afc-alerte--succes { border-left-color: var(--afc-dispo); background: var(--afc-dispo-voile); }
.afc-alerte--erreur { border-left-color: var(--afc-alerte); background: var(--afc-alerte-voile); }
.afc-alerte--info   { border-left-color: var(--afc-accent); background: var(--afc-accent-voile); }
.afc-alerte svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* Cartouche : liste de caractéristiques d'une œuvre, façon cartel */
.afc-cartouche {
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-lg);
    background: var(--afc-mur);
    overflow: hidden;
}
.afc-cartouche dl { margin: 0; }
.afc-cartouche-ligne {
    display: flex; flex-wrap: wrap; gap: var(--afc-e-3);
    align-items: baseline; justify-content: space-between;
    padding: var(--afc-e-3) var(--afc-e-4);
    border-bottom: 1px solid var(--afc-trait);
}
.afc-cartouche-ligne:last-child { border-bottom: 0; }
.afc-cartouche-ligne dt { font-size: var(--afc-t-sm); color: var(--afc-gris); margin: 0; }
.afc-cartouche-ligne dd { font-size: var(--afc-t-sm); font-weight: 600; margin: 0; text-align: right; }

/* État vide */
.afc-vide {
    padding: var(--afc-e-8) var(--afc-e-4);
    text-align: center;
    border: 1px dashed var(--afc-trait-fort);
    border-radius: var(--afc-r-lg);
    color: var(--afc-gris);
}
.afc-vide h3 { color: var(--afc-encre-douce); }

/* ------------------------------------------------------------------ */
/* 9. EN-TÊTE ET PIED DE PAGE                                         */
/* ------------------------------------------------------------------ */
.afc-entete {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--afc-trait);
}
@supports not (backdrop-filter: blur(1px)) {
    .afc-entete { background: var(--afc-papier); }
}

.afc-entete-barre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--afc-e-3);
    min-height: 72px;
    padding-block: var(--afc-e-2);
}
/* Le logo, puis la navigation, puis le panier, puis le bouton de menu :
   l'ordre visuel est fixé ici pour que le panier reste à droite quelle
   que soit la place qu'occupe la navigation. */
.afc-logo { order: 0; }
.afc-nav  { order: 1; }
.afc-burger { order: 3; }

/* Le fichier du logo a un fond blanc opaque (pas de transparence).
   Plutôt que de laisser un rectangle blanc flotter sur l'ivoire, on
   l'assume comme une petite plaque : bord, arrondi, légère ombre. */
.afc-logo {
    display: flex; align-items: center; flex: none;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-md);
    box-shadow: var(--afc-ombre-1);
    transition: border-color var(--afc-transition), box-shadow var(--afc-transition);
}
.afc-logo:hover { border-color: var(--afc-trait-fort); box-shadow: var(--afc-ombre-2); }
/* Le logo est un emblème rond assez dense : sous 56 px de haut il
   devient illisible. Ratio réel 1408x768. */
.afc-logo img { height: clamp(46px, 4.2vw, 62px); width: auto; }

.afc-nav ul {
    display: flex;
    align-items: center;
    gap: var(--afc-e-1);
    margin: 0; padding: 0; list-style: none;
}
.afc-nav a:not(.afc-btn) {
    display: block;
    padding: 0.55rem 0.85rem;
    border-radius: var(--afc-r-md);
    color: var(--afc-encre-douce);
    font-size: var(--afc-t-sm);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--afc-transition), color var(--afc-transition);
}
.afc-nav a:not(.afc-btn):hover { background: var(--afc-marie-louise); color: var(--afc-encre); }
.afc-nav a:not(.afc-btn)[aria-current="page"] { color: var(--afc-encre); font-weight: 600; }
.afc-nav a:not(.afc-btn)[aria-current="page"]::after {
    content: ""; display: block; height: 2px; margin-top: 3px;
    background: var(--afc-accent); border-radius: 2px;
}

.afc-nav-sep { width: 1px; height: 22px; background: var(--afc-trait); margin-inline: var(--afc-e-2); }

.afc-salut { font-size: var(--afc-t-sm); color: var(--afc-gris); padding-inline: var(--afc-e-2); white-space: nowrap; }

/* Accès au panier : toujours visible, hors du menu.
   Il vivait dans la navigation, et n'apparaissait qu'une fois quelque
   chose dedans : un visiteur qui arrivait sur le site ne savait donc pas
   qu'il pouvait mettre des œuvres de côté. Sur téléphone, il fallait en
   plus ouvrir le menu pour savoir ce qu'on y avait mis. */
.afc-panier-acces {
    display: inline-flex; align-items: center; gap: var(--afc-e-2);
    flex: none;
    margin-left: auto;
    min-height: 44px;
    padding: 0 var(--afc-e-3);
    border: 1px solid var(--afc-trait-fort);
    border-radius: var(--afc-r-md);
    color: var(--afc-encre-douce);
    font-size: var(--afc-t-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--afc-transition), border-color var(--afc-transition),
                color var(--afc-transition);
}
.afc-panier-acces:hover {
    background: var(--afc-marie-louise);
    border-color: var(--afc-gris);
    color: var(--afc-encre);
}
.afc-panier-acces svg { width: 20px; height: 20px; flex: none; }
/* Un panier qui contient quelque chose se remarque sans être criard :
   l'accent du site, en trait et en texte, pas en aplat. */
.afc-panier-acces.est-rempli {
    border-color: var(--afc-accent);
    color: var(--afc-accent);
}
.afc-panier-acces[aria-current="page"] {
    background: var(--afc-marie-louise);
    border-color: var(--afc-gris);
    color: var(--afc-encre);
}
/* Sur un téléphone, l'icône et le compteur suffisent : le mot ferait
   sortir la barre de l'écran à côté du logo et du bouton de menu. */
@media (max-width: 560px) {
    .afc-panier-acces { padding-inline: var(--afc-e-2); }
    .afc-panier-mot { display: none; }
}
/* Sur grand écran, la navigation reprend sa place à droite : le panier
   n'a plus à pousser quoi que ce soit. */
.afc-panier-acces { order: 2; }

/* Accès au compte : bouton et petit panneau.
   Le compte occupait cinq entrées de la navigation — administration ou
   acquisitions, profil, prénom, badge, déconnexion. Connecté, la barre
   réclamait 1450 px : elle débordait sur un portable de 1280 px. */
.afc-compte { position: relative; flex: none; }
.afc-compte-bouton {
    display: inline-flex; align-items: center; gap: var(--afc-e-2);
    min-height: 44px;
    padding: 0 var(--afc-e-3);
    border: 1px solid var(--afc-trait-fort);
    border-radius: var(--afc-r-md);
    background: transparent;
    color: var(--afc-encre-douce);
    font: inherit;
    font-size: var(--afc-t-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.afc-compte-bouton:hover { background: var(--afc-marie-louise); color: var(--afc-encre); }
.afc-compte-bouton svg { width: 20px; height: 20px; flex: none; }
.afc-compte-bouton[aria-expanded="true"] {
    background: var(--afc-marie-louise);
    border-color: var(--afc-gris);
    color: var(--afc-encre);
}

.afc-compte-panneau {
    position: absolute;
    top: calc(100% + 6px); right: 0;
    z-index: 120;
    min-width: 15rem;
    padding: var(--afc-e-3);
    background: var(--afc-mur);
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-lg);
    box-shadow: var(--afc-ombre-3);
}
.afc-compte-tete {
    display: flex; align-items: center; gap: var(--afc-e-2);
    margin: 0 0 var(--afc-e-2);
    padding: 0 var(--afc-e-2) var(--afc-e-3);
    border-bottom: 1px solid var(--afc-trait);
    font-weight: 600;
}
.afc-compte-panneau ul { list-style: none; margin: 0 0 var(--afc-e-3); padding: 0; }
.afc-compte-panneau a:not(.afc-btn) {
    display: block;
    padding: var(--afc-e-2);
    border-radius: var(--afc-r-sm);
    color: var(--afc-encre-douce);
    font-size: var(--afc-t-sm);
    text-decoration: none;
}
.afc-compte-panneau a:not(.afc-btn):hover { background: var(--afc-marie-louise); color: var(--afc-encre); }
.afc-compte-panneau a:not(.afc-btn)[aria-current="page"] { color: var(--afc-accent); font-weight: 600; }

/* Sur un téléphone, le prénom sort de la barre : l'icône suffit. */
@media (max-width: 560px) {
    .afc-compte-nom { display: none; }
    .afc-compte-bouton { padding-inline: var(--afc-e-2); }
    .afc-connexion-mot { display: none; }
}
@media (min-width: 561px) { .afc-connexion-court { display: none; } }
.afc-compte { order: 2; }
.afc-connexion { order: 2; flex: none; }

/* Bouton d'ouverture du menu (téléphone / tablette) */
.afc-burger {
    display: none;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--afc-trait-fort);
    border-radius: var(--afc-r-md);
    background: transparent;
    color: var(--afc-encre);
    cursor: pointer;
}
.afc-burger:hover { background: var(--afc-marie-louise); }
.afc-burger svg { width: 22px; height: 22px; }
.afc-burger .afc-icone-fermer,
.afc-burger[aria-expanded="true"] .afc-icone-ouvrir { display: none; }
.afc-burger[aria-expanded="true"] .afc-icone-fermer { display: block; }

/* Le menu se replie sous 1100 px. Sept entrées publiques, le panier et
   le compte demandent environ 1080 px : à 1000 px, la barre débordait de
   l'écran et les derniers liens en sortaient. */
@media (max-width: 1100px) {
    .afc-burger { display: inline-flex; }

    .afc-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        display: none;
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        padding: var(--afc-e-3) var(--afc-gouttiere) var(--afc-e-5);
        background: var(--afc-papier);
        border-bottom: 1px solid var(--afc-trait);
        box-shadow: var(--afc-ombre-3);
    }
    .afc-nav.est-ouvert { display: block; }

    .afc-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .afc-nav li { border-bottom: 1px solid var(--afc-trait); }
    .afc-nav li:last-child { border-bottom: 0; }
    .afc-nav a:not(.afc-btn) { padding: 0.85rem 0.5rem; font-size: var(--afc-t-base); border-radius: 0; }
    .afc-nav a:not(.afc-btn)[aria-current="page"]::after { display: none; }
    .afc-nav a:not(.afc-btn)[aria-current="page"] { color: var(--afc-accent); }
    .afc-nav-sep { display: none; }
    .afc-salut { padding: 0.85rem 0.5rem; }
    .afc-nav .afc-btn { margin-top: var(--afc-e-3); width: 100%; }
}
@media (min-width: 1101px) { .afc-panier-acces { margin-left: 0; } }

/* --- Pied de page --- */
.afc-pied {
    flex: none;
    margin-top: var(--afc-section);
    background: var(--afc-encre);
    color: #cfc9c0;
    padding-block: var(--afc-e-7) var(--afc-e-5);
}
.afc-pied a { color: #cfc9c0; text-decoration: none; }
.afc-pied a:hover { color: #fff; text-decoration: underline; }
.afc-pied h2, .afc-pied h3 { color: #fff; font-size: var(--afc-t-sm);
    font-family: var(--afc-sans); font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--afc-e-3); }

.afc-pied-grille {
    display: grid; gap: var(--afc-e-6);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.afc-pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--afc-e-2); }
.afc-pied-bas {
    display: flex; flex-wrap: wrap; gap: var(--afc-e-3);
    justify-content: space-between; align-items: center;
    margin-top: var(--afc-e-6); padding-top: var(--afc-e-4);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--afc-t-xs); color: #9b948a;
}

/* ------------------------------------------------------------------ */
/* 10. UTILITAIRES                                                    */
/* ------------------------------------------------------------------ */
.afc-pile      { display: flex; flex-direction: column; gap: var(--afc-e-4); }
.afc-rangee    { display: flex; flex-wrap: wrap; align-items: center; gap: var(--afc-e-3); }
.afc-rangee--fin { justify-content: flex-end; }
.afc-entre     { display: flex; flex-wrap: wrap; align-items: center;
                 justify-content: space-between; gap: var(--afc-e-3); }
.afc-centre    { text-align: center; }
.afc-mt-0 { margin-top: 0; }  .afc-mb-0 { margin-bottom: 0; }
.afc-mt-4 { margin-top: var(--afc-e-4); } .afc-mt-6 { margin-top: var(--afc-e-6); }
.afc-mt-2 { margin-top: var(--afc-e-2); } .afc-mt-3 { margin-top: var(--afc-e-3); }

/* Réservé aux lecteurs d'écran */
.afc-sr {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Pagination */
.afc-pagination { display: flex; flex-wrap: wrap; gap: var(--afc-e-2);
    justify-content: center; margin-top: var(--afc-e-7); }
.afc-pagination a, .afc-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding-inline: var(--afc-e-2);
    border: 1px solid var(--afc-trait); border-radius: var(--afc-r-md);
    background: var(--afc-mur); color: var(--afc-encre-douce);
    font-size: var(--afc-t-sm); text-decoration: none;
}
.afc-pagination a:hover { border-color: var(--afc-encre); color: var(--afc-encre); }
.afc-pagination .est-active {
    background: var(--afc-encre); border-color: var(--afc-encre); color: #fff; font-weight: 600;
}

/* Fil d'Ariane */
.afc-fil { display: flex; flex-wrap: wrap; gap: var(--afc-e-2);
    align-items: center; font-size: var(--afc-t-sm); color: var(--afc-gris);
    margin-bottom: var(--afc-e-5); }
.afc-fil a { color: var(--afc-gris); text-decoration: none; }
.afc-fil a:hover { color: var(--afc-accent); text-decoration: underline; }
.afc-fil svg { width: 14px; height: 14px; opacity: 0.6; }

/* ------------------------------------------------------------------ */
/* Confort au doigt                                                    */
/* ------------------------------------------------------------------ */
/* Mesuré à 375 px : le bouton « Acquérir » des cartes faisait 38 px de
   haut, les liens fléchés 23, les fils d'Ariane 23, et les liens du pied
   de page 19 — dix d'affilée, empilés à huit pixels les uns des autres.
   Sur un écran tactile, c'est en dessous de ce qu'un pouce vise sans se
   tromper : 44 px est la taille recommandée, 24 px le minimum.

   La règle ne vise que les écrans tactiles (pointer: coarse) : à la
   souris, ces tailles étaient très bien, et les grandir partout aurait
   distendu des mises en page qui tiennent debout.

   Elle ne touche pas non plus aux liens écrits dans une phrase : les
   agrandir couperait le fil du texte, et ils sont explicitement exemptés
   par le critère « taille de la cible » du RGAA comme de WCAG. */
@media (pointer: coarse) {
    /* Le bouton d'achat, sur chaque carte d'œuvre. */
    .afc-btn--sm { min-height: 44px; padding-inline: 1rem; }

    /* « Toute la galerie → », « Poser une question sur cette œuvre ». */
    .afc-lien-fleche { min-height: 44px; }

    /* Fil d'Ariane : la hauteur se gagne en padding, la ligne reste
       alignée grâce au align-items: center du conteneur. */
    .afc-fil a { display: inline-flex; align-items: center; min-height: 40px; }
    .afc-fil { margin-block: calc(var(--afc-e-2) * -1) var(--afc-e-4); }

    /* Pied de page : une colonne de liens serrés devient une liste où
       chaque entrée se vise sans effort. */
    .afc-pied ul { gap: 0; }
    .afc-pied ul a {
        display: flex; align-items: center;
        min-height: 44px;
    }

    /* Pagination et onglets de filtre du back-office. */
    .afc-pagination a, .afc-pagination span { min-height: 44px; min-width: 44px; }
}

/* ------------------------------------------------------------------ */
/* 11. ACCESSIBILITÉ ET IMPRESSION                                    */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .afc-entete, .afc-pied, .afc-burger, .afc-btn, .afc-pagination { display: none !important; }
    body { background: #fff; }
    .afc-carte { break-inside: avoid; border-color: #ccc; }
}

/* ------------------------------------------------------------------ */
/* Carte d'événement — accueil et page des événements                */
/* ------------------------------------------------------------------ */
.evenement-carte {
    display: flex; flex-wrap: wrap; gap: var(--afc-e-5);
    align-items: center;
    padding: var(--afc-e-5);
    background: var(--afc-mur);
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-lg);
    text-decoration: none; color: inherit;
    transition: box-shadow var(--afc-transition), border-color var(--afc-transition);
}
.evenement-carte:hover { box-shadow: var(--afc-ombre-2); border-color: var(--afc-trait-fort); }
.evenement-affiche {
    width: 120px; height: 120px; flex: none;
    object-fit: cover; border-radius: var(--afc-r-md);
    background: var(--afc-marie-louise);
}
.evenement-corps { flex: 1 1 260px; min-width: 0; }
.evenement-corps h3 { margin: var(--afc-e-2) 0; font-size: var(--afc-t-lg); }
.evenement-meta {
    display: flex; flex-wrap: wrap; gap: var(--afc-e-2) var(--afc-e-4);
    font-size: var(--afc-t-sm); color: var(--afc-gris);
}
.evenement-meta span { display: inline-flex; align-items: center; gap: 6px; }
.evenement-meta svg { width: 15px; height: 15px; flex: none; }
.evenement-affiche--absente {
    display: grid;
    place-items: center;
    font-family: var(--afc-serif);
    color: var(--afc-gris);
}

/* ------------------------------------------------------------------ */
/* Panier                                                             */
/* ------------------------------------------------------------------ */
/* Un panier d'œuvres uniques n'est pas un panier de supermarché : pas
   de quantités, mais un besoin de revoir ce qu'on a mis de côté — la
   photo, le format, la technique — avant de se décider. */

.panier-grille {
    display: grid;
    gap: var(--afc-e-6);
    align-items: start;
    grid-template-columns: 1fr;
    margin-top: var(--afc-e-5);
}
@media (min-width: 900px) {
    .panier-grille { grid-template-columns: minmax(0, 1fr) 22rem; }
}

.panier-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--afc-e-3); }

.panier-ligne {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: var(--afc-e-4);
    align-items: start;
    padding: var(--afc-e-4);
    background: var(--afc-mur);
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-lg);
}
@media (min-width: 620px) {
    .panier-ligne { grid-template-columns: 96px minmax(0, 1fr) auto; }
}

/* Une œuvre vendue entre-temps reste visible : la faire disparaître sans
   un mot laisserait croire à une erreur du site. */
.panier-ligne--indisponible { background: var(--afc-papier); }
.panier-ligne--indisponible .panier-vignette { opacity: 0.55; }

.panier-vignette {
    display: block;
    aspect-ratio: 1;
    background: var(--afc-marie-louise);
    border-radius: var(--afc-r-md);
    overflow: hidden;
}
.panier-vignette img { width: 100%; height: 100%; object-fit: contain; }

.panier-titre { margin: 0 0 var(--afc-e-1); font-size: var(--afc-t-md); }
.panier-titre a { color: var(--afc-encre); text-decoration: none; }
.panier-titre a:hover { color: var(--afc-accent); }

.panier-prix {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--afc-e-2);
}
@media (min-width: 620px) { .panier-prix { align-items: flex-end; text-align: right; } }

.panier-bilan {
    position: sticky;
    top: var(--afc-e-5);
    padding: var(--afc-e-5);
    background: var(--afc-mur);
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-lg);
}
.panier-bilan-titre { margin: 0 0 var(--afc-e-4); font-size: var(--afc-t-md); }

.panier-compte { margin: 0 0 var(--afc-e-4); }
.panier-compte > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--afc-e-3);
    padding-block: var(--afc-e-2);
    border-top: 1px solid var(--afc-trait);
}
.panier-compte dt { color: var(--afc-encre-douce); }
.panier-compte dd {
    margin: 0;
    font-family: var(--afc-serif);
    font-size: var(--afc-t-lg);
    color: var(--afc-encre);
    font-variant-numeric: tabular-nums;
}

.panier-valider { width: 100%; }

/* Compteur : le nombre d'œuvres au panier, de messages non lus.
   Il s'appelait .afc-pastille, comme le point d'état des badges
   « Vendue » / « Disponible » — et, défini plus bas dans le fichier, il
   l'écrasait : le point de six pixels devenait un disque terracotta de
   seize, posé avant le texte du badge. Deux rôles, deux noms. */
.afc-compteur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35em;
    height: 1.35em;
    margin-left: 0.4em;
    padding-inline: 0.35em;
    border-radius: var(--afc-r-plein);
    background: var(--afc-accent);
    color: #fff;
    font-size: var(--afc-t-xs);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* ------------------------------------------------------------------ */
/* Validation de commande                                             */
/* ------------------------------------------------------------------ */
.commande-bloc {
    padding: var(--afc-e-5);
    margin-bottom: var(--afc-e-4);
    background: var(--afc-mur);
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-lg);
}
.commande-bloc h2 { margin: 0 0 var(--afc-e-4); font-size: var(--afc-t-md); }

.commande-oeuvres { list-style: none; margin: 0; padding: 0; }
.commande-oeuvres li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--afc-e-4);
    padding-block: var(--afc-e-3);
    border-top: 1px solid var(--afc-trait);
}
.commande-oeuvres li:first-child { border-top: 0; padding-top: 0; }
.commande-oeuvres .afc-legende { display: block; }

/* Le choix du retrait ou de l'envoi : deux options qu'on doit pouvoir
   comparer d'un coup d'œil, pas une liste déroulante. */
.commande-choix {
    display: flex;
    gap: var(--afc-e-3);
    align-items: flex-start;
    padding: var(--afc-e-4);
    margin-bottom: var(--afc-e-3);
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-md);
    cursor: pointer;
}
.commande-choix:hover { border-color: var(--afc-trait-fort); }
.commande-choix:has(input:checked) {
    border-color: var(--afc-accent);
    background: var(--afc-accent-voile);
}
.commande-choix input { margin-top: 0.25rem; flex: none; }
.commande-choix > span { display: flex; flex-direction: column; gap: 2px; }

/* Commandes de l'espace membre. */
.commandes-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--afc-e-4); }
.commande-carte {
    padding: var(--afc-e-5);
    background: var(--afc-mur);
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-lg);
}
.commande-tete {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--afc-e-3);
    margin-bottom: var(--afc-e-4);
}
.commande-reference {
    margin: var(--afc-e-2) 0 2px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: var(--afc-t-sm);
    color: var(--afc-encre);
}
.commande-carte .commande-oeuvres { margin-bottom: var(--afc-e-3); }
.commande-carte .commande-oeuvres a { color: var(--afc-encre); }
.commande-carte .commande-oeuvres a:hover { color: var(--afc-accent); }

/* Fiche œuvre : le bloc d'acquisition. Acheter une œuvre d'art commence
   souvent par une question — le lien doit être là, sans concurrencer le
   bouton principal. */
.oeuvre-achat-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--afc-e-3);
}
@media (min-width: 560px) { .oeuvre-achat-actions { align-items: flex-end; } }

/* ------------------------------------------------------------------ */
/* Documents de référence (RGPD, conditions de vente, présentation)   */
/* ------------------------------------------------------------------ */
/* Trois pages du site sont de longs documents suivis, lus rarement mais
   attentivement — et de plus en plus souvent sur un téléphone. Chacune
   portait sa propre feuille de style, soit huit cents lignes qui disaient
   trois fois la même chose et divergeaient déjà. Elles partagent
   maintenant ce gabarit : un titre, un sommaire qui suit la lecture sur
   grand écran, et une colonne de texte à la longueur de ligne fixée.

   Le parti pris est celui du reste du site : pas de bandeau coloré en
   dégradé, le papier ivoire et un filet. Un texte juridique n'a pas
   besoin d'être mis en scène ; il a besoin d'être lisible. */
.afc-doc { padding-bottom: var(--afc-e-9); }

.afc-doc-tete {
    padding-block: clamp(2rem, 5vw, 3.5rem) var(--afc-e-6);
    border-bottom: 1px solid var(--afc-trait);
    margin-bottom: var(--afc-e-7);
}
.afc-doc-tete h1 { margin: var(--afc-e-2) 0 var(--afc-e-4); max-width: 20ch; }
.afc-doc-tete .afc-chapo { max-width: 58ch; margin-bottom: 0; }

/* Version, date d'entrée en vigueur, cadre juridique : trois repères
   séparés par un filet plutôt que par des pastilles, qui donneraient à
   ces mentions une importance qu'elles n'ont pas. */
.afc-doc-meta {
    display: flex; flex-wrap: wrap;
    gap: var(--afc-e-2) var(--afc-e-4);
    margin-top: var(--afc-e-5);
    font-size: var(--afc-t-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--afc-gris);
}
.afc-doc-meta > * + * {
    border-left: 1px solid var(--afc-trait-fort);
    padding-left: var(--afc-e-4);
}

.afc-doc-corps { display: grid; gap: var(--afc-e-7); align-items: start; }
@media (min-width: 1000px) {
    .afc-doc-corps { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--afc-e-8); }
    .afc-doc-sommaire {
        position: sticky;
        top: calc(var(--afc-entete-h, 72px) + 1.5rem);
        max-height: calc(100vh - var(--afc-entete-h, 72px) - 3rem);
        overflow-y: auto;
    }
}

.afc-doc-sommaire {
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-lg);
    background: var(--afc-mur);
    padding: var(--afc-e-4) var(--afc-e-5);
}
.afc-doc-sommaire h2 {
    font-family: var(--afc-sans);
    font-size: var(--afc-t-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--afc-gris);
    margin: 0 0 var(--afc-e-3);
}
.afc-doc-sommaire ol {
    margin: 0; padding: 0; list-style: none;
    counter-reset: doc-sommaire;
    font-size: var(--afc-t-sm);
}
.afc-doc-sommaire li { counter-increment: doc-sommaire; }
.afc-doc-sommaire a {
    display: flex; gap: var(--afc-e-3);
    padding: 5px 0;
    color: var(--afc-encre-douce);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
/* La numérotation vient du compteur, pas du texte : ajouter une section
   au milieu du document ne demande pas de renuméroter le sommaire. */
.afc-doc-sommaire a::before {
    content: counter(doc-sommaire);
    color: var(--afc-trait-fort);
    font-variant-numeric: tabular-nums;
    min-width: 1.3em;
}
.afc-doc-sommaire a:hover { color: var(--afc-accent); }
.afc-doc-sommaire a:hover::before { color: var(--afc-accent); }

.afc-doc-texte { max-width: var(--afc-largeur-texte); }
.afc-doc-section + .afc-doc-section {
    margin-top: var(--afc-e-7);
    padding-top: var(--afc-e-6);
    border-top: 1px solid var(--afc-trait);
}
.afc-doc-section h2 {
    font-size: var(--afc-t-lg);
    margin: 0 0 var(--afc-e-4);
}
.afc-doc-section h3 {
    font-family: var(--afc-sans);
    font-size: var(--afc-t-base);
    letter-spacing: 0.02em;
    margin: var(--afc-e-5) 0 var(--afc-e-2);
}
.afc-doc-section p,
.afc-doc-section li { color: var(--afc-encre-douce); }
.afc-doc-section p { margin: 0 0 var(--afc-e-4); }
.afc-doc-section ul,
.afc-doc-section ol { margin: 0 0 var(--afc-e-4); padding-left: 1.25rem; }
.afc-doc-section li { margin-bottom: var(--afc-e-2); }
.afc-doc-section address {
    font-style: normal;
    line-height: 1.7;
}

/* Coordonnées du responsable de traitement, du référent RGPD, du
   vendeur : une adresse encadrée plutôt qu'un paragraphe de plus, parce
   que c'est ce qu'on revient chercher dans ces pages. */
.afc-doc-adresse {
    padding: var(--afc-e-4) var(--afc-e-5);
    margin-bottom: var(--afc-e-4);
}
.afc-doc-adresse strong { color: var(--afc-encre); }

/* Les trois missions de l'association. Ce ne sont pas des cartes : elles
   ne mènent nulle part et ne sont pas de même nature que les œuvres. Un
   filet en tête suffit à les séparer, et la page reste calme. */
.afc-mission { border-top: 2px solid var(--afc-encre); padding-top: var(--afc-e-4); }
.afc-mission h3 { font-size: var(--afc-t-md); margin: 0 0 var(--afc-e-3); }
.afc-mission p  { color: var(--afc-encre-douce); margin: 0; }

/* ------------------------------------------------------------------ */
/* Espace membre : connexion, inscription, mot de passe oublié         */
/* ------------------------------------------------------------------ */
/* Ces règles vivaient dans authentification.php. Les trois pages du
   parcours de connexion — se connecter, demander un lien, choisir un
   nouveau mot de passe — doivent se ressembler : elles partagent
   maintenant le même panneau. */
.auth-scene {
    display: grid;
    gap: var(--afc-e-7);
    align-items: start;
    padding-block: var(--afc-e-6) var(--afc-section);
}
@media (min-width: 940px) {
    .auth-scene { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--afc-e-8); }
}

.auth-panneau {
    padding: var(--afc-e-6);
    background: var(--afc-mur);
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-lg);
    box-shadow: var(--afc-ombre-2);
}
.auth-panneau h2 { font-size: var(--afc-t-lg); margin-bottom: var(--afc-e-2); }
.auth-panneau > p:first-of-type { color: var(--afc-gris); font-size: var(--afc-t-sm); margin-bottom: var(--afc-e-5); }

/* Champ mot de passe avec bouton « afficher » intégré */
.auth-mdp { position: relative; }
.auth-mdp input { padding-right: 5.2rem; }
.auth-mdp button {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    min-height: 34px; padding: 0 .7rem;
    border: 0; border-radius: var(--afc-r-sm);
    background: var(--afc-marie-louise); color: var(--afc-encre-douce);
    font-size: var(--afc-t-xs); font-weight: 600; cursor: pointer;
}
.auth-mdp button:hover { background: var(--afc-trait); }

/* Colonne d'introduction */
.auth-intro-avantages { list-style: none; padding: 0; margin: var(--afc-e-5) 0 0; display: grid; gap: var(--afc-e-4); }
.auth-intro-avantages li { display: flex; gap: var(--afc-e-3); align-items: flex-start; }
.auth-intro-avantages svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--afc-accent); }
.auth-intro-avantages strong { display: block; }
.auth-intro-avantages span { font-size: var(--afc-t-sm); color: var(--afc-gris); }

/* Onglets */
.auth-onglets {
    display: flex; gap: var(--afc-e-2);
    margin-bottom: var(--afc-e-5);
    border-bottom: 1px solid var(--afc-trait);
}
.auth-onglet {
    appearance: none; border: 0; background: transparent;
    padding: .7rem .2rem; margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    font-size: var(--afc-t-sm); font-weight: 600;
    color: var(--afc-gris); cursor: pointer;
    margin-right: var(--afc-e-4);
}
.auth-onglet[aria-selected="true"] { color: var(--afc-encre); border-bottom-color: var(--afc-accent); }
.auth-onglet:hover { color: var(--afc-encre); }

/* Demander un lien, choisir un nouveau mot de passe : un seul panneau au
   milieu, sans la colonne d'introduction de la page de connexion. */
.afc-auth-seul {
    max-width: 34rem;
    padding-block: var(--afc-e-6) var(--afc-section);
}
.afc-auth-seul h1 { font-size: var(--afc-t-xl); margin: var(--afc-e-1) 0 var(--afc-e-3); }
.afc-auth-seul p { color: var(--afc-encre-douce); }
.afc-auth-seul form { margin-top: var(--afc-e-5); }

/* Bandeau de confirmation, juste sous la navigation : « l'œuvre a été
   mise de côté », affiché sur la page où l'on se trouvait. */
.afc-flash { padding-top: var(--afc-e-4); }
.afc-flash .afc-alerte { margin-bottom: 0; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ------------------------------------------------------------------ */
/* Barre des sections du back-office                                   */
/* ------------------------------------------------------------------ */
/* Le back-office n'avait aucune navigation propre : passer du répertoire
   des œuvres aux artistes demandait de remonter par le menu public, puis
   par une tuile du tableau de bord. Elle se colle sous l'en-tête, dont
   elle prolonge le filet. */
.bo-barre {
    position: sticky;
    /* Sous l'en-tête, dont la hauteur réelle est publiée par son propre
       script : 72 px n'est vrai que sur un écran large, menu replié. */
    top: var(--afc-entete-h, 72px);
    z-index: 90;
    background: var(--afc-marie-louise);
    border-bottom: 1px solid var(--afc-trait);
}
.bo-barre-piste {
    display: flex;
    gap: var(--afc-e-4);
    /* Neuf sections ne tiennent pas sur un téléphone. Plutôt que de les
       replier sur trois lignes, la barre défile : l'ordre reste stable,
       et l'on retrouve chaque section au même endroit. */
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.bo-barre a {
    flex: none;
    padding: var(--afc-e-3) 2px;
    border-bottom: 2px solid transparent;
    color: var(--afc-encre-douce);
    font-size: var(--afc-t-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--afc-e-2);
}
.bo-barre a:hover { color: var(--afc-encre); }
.bo-barre a[aria-current="page"] {
    color: var(--afc-encre);
    border-bottom-color: var(--afc-accent);
}
.bo-barre .afc-compteur { margin-left: 0; }

@media print { .bo-barre { display: none; } }

/* ------------------------------------------------------------------ */
/* Livre d'or                                                         */
/* ------------------------------------------------------------------ */
/* La page portait quatre cents lignes de style à elle seule, avec un
   bandeau en dégradé sombre, des cercles décoratifs et sa propre police.
   Elle ne ressemblait à aucune autre page du site. Ce qui reste ici est
   ce qui lui est vraiment propre : la disposition en deux colonnes et
   l'aspect des témoignages. Tout le reste — champs, boutons, alertes —
   vient du système commun. */
.afc-lo { padding-bottom: var(--afc-e-9); }

.afc-lo-corps { display: grid; gap: var(--afc-e-6); align-items: start; }
@media (min-width: 900px) {
    .afc-lo-corps { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); }
    /* Le formulaire suit la lecture : on peut écrire son mot après en
       avoir lu dix, sans remonter en haut de la page. */
    .afc-lo-panneau--forme { position: sticky; top: calc(var(--afc-entete-h, 72px) + 1.5rem); }
}

.afc-lo-panneau {
    padding: var(--afc-e-5);
    border: 1px solid var(--afc-trait);
    border-radius: var(--afc-r-lg);
    background: var(--afc-mur);
}
.afc-lo-panneau h2 { font-size: var(--afc-t-lg); margin: var(--afc-e-1) 0 0; }
.afc-lo-panneau .afc-section-tete { margin-bottom: var(--afc-e-5); }
.afc-lo-forme .afc-champ:last-of-type { margin-bottom: var(--afc-e-5); }
.afc-lo-forme textarea { min-height: 150px; }

/* Piège à robots : un champ que personne ne voit et que les
   remplisseurs automatiques remplissent quand même. Il doit rester
   atteignable par le code, donc pas de display:none. */
.afc-lo-piege {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.afc-lo-liste { display: flex; flex-direction: column; gap: var(--afc-e-5); }

.afc-lo-mot {
    padding-bottom: var(--afc-e-5);
    border-bottom: 1px solid var(--afc-trait);
}
.afc-lo-mot:last-child { border-bottom: 0; padding-bottom: 0; }
/* En attente de relecture : visible du seul administrateur, donc
   distingué sans être alarmant. */
.afc-lo-mot--attente {
    background: var(--afc-accent-voile);
    border: 1px dashed var(--afc-accent-clair);
    border-radius: var(--afc-r-md);
    padding: var(--afc-e-4);
}

.afc-lo-tete { margin-bottom: var(--afc-e-3); }
.afc-lo-visiteur { display: flex; align-items: center; gap: var(--afc-e-3); }
/* L'initiale tient lieu de portrait : on ne demande pas de photo aux
   visiteurs, et un rond vide serait pire que rien. */
.afc-lo-initiale {
    display: grid; place-items: center;
    width: 40px; height: 40px; flex: none;
    border-radius: var(--afc-r-plein);
    background: var(--afc-marie-louise);
    border: 1px solid var(--afc-trait);
    font-family: var(--afc-serif);
    font-size: 1.1rem;
    color: var(--afc-accent);
    text-transform: uppercase;
}
.afc-lo-nom { font-size: var(--afc-t-base); margin: 0; }
.afc-lo-modifie { color: var(--afc-gris); font-style: italic; }
.afc-lo-texte {
    margin: 0;
    color: var(--afc-encre-douce);
    /* Un témoignage se lit comme une citation, pas comme un mode d'emploi. */
    font-family: var(--afc-serif);
    font-size: var(--afc-t-md);
    line-height: 1.65;
    white-space: pre-line;
}

.afc-lo-actions {
    display: flex; flex-wrap: wrap; gap: var(--afc-e-2);
    margin-top: var(--afc-e-4);
    padding-top: var(--afc-e-3);
    border-top: 1px dashed var(--afc-trait);
}
.afc-lo-actions form { margin: 0; }
/* Le formulaire de correction reste replié tant que l'administrateur ne
   l'ouvre pas : sinon la liste devient illisible dès trois messages. */
.afc-lo-edition { display: none; margin-top: var(--afc-e-4); }
.afc-lo-edition.is-open { display: block; }

/* Une phrase que l'on veut faire entendre, pas un encadré de plus. */
.afc-citation {
    max-width: 46ch;
    margin: var(--afc-e-8) auto 0;
    padding-left: var(--afc-e-5);
    border-left: 2px solid var(--afc-accent);
    font-family: var(--afc-serif);
    font-size: var(--afc-t-lg);
    line-height: 1.45;
    color: var(--afc-encre-douce);
}

/* Un tableau de durées de conservation tient sur un écran d'ordinateur,
   pas sur un téléphone : il défile dans son propre cadre plutôt que
   d'élargir la page entière. */
.afc-doc-tableau { overflow-x: auto; margin-bottom: var(--afc-e-5); }
.afc-doc-tableau table {
    width: 100%; min-width: 30rem;
    border-collapse: collapse;
    font-size: var(--afc-t-sm);
}
.afc-doc-tableau th,
.afc-doc-tableau td {
    text-align: left;
    padding: var(--afc-e-3) var(--afc-e-4);
    border-bottom: 1px solid var(--afc-trait);
    vertical-align: top;
}
.afc-doc-tableau th {
    font-size: var(--afc-t-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--afc-gris);
    background: var(--afc-marie-louise);
}
.afc-doc-tableau td { color: var(--afc-encre-douce); }

/* Sous 600 px, deux colonnes ne tiennent plus côte à côte sans devenir
   illisibles : chaque ligne devient une petite fiche, l'en-tête de
   colonne repris devant la valeur (attribut data-label du gabarit). */
@media (max-width: 600px) {
    .afc-doc-tableau table { min-width: 0; }
    .afc-doc-tableau thead { display: none; }
    .afc-doc-tableau tbody, .afc-doc-tableau tr, .afc-doc-tableau td { display: block; width: 100%; }
    .afc-doc-tableau tr {
        border: 1px solid var(--afc-trait);
        border-radius: var(--afc-r-md);
        margin-bottom: var(--afc-e-3);
        overflow: hidden;
    }
    .afc-doc-tableau td { border: 0; border-bottom: 1px solid var(--afc-trait); }
    .afc-doc-tableau td:last-child { border-bottom: 0; }
    .afc-doc-tableau td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: var(--afc-t-xs);
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--afc-gris);
    }
}

.afc-doc-fin {
    margin-top: var(--afc-e-7);
    padding-top: var(--afc-e-5);
    border-top: 1px solid var(--afc-trait);
    font-size: var(--afc-t-sm);
    color: var(--afc-gris);
}

/* Sans cela, un lien du sommaire amène la section visée sous l'en-tête,
   qui reste collé en haut de l'écran : on atterrit sur son deuxième
   paragraphe sans avoir vu le titre. */
:target,
.afc-doc-section[id],
main[id] { scroll-margin-top: calc(var(--afc-entete-h, 72px) + 1.5rem); }

/* ------------------------------------------------------------------ */
/* Utilitaires                                                        */
/* ------------------------------------------------------------------ */
/* Ils remplacent les attributs style= des gabarits. Ce n'est pas qu'une
   question de propreté : tant qu'il reste un style écrit dans le HTML, la
   politique de sécurité du contenu doit autoriser « unsafe-inline » pour
   les styles, ce qui ouvre la porte aux injections CSS. */
.afc-m-0            { margin: 0; }
.afc-mb-2           { margin-bottom: var(--afc-e-2); }
.afc-mb-3           { margin-bottom: var(--afc-e-3); }
.afc-mb-4           { margin-bottom: var(--afc-e-4); }
.afc-mb-5           { margin-bottom: var(--afc-e-5); }
.afc-mb-mince       { margin-bottom: 2px; }
.afc-mt-5           { margin-top: var(--afc-e-5); }
.afc-mt-mince       { margin-top: var(--afc-e-2); }
.afc-espace-section { margin-block: var(--afc-e-8); }
.afc-centre-bloc    { margin-inline: auto; }
.afc-centre         { text-align: center; }
.afc-gauche         { text-align: left; }
.afc-bloc           { display: block; }
.afc-en-ligne       { display: inline; }
.afc-liste-nue      { list-style: none; padding: 0; }
.afc-encre          { color: var(--afc-encre); }
.afc-t-xs           { font-size: var(--afc-t-xs); }
.afc-t-sm           { font-size: var(--afc-t-sm); }
.afc-t-xl           { font-size: var(--afc-t-xl); }
.afc-serif-lg       { font-family: var(--afc-serif); font-size: 1.35rem; }
.afc-largeur-340    { max-width: 340px; }
.afc-rangee-serree  { gap: var(--afc-e-3); margin-block: var(--afc-e-4); }
.afc-haut-section   { padding-top: var(--afc-e-5); }
.afc-alerte--accent { border-left-color: var(--afc-accent); background: var(--afc-accent-voile); }
.afc-resume-filtres {
    cursor: pointer;
    font-weight: 600;
    font-size: var(--afc-t-sm);
    padding-block: var(--afc-e-2);
}
.afc-pied-mention { color: #a8a199; font-size: 0.875rem; max-width: 34ch; }
/* Bandeau du mode développement : il doit se distinguer du site, donc
   ses couleurs ne viennent pas de la palette. */
.afc-bandeau-dev {
    background: #7f1d1d;
    color: #fff;
    text-align: center;
    padding: 6px 12px;
    font: 600 12px/1.4 system-ui, sans-serif;
    letter-spacing: 0.08em;
}
/* Page d'impasse : « cette œuvre n'existe pas », « action refusée »… */
.afc-page-message { max-width: 60ch; padding-block: clamp(2.5rem, 7vw, 5rem); }
/* Retour de paiement : la référence de commande doit sauter aux yeux,
   c'est la seule chose que l'acheteur aura besoin de nous citer. */
.retour-recap {
    display: inline-block;
    padding: var(--afc-e-4) var(--afc-e-5);
    margin-block: var(--afc-e-5);
    background: var(--afc-marie-louise);
    border-radius: var(--afc-r-md);
}
