/*
 * Styles spécifiques communs à l’AFCR.
 * Privilégier les classes natives de Bootstrap lorsque cela est possible.
 * Les couleurs spécifiques sont centralisées dans la palette ci-dessous.
 * Conserver l’ordre des règles de composants et de leurs variantes.
 *
 * SOMMAIRE
 * 01 — Charte graphique et palette
 * 02 — Utilitaires de couleurs
 * 03 — Utilitaires complémentaires
 * 04 — Boutons Bootstrap et téléchargement PDF
 * 05 — Navigation
 * 06 — Présentation des parcours et tarifs
 * 07 — Pages de formation et variantes Élite
 * 08 — Sélecteurs de formations
 * 09 — Formulaires de contact et d’inscription
 * 10 — Pages légales et impression
 * 11 — FAQ
 */

/* 01 — Charte graphique et palette. */
:root,
[data-bs-theme="light"] {
    --bs-info: #31136C;
    --bs-info-rgb: 49, 19, 108;
    --bs-info-text-emphasis: #14082B;
    --bs-info-bg-subtle: #D6D0E2;
    --bs-info-border-subtle: #ADA1C4;
    --bs-dark: #120D36;
    --bs-dark-rgb: 18, 13, 54;
    --bs-dark-text-emphasis: #070516;
    --bs-dark-bg-subtle: #D0CFD7;
    --bs-dark-border-subtle: #A09EAF;
    --bs-secondary: #FF00FF;
    --bs-secondary-rgb: 255, 0, 255;
    /* Palette spécifique de l’AFCR. */
    --afcr-fuchsia-fonce: #A000A0;
    --afcr-fuchsia-soutenu: #D000D0;
    --afcr-turquoise-fonce: #007D99;
    --afcr-bleu-tres-clair: #DCE9F7;
    --afcr-rose-clair: #FF99FF;
    --afcr-fuchsia-lumineux: #FF33FF;
    --afcr-vert-pale: var(--bs-success-bg-subtle);
    --afcr-rose-intermediaire: #FF66FF;
    --afcr-bleu-pale: #E8F3FE;
    --afcr-turquoise-pale: #EAF8FC;
    --afcr-bleu-profond: #103D77;
    --afcr-rose-pale: #FFF4FC;
    --afcr-rose-soutenu: #DB62DB;
    --afcr-vert-tres-pale: #EAF6EF;
    --afcr-vert-doux: #E6F1ED;
    --afcr-violet-menu-rgb: 35, 0, 66;
    --afcr-violet-menu: rgb(var(--afcr-violet-menu-rgb));
    --afcr-turquoise-clair: #BCECF5;
    --afcr-bleu-intermediaire: #41658F;
    --afcr-rose-doux: #F0C9EC;
    --afcr-bleu-grise: #9EB8D5;
    --afcr-bleu-pdf-actif: #041F49;
    --afcr-encre-parcours: #15152D;
    --afcr-fuchsia-surtitre: #B000AF;
    --afcr-bleu-nuit-parcours: #101036;
    --afcr-fuchsia-sombre: #8B008B;
    --afcr-fuchsia-survol: #D900D9;
    --afcr-turquoise-pictogramme: #167B98;
    --afcr-turquoise-tres-pale: #E5F8FC;
    --afcr-bleu-encadre: #F4F8FB;
    --afcr-gris-note: #575C67;
    --afcr-fuchsia-survol-elite: #B800B8;
    --afcr-turquoise-selection: #00B7DB;
    --afcr-violet-selection-inactive: #302746;
    --afcr-encre-selection: #071526;
    --afcr-violet-focus-rgb: 124, 58, 147;
    --afcr-violet-focus: rgb(var(--afcr-violet-focus-rgb));
    --afcr-violet-pictogramme: #5C1877;
    --afcr-violet-tres-pale: #F5EAFA;
    --afcr-fuchsia-survol-formulaire: #B900B9;
    --afcr-rose-confirmation: #FFD9FF;
    --afcr-fuchsia-confirmation: #6A006A;
    --afcr-onglets: #E8EDF5;
    --afcr-onglets-survol: #D2DCEB;
    --afcr-bordure-invalide: #FF8A8A;
    --afcr-texte-invalide: #FFC6C6;
    --afcr-rouge-erreur: #B02A37;
    --afcr-rouge-erreur-sombre: #842029;
    --afcr-fond-cgv: #F8F7FB;
    --afcr-fond-rgpd: #F7F5FA;
    --afcr-encre-juridique: #292929;
    --afcr-violet-sous-titre: #4B165F;
    --afcr-fond-retractation: #FAF9FC;
    --afcr-violet-lien: #70117F;
    --afcr-fuchsia-lien-survol: #B000B9;
    --afcr-gris-mise-a-jour: #6C6C6C;
    --afcr-gris-retractation: #5B5B5B;
    /* Nuances des boutons et fonds de pictogrammes. */
    --afcr-info-survol: #2A105C;
    --afcr-info-actif: #270F56;
    --afcr-info-bordure-active: #250E51;
    --afcr-dark-survol: #0F0B2E;
    --afcr-dark-actif: #0E0A2B;
    --afcr-dark-bordure-active: #0E0A29;
    --afcr-turquoise-icone: #CCEFF7;
    --afcr-info-focus-rgb: 224, 220, 233;
    --afcr-dark-focus-rgb: 219, 219, 225;
}

