/* Thème Accessible (unmfr/accessible) : seule feuille de la version accessible. Palette fixe, indépendante des couleurs du site.
   Base 18 px (13,5 pt), tailles en rem. Les couleurs ne sont écrites qu'ici, dans les variables : les réglages du visiteur les remplacent.
   Lecture, d'après les recommandations pour la dyslexie (British Dyslexia Association, Rello et Baeza-Yates 2013) : Arial par défaut, interligne 1,5,
   interlettrage léger, lignes de 60 à 70 caractères, texte à gauche, sans italique ni majuscules forcées, noir sur crème.
   Seuls les liens restent soulignés : ils doivent se repérer sans la couleur (WCAG 1.4.1). */

@font-face { font-family: "OpenDyslexic"; src: url("fonts/opendyslexic-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "OpenDyslexic"; src: url("fonts/opendyslexic-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Luciole"; src: url("fonts/Luciole-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Luciole"; src: url("fonts/Luciole-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --ac-fond: #fbf7ee;
    --ac-fond-teinte: #f2ecdf;
    --ac-texte: #17211d;
    --ac-texte-doux: #3b4741;
    --ac-lien: #0a4d85;
    --ac-lien-vu: #5b2c83;
    --ac-lien-survol: #06294a;
    --ac-accent: #15523f;
    --ac-accent-survol: #0d3729;
    --ac-sur-accent: #ffffff;
    --ac-bord: #5c6a63;
    --ac-bord-doux: #d5ccb9;
    --ac-bande: #13332a;
    --ac-sur-bande: #ffffff;
    --ac-erreur: #a01212;
    --ac-erreur-fond: #fdf0ef;
    --ac-succes: #115c34;
    --ac-succes-fond: #eaf5ee;
    --ac-focus: #ffd400;
    --ac-focus-trait: #000000;
    --ac-police: Arial, Helvetica, "Liberation Sans", Arimo, sans-serif;
    --ac-interlettre: .025em;
    --ac-intermot: .06em;
}

html.ac-contraste-noir {
    --ac-fond: #ffffff;
    --ac-fond-teinte: #ffffff;
    --ac-texte: #000000;
    --ac-texte-doux: #000000;
    --ac-lien: #000000;
    --ac-lien-vu: #000000;
    --ac-lien-survol: #000000;
    --ac-accent: #000000;
    --ac-accent-survol: #000000;
    --ac-bord: #000000;
    --ac-bord-doux: #000000;
    --ac-bande: #000000;
    --ac-erreur: #000000;
    --ac-erreur-fond: #ffffff;
    --ac-succes: #000000;
    --ac-succes-fond: #ffffff;
}

html.ac-contraste-blanc {
    --ac-fond: #000000;
    --ac-fond-teinte: #000000;
    --ac-texte: #ffffff;
    --ac-texte-doux: #ffffff;
    --ac-lien: #ffffff;
    --ac-lien-vu: #ffffff;
    --ac-lien-survol: #ffffff;
    --ac-accent: #ffffff;
    --ac-accent-survol: #ffffff;
    --ac-sur-accent: #000000;
    --ac-bord: #ffffff;
    --ac-bord-doux: #ffffff;
    --ac-bande: #000000;
    --ac-erreur: #ffffff;
    --ac-erreur-fond: #000000;
    --ac-succes: #ffffff;
    --ac-succes-fond: #000000;
    --ac-focus-trait: #000000;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.ac-taille-125 { font-size: 140.625%; }
html.ac-taille-150 { font-size: 168.75%; }
html.ac-taille-200 { font-size: 225%; }
html.ac-police-verdana { --ac-police: Verdana, "DejaVu Sans", Tahoma, Geneva, sans-serif; --ac-interlettre: 0em; --ac-intermot: 0em; }
html.ac-police-luciole { --ac-police: "Luciole", Arial, Helvetica, sans-serif; }
html.ac-police-dyslexie { --ac-police: "OpenDyslexic", Verdana, Tahoma, sans-serif; --ac-interlettre: 0em; --ac-intermot: 0em; }
body {
    margin: 0;
    background: var(--ac-fond);
    color: var(--ac-texte);
    font-family: var(--ac-police);
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: var(--ac-interlettre);
    word-spacing: var(--ac-intermot);
    overflow-wrap: break-word;
    text-align: left;
}
h1, h2, h3, h4, h5, h6 { margin: 1.6em 0 .5em; color: var(--ac-texte); font-weight: 700; line-height: 1.25; text-transform: none; overflow-wrap: break-word; }
h1 { margin-top: 0; font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1.05rem; }
html.ac-taille-150 body, html.ac-taille-200 body { hyphens: auto; overflow-wrap: anywhere; }
html.ac-taille-150 .ac-cadre, html.ac-taille-200 .ac-cadre, html.ac-taille-150 .sg-wrap, html.ac-taille-200 .sg-wrap, html.ac-taille-150 .container, html.ac-taille-200 .container { padding-inline: .5rem; }
html.ac-taille-150 h1, html.ac-taille-200 h1 { font-size: 1.55rem; }
html.ac-taille-150 h2, html.ac-taille-200 h2 { font-size: 1.3rem; }
html.ac-taille-150 h3, html.ac-taille-200 h3 { font-size: 1.15rem; }
p, ul, ol, dl, table, figure, blockquote, address, fieldset { margin: 0 0 1em; }
address { font-style: normal; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }
strong, b { font-weight: 700; }
em, cite, dfn, var { font-style: normal; font-weight: 700; }
i { font-style: normal; }
u, ins { text-decoration: none; }
small { font-size: .9em; }
hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--ac-bord-doux); }
img, video, iframe, svg, embed, object { max-width: 100%; }
img, video { height: auto; }
img { border: 0; }
iframe { border: 1px solid var(--ac-bord); }
[hidden] { display: none !important; }