/* 02 — Utilitaires de couleurs. */
.bg-afcr-icon-primary-light {
    background-color: rgba(var(--bs-primary-rgb), .2);
}

.afcr-icon-turquoise {
    background-color: var(--afcr-turquoise-icone);
    color: var(--afcr-turquoise-fonce);
}

.bg-afcr-icon-rose {
    background-color: var(--afcr-rose-soutenu);
}

.text-afcr-fuchsia-fonce {
    color: var(--afcr-fuchsia-fonce) !important;
}

.text-afcr-fuchsia-soutenu {
    color: var(--afcr-fuchsia-soutenu) !important;
}

.text-afcr-turquoise-fonce {
    color: var(--afcr-turquoise-fonce) !important;
}

.text-afcr-bleu-tres-clair {
    color: var(--afcr-bleu-tres-clair) !important;
}

.text-afcr-rose-clair {
    color: var(--afcr-rose-clair) !important;
}

.text-afcr-fuchsia-lumineux {
    color: var(--afcr-fuchsia-lumineux) !important;
}

.text-afcr-vert-pale {
    color: var(--afcr-vert-pale) !important;
}

.text-afcr-rose-intermediaire {
    color: var(--afcr-rose-intermediaire) !important;
}

/* Valeur initiale de la couleur : conserver le comportement du navigateur. */
.afcr-text-initial {
    color: initial !important;
}

.bg-afcr-bleu-pale {
    background-color: var(--afcr-bleu-pale) !important;
}

.bg-afcr-fuchsia-soutenu {
    background-color: var(--afcr-fuchsia-soutenu) !important;
}

.bg-afcr-turquoise-pale {
    background-color: var(--afcr-turquoise-pale) !important;
}

.bg-afcr-fuchsia-fonce {
    background-color: var(--afcr-fuchsia-fonce) !important;
}

.bg-afcr-bleu-profond {
    background-color: var(--afcr-bleu-profond) !important;
}

.bg-afcr-rose-pale {
    background-color: var(--afcr-rose-pale) !important;
}

.bg-afcr-rose-soutenu {
    background-color: var(--afcr-rose-soutenu) !important;
}

.bg-afcr-vert-tres-pale {
    background-color: var(--afcr-vert-tres-pale) !important;
}

.bg-afcr-vert-doux {
    background-color: var(--afcr-vert-doux) !important;
}

/* Nuances Bootstrap sans utilitaire de fond natif. */
.bg-afcr-primary-emphasis {
    background-color: var(--bs-primary-text-emphasis) !important;
}

.bg-afcr-tertiary-color {
    background-color: var(--bs-tertiary-color) !important;
}

.border-afcr-turquoise-clair {
    border-color: var(--afcr-turquoise-clair) !important;
}

.border-afcr-bleu-intermediaire {
    border-color: var(--afcr-bleu-intermediaire) !important;
}