/* Liens et focus : le focus reste visible sur tout fond (trait noir et halo jaune), y compris dans les couleurs forcées */
a { color: var(--ac-lien); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:visited { color: var(--ac-lien-vu); }
a:hover { color: var(--ac-lien-survol); text-decoration-thickness: .16em; }
a[target="_blank"]::after { content: " (nouvelle fenêtre)"; font-size: .85em; font-weight: 400; white-space: pre-wrap; }
:focus-visible, summary:focus-visible, a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--ac-focus-trait);
    outline-offset: 2px;
    box-shadow: 0 0 0 7px var(--ac-focus);
}
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.ac-tableau:focus, summary:focus { position: relative; z-index: 1; }

/* Pas d'animation automatique */
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* Cadres */
.ac-cadre { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
.ac-texte > * { max-width: min(60ch, 100%); }
.ac-texte > .ac-tableau { max-width: 100%; }
.ac-section { padding-block: 2.25rem; }
.ac-section > .ac-cadre > :first-child, .ac-section > .ac-cadre > .ac-texte > :first-child { margin-top: 0; }
.ac-section-teintee { background: var(--ac-fond-teinte); border-block: 1px solid var(--ac-bord-doux); }
.ac-masque { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Barre d'outils : accès rapide, réglages, retour à la version standard */
.ac-outils { background: var(--ac-bande); color: var(--ac-sur-bande); border-bottom: 1px solid var(--ac-bord-doux); }
.ac-outils-cadre { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; padding-block: .15rem; }
.ac-outils a, .ac-outils a:visited, .ac-outils a:hover { color: var(--ac-sur-bande); }
.ac-evitement { margin-right: auto; }
.ac-evitement ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
.ac-evitement li { margin: 0; }
.ac-outils a, .ac-outils summary { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem .1rem; font-size: .92rem; }
.ac-outils a:focus, .ac-outils summary:focus { background: var(--ac-focus); color: #000; }
.ac-outils summary { gap: .5rem; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.ac-reglages[open] { flex: 1 0 100%; }
.ac-reglages-panneau { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem 1.5rem; margin: 0 0 .75rem; padding: 1rem; background: var(--ac-fond); color: var(--ac-texte); border: 2px solid var(--ac-bord); }
.ac-reglages-panneau fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ac-reglages-panneau legend { padding: 0; margin-bottom: .25rem; font-weight: 700; }
.ac-choix { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; cursor: pointer; }
.ac-choix input { flex: none; width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--ac-accent); }
.ac-reglages-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

/* En-tête */
.ac-entete { background: var(--ac-fond); }
.ac-entete-cadre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1rem; }
.ac-logo, .ac-logo:visited, .ac-logo:hover { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; color: var(--ac-texte); text-decoration: none; }
.ac-logo img { width: auto; height: 4.2rem; max-width: 100%; padding: .2rem; background: #fff; object-fit: contain; object-position: left center; }
.ac-insecable { white-space: nowrap; }
.ac-logo-texte { display: flex; flex-direction: column; }
.ac-logo-nom { font-size: 1.25rem; font-weight: 700; line-height: 1.25; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .18em; }
.ac-logo-accroche { color: var(--ac-texte-doux); font-size: .95rem; line-height: 1.35; }
.ac-liste-liens { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
.ac-liste-liens li { margin: 0; }
.ac-liste-liens a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ac-acces-directs { background: var(--ac-fond-teinte); border-top: 1px solid var(--ac-bord-doux); }

/* Menu principal : sans JavaScript, tout est affiché ; avec, des boutons ouvrent les rubriques */
.ac-menu { background: var(--ac-fond-teinte); border-block: 2px solid var(--ac-bord); }
.ac-menu-liste { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: .25rem 0; list-style: none; }
.ac-menu-item { position: relative; margin: 0; }
.ac-menu-lien, .ac-sous-bouton, .ac-sous-titre, .ac-menu-bouton {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 2.9rem; width: 100%; padding: .35rem .75rem;
    background: none; border: 0; color: var(--ac-texte); font: inherit; font-weight: 700; text-align: left;
}
.ac-menu-lien, .ac-menu-lien:visited { color: var(--ac-texte); }
.ac-sous-bouton, .ac-menu-bouton { cursor: pointer; }
.ac-menu-lien:hover, .ac-sous-bouton:hover, .ac-menu-bouton:hover { background: var(--ac-accent); color: var(--ac-sur-accent); }
.ac-sous-bouton::after, .ac-menu-bouton::after { content: ""; flex: none; width: .55em; height: .55em; margin-top: -.2em; border-right: .14em solid currentColor; border-bottom: .14em solid currentColor; transform: rotate(45deg); }
.ac-sous-bouton[aria-expanded="true"]::after, .ac-menu-bouton[aria-expanded="true"]::after { margin-top: .2em; transform: rotate(-135deg); }
.ac-sous-bouton[aria-expanded="true"] { background: var(--ac-accent); color: var(--ac-sur-accent); }
.ac-sous-bouton, .ac-menu-bouton { display: none; }
.ac-sous-menu { margin: 0; padding: 0 0 .5rem .75rem; list-style: none; }
.ac-sous-menu li { margin: 0; }
.ac-sous-menu a { display: flex; align-items: center; min-height: 2.75rem; padding: .3rem .5rem; }
.ac-menu [aria-current="page"] { font-weight: 700; text-decoration-thickness: .16em; }
.ac-js .ac-sous-bouton { display: flex; }
.ac-js .ac-sous-titre { display: none; }
.ac-js .ac-sous-menu { display: none; }
.ac-js .ac-sous-bouton[aria-expanded="true"] ~ .ac-sous-menu { display: block; }

@media (max-width: 63.99em) {
    .ac-js .ac-menu-bouton { display: flex; width: auto; }
    .ac-js .ac-menu-bouton + .ac-menu-liste { display: none; }
    .ac-js .ac-menu-bouton[aria-expanded="true"] + .ac-menu-liste { display: block; }
    .ac-menu-liste { display: block; }
}
html.ac-taille-150 .ac-menu-liste, html.ac-taille-200 .ac-menu-liste { display: block; }
html.ac-taille-150.ac-js .ac-menu-bouton, html.ac-taille-200.ac-js .ac-menu-bouton { display: flex; width: auto; }
html.ac-taille-150.ac-js .ac-menu-bouton + .ac-menu-liste, html.ac-taille-200.ac-js .ac-menu-bouton + .ac-menu-liste { display: none; }
html.ac-taille-150.ac-js .ac-menu-bouton[aria-expanded="true"] + .ac-menu-liste, html.ac-taille-200.ac-js .ac-menu-bouton[aria-expanded="true"] + .ac-menu-liste { display: block; }

@media (min-width: 64em) {
    html:not(.ac-taille-150):not(.ac-taille-200).ac-js .ac-sous-menu {
        position: absolute; z-index: 20; top: 100%; left: 0; min-width: 18rem; max-width: min(26rem, calc(100vw - 2rem)); padding: .5rem;
        background: var(--ac-fond); border: 2px solid var(--ac-bord);
    }
    html:not(.ac-taille-150):not(.ac-taille-200).ac-js .ac-menu-item:nth-last-child(-n+2) .ac-sous-menu { left: auto; right: 0; }
}

/* En-tête de page et fil d'Ariane */
.ac-tete-page, .sg-page-head, .sg-hero, .sg-fiche-hero { padding-block: 2rem; background: var(--ac-fond-teinte); border-bottom: 1px solid var(--ac-bord-doux); }
.ac-tete-page h1 { margin-bottom: .4rem; }
.ac-intro, .sg-lead, .sg-intro { font-size: 1.12rem; }
.ac-ariane ol, .sg-crumbs { display: flex; flex-wrap: wrap; gap: 0 .5rem; margin: 0 0 .75rem; padding: 0; list-style: none; font-size: .95rem; }
.ac-ariane li, .sg-crumbs li { display: inline-flex; align-items: center; min-height: 2.75rem; margin: 0; }
.ac-ariane li:not(:last-child)::after, .sg-crumbs li:not(:last-child)::after { content: "/"; margin-left: .5rem; }
.ac-ariane a, .sg-crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ac-date { margin-bottom: .25rem; color: var(--ac-texte-doux); font-size: .95rem; }
.ac-image-article { display: block; margin-bottom: 1.5rem; }

/* Grilles, cartes, boutons */
.ac-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.ac-grille > li { margin: 0; }
.ac-carte { display: flex; flex-direction: column; background: var(--ac-fond); border: 1px solid var(--ac-bord); }
.ac-carte > img { width: 100%; height: 12rem; object-fit: cover; }
.ac-carte-logo > img { height: 7rem; padding: .75rem; object-fit: contain; background: #fff; }
.ac-carte-corps { padding: 1rem; }
.ac-carte-corps > :last-child { margin-bottom: 0; }
.ac-carte-titre { margin: 0 0 .5rem; font-size: 1.2rem; }
.ac-carte-titre a, .ac-carte-corps > a { display: inline-block; padding-block: .5rem; }
.ac-liste-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; padding: 0; list-style: none; }
.ac-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.ac-actions li { margin: 0; }
.ac-adresse { padding: 1rem; background: var(--ac-fond-teinte); border-left: 6px solid var(--ac-accent); }
.ac-adresse p { margin-bottom: .5rem; }
.ac-adresse-nom { font-size: 1.2rem; font-weight: 700; }
.ac-lien-seul a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ac-plan h2 { margin-top: 0; font-size: 1.2rem; }
.ac-plan ul { padding: 0; list-style: none; }
.ac-plan li { margin: 0; }
.ac-plan a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ac-pagination ul { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.ac-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: .25rem .5rem; border: 1px solid var(--ac-bord); }
.ac-pagination [aria-current="page"] { background: var(--ac-accent); color: var(--ac-sur-accent); font-weight: 700; }

.ac-bouton, .ac-bouton:visited, .sg-btn, .sg-btn:visited, .btn, .btn:visited, input[type="submit"], input[type="button"], .custom-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; max-width: 100%; padding: .4rem 1.1rem;
    background: var(--ac-accent); border: 2px solid var(--ac-accent); border-radius: .25rem; color: var(--ac-sur-accent);
    font: inherit; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: underline; text-underline-offset: .18em; cursor: pointer;
}
.ac-bouton:hover, .sg-btn:hover, .btn:hover, input[type="submit"]:hover { background: var(--ac-accent-survol); border-color: var(--ac-accent-survol); color: var(--ac-sur-accent); }
.ac-bouton-second, .ac-bouton-second:visited, .sg-btn-ghost, .sg-btn-ghost:visited, .sg-btn-line, .sg-btn-line:visited, .btn-outline-primary, .btn-outline-primary:visited { background: var(--ac-fond); color: var(--ac-accent); }
/* la bibliothèque .sg impose du blanc (prévu sur photo sombre) : ici le fond est clair, le texte reprend la palette accessible */
.sg-btn-ghost, .sg-btn-ghost:visited { color: var(--ac-accent) !important; border-color: currentColor !important; }
.sg-hero, .sg-hero h1, .sg-hero h1 em, .sg-hero p, .sg-hero .sg-eyebrow, .sg-hero-copy, .sg-hero-card, .sg-hero-card p,
.sg-cta, .sg-cta h2, .sg-cta p, .sg-card-cta h3, .sg-card-cta p { color: var(--ac-texte) !important; }
.ac-bouton-second:hover, .sg-btn-ghost:hover, .sg-btn-line:hover, .btn-outline-primary:hover { background: var(--ac-accent); color: var(--ac-sur-accent); }

/* Formulaires */
label, .ac-libelle { display: block; margin-bottom: .25rem; font-weight: 700; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]), select, textarea {
    display: block; width: 100%; max-width: 34rem; min-height: 2.75rem; padding: .4rem .6rem; background: var(--ac-fond); border: 2px solid var(--ac-bord); border-radius: .2rem;
    color: var(--ac-texte); font: inherit;
}
select[multiple] { height: auto; min-height: 8rem; }
textarea { max-width: 46rem; }
::placeholder { color: var(--ac-texte-doux); opacity: 1; }
input[type="checkbox"], input[type="radio"] { width: 1.3rem; height: 1.3rem; accent-color: var(--ac-accent); }
.ac-champ { margin-bottom: 1.1rem; }
.ac-champ-case { display: flex; align-items: flex-start; gap: .6rem; min-height: 2.75rem; }
.ac-champ-case input { flex: none; margin: .25rem 0 0; }
.ac-champ-case label { margin: 0; font-weight: 400; }
.ac-champ-case .ac-erreur { flex-basis: 100%; }
.ac-requis { font-weight: 400; }
.ac-aide, .ac-aide-formulaire { color: var(--ac-texte-doux); font-size: .95rem; }
.ac-erreur, .ac-erreur p { margin: 0 0 .25rem; color: var(--ac-erreur); font-weight: 700; }
.ac-champ-erreur input, .ac-champ-erreur select, .ac-champ-erreur textarea { border-color: var(--ac-erreur) !important; border-width: 3px !important; }
.ac-message { margin-bottom: 1.25rem; padding: .75rem 1rem; border-left: 6px solid; font-weight: 700; }
.ac-message p:last-child { margin: 0; }
.ac-message-erreur { background: var(--ac-erreur-fond); border-color: var(--ac-erreur); color: var(--ac-erreur); }
.ac-message-succes { background: var(--ac-succes-fond); border-color: var(--ac-succes); color: var(--ac-succes); }
.ac-recherche { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.ac-recherche label { flex-basis: 100%; margin: 0; }
.ac-recherche input { flex: 1 1 14rem; width: auto; }
.ac-formulaire-recherche { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 0 1.5rem; }
.ac-formulaire-actions { grid-column: 1 / -1; margin: 0; }
.ac-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.g-recaptcha { max-width: 100%; overflow-x: auto; }
@media (min-width: 64em) { html:not(.ac-taille-150):not(.ac-taille-200) .ac-contact:has(> address) { grid-template-columns: 20rem minmax(0, 1fr); align-items: start; } }

/* Questions fréquentes et détails : un chevron dit si le contenu est plié ou déplié */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; display: inline-block; flex: none; width: .55em; height: .55em; margin: 0 .2em .15em .6em; border-right: .14em solid currentColor; border-bottom: .14em solid currentColor; transform: rotate(45deg); }
details[open] > summary::after { margin-bottom: -.1em; transform: rotate(-135deg); }
.ac-faq-filtre { margin-bottom: 1.5rem; }
.ac-faq-compte { margin: .4rem 0 0; color: var(--ac-texte-doux); }
.ac-faq-item, details.sg-faq, .sg-faq details { margin-bottom: .6rem; border: 1px solid var(--ac-bord); }
summary { min-height: 2.75rem; cursor: pointer; }
.ac-faq-item summary, .sg-faq summary { display: block; padding: .6rem 1rem; font-weight: 700; }
.ac-faq-reponse { padding: .25rem 1rem .75rem; }
.ac-faq-reponse > :last-child { margin-bottom: 0; }
.ac-carte-corps details summary { padding-block: .5rem; font-weight: 700; }

/* Tableaux */
.ac-tableau { max-width: 100%; margin-bottom: 1.25rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
caption { margin-bottom: .4rem; font-weight: 700; text-align: left; }
th, td { padding: .5rem .7rem; border: 1px solid var(--ac-bord); text-align: left; vertical-align: top; }
th { background: var(--ac-fond-teinte); font-weight: 700; }

/* Pied de page */
.ac-pied { margin-top: 2.5rem; background: var(--ac-bande); color: var(--ac-sur-bande); }
.ac-pied a, .ac-pied a:visited, .ac-pied a:hover { color: var(--ac-sur-bande); }
.ac-pied-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 2rem; padding-block: 2rem; }
.ac-pied-nom { margin-bottom: .4rem; font-size: 1.15rem; font-weight: 700; }
.ac-pied-descr > :last-child { margin-bottom: 0; }
.ac-pied-titre { margin: 0 0 .4rem; color: var(--ac-sur-bande); font-size: 1.05rem; }
.ac-pied-colonne ul, .ac-pied-liens ul { margin: 0; padding: 0; list-style: none; }
.ac-pied-colonne li, .ac-pied-liens li { margin: 0; }
.ac-pied-colonne li a, .ac-pied-liens a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ac-pied-descr a { display: inline-block; padding-block: .55rem; }
.ac-pied a:focus { background: var(--ac-focus); color: #000; }
.ac-pied-boutons { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; margin-top: .75rem; }
.ac-pied .ac-bouton, .ac-pied .ac-bouton:visited { background: var(--ac-sur-bande); border-color: var(--ac-sur-bande); color: var(--ac-bande); }
.ac-pied .ac-bouton:hover { background: var(--ac-fond-teinte); color: var(--ac-bande); }
.ac-pied-bas { border-top: 1px solid var(--ac-bord-doux); padding-block: .4rem; }
.ac-pied-liens ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
html.ac-contraste-blanc .ac-pied { border-top: 2px solid var(--ac-bord); }
html.ac-contraste-blanc .ac-bouton:hover, html.ac-contraste-blanc .sg-btn:hover { background: var(--ac-fond); color: var(--ac-texte); border-color: var(--ac-texte); }

/* Contenu saisi dans l'éditeur : les couleurs, polices et fonds propres à une page cèdent devant la palette du thème */
.ac-contenu [style*="color"], .ac-contenu font[color] { color: inherit !important; }
.ac-contenu [style*="background"], .ac-contenu [bgcolor] { background: none !important; }
.ac-contenu [style*="font-size"], .ac-contenu font[size] { font-size: inherit !important; }
.ac-contenu [style*="font-family"], .ac-contenu font[face] { font-family: inherit !important; }
.ac-contenu [style*="text-align"], .ac-contenu [align] { text-align: left !important; }
.ac-contenu [style*="italic"] { font-style: normal !important; }
.ac-contenu [style*="underline"]:not(a) { text-decoration: none !important; }
.ac-contenu [style*="uppercase"] { text-transform: none !important; }
.ac-contenu p, .ac-contenu li, .ac-contenu dd, .ac-contenu blockquote { max-width: 60ch; }
.ac-contenu a[style*="color"] { color: var(--ac-lien) !important; }
.ac-contenu a.sg-btn[style*="color"], .ac-contenu a.btn[style*="color"] { color: var(--ac-sur-accent) !important; }
.ac-contenu [style*="width"]:not(img):not(iframe) { max-width: 100% !important; }
.ac-contenu [style*="height"]:not(img):not(iframe) { height: auto !important; }

/* Composants .sg-* des pages : mêmes contenus, présentation unique et sobre, quelle que soit la feuille du site */
.sg-wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
.sg-section, .sg-block, .sg-band, .sg-cta, .sg-module { padding-block: 1.5rem; }
.sg-section:nth-of-type(even), .sg-band { background: var(--ac-fond-teinte); }
.sg-head-center { text-align: left; }
.sg-eyebrow, .sg-level, .sg-tag, .sg-tag-inline { display: block; margin-bottom: .25rem; background: none; color: var(--ac-texte-doux); font-size: .95rem; font-weight: 700; }
.sg-tag { position: static; padding: .4rem 1rem 0; }
.sg-eyebrow + h1, .sg-eyebrow + h2, .sg-eyebrow + h3 { margin-top: .1rem; }
h1 em, h2 em, h3 em { font-style: normal; }
.sg-hero .sg-wrap, .sg-fiche-hero-grid, .sg-split, .sg-media-text, .sg-agenda-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; align-items: start; }
.sg-hero-copy h1 { margin-top: .25rem; }
.sg-hero-actions, .sg-actions, .sg-contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.sg-cards, .sg-features, .sg-figures, .sg-facts-grid, .sg-stats, .sg-info-grid, .sg-infos, .sg-formations-grid, .sg-news, .sg-members, .sg-results, .sg-labels-row, .sg-trio, .sg-cols, .sg-docs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; margin: 0 0 1rem; padding: 0; list-style: none;
}
.sg-card, .sg-card:visited, .sg-event, .sg-event:visited, .sg-news-card, .sg-news-card:visited, .sg-hero-card, .sg-hero-card:visited, .sg-feature, .sg-figure, .sg-fact, .sg-stat, .sg-member, .sg-info, .sg-aside-card, .sg-panel, .sg-doc, .sg-doc:visited {
    display: block; padding: 1rem; background: var(--ac-fond); border: 1px solid var(--ac-bord); color: var(--ac-texte); text-decoration: none;
}
.sg-card, .sg-event { padding: 0; }
.sg-card:hover, .sg-event:hover, .sg-news-card:hover, .sg-hero-card:hover, .sg-doc:hover { color: var(--ac-texte); border-color: var(--ac-texte); box-shadow: inset 0 0 0 1px var(--ac-texte); }
.sg-card-img img, .sg-event-img img { display: block; width: 100%; height: 11rem; object-fit: cover; }
.sg-card-img, .sg-event-img { display: block; position: relative; }
.sg-card-body, .sg-event-body { display: block; padding: 1rem; }
.sg-event-body > * { display: block; }
.sg-card h3, .sg-card h2, .sg-event strong, .sg-news-card h3, .sg-hero-card h2 { margin: .1rem 0 .4rem; color: var(--ac-lien); font-size: 1.2rem; text-decoration: underline; text-underline-offset: .18em; }
.sg-more { display: block; margin-top: .4rem; color: var(--ac-lien); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.sg-date { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.sg-date-box { display: inline-flex; flex-wrap: wrap; gap: 0 .3em; align-items: baseline; max-width: 100%; padding: .15rem .5rem; background: var(--ac-fond); border: 1px solid var(--ac-bord); color: var(--ac-texte); font-weight: 700; }
.sg-date-box strong { font-size: 1em; color: inherit; text-decoration: none; }
.sg-date-box b, .sg-date-box small { font-size: 1em; }
.sg-event-img .sg-date-box { position: static; display: flex; }
.sg-figure strong, .sg-fact strong, .sg-stat strong { display: block; font-size: 1.6rem; line-height: 1.2; }
.sg-figure span, .sg-fact span, .sg-stat span { display: block; }
.sg-fact { display: flex; gap: .75rem; align-items: center; }
.sg-fact img, .sg-picto-ring img, .sg-feature > img, .sg-labels img { width: 3rem; height: 3rem; object-fit: contain; }
.sg-picto-ring { display: inline-block; padding: .25rem; background: #fff; }
.sg-fact img { flex: none; padding: .2rem; background: #fff; }
.sg-labels img, .sg-labels-row img { width: auto; height: 4rem; padding: .25rem; background: #fff; }
.sg-callout, .sg-aside-quote, .sg-quote { margin-block: 1rem; padding: .75rem 1rem; background: var(--ac-fond-teinte); border-left: 6px solid var(--ac-accent); }
.sg-callout > :first-child, .sg-quote > :first-child { margin-top: 0; }
.sg-callout > :last-child, .sg-quote > :last-child { margin-bottom: 0; }
.sg-timeline, .sg-rythme { margin: 0; padding: 0; list-style: none; }
.sg-timeline li { display: grid; grid-template-columns: minmax(3.5rem, auto) minmax(0, 1fr); gap: .25rem 1rem; padding-block: .6rem; border-bottom: 1px solid var(--ac-bord-doux); }
.sg-timeline li > div > * { display: block; }
.sg-checks { padding-left: 1.4em; }
.sg-chips, .sg-filters { display: flex; flex-wrap: wrap; gap: .4rem .75rem; margin-block: .75rem; padding: 0; list-style: none; }
.sg-filter, .sg-chips > * { margin: 0; padding: .1rem .5rem; border: 1px solid var(--ac-bord); font-size: .95rem; }
.sg-filter i { display: none; }
.sg-table-wrap { max-width: 100%; overflow-x: auto; }
.sg-embed iframe { width: 100%; min-height: 20rem; }
.sg-contact-bar { display: flex; flex-wrap: wrap; gap: 1rem; padding-block: 1rem; }
.sg-back { display: inline-block; padding-block: .55rem; }
.sg-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; align-items: center; margin-block: 1.5rem; padding: 1.25rem; background: var(--ac-fond-teinte); border: 1px solid var(--ac-bord); }
.sg-cta h2 { margin-top: 0; }
.sg-cta > div > :last-child { margin-bottom: 0; }
.sg-page-head .sg-wrap > :last-child, .sg-hero-copy > :last-child { margin-bottom: 0; }
.sg-prose > p, .sg-prose > ul, .sg-prose > ol, .sg-prose > blockquote { max-width: 60ch; }
.sg-chips li > span::after, .sg-keys li > span::after { content: " : "; }
.sg-chips li > span { font-weight: 700; }
.sg-keys { margin: 0; padding: 0; list-style: none; }
.sg-keys li { margin: 0; padding-block: .35rem; border-bottom: 1px solid var(--ac-bord-doux); }
.sg-fiche-hero-img { margin: 0; }
.sg-fiche-hero-img img { display: block; width: 100%; }
.sg-fiche-hero-img figcaption { margin-top: .4rem; }
figcaption strong::after { content: " "; }
.sg-modules, .sg-prices, .sg-team, .sg-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.sg-module, .sg-price, .sg-quotes > * { padding: .75rem 1rem; background: var(--ac-fond); border: 1px solid var(--ac-bord); }
.sg-module strong, .sg-module span, .sg-member > div > * { display: block; }
.sg-avatar, .sg-stat-bar, .sg-legend i { display: none; }
.sg-aside > * + * { margin-top: 1rem; }
.sg-aside-card > :first-child { margin-top: 0; }
.sg-aside-card > :last-child { margin-bottom: 0; }
.sg-aside-quote blockquote { margin: 0 0 .5rem; }
.sg-aside-quote figcaption span:not(.sg-avatar), .sg-quote figcaption span:not(.sg-avatar) { display: block; }
.sg-doc small { display: block; }
.sg-price strong { display: block; font-size: 1.3rem; }
.sg-price small, .sg-figure small { font-size: 1em; }
.sg-price p:last-child { margin-bottom: 0; }
.sg-steps li strong { display: block; }
.sg-rythme-head h3 { margin-top: 1rem; }
.sg-legend { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0; list-style: none; }
.sg-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: .4rem; margin-bottom: 1rem; }
.sg-weeks span { padding: .15rem .5rem; border: 1px solid var(--ac-bord); }
.sg-weeks .sg-w-mfr::after { content: " : à la MFR"; }
.sg-weeks .sg-w-ent::after { content: " : en stage"; }
.sg-weeks .sg-w-vac::after { content: " : vacances"; }
.sg-weeks .sg-w-mfr { background: var(--ac-accent); border-color: var(--ac-accent); color: var(--ac-sur-accent); }
.sg-rythme-foot { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.sg-rythme-foot span strong::after { content: " "; }
.sg-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.sg-gallery figure { margin: 0; }
.sg-gallery img { display: block; width: 100%; height: 12rem; object-fit: cover; }
.sg-gallery figcaption { margin-top: .3rem; font-size: .95rem; }
.sg-contact-bar { align-items: center; }
@media (min-width: 64em) {
    html:not(.ac-taille-150):not(.ac-taille-200) .sg-fiche-body-aside { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 2.5rem; align-items: start; padding-block: 1.5rem; }
}
.ac-page-composants * { min-width: 0; }
.ac-contenu li > a:only-child { display: inline-block; padding-block: .45rem; }

/* Classes Bootstrap courantes dans les contenus et les gabarits communs (cette feuille remplace Bootstrap) */
.container, .container-fluid { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.row > [class*="col"] { flex: 1 1 16rem; min-width: 0; }
.col-12, .row > .col-12 { flex-basis: 100%; }
.card { background: var(--ac-fond); border: 1px solid var(--ac-bord); padding: 1rem; }
.img-fluid { max-width: 100%; height: auto; }
.text-center { text-align: left; }
.d-none { display: none; }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.alert { padding: .75rem 1rem; border: 1px solid var(--ac-bord); border-left-width: 6px; }
.badge { font-weight: 700; }

/* Accès rapide : sur petit écran, il n'apparaît qu'au clavier */
@media (max-width: 47.99em) {
    .ac-evitement:not(:focus-within) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .ac-outils-cadre { justify-content: space-between; }
    h1 { font-size: 1.75rem; }
    .ac-section { padding-block: 1.5rem; }
    .ac-logo img { height: 3.4rem; }
    .ac-liste-liens, .ac-pied-liens ul { gap: 0 1rem; }
}

/* Couleurs forcées (contraste élevé du système) */
@media (forced-colors: active) {
    :focus-visible, a:focus, button:focus, input:focus, select:focus, textarea:focus { outline: 3px solid Highlight; }
    .ac-menu-lien:hover, .ac-sous-bouton:hover, .ac-sous-bouton[aria-expanded="true"] { forced-color-adjust: auto; }
}

@media print {
    .ac-outils, .ac-menu { display: none; }
    .ac-pied { background: none; color: #000; }
    a[target="_blank"]::after { content: ""; }
}

/* Qualiopi (En-tête > Qualiopi) : logo et mention lisibles, à droite de l'en-tête */
.ac-entete-qualiopi { flex: 0 1 auto; }
.ac-entete-qualiopi .wm-qualiopi { width: auto; max-width: 320px; font-size: .85rem; line-height: 1.35; color: var(--ac-texte) !important; }

/* En-tête sur téléphone (< 48em) : logo et nom sur une rangée, liens utiles en grille de cibles de 2,75rem,
   Qualiopi en haut du pied de page (voir docs/QUALIOPI.md). Les unités relatives suivent les tailles de texte choisies. */
@media (max-width: 47.99em) {
    .ac-entete-cadre { gap: .5rem 1rem; padding-block: .75rem; }
    .ac-logo, .ac-logo:visited, .ac-logo:hover { flex-wrap: nowrap; gap: .75rem; }
    .ac-logo img { flex: none; height: 3rem; }
    .ac-logo-nom { font-size: 1.1rem; }
    .ac-logo-accroche { font-size: .88rem; }
    .ac-liens-entete { width: 100%; }
    .ac-liens-entete .ac-liste-liens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: 0 1rem; }
}

/* Pas d'ornement dans la version accessible : les décors en pseudo-éléments de la bibliothèque (cadres décalés derrière les
   images, formes des résultats) n'apportent rien et dépassaient du bord de l'écran sur téléphone */
.sg-results::before, .sg-results::after, .sg-split-media::before, .sg-fiche-hero-img::before { display: none !important; }

/* La bibliothèque .sg et la CSS du site imposent du blanc (prévu sur photo sombre) avec des sélecteurs précis : ici les fonds sont
   clairs, le texte reprend la palette accessible (sélecteurs plus précis encore, html body.wm-theme-accessible …) */
html body.wm-theme-accessible :is(.sg-home, .sg-page, main, body) .sg-hero :is(h1, h1 em, h2, p, .sg-eyebrow, span, strong),
html body.wm-theme-accessible :is(.sg-home, .sg-page, main, body) :is(.sg-hero, .sg-hero-card, .sg-hero-card p, .sg-hero-copy) { color: var(--ac-texte) !important; }
html body.wm-theme-accessible :is(.sg-home, .sg-page, main, body) a.sg-btn-ghost { color: var(--ac-accent) !important; border-color: currentColor !important; background: var(--ac-fond) !important; }

/* surtitres : doré assombri, lisible sur les fonds crème (la valeur de la bibliothèque, #a8741a, ne faisait que 3,8:1) */
body.wm-theme-accessible { --sg-ambre: #7a5312; }
/* carte d'appel (sombre dans la bibliothèque) : fond clair et texte de la palette accessible */
html body.wm-theme-accessible :is(.sg-home, .sg-page, main, body) .sg-card-cta { background: var(--ac-fond) !important; border: 1px solid var(--ac-bord) !important; }
html body.wm-theme-accessible :is(.sg-home, .sg-page, main, body) .sg-card-cta :is(h3, p, .sg-level, .sg-more, span) { color: var(--ac-texte) !important; }
/* pastilles posées sur les images (chiffres) : texte et fond de la palette accessible */
html body.wm-theme-accessible :is(.sg-home, .sg-page, main, body) .sg-badge-float, html body.wm-theme-accessible :is(.sg-home, .sg-page, main, body) .sg-badge-float :is(strong, span) { color: var(--ac-texte) !important; background-color: var(--ac-fond) !important; }

/* chiffres des composants : la police du visiteur (la bibliothèque demande Roboto Slab, non chargée ici : repli Georgia) */
html body.wm-theme-accessible :is(.sg-fact, .sg-stat, .sg-badge-float, .sg-results) strong { font-family: inherit !important; }
/* fin d'une actualité : rubriques, partage, retour (News/Default/view.html.twig) */
/* Page des actualités : rubriques en liens texte ; la rubrique affichée est en gras, soulignée d'un trait épais */
.ac-rubriques { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1.5rem; margin: 0 0 1.5rem; scroll-margin-top: 1rem; }
.ac-rubriques p { margin: 0; font-weight: 700; }
.ac-rubriques ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.ac-rubriques li { margin: 0; }
.ac-rubriques a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ac-rubriques a[aria-current] { color: var(--ac-texte); font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .3em; }
.ac-pages { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1.5rem; margin: 2rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--ac-texte); }
.ac-pages p { margin: 0; font-weight: 700; }
.ac-pages ul { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.ac-pages li { margin: 0; }
.ac-pages a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ac-fin-article { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid currentColor; }
.ac-fin-article p { margin: 0 0 .75rem; }
.ac-tete-page .ac-date { margin: .75rem 0 1.25rem; }
.ac-fin-article a { white-space: nowrap; }