.border-afcr-fuchsia-fonce {
    border-color: var(--afcr-fuchsia-fonce) !important;
}

.border-afcr-rose-doux {
    border-color: var(--afcr-rose-doux) !important;
}

.border-afcr-primary-emphasis {
    border-color: var(--bs-primary-text-emphasis) !important;
}

.border-afcr-bleu-grise {
    border-color: var(--afcr-bleu-grise) !important;
}

/* 03 — Utilitaires complémentaires. */
.afcr-icon-sm {
    width: 1.5rem;
    height: 1.5rem;
}

.afcr-icon-lg {
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
}

.afcr-icon-glyph-lg {
    font-size: 36px;
}

.afcr-icon-glyph-xl {
    font-size: 45px;
}

.afcr-text-justify {
    text-align: justify !important;
    hyphens: auto;
}

.afcr-select-custom {
    background-image: none;
    cursor: pointer;
}

/* 04 — Boutons Bootstrap et téléchargement PDF. */
.btn-info {
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bs-info);
    --bs-btn-border-color: var(--bs-info);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: var(--afcr-info-survol);
    --bs-btn-hover-border-color: var(--afcr-info-actif);
    --bs-btn-focus-shadow-rgb: var(--afcr-info-focus-rgb);
    --bs-btn-active-color: var(--bs-white);
    --bs-btn-active-bg: var(--afcr-info-actif);
    --bs-btn-active-border-color: var(--afcr-info-bordure-active);
    --bs-btn-disabled-color: var(--bs-white);
    --bs-btn-disabled-bg: var(--bs-info);
    --bs-btn-disabled-border-color: var(--bs-info);
}

.btn-outline-info {
    --bs-btn-color: var(--bs-info);
    --bs-btn-border-color: var(--bs-info);
    --bs-btn-focus-shadow-rgb: var(--bs-info-rgb);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: var(--bs-info);
    --bs-btn-hover-border-color: var(--bs-info);
    --bs-btn-active-color: var(--bs-white);
    --bs-btn-active-bg: var(--bs-info);
    --bs-btn-active-border-color: var(--bs-info);
    --bs-btn-disabled-color: var(--bs-info);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--bs-info);
}

.btn-dark {
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bs-dark);
    --bs-btn-border-color: var(--bs-dark);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: var(--afcr-dark-survol);
    --bs-btn-hover-border-color: var(--afcr-dark-actif);
    --bs-btn-focus-shadow-rgb: var(--afcr-dark-focus-rgb);
    --bs-btn-active-color: var(--bs-white);
    --bs-btn-active-bg: var(--afcr-dark-actif);
    --bs-btn-active-border-color: var(--afcr-dark-bordure-active);
    --bs-btn-disabled-color: var(--bs-white);
    --bs-btn-disabled-bg: var(--bs-dark);
    --bs-btn-disabled-border-color: var(--bs-dark);
}

.btn-outline-dark {
    --bs-btn-color: var(--bs-dark);
    --bs-btn-border-color: var(--bs-dark);
    --bs-btn-focus-shadow-rgb: var(--bs-dark-rgb);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: var(--bs-dark);
    --bs-btn-hover-border-color: var(--bs-dark);
    --bs-btn-active-color: var(--bs-white);
    --bs-btn-active-bg: var(--bs-dark);
    --bs-btn-active-border-color: var(--bs-dark);
    --bs-btn-disabled-color: var(--bs-dark);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--bs-dark);
}

.btn-afcr-pdf {
    --bs-btn-bg: var(--bs-primary-text-emphasis);
    --bs-btn-border-color: var(--bs-primary-text-emphasis);
    --bs-btn-hover-bg: var(--afcr-bleu-pdf-actif);
    --bs-btn-hover-border-color: var(--afcr-bleu-pdf-actif);
    --bs-btn-active-bg: var(--afcr-bleu-pdf-actif);
    --bs-btn-active-border-color: var(--afcr-bleu-pdf-actif);
}

/* 05 — Navigation. */
.bg-afcr-degrade-menu {
    background: linear-gradient(90deg, black, var(--afcr-violet-menu)), var(--afcr-violet-menu) !important;
}

/* 06 — Présentation des parcours et tarifs. */
/* Styles de présentation et des tarifs (grille Bootstrap 7/5 sur ordinateur). */
/* Une seule grande carte bleu très pâle abrite les deux colonnes et fait ressortir la fiche tarifaire blanche. */
:where(body.afcr-page-parcours) .afcr-carte-parcours-principale {
    border-color: var(--bs-border-color-translucent) !important;
}

:where(body.afcr-page-parcours) .afcr-texte-parcours {
    color: var(--afcr-encre-parcours);
}

:where(body.afcr-page-parcours) .afcr-texte-parcours .afcr-surtitre-parcours {
    color: var(--afcr-fuchsia-surtitre);
    font-size: .92rem;
    letter-spacing: .055em;
}

:where(body.afcr-page-parcours) .afcr-texte-parcours h2 {
    color: var(--afcr-bleu-nuit-parcours);
    font-size: clamp(1.65rem, 2.35vw, 2.15rem);
    line-height: 1.22;
}

:where(body.afcr-page-parcours) .afcr-texte-parcours h3 {
    color: var(--afcr-bleu-nuit-parcours);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: .9rem;
}

:where(body.afcr-page-parcours) .afcr-texte-parcours .afcr-surtitre-intermediaire {
    margin-top: 2rem;
}

:where(body.afcr-page-parcours) .afcr-texte-parcours p {
    line-height: 1.75;
    margin-bottom: 1rem;
    text-align: justify;
    hyphens: auto;
}

:where(body.afcr-page-parcours) .afcr-texte-parcours .afcr-introduction-parcours {
    font-size: 1.095rem;
}

:where(body.afcr-page-parcours) .afcr-publics-parcours {
    margin-bottom: 1.25rem;
}

:where(body.afcr-page-parcours) .afcr-publics-parcours li {
    line-height: 1.65;
    margin-bottom: .7rem;
}

@media (max-width: 575.98px) {
    :where(body.afcr-page-parcours) .afcr-texte-parcours p {
        text-align: left;
    }
}

/* 07 — Pages de formation et variantes Élite. */
:where(body.afcr-page-formation) .afcr-eyebrow {
    color: var(--afcr-fuchsia-sombre);
    letter-spacing: .08em;
}

:where(body.afcr-page-formation) .afcr-hero .afcr-eyebrow,
:where(body.afcr-page-formation) .afcr-cta .afcr-eyebrow,
:where(body.afcr-page-formation) .afcr-dark-panel .afcr-eyebrow {
    color: var(--afcr-rose-intermediaire);
}

:where(body.afcr-page-formation) .afcr-stat {
    box-shadow: 0 .4rem 1.2rem rgba(var(--bs-dark-rgb), .09);
}

:where(body.afcr-page-formation) .afcr-stat strong {
    font-size: 1.65rem;
}

/* Les titres des FAQ sont partagés avec d’autres pages. */
:where(body.afcr-page-formation) .afcr-section-title {
    color: var(--bs-dark);
}

:where(body.afcr-page-formation) .afcr-module {
    border: 1px solid rgba(var(--bs-dark-rgb), .12);
}

:where(body.afcr-page-formation) .afcr-module .accordion-button:not(.collapsed) {
    color: var(--bs-white);
    background: var(--bs-dark);
    box-shadow: none;
}

:where(body.afcr-page-formation) .afcr-module .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

:where(body.afcr-page-formation) .afcr-module .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

:where(body.afcr-page-formation) .afcr-pdf {
    border: 1px solid rgba(var(--bs-info-rgb), .2);
}

:where(body.afcr-page-formation) .afcr-anchor {
    scroll-margin-top: 90px;
}

:where(body.afcr-page-formation) .btn-afcr-secondary {
    background: var(--afcr-fuchsia-soutenu);
    border-color: var(--afcr-fuchsia-soutenu);
    color: var(--bs-white);
}

:where(body.afcr-page-formation) .btn-afcr-secondary:hover {
    background: var(--afcr-fuchsia-survol);
    border-color: var(--afcr-fuchsia-survol);
    color: var(--bs-white);
}

@media (max-width: 767.98px) {
    :where(body.afcr-page-formation) .afcr-hero .btn {
        width: 100%;
        margin-bottom: .65rem;
    }
}

/* Variantes propres à Correcteur d’élite. */
.text-afcr-turquoise-pictogramme {
    color: var(--afcr-turquoise-pictogramme) !important;
}

.bg-afcr-turquoise-tres-pale {
    background-color: var(--afcr-turquoise-tres-pale) !important;
}

.bg-afcr-bleu-encadre {
    background-color: var(--afcr-bleu-encadre) !important;
}

.text-afcr-gris-note {
    color: var(--afcr-gris-note) !important;
}

:where(body.afcr-page-formation-elite) .afcr-stat strong {
    font-size: clamp(1.17rem, 1.8vw, 1.65rem);
    line-height: 1.25;
    margin-bottom: .4rem;
}

:where(body.afcr-page-formation-elite) .afcr-domain-card {
    border: 1px solid rgba(var(--bs-dark-rgb), .10);
    box-shadow: 0 .25rem 1rem rgba(var(--bs-dark-rgb), .045);
}

:where(body.afcr-page-formation-elite) .afcr-card-icon {
    width: 48px;
    height: 48px;
}

:where(body.afcr-page-formation-elite) .afcr-step {
    border: 1px solid rgba(var(--bs-dark-rgb), .08);
    box-shadow: 0 .25rem 1.2rem rgba(var(--bs-dark-rgb), .06);
}

:where(body.afcr-page-formation-elite) .afcr-step-number {
    width: 44px;
    height: 44px;
}

:where(body.afcr-page-formation-elite) .afcr-price-card {
    border: 1px solid rgba(var(--bs-dark-rgb), .12);
    box-shadow: 0 .25rem 1.2rem rgba(var(--bs-dark-rgb), .06);
}

:where(body.afcr-page-formation-elite) .afcr-price-value {
    font-size: clamp(1.7rem, 3.8vw, 2.2rem);
    font-weight: 750;
    line-height: 1.2;
}

:where(body.afcr-page-formation-elite) .afcr-price-list li {
    margin-bottom: .55rem;
}

:where(body.afcr-page-formation-elite) .btn-afcr-secondary:hover,
:where(body.afcr-page-formation-elite) .btn-afcr-secondary:focus {
    background: var(--afcr-fuchsia-survol-elite);
    border-color: var(--afcr-fuchsia-survol-elite);
    color: var(--bs-white);
}

@media (max-width: 767.98px) {
    :where(body.afcr-page-formation-elite) .afcr-hero .btn {
        margin-bottom: .35rem;
    }

    :where(body.afcr-page-formation-elite) .afcr-stat .card-body {
        padding: .85rem .5rem;
    }

    :where(body.afcr-page-formation-elite) .afcr-stat span {
        font-size: .92rem;
    }
}

/* 08 — Sélecteurs de formations. */
/* Aide à la sélection, sous le titre. */
.afcr-aide-selection {
    color: var(--afcr-turquoise-selection);
    line-height: 1.35;
}

.afcr-icone-aide {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

/* L'attribut hidden est prioritaire sur les classes d'affichage Bootstrap. */
#afcr-suite-page[hidden],
#afcr-piedpage-conditionnel[hidden],
#afcr-parcours-devenir[hidden],
#afcr-parcours-elite[hidden],
#afcr-tarif-devenir[hidden],
#afcr-tarif-elite[hidden] {
    display: none !important;
}

/* Toute la carte est interactive ; les bordures restent identiques. */
.afcr-profil-card {
    cursor: pointer;
    transition: filter .24s ease;
}

/* Bandeau : rond à gauche, intitulé centré sur toute la largeur. */
.afcr-bandeau-selection {
    min-height: 45px;
    padding: 10px 46px;
    background: var(--afcr-violet-selection-inactive);
    color: var(--bs-white);
}

.afcr-profil-card.afcr-profil-actif .afcr-bandeau-selection {
    background: var(--afcr-turquoise-selection);
    color: var(--afcr-encre-selection);
}

/* Disque blanc de diamètre identique dans les deux bandeaux (22 px).
Le contour du cercle est visible sur les deux cartes ; seule la coche indique la sélection. */
.afcr-rond-selection {
    left: 18px;
    width: 22px;
    height: 22px;
    color: var(--afcr-encre-selection);
}

.afcr-icone-selection {
    width: 22px;
    height: 22px;
}

.afcr-fond-rond-selection {
    fill: var(--bs-white);
    stroke: none;
}

.afcr-contour-rond-selection {
    display: initial;
}

.afcr-coche-selection {
    display: none;
}

.afcr-profil-card.afcr-profil-actif .afcr-coche-selection {
    display: initial;
}

/* Intitulé fixe et icône œil synchronisée avec l'état de la carte. */
.afcr-etat-texte {
    font-size: .875rem;
    line-height: 1.25;
    display: inline-flex;
}

.afcr-icone-oeil {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.afcr-etat-coche {
    display: none;
}

.afcr-profil-card.afcr-profil-actif .afcr-etat-coche {
    display: inline-flex;
}

.afcr-profil-card.afcr-profil-actif .afcr-etat-choix {
    display: none;
}

/* Une carte non sélectionnée est assombrie, sans masquer son texte. */
.afcr-profil-card:not(.afcr-profil-actif) {
    filter: brightness(.68);
}

/* Après masquage de la sélection, aucune carte n'apparaît désactivée. */
.afcr-selection-formations.afcr-aucun-profil .afcr-profil-card {
    filter: brightness(1);
}

.afcr-profil-card:not(.afcr-profil-actif):hover,
.afcr-profil-card:not(.afcr-profil-actif):focus-visible {
    filter: brightness(1);
}

/* Repère clavier uniquement, sans bordure colorée permanente. */
.afcr-profil-card:focus-visible {
    outline: 3px solid var(--bs-white);
    outline-offset: 3px;
}

[id^="afcr-parcours-"] {
    scroll-margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
    .afcr-profil-card {
        transition: none;
    }
}

/* 09 — Formulaires de contact et d’inscription. */
.bg-afcr-violet-tres-pale {
    background-color: var(--afcr-violet-tres-pale) !important;
}

.text-afcr-violet-pictogramme {
    color: var(--afcr-violet-pictogramme) !important;
}

.bg-afcr-onglets {
    background-color: var(--afcr-onglets) !important;
}

.btn-afcr-formulaire {
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--afcr-fuchsia-soutenu);
    --bs-btn-border-width: 2px;
    --bs-btn-border-color: var(--bs-light);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: var(--afcr-fuchsia-survol-formulaire);
    --bs-btn-hover-border-color: var(--bs-white);
    --bs-btn-active-color: var(--bs-white);
    --bs-btn-active-bg: var(--afcr-fuchsia-survol-formulaire);
    --bs-btn-active-border-color: var(--bs-white);
    --bs-btn-disabled-color: var(--bs-white);
    --bs-btn-disabled-bg: var(--afcr-fuchsia-soutenu);
    --bs-btn-disabled-border-color: var(--bs-light);
    --bs-btn-focus-shadow-rgb: var(--bs-white-rgb);
}

.btn-afcr-formulaire:focus {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

:where(body.afcr-page-contact) .form-control:focus, :where(body.afcr-page-contact) .form-select:focus {
    border-color: var(--afcr-violet-focus);
    box-shadow: 0 0 0 .25rem rgba(var(--afcr-violet-focus-rgb), .18);
}

.alert-afcr-success {
    background-color: var(--afcr-rose-confirmation);
    color: var(--afcr-fuchsia-confirmation);
    border: 2px solid var(--afcr-fuchsia-soutenu);
}

/* Champ piège antispam : conserver le masquage hors écran. */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* États de validation et de saisie sur fond sombre. */
.inscription-card .form-label, .inscription-card legend, .inscription-card .form-check-label {
    color: var(--bs-white);
}

.inscription-card .form-control, .inscription-card .form-select {
    background-color: var(--bs-white);
    color: var(--bs-body-color);
    border-color: var(--bs-gray-400);
}

.inscription-card .form-control:focus, .inscription-card .form-select:focus {
    background-color: var(--bs-white);
    color: var(--bs-body-color);
    border-color: var(--afcr-violet-focus);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-white-rgb), .2);
}

.inscription-card .form-control::placeholder {
    color: var(--bs-gray-600);
    opacity: 1;
}

.inscription-card .form-check-input {
    background-color: var(--bs-white);
    border-color: var(--bs-gray-400);
}

.inscription-card .form-check-input:checked {
    background-color: var(--afcr-fuchsia-soutenu);
    border-color: var(--afcr-fuchsia-soutenu);
}

.inscription-card .form-check-label a {
    color: var(--bs-white);
}

.inscription-card .form-check-label a:hover {
    color: var(--afcr-rose-confirmation);
}

.inscription-card hr {
    border-color: var(--bs-white);
    opacity: .35;
}

.inscription-card .required-star {
    color: var(--afcr-turquoise-selection);
}

.inscription-card .form-control.is-invalid, .inscription-card .form-select.is-invalid {
    border: 2px solid var(--afcr-bordure-invalide);
    background-image: none;
}

.inscription-card .invalid-feedback {
    color: var(--afcr-texte-invalide);
}

.inscription-card .form-check-input.is-invalid {
    border: 2px solid var(--afcr-bordure-invalide);
}

.inscription-card .form-check-input.is-invalid ~ .form-check-label {
    color: var(--bs-white);
}

.inscription-card .form-check .invalid-feedback {
    display: block;
}

#form-errors {
    color: var(--afcr-rouge-erreur-sombre);
}

#form-errors a {
    color: var(--afcr-rouge-erreur-sombre);
    text-decoration: underline;
}

/* Onglets des deux formations : couleurs et largeur adaptées aux petits écrans. */
.inscription-tabs .nav-item {
    min-width: 0;
}

.inscription-tabs .nav-link {
    color: var(--bs-primary-text-emphasis);
    transition: background-color .15s, color .15s;
}

.inscription-tabs .nav-link:hover {
    background: var(--afcr-onglets-survol);
    color: var(--bs-primary-text-emphasis);
}

.inscription-tabs .nav-link.active, .inscription-tabs .nav-link.active:hover {
    color: var(--bs-white);
    background: var(--bs-primary-text-emphasis);
}

.inscription-tabs .nav-link:focus-visible {
    outline: 3px solid var(--afcr-fuchsia-soutenu);
    outline-offset: 2px;
}

.inscription-tabs.is-invalid {
    outline: 2px solid var(--afcr-rouge-erreur);
}

#formation-error {
    color: var(--afcr-rouge-erreur);
}

/* 10 — Pages légales et impression. */
.bg-afcr-fond-cgv {
    background-color: var(--afcr-fond-cgv) !important;
}

.bg-afcr-fond-rgpd {
    background-color: var(--afcr-fond-rgpd) !important;
}

/* Styles de lecture propres aux CGV. */
:where(body.afcr-page-cgv) .legal-content {
    color: var(--afcr-encre-juridique);
    line-height: 1.58;
}

:where(body.afcr-page-cgv) .legal-content > p {
    margin-bottom: .62rem;
    text-align: justify;
    text-justify: inter-word;
}

:where(body.afcr-page-cgv) .legal-meta p, :where(body.afcr-page-cgv) .legal-form p {
    text-align: left;
}

:where(body.afcr-page-cgv) .legal-content h2 + p, :where(body.afcr-page-cgv) .legal-content h3 + p {
    margin-top: 0;
}

:where(body.afcr-page-cgv) .legal-content h2 {
    color: var(--afcr-violet-menu);
    font-size: 1.18rem;
    margin-top: 1.75rem;
    margin-bottom: .65rem;
}

:where(body.afcr-page-cgv) .legal-content h3 {
    color: var(--afcr-violet-sous-titre);
    font-size: 1.08rem;
    margin-top: 1.15rem;
    margin-bottom: .55rem;
}

:where(body.afcr-page-cgv) .legal-content ul {
    margin-top: .35rem;
    margin-bottom: .7rem;
}

:where(body.afcr-page-cgv) .legal-content li {
    margin-bottom: .28rem;
}

:where(body.afcr-page-cgv) .legal-meta {
    background: rgba(var(--afcr-violet-menu-rgb), .045);
    border: 1px solid rgba(var(--afcr-violet-menu-rgb), .10);
}

:where(body.afcr-page-cgv) .legal-form {
    background: var(--afcr-fond-retractation);
    border: 1px solid rgba(var(--afcr-violet-menu-rgb), .12);
}

:where(body.afcr-page-cgv) .legal-content a {
    color: var(--afcr-violet-lien);
    text-decoration-thickness: 1px;
}

:where(body.afcr-page-cgv) .legal-content a:hover {
    color: var(--afcr-fuchsia-lien-survol);
}

:where(body.afcr-page-cgv) .legal-updated {
    color: var(--afcr-gris-mise-a-jour);
    font-size: .95rem;
}

@media (min-width: 576px) {
    :where(body.afcr-page-cgv) .legal-content h2 {
        font-size: 1.28rem;
    }
}

/* Zones manuscrites et impression du formulaire de rétractation. */
:where(body.afcr-page-cgv) .withdrawal-line {
    min-height: 1.8rem;
    border-bottom: 1.5px solid var(--afcr-gris-retractation);
}

:where(body.afcr-page-cgv) .withdrawal-line.multiline {
    min-height: 3.6rem;
}

:where(body.afcr-page-cgv) .withdrawal-signature {
    min-height: 4.5rem;
    border: 1px solid rgba(var(--afcr-violet-menu-rgb), .22);
    background: rgba(var(--afcr-violet-menu-rgb), .018);
}

:where(body.afcr-page-cgv) .withdrawal-help {
    font-size: .92rem;
    color: var(--afcr-gris-retractation);
}

@media (min-width: 768px) {
    :where(body.afcr-page-cgv) .withdrawal-line {
        min-height: 1.65rem;
    }

    :where(body.afcr-page-cgv) .withdrawal-line.multiline {
        min-height: 3.3rem;
    }
}

@media print {
    :where(body.afcr-page-cgv) .withdrawal-signature {
        background: var(--bs-white);
    }
}

/* Styles de lecture et tableaux RGPD. */
:where(body.afcr-page-rgpd) .legal-card p,
:where(body.afcr-page-rgpd) .legal-card li,
:where(body.afcr-page-rgpd) .legal-card td,
:where(body.afcr-page-rgpd) .legal-card th {
    line-height: 1.7;
}

:where(body.afcr-page-rgpd) .legal-card p {
    margin-bottom: 1rem;
}

:where(body.afcr-page-rgpd) .legal-intro {
    background: rgba(var(--bs-secondary-rgb), .06);
}

:where(body.afcr-page-rgpd) .legal-subtitle {
    margin-top: 1.75rem;
    font-size: 1.35rem;
}

:where(body.afcr-page-rgpd) .legal-article {
    margin-top: 2rem;
    color: var(--bs-primary-text-emphasis);
}

:where(body.afcr-page-rgpd) .legal-list li {
    margin-bottom: .55rem;
}

:where(body.afcr-page-rgpd) .legal-table {
    margin: 1.25rem 0 1.75rem;
    font-size: .88rem;
}

@media (min-width: 576.02px) {
    :where(body.afcr-page-rgpd) .legal-table {
        font-size: .96rem;
    }
}

/* Styles de lecture des mentions légales. */
:where(body.afcr-page-mentions-legales) .legal-content {
    color: var(--bs-body-color);
    line-height: 1.75;
}

:where(body.afcr-page-mentions-legales) .legal-content h2 {
    margin-top: 2.25rem;
    font-size: 1.4rem;
    color: var(--bs-primary-text-emphasis);
}

:where(body.afcr-page-mentions-legales) .legal-content h2:first-of-type {
    margin-top: 0;
}

:where(body.afcr-page-mentions-legales) .legal-content p {
    margin-bottom: 1rem;
}

:where(body.afcr-page-mentions-legales) .legal-meta {
    color: var(--bs-gray-600);
}

/* 11 — FAQ. */
#faq-page .accordion-button:not(.collapsed) {
    box-shadow: none;
}

#faq-page .afcr-section-title {
    color: var(--bs-dark);
}
