@charset "UTF-8";
/* =====================================================================
   CATALOGUE DENDREO - Thème "Brain Training" (tuiles pastel, corail, charbon)
   =====================================================================
   Inspiration : maquette d'application d'entraînement cérébral.
   Traits repris :
     - design PLAT : aucune ombre, aucune bordure, fond crème uni
     - en-tête CHARBON (presque noir) aux angles inférieurs très arrondis
     - cartes formations = TUILES ENTIÈREMENT COLOREES (lavande, jaune,
       corail, sauge) avec l'image posée dedans et le texte en bas
     - petites étiquettes blanches (« New ») posées sur les tuiles
     - corail comme couleur d'action, bouton noir rond « lecture »
     - champ de recherche gris clair + bouton carre corail
     - onglets « segmentés » (piste grise, onglet actif blanc)
     - typographie géométrique ronde (Urbanist)

   >>> MODE D'EMPLOI POUR CHANGER LES COULEURS (sans connaître le CSS) <<<

   1. Toutes les couleurs sont définies UNE SEULE FOIS dans la section
      « PALETTE DE COULEURS » juste en dessous.
   2. Chaque ligne ressemble à :   --bt-coral: #e7683f;
      -> remplacez uniquement le code hexadécimal (#e7683f) par le vôtre.
      -> ne touchez pas au nom (--bt-coral) ni au point-virgule final.
   3. Enregistrez, puis rechargez la page du catalogue en forçant le cache
      (Mac : Cmd + Shift + R  /  Windows : Ctrl + Shift + R).
   4. Vous n'avez normalement JAMAIS besoin de modifier ce qui se trouve
      après la palette. Le reste du fichier réutilise ces couleurs.

   Où se trouve quoi (repères visuels) :
      - Menu du haut et pied de page (charbon) .. --bt-charcoal
      - Fond de la page (crème) ................. --bt-bg
      - Couleur d'action (corail) ............... --bt-coral
      - Les 4 tuiles de cartes .................. --bt-tile-1 (lavande) --bt-tile-2 (jaune)
                                                  --bt-tile-3 (corail clair) --bt-tile-4 (sauge)
      - Bannière d'accueil ...................... --bt-tile-1 (lavande)
      - Textes .................................. --bt-ink (foncé) / --bt-ink-soft (gris)

   Accessibilité : tailles de texte et espacements en « em » (ils suivent le
   réglage « taille du texte » du panneau accessibilité Dendreo), palette
   noir/blanc automatique en mode « contraste accentué », respect de la police
   dyslexie et des animations réduites (voir la dernière section du fichier).

   Note technique : tous les sélecteurs sont préfixés #bootstrap3 (c'est l'id
   du <body> du catalogue Dendreo) pour que ce CSS passe devant le thème natif.
   ===================================================================== */


/* Police d'écriture (chargée depuis Google Fonts).
   Supprimez cette ligne si vous ne voulez aucun appel externe :
   la police de secours « Segoe UI » sera utilisée. */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@500;600;700;800&display=swap');


/* =====================================================================
   PALETTE DE COULEURS  ->  C'EST ICI QU'ON MODIFIE LES COULEURS
   ===================================================================== */
:root {

    /* ---------- Structure ---------- */
    --bt-charcoal:     #1b1a1a;   /* Menu du haut, pied de page, boutons principaux, bouton « lecture » de la bannière */
    --bt-charcoal-2:   #2b2929;   /* Fond d'un lien du menu au survol */
    --bt-bg:           #faf6f2;   /* Fond crème de la page */
    --bt-card:         #ffffff;   /* Blocs blancs de la colonne de droite, étiquettes posées sur les tuiles */
    --bt-field:        #f1ece7;   /* Champs de saisie, listes déroulantes, piste des onglets */
    --bt-line:         #e9e2db;   /* Séparateurs fins */

    /* ---------- Textes ---------- */
    --bt-ink:          #1b1a1a;   /* Texte principal (titres, prix, noms de formations) */
    --bt-ink-soft:     #6f6a66;   /* Texte secondaire (durée, mentions, libellés de filtres) */
    --bt-ink-body:     #3d3936;   /* Paragraphes de la fiche formation */
    --bt-placeholder:  #a39d97;   /* Texte d'exemple dans les champs vides */
    --bt-white:        #ffffff;   /* Texte sur fond charbon ou corail */

    /* ---------- Couleur d'action : corail ---------- */
    --bt-coral:        #b8441c;   /* Liens, bouton de recherche, icônes, onglet actif, bloc d'inscription :
                                    contraste ≥ 4,5:1 exigé avec le blanc et sur les fonds clairs */
    --bt-coral-dark:   #93330f;   /* Liens et boutons corail au survol */
    --bt-coral-light:  #fbe6dc;   /* Fond des lignes au survol, message d'information */

    /* ---------- Tuiles pastel des cartes formations ---------- */
    --bt-tile-1:       #cdb9f5;   /* Tuile 1, lavande (cartes 1, 5, 9... en boucle) ; sert aussi de fond à la bannière d'accueil */
    --bt-tile-2:       #f6d64a;   /* Tuile 2, jaune */
    --bt-tile-3:       #f39a7b;   /* Tuile 3, corail clair */
    --bt-tile-4:       #b9d6a3;   /* Tuile 4, vert sauge */

    /* ---------- Icônes de section ---------- */
    --bt-icon-1:       #e7683f;   /* Petit carré coloré 1, corail (texte blanc dessus), en boucle */
    --bt-icon-2:       #cdb9f5;   /* Petit carré coloré 2, lavande (texte sombre dessus) */
    --bt-icon-3:       #f6d64a;   /* Petit carré coloré 3, jaune (texte sombre dessus) */
    --bt-icon-4:       #8e6fd8;   /* Petit carré coloré 4, violet (texte blanc dessus) */

    /* ---------- Badges de modalité ---------- */
    --bt-badge-bg:     rgba(255,255,255,.85);   /* Fond des étiquettes posées sur les tuiles (blanc translucide) */
    --bt-badge-text:   #1b1a1a;                 /* Texte de ces étiquettes */

    /* ---------- Jauges et statistiques ---------- */
    --bt-purple:       #8e6fd8;   /* Barres de progression (partie remplie) */
    --bt-purple-light: #e5dcf8;   /* Barres de progression (partie vide) */

    /* ---------- Messages ---------- */
    --bt-success-bg:   #e3f0d8;   /* Fond du message de succès */
    --bt-success-text: #2f5a1d;   /* Texte du message de succès */
    --bt-warning-bg:   #fdf1c4;   /* Fond du message d'avertissement */
    --bt-warning-text: #6f5400;   /* Texte du message d'avertissement */
    --bt-danger-bg:    #fde0d6;   /* Fond du message d'erreur */
    --bt-danger-text:  #8a2a10;   /* Texte du message d'erreur */

    /* ---------- Image de la bannière ---------- */
    --bt-banner-image: none;   /* Image de fond de la bannière d'accueil (facultatif). Mettre `none` pour
                                  aucune image, ou `url("https://public.dendreo.com/....")` (guillemets
                                  obligatoires) après avoir téléversé l'image dans l'espace de stockage Dendreo.
                                  L'image couvre toute la bannière (cover) ; le texte HTML reste affiché par-dessus,
                                  sur un voile lavande à gauche pour rester lisible. */

    /* ---------- Formes et police ---------- */
    --bt-radius-xl:    28px;      /* Arrondi du menu et du pied de page */
    --bt-radius:       22px;      /* Arrondi des tuiles, blocs et bannière */
    --bt-radius-sm:    14px;      /* Arrondi des images dans les tuiles, champs et boutons carrés */
    --bt-font:         'Urbanist', 'Segoe UI', system-ui, sans-serif;   /* Police de tout le catalogue (liste de polices de secours) */

    /* ========== Variables internes ========== */
    /* Variables natives Dendreo (laissez telles quelles) */
    --dendreo-primary:        var(--bt-coral);
    --dendreo-primary-hover:  var(--bt-coral-dark);
    --dendreo-primary-text:   var(--bt-white);
}


/* =====================================================================
   A PARTIR D'ICI : MISE EN FORME. Aucune couleur n'est ecrite en dur,
   tout renvoie a la palette ci-dessus. Modifiez seulement si vous savez
   ce que vous faites.
   ===================================================================== */


/* ==========================
   FOND DE PAGE, POLICE, TITRES, LIENS
========================== */
body#bootstrap3 {
    background: var(--bt-bg) !important;
    font-size: 100%;   /* base = 16px ; le reglage accessibilité Dendreo la remplace en direct */
    font-family: var(--bt-font);
    color: var(--bt-ink);
}
/* Tous les titres : gras, geometriques */
#bootstrap3 h1, #bootstrap3 h2, #bootstrap3 h3,
#bootstrap3 .panel-title, #bootstrap3 .catalogue-gallery__title, #bootstrap3 .catalogue-formation-title {
    font-family: var(--bt-font);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--bt-ink);
}
/* Liens texte : corail */
#bootstrap3 a { color: var(--bt-coral); transition: color .15s; }
#bootstrap3 a:hover { color: var(--bt-coral-dark) !important; }
#bootstrap3 .text-muted, #bootstrap3 .text-subtle { color: var(--bt-ink-soft) !important; }



/* ==========================
   NEUTRALISATION DU THEME BOOTSTRAP DE BASE
   Selon le compte, Dendreo charge un theme Bootstrap different (sandstone, lumen,
   flatly...). Certains imposent des textes en petites MAJUSCULES espacees (11 px)
   sur le menu, les onglets, les titres de blocs, les boutons et le fil d'Ariane.
   On remet ici une casse et des tailles normales, avec la meme priorite que ces themes.
========================== */
#bootstrap3 .navbar .nav > li > a,
#bootstrap3 .navbar .nav > li > button { text-transform: none; font-size: 0.9375em; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
#bootstrap3 .nav,
#bootstrap3 .nav > li > a { text-transform: none; font-size: 1em; line-height: 1.4; letter-spacing: 0; }
#bootstrap3 .panel .panel-heading,
#bootstrap3 .panel .panel-title { text-transform: none; font-size: 1em; line-height: 1.35; font-weight: 700; letter-spacing: 0; color: inherit; }
#bootstrap3 .panel .panel-footer { text-transform: none; font-size: 1em; line-height: 1.4; }
#bootstrap3 .btn { text-transform: none; font-size: 1em; line-height: 1.4; letter-spacing: 0; }
#bootstrap3 .btn-sm { font-size: 0.875em; }
#bootstrap3 .breadcrumb { text-transform: none; font-size: 0.875em; line-height: 1.5; border: none; letter-spacing: 0; }
#bootstrap3 .dropdown-menu > li > a { text-transform: none; font-size: 1em; }
#bootstrap3 legend, #bootstrap3 label, #bootstrap3 .badge { text-transform: none; letter-spacing: 0; }

/* ==========================
   MENU DU HAUT : bandeau charbon, angles inferieurs tres arrondis
========================== */
#bootstrap3 .catalogue-navbar,
#bootstrap3 .navbar {
    background: var(--bt-charcoal) !important;
    border: none !important;
    border-radius: 0 0 var(--bt-radius-xl) var(--bt-radius-xl);
    box-shadow: none !important;
    margin-bottom: 1.75em;
}
#bootstrap3 .navbar-brand { color: var(--bt-white) !important; font-weight: 700; }
/* Logo pose directement sur le menu charbon (prevoir un logo lisible sur fond sombre) */
#bootstrap3 #brand-logo {
    height: auto !important;
    max-height: 6.25em;
    display: flex;
    align-items: center;
    float: none;
    margin: 0 1.5em 0 0;
    padding: 0.5em 0;
    background: transparent !important;   /* enleve le fond blanc du theme natif */
}
#bootstrap3 #brand-logo::after { display: none !important; }   /* enleve la " feuille " inclinee du theme natif */
#bootstrap3 #brand-logo a { height: auto; padding: 0 !important; }
#bootstrap3 #brand-logo img {
    display: block;
    height: auto;
    max-height: 4.75em;           /* hauteur maximale du logo (a augmenter/diminuer ici) */
    width: auto;
    max-width: 14em;              /* largeur maximale du logo */
    object-fit: contain;
    background: transparent;      /* pas de cartouche : le logo est pose directement sur le menu charbon */
    border-radius: 0;
    padding: 0;
}

/* Liens du menu : blancs, l'onglet actif est un petit carre arrondi corail (comme les icones de la maquette).
   Le theme natif impose 100 px de hauteur : le fond est dessine sur un pseudo-element compact. */
#bootstrap3 .navbar-nav > li > a,
#bootstrap3 .navbar-nav > li > button {
    position: relative;
    color: var(--bt-white) !important;
    font-weight: 600;
    font-size: 0.9375em;
    margin: 0 0.15em;
    padding: 0 1em !important;
    background: transparent !important;
    z-index: 0;
}
#bootstrap3 .navbar-nav > li > a::before,
#bootstrap3 .navbar-nav > li > button::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 2.5em;
    transform: translateY(-50%);
    border-radius: var(--bt-radius-sm);
    background: transparent;
    z-index: -1;
    transition: background .15s;
}
#bootstrap3 .navbar-default .navbar-nav > li > a:hover::before,
#bootstrap3 .navbar-default .navbar-nav > li > button:hover::before { background: var(--bt-charcoal-2); }
#bootstrap3 .navbar-default .navbar-nav > li > a:hover,
#bootstrap3 .navbar-default .navbar-nav > li > button:hover { color: var(--bt-white) !important; background: transparent !important; }
#bootstrap3 .navbar-nav > li.active > a,
#bootstrap3 .navbar-default .navbar-nav > .active > a,
#bootstrap3 .navbar-default .navbar-nav > .active > a:hover { color: var(--bt-white) !important; background: transparent !important; }
#bootstrap3 .navbar-nav > li.active > a::before,
#bootstrap3 .navbar-default .navbar-nav > .active > a::before { background: var(--bt-coral); }
#bootstrap3 .navbar-toggle { border: none; }
#bootstrap3 .navbar-toggle .icon-bar { background: var(--bt-white); }
#bootstrap3 .navbar .fa-shopping-cart { color: var(--bt-white); }
/* Compteur du panier : petit carre corail */
#bootstrap3 .navbar .badge {
    background: var(--bt-coral) !important;
    color: var(--bt-white) !important;
    border-radius: 8px;
    padding: 0.2em 0.5em;
    font-weight: 700;
}
#bootstrap3 .navbar .badge:empty { display: none; }   /* pas de pastille quand le panier est vide */

/* Menu : logo et liens sur une seule ligne (le theme natif place le logo en " float ") */
@media (min-width: 1021px) {
    #bootstrap3 .navbar { min-height: 0; }
    #bootstrap3 .navbar-container { display: flex; align-items: center; justify-content: space-between; gap: 1em; min-height: 5em; }
    #bootstrap3 .navbar-container::before,
    #bootstrap3 .navbar-container::after { display: none; }   /* clearfix Bootstrap, inutile en flex */
    #bootstrap3 .navbar-header { float: none; flex: 0 0 auto; display: flex !important; align-items: center; height: auto !important; }
    #bootstrap3 .navbar-header .navbar-brand:empty { display: none !important; }
    #bootstrap3 .navbar-collapse { flex: 1 1 auto; min-width: 0; padding: 0; }
    #bootstrap3 .navbar-nav { float: none !important; display: flex; flex-wrap: wrap; row-gap: 6px; justify-content: flex-end; align-items: center; height: auto; margin: 0; }
    #bootstrap3 .navbar-nav > li { float: none; white-space: nowrap; display: flex; align-items: center; }
    #bootstrap3 .navbar-nav > li > a,
    #bootstrap3 .navbar-nav > li > button { height: 4em !important; display: inline-flex; align-items: center; padding: 0 0.6em !important; }
}
@media (min-width: 1021px) and (max-width: 1199px) {
    #bootstrap3 .navbar-nav > li > a,
    #bootstrap3 .navbar-nav > li > button { font-size: 0.8125em; }
    #bootstrap3 #brand-logo img { max-width: 10em; }
}
/* Sous 1021 px, le gabarit commun replie les liens derriere le bouton " hamburger " :
   logo, titre coupe apres 2 lignes et boutons sur une seule rangee. */
@media (max-width: 1020px) {
    #bootstrap3 .navbar { min-height: 0; }
    #bootstrap3 .navbar-container { padding-block: 0.5em; }
    #bootstrap3 .navbar-container > .navbar-header { display: flex; align-items: center; gap: 0.5em 1em; float: none; margin-inline: 0; }
    #bootstrap3 .navbar-header::before,
    #bootstrap3 .navbar-header::after { display: none; }
    #bootstrap3 #brand-logo { flex: none; float: none; height: auto; margin: 0; padding-block: 0; }
    #bootstrap3 #brand-logo img { height: auto; max-height: 3em; max-width: 9em; }
    #bootstrap3 .navbar > .container .navbar-header .navbar-brand {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        float: none;
        height: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        line-height: 1.3;
    }
    #bootstrap3 .navbar-header .navbar-brand:empty { display: none; }
    #bootstrap3 .navbar-header .navbar-toggle { flex: none; margin: 0; }
    #bootstrap3 .navbar-header .btn-go-to-search { order: 2; }
    #bootstrap3 .navbar-header > .navbar-toggle:not(.btn-go-to-search) { order: 3; }

    /* Menu ouvert : une ligne par lien, panier, accessibilite et langue regroupes sur la derniere */
    #bootstrap3 .navbar-nav { display: flex; flex-wrap: wrap; height: auto; margin: 0.75em 0 0.25em; }
    #bootstrap3 .navbar-nav > li { flex: 1 1 100%; }
    #bootstrap3 .navbar-nav > li:is(.dropdown, :has(> .cart_icon), :has(> .a11y-open)) { flex: 0 0 auto; }
    #bootstrap3 .navbar-nav > li.dropdown.open { flex-basis: 100%; }
    #bootstrap3 .navbar-nav > li > a,
    #bootstrap3 .navbar-nav > li > button { height: 3em !important; margin: 0; }
}
@media (min-width: 768px) and (max-width: 1020px) {
    #bootstrap3 .navbar-nav > li { flex-basis: 50%; }
}


/* ==========================
   BANNIERE D'ACCUEIL : tuile lavande facon carte " Most popular "
   Le message d'accueil doit contenir, dans cet ordre (sans <div> autour) :
     un paragraphe (petit sur-titre), un titre H2, un paragraphe (sous-titre),
     un lien (bouton) - le lien peut etre seul ou dans un <p>.
========================== */
#bootstrap3 .well.welcome_msg {          /* .well ajoute pour passer devant la regle generique des blocs plus bas */
    position: relative;
    /* 3 couches : degrade lavande (lisibilite du texte a gauche), image facultative, fond lavande */
    background:
        linear-gradient(90deg, var(--bt-tile-1) 0%, var(--bt-tile-1) 45%, transparent 100%),
        var(--bt-banner-image) center / cover no-repeat,
        var(--bt-tile-1) !important;
    border: none !important;
    border-radius: var(--bt-radius) !important;
    box-shadow: none !important;
    color: var(--bt-ink);
    padding: 2em 2.25em;
    overflow: hidden;
    min-height: 12em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
/* Petit sur-titre */
#bootstrap3 .welcome_msg > p:first-child {
    margin: 0 0 .6em;
    font-size: 0.8125em;
    font-weight: 600;
    color: var(--bt-ink-body);
}
/* Titre */
#bootstrap3 .welcome_msg > h2 {
    margin: 0 0 .4em;
    font-size: clamp(1.4em, 2.6vw, 2.1em);
    line-height: 1.12;
    font-weight: 800;
    color: var(--bt-ink);
    max-width: 22em;
}
/* Sous-titre */
#bootstrap3 .welcome_msg > h2 + p {
    margin: 0 0 1.1em;
    font-size: 0.9375em;
    color: var(--bt-ink-body);
    max-width: 40em;
}
#bootstrap3 .welcome_msg > h2 + p strong { color: var(--bt-ink); font-weight: 700; }
/* Le paragraphe qui enveloppe eventuellement le bouton */
#bootstrap3 .welcome_msg > p:has(> a) { margin: 0; font-size: 1em; color: inherit; max-width: 100%; }
/* Bouton : pilule charbon avec un triangle " lecture " */
#bootstrap3 .welcome_msg > a,
#bootstrap3 .welcome_msg > p > a {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    background: var(--bt-charcoal);
    color: var(--bt-white) !important;
    font-weight: 700;
    font-size: 0.9375em;
    padding: .8em 1.5em .8em 1.2em;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s, transform .15s;
}
#bootstrap3 .welcome_msg > a::before,
#bootstrap3 .welcome_msg > p > a::before {
    content: "";
    width: 0; height: 0;
    border-style: solid;
    border-width: .38em 0 .38em .62em;
    border-color: transparent transparent transparent var(--bt-white);
}
#bootstrap3 .welcome_msg > a:hover,
#bootstrap3 .welcome_msg > p > a:hover { background: var(--bt-coral); text-decoration: none; transform: translateY(-2px); }
/* Si la banniere est une simple image : pas de fond ni de marge autour */
#bootstrap3 .welcome_msg:has(> img) { background: none !important; padding: 0; min-height: 0; }
#bootstrap3 .welcome_msg > img { border-radius: var(--bt-radius); width: 100%; display: block; }


/* ==========================
   COLONNE DE DROITE : blocs blancs plats, icones dans des carres colores
========================== */
#bootstrap3 .panel.panel-default {
    background: var(--bt-card);
    border: none;
    border-radius: var(--bt-radius);
    box-shadow: none;
    overflow: hidden;
}
#bootstrap3 .panel-default > .panel-heading {
    background: transparent;
    border-bottom: none;
    padding: 1.25em 1.25em .25em;
}
#bootstrap3 .panel-title,
#bootstrap3 .panel-title label,
#bootstrap3 .panel-default > .panel-heading { font-size: 1em; font-weight: 700; color: var(--bt-ink); }
/* Icone du titre : petit carre arrondi colore (corail, puis lavande, jaune, violet selon le bloc) */
#bootstrap3 .panel-default > .panel-heading .panel-title .fa,
#bootstrap3 .panel-default > .panel-heading .panel-title label .fa,
#bootstrap3 .panel-default > .panel-heading > .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1em; height: 2.1em;
    border-radius: 10px;
    background: var(--bt-icon-1);
    color: var(--bt-white);
    margin-right: .6em;
    font-size: 0.875em;
}
#bootstrap3 .catalogue-sidebar .panel.panel-default:nth-of-type(4n+2) > .panel-heading .fa { background: var(--bt-icon-2); color: var(--bt-ink); }
#bootstrap3 .catalogue-sidebar .panel.panel-default:nth-of-type(4n+3) > .panel-heading .fa { background: var(--bt-icon-3); color: var(--bt-ink); }
#bootstrap3 .catalogue-sidebar .panel.panel-default:nth-of-type(4n+4) > .panel-heading .fa { background: var(--bt-icon-4); color: var(--bt-white); }
/* Petits libelles des filtres */
#bootstrap3 .sidebar-sub-heading {
    font-size: 0.75em;
    font-weight: 700;
    color: var(--bt-ink-soft);
    margin-top: 1.1em;
}
#bootstrap3 .sidebar-sub-heading .fa { color: var(--bt-coral); margin-right: .4em; }
#bootstrap3 .panel-footer { background: var(--bt-field); border-top: none; font-weight: 600; }

/* Champs de saisie : gris clair, angles 14 px, sans bordure */
#bootstrap3 .form-control {
    border-radius: var(--bt-radius-sm);
    border: 2px solid transparent;
    box-shadow: none;
    height: 2.875em;
    padding-left: 1em;
    background: var(--bt-field);
    color: var(--bt-ink);
    font-family: var(--bt-font);
    transition: border-color .15s, background .15s;
}
#bootstrap3 .form-control::placeholder { color: var(--bt-placeholder); }
#bootstrap3 .form-control:focus { border-color: var(--bt-coral); background: var(--bt-card); box-shadow: none; }
#bootstrap3 .input-group .form-control { border-radius: var(--bt-radius-sm) 0 0 var(--bt-radius-sm); }
/* Bouton loupe : carre corail (comme dans la maquette) */
#bootstrap3 .input-group-btn .btn {
    border-radius: 0 var(--bt-radius-sm) var(--bt-radius-sm) 0;
    height: 2.875em;
    width: 2.875em;
    padding: 0;
    background: var(--bt-coral);
    border: none;
    color: var(--bt-white);
    box-shadow: none !important;
}
#bootstrap3 .input-group-btn .btn:hover { background: var(--bt-coral-dark); }
/* Cases a cocher */
#bootstrap3 .filter-option { margin: .4em 0; }
#bootstrap3 .filter-option__input { accent-color: var(--bt-coral); }
#bootstrap3 .filter-option__text { font-weight: 600; color: var(--bt-ink); }
/* Listes deroulantes */
#bootstrap3 .select2-container--default .select2-selection--single {
    border-radius: var(--bt-radius-sm);
    border: 2px solid transparent;
    height: 2.875em;
    background: var(--bt-field);
}
#bootstrap3 .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 2.6em; padding-left: 1em; color: var(--bt-ink); }
#bootstrap3 .select2-container--default .select2-selection--single .select2-selection__arrow { height: 2.6em; }
.select2-dropdown { border-radius: var(--bt-radius-sm); border: none; background: var(--bt-card); box-shadow: 0 12px 30px rgba(27,26,26,.12); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--bt-coral) !important; color: var(--bt-white) !important; }
/* Prochaines sessions : lignes grises arrondies */
#bootstrap3 .catalogue-prochaines-sessions .list-group-item {
    border: none;
    background: var(--bt-field);
    border-radius: var(--bt-radius-sm);
    margin: .5em 1em;
    padding: .75em 1em;
}
#bootstrap3 .catalogue-prochaines-sessions .list-group-item:hover { background: var(--bt-coral-light); }


/* ==========================
   TITRES DES CATEGORIES + COMPTEUR
   (ligne " Popular game ........ See all " de la maquette)
========================== */
#bootstrap3 .liste_categories,
#bootstrap3 .catalogue-list { background: transparent; border: none; box-shadow: none; }
#bootstrap3 .catalogue-list { padding: .5em 0 1.75em; }
#bootstrap3 .catalogue-list > h2 {
    font-size: 1.375em;
    font-weight: 800;
    margin: 0 0 1em;
    display: flex;
    align-items: center;
    gap: .5em;
}
#bootstrap3 .catalogue-list > h2 button { background: none; border: none; padding: 0; font: inherit; color: inherit; text-align: left; }
#bootstrap3 .catalogue-list > h2 button:hover { color: var(--bt-coral); }
#bootstrap3 .categorie-permalink { color: var(--bt-placeholder); font-size: 0.6em; }
/* Compteur : petit carre charbon, chiffre blanc */
#bootstrap3 .badge-count {
    background: var(--bt-charcoal) !important;
    color: var(--bt-white) !important;
    border-radius: 8px;
    min-width: 1.5em; height: 1.5em;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 .45em;
    font-weight: 700;
    font-size: 0.6em;
    margin-left: auto;
}
/* Description de categorie */
#bootstrap3 .catalogue-list .well,
#bootstrap3 .catalogue-list .description-categorie { background: var(--bt-card) !important; border: none !important; box-shadow: none !important; border-radius: var(--bt-radius-sm) !important; }


/* ==========================
   CARTES FORMATIONS : TUILES ENTIEREMENT COLOREES
   L'image est posee dans la tuile, le texte est en bas, la couleur de la
   tuile change a chaque carte (lavande, jaune, corail clair, sauge).
========================== */
#bootstrap3 .thumbnail.catalogue-gallery__card {      /* .thumbnail ajoute pour passer devant la regle generique des blocs plus bas */
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bt-tile-1);
    border: none !important;
    border-radius: var(--bt-radius) !important;
    overflow: hidden;
    padding: .75em;
    box-shadow: none !important;
    color: var(--bt-ink);
    text-decoration: none;
    transition: transform .2s ease, filter .2s ease;
}
#bootstrap3 .catalogue-gallery__column:nth-child(4n+2) .catalogue-gallery__card { background: var(--bt-tile-2); }
#bootstrap3 .catalogue-gallery__column:nth-child(4n+3) .catalogue-gallery__card { background: var(--bt-tile-3); }
#bootstrap3 .catalogue-gallery__column:nth-child(4n+4) .catalogue-gallery__card { background: var(--bt-tile-4); }
#bootstrap3 .catalogue-gallery__card:hover,
#bootstrap3 .catalogue-gallery__card:focus {
    transform: translateY(-5px);
    filter: saturate(1.08);
    text-decoration: none;
    color: var(--bt-ink);
}
/* Image posee dans la tuile, angles arrondis, pas de cadre */
#bootstrap3 .catalogue-gallery__img { background: transparent; padding: 0; border: none; }
#bootstrap3 .catalogue-gallery__img__mask { border-radius: var(--bt-radius-sm); overflow: hidden; }
#bootstrap3 .catalogue-gallery__img__src { width: 100%; display: block; transition: transform .4s ease; }
#bootstrap3 .catalogue-gallery__card:hover .catalogue-gallery__img__src { transform: scale(1.04); }
/* Carte sans image : zone arrondie legerement plus claire, avec l'icone */
#bootstrap3 .catalogue-gallery__img--none { border-radius: var(--bt-radius-sm); background: rgba(255,255,255,.35); }
#bootstrap3 .catalogue-gallery__img--none__bg { background: transparent !important; }
#bootstrap3 .catalogue-gallery__img--none__icon { color: var(--bt-ink) !important; opacity: .8; }

#bootstrap3 .catalogue-gallery__caption { padding: .9em .5em .35em; display: flex; flex-direction: column; flex: 1; }
/* Nom de la formation */
#bootstrap3 .catalogue-gallery__title {
    font-size: 1.0625em;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 .5em;
    min-height: 2.6em;
    color: var(--bt-ink);
}
/* Etiquettes (modalite, Nouveaute...) : petites pilules blanches translucides posees sur la tuile */
#bootstrap3 .catalogue-gallery__badges { margin-bottom: .25em; }
#bootstrap3 .badge:not(.badge-count) {
    border-radius: 999px;
    padding: .35em .7em;
    font-size: 0.6875em;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin: 0 .3em .3em 0;
    display: inline-flex;
    align-items: center;
    gap: .3em;
    background: var(--bt-badge-bg) !important;
    color: var(--bt-badge-text) !important;
}
/* " Nouveaute " : charbon, texte blanc (etiquette " New " de la maquette) */
#bootstrap3 .badge-nouveaute { background: var(--bt-charcoal) !important; color: var(--bt-white) !important; }
/* " CPF ", " DPC " : corail, texte blanc */
#bootstrap3 .badge-cpf, #bootstrap3 .badge-dpc { background: var(--bt-coral) !important; color: var(--bt-white) !important; }
/* Ligne d'infos (duree, prix) : en bas de la tuile, texte sombre */
#bootstrap3 .catalogue-gallery__info {
    margin-top: auto;
    padding-top: .6em;
    border-top: 1px solid rgba(27,26,26,.12);
    font-size: 0.8125em;
    font-weight: 600;
    color: var(--bt-ink-body);
    display: flex;
    flex-wrap: wrap;
    gap: .3em 1em;
    align-items: baseline;
}
#bootstrap3 .catalogue-gallery__info li { margin: 0; }
#bootstrap3 .catalogue-gallery__info .text-muted { color: var(--bt-ink) !important; }
#bootstrap3 .js-price-amount-ttc,
#bootstrap3 .js-price-amount-ht { color: var(--bt-ink); font-weight: 800; font-size: 1.2308em; }
#bootstrap3 .catalogue-gallery__info .text-subtle { color: var(--bt-ink-body) !important; font-weight: 500; }


/* ==========================
   BOUTONS
========================== */
#bootstrap3 .btn {
    border-radius: 999px;
    font-family: var(--bt-font);
    font-weight: 700;
    padding: .65em 1.4em;
    border: none;
    box-shadow: none !important;
    transition: background .15s, transform .15s;
}
#bootstrap3 .btn:active { transform: scale(.98); }
/* Boutons principaux : charbon, corail au survol */
#bootstrap3 .btn-primary, #bootstrap3 .btn-info {
    background: var(--bt-charcoal) !important;
    color: var(--bt-white) !important;
}
#bootstrap3 .btn-primary:hover, #bootstrap3 .btn-info:hover { background: var(--bt-coral) !important; }
/* Action forte (S'inscrire / Ajouter au panier) : corail */
#bootstrap3 .btn-success { background: var(--bt-coral) !important; color: var(--bt-white) !important; }
#bootstrap3 .btn-success:hover { background: var(--bt-coral-dark) !important; }
/* Boutons secondaires : gris clair */
#bootstrap3 .btn-default { background: var(--bt-field); color: var(--bt-ink); }
#bootstrap3 .btn-default:hover { background: var(--bt-coral-light); color: var(--bt-ink); }
#bootstrap3 .btn-link { color: var(--bt-coral); }


/* ==========================
   FICHE FORMATION
========================== */
#bootstrap3 .catalogue-formation-title { font-size: 1.875em; font-weight: 800; margin-bottom: 1em; }
/* Etiquette de modalite dans le titre : taille reduite */
#bootstrap3 .catalogue-formation-title .badge { font-size: .42em; vertical-align: middle; }
#bootstrap3 .wrapper-visuel_description_banner,
#bootstrap3 .visuel_description_banner__mask { border-radius: var(--bt-radius); overflow: hidden; border: none; box-shadow: none; }
/* Fil d'Ariane : piste grise arrondie */
#bootstrap3 .breadcrumb { background: var(--bt-field); border: none; border-radius: var(--bt-radius-sm); padding: .7em 1.1em; }
#bootstrap3 .breadcrumb > .active { color: var(--bt-ink-soft); }

/* Bloc d'inscription (colonne droite) : tuile corail, texte blanc (en-tete corail du 3e ecran) */
#bootstrap3 .catalogue-formation-formulaire {
    background: var(--bt-coral) !important;
    border: none !important;
    border-radius: var(--bt-radius) !important;
    color: var(--bt-white);
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}
#bootstrap3 .catalogue-formation-formulaire .panel-heading { background: transparent !important; border: none !important; color: var(--bt-white) !important; }
#bootstrap3 .catalogue-formation-formulaire .panel-title,
#bootstrap3 .catalogue-formation-formulaire label { color: var(--bt-white) !important; }
/* Les cartes de choix de session ont un fond clair : leur texte reste fonce. */
#bootstrap3 .catalogue-formation-formulaire .radio-group__label,
#bootstrap3 .catalogue-formation-formulaire .radio-group__label div,
#bootstrap3 .catalogue-formation-formulaire .radio-group__label span:not(.badge),
#bootstrap3 .catalogue-formation-formulaire .radio-group__label .js-price-amount-ttc,
#bootstrap3 .catalogue-formation-formulaire .radio-group__label .js-price-amount-ht,
#bootstrap3 .catalogue-formation-formulaire .radio-group__label .text-muted,
#bootstrap3 .catalogue-formation-formulaire .radio-group__label .text-subtle { color: var(--bt-ink) !important; }
#bootstrap3 .catalogue-formation-formulaire .radio-group__label .js-price-amount-ttc,
#bootstrap3 .catalogue-formation-formulaire .radio-group__label .js-price-amount-ht { font-size: 1.25em; }
#bootstrap3 .catalogue-formation-formulaire .form-control { background: rgba(255,255,255,.2); border-color: transparent; color: var(--bt-white); }
#bootstrap3 .catalogue-formation-formulaire .form-control::placeholder { color: rgba(255,255,255,.75); }
#bootstrap3 .catalogue-formation-formulaire .js-price-amount-ttc,
#bootstrap3 .catalogue-formation-formulaire .js-price-amount-ht { color: var(--bt-white); font-size: 1.625em; }
#bootstrap3 .catalogue-formation-formulaire .text-muted,
#bootstrap3 .catalogue-formation-formulaire .text-subtle { color: rgba(255,255,255,.8) !important; }
/* Boutons dans la tuile corail : blanc (onglet actif de la maquette) et charbon */
#bootstrap3 .catalogue-formation-formulaire .btn-success { background: var(--bt-white) !important; color: var(--bt-coral-dark) !important; }
#bootstrap3 .catalogue-formation-formulaire .btn-success:hover { background: var(--bt-charcoal) !important; color: var(--bt-white) !important; }
#bootstrap3 .catalogue-formation-formulaire .btn-primary { background: var(--bt-charcoal) !important; }
#bootstrap3 .catalogue-formation-formulaire .btn-default { background: rgba(255,255,255,.2); color: var(--bt-white); }
#bootstrap3 .catalogue-formation-formulaire .btn-default:hover { background: rgba(255,255,255,.35); color: var(--bt-white); }

/* Onglets de la fiche (Formateurs / Description / Objectifs...) : onglets " segmentes "
   - piste grise arrondie, onglets en pilule, onglet actif blanc. Ils passent sur
   plusieurs lignes s'ils sont nombreux. */
#bootstrap3 .nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .25em;
    background: var(--bt-field);
    border-radius: var(--bt-radius-sm);
    padding: .35em;
    margin: 0 0 1.25em;
}
#bootstrap3 .nav-pills > li { float: none; margin: 0 !important; }
#bootstrap3 .nav-pills > li > a {
    color: var(--bt-ink-soft);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.875em;
    text-transform: none;
    letter-spacing: 0;
    padding: .55em 1em;
    border: none !important;
    background: transparent;
    white-space: nowrap;
}
#bootstrap3 .nav-pills > li > a .fa { margin-right: .35em; color: var(--bt-coral); }
#bootstrap3 .nav-pills > li > a:hover { background: rgba(255,255,255,.6); color: var(--bt-ink); }
#bootstrap3 .nav-pills > li.active > a,
#bootstrap3 .nav-pills > li.active > a:hover,
#bootstrap3 .nav-pills > li.active > a:focus { background: var(--bt-card) !important; color: var(--bt-ink) !important; border: none !important; }
#bootstrap3 .nav-pills > li.active > a .fa { color: var(--bt-ink); }

/* Bloc d'informations de la fiche (Categorie, Duree, Prix, Satisfaction...) */
#bootstrap3 .catalogue-sidebar .list-group { border-radius: var(--bt-radius); overflow: hidden; margin-bottom: 1.25em; }
#bootstrap3 .catalogue-sidebar .list-group-item {
    background: var(--bt-card);
    border: none;
    border-top: 1px solid var(--bt-line);
    color: var(--bt-ink-body);
    padding: .9em 1.25em;
}
#bootstrap3 .catalogue-sidebar .list-group-item:first-child { border-top: none; }
#bootstrap3 .catalogue-sidebar .list-group-item b { color: var(--bt-ink); }
/* Ligne " Telecharger le programme " : corail, texte blanc (Dendreo la met en " active ") */
#bootstrap3 .list-group-item.active,
#bootstrap3 .list-group-item.active:hover,
#bootstrap3 .list-group-item.active:focus {
    background: var(--bt-coral) !important;
    border-color: var(--bt-coral) !important;
    color: var(--bt-white) !important;
}
#bootstrap3 .list-group-item.active a { color: var(--bt-white) !important; font-weight: 700; text-decoration: none; }
#bootstrap3 .list-group-item.active:hover { background: var(--bt-coral-dark) !important; }

/* Sections descriptives */
#bootstrap3 .panel-body { padding: .9em 1.25em 1.4em; line-height: 1.65; color: var(--bt-ink-body); }
#bootstrap3 .panel-body ul li::marker { color: var(--bt-coral); }
/* Icones de section de la fiche : boucle corail / lavande / jaune / violet */
#bootstrap3 .catalogue-main .panel.panel-default:nth-of-type(4n+2) > .panel-heading .panel-title .fa { background: var(--bt-icon-2); color: var(--bt-ink); }
#bootstrap3 .catalogue-main .panel.panel-default:nth-of-type(4n+3) > .panel-heading .panel-title .fa { background: var(--bt-icon-3); color: var(--bt-ink); }
#bootstrap3 .catalogue-main .panel.panel-default:nth-of-type(4n+4) > .panel-heading .panel-title .fa { background: var(--bt-icon-4); color: var(--bt-white); }

/* Barres de progression : violet sur piste lavande pale (graphique du 3e ecran) */
#bootstrap3 .progress { border-radius: 999px; background: var(--bt-purple-light); box-shadow: none; height: .625em; }
#bootstrap3 .progress-bar { background: var(--bt-purple); box-shadow: none; }
/* Etoiles */
#bootstrap3 .star-ratings-css-top { color: var(--bt-coral); }
/* Messages */
#bootstrap3 .alert { border: none; border-radius: var(--bt-radius-sm); }
#bootstrap3 .alert-warning { background: var(--bt-warning-bg); color: var(--bt-warning-text); }
#bootstrap3 .alert-info    { background: var(--bt-coral-light); color: var(--bt-coral-dark); }
#bootstrap3 .alert-success { background: var(--bt-success-bg); color: var(--bt-success-text); }
#bootstrap3 .alert-danger  { background: var(--bt-danger-bg); color: var(--bt-danger-text); }


/* ==========================
   PAGES CONTACT ET PANIER : bloc blanc, en-tete charbon
========================== */
#bootstrap3 .contact-formulaire,
#bootstrap3 .cart-formulaire {
    background: var(--bt-card) !important;
    border: none !important;
    border-radius: var(--bt-radius) !important;
    box-shadow: none !important;
    color: var(--bt-ink);
    padding: 0;
    overflow: hidden;
}
#bootstrap3 .contact-formulaire > .panel-heading,
#bootstrap3 .cart-formulaire > .panel-heading {
    background: var(--bt-charcoal) !important;
    border: none !important;
    color: var(--bt-white) !important;
    padding: 1.1em 1.375em;
}
#bootstrap3 .contact-formulaire > .panel-heading .panel-title,
#bootstrap3 .cart-formulaire > .panel-heading .panel-title { color: var(--bt-white) !important; }
#bootstrap3 .contact-formulaire > .panel-heading .fa,
#bootstrap3 .cart-formulaire > .panel-heading .fa { color: var(--bt-coral); margin-right: .5em; }
#bootstrap3 .contact-formulaire .panel-body,
#bootstrap3 .cart-formulaire .panel-body { padding: 1.375em; color: var(--bt-ink-body); }
#bootstrap3 .contact-formulaire label, #bootstrap3 .contact-formulaire legend,
#bootstrap3 .cart-formulaire label, #bootstrap3 .cart-formulaire legend,
#bootstrap3 .cart-formulaire th, #bootstrap3 .cart-formulaire td { color: var(--bt-ink); }
#bootstrap3 .contact-formulaire legend,
#bootstrap3 .cart-formulaire legend { border-bottom: 1px solid var(--bt-line); font-weight: 800; font-size: 1.125em; padding-bottom: .4em; margin-bottom: 1em; }
#bootstrap3 .contact-formulaire textarea.form-control { height: auto; min-height: 8em; }
#bootstrap3 .coordonnees .list-group-item { border: none; border-top: 1px solid var(--bt-line); color: var(--bt-ink); background: transparent; }
#bootstrap3 .coordonnees .list-group-item .fa { color: var(--bt-coral); }
#bootstrap3 .contact_sidebar_msg .panel-heading { font-weight: 700; color: var(--bt-ink); }
#bootstrap3 .contact_sidebar_msg .panel-body { color: var(--bt-ink-body); }


/* ==========================
   AUTRES BLOCS (certifications, logos)
========================== */
#bootstrap3 .well,
#bootstrap3 .thumbnail { background: var(--bt-card); border: none; border-radius: var(--bt-radius) !important; box-shadow: none; }
#bootstrap3 .catalogue_certifications { padding: 1.5em; }
#bootstrap3 .resp-sharing-button__link { transition: transform .15s; }
#bootstrap3 .resp-sharing-button__link:hover { transform: translateY(-2px); }


/* ==========================
   BLOC LATERAL SANS TITRE : tuile decorative corail (aucune image, aucun texte)
   HTML a mettre dans le message lateral : <p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
   Un bloc lateral AVEC un titre reste un bloc blanc classique.
========================== */
#bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) {
    position: relative;
    background: var(--bt-coral);
    overflow: hidden;
}
#bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) .panel-body { position: relative; padding: 0; aspect-ratio: 1 / 1; }
#bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) .panel-body > p { position: absolute; margin: 0; font-size: 0; line-height: 0; color: transparent; }
/* p1 : grand disque lavande en bas a gauche */
#bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) .panel-body > p:nth-child(1) { left: -18%; bottom: -22%; width: 70%; height: 70%; border-radius: 50%; background: var(--bt-tile-1); }
/* p2 : disque jaune en haut a droite */
#bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) .panel-body > p:nth-child(2) { right: -10%; top: -12%; width: 46%; height: 46%; border-radius: 50%; background: var(--bt-tile-2); }
/* p3 : bouton " lecture " charbon au centre */
#bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) .panel-body > p:nth-child(3) { left: 50%; top: 50%; width: 26%; height: 26%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--bt-charcoal); }
#bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) .panel-body > p:nth-child(3)::after {
    content: ""; position: absolute; left: 56%; top: 50%; transform: translate(-50%, -50%);
    width: 0; height: 0;
    border-style: solid; border-width: 12px 0 12px 20px;   /* en px : le paragraphe a une taille de texte nulle */
    border-color: transparent transparent transparent var(--bt-white);
}
/* Anneau blanc fin autour du bouton */
#bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) .panel-body::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 42%; height: 42%;
    transform: translate(-50%, -50%); border-radius: 50%;
    border: 3px solid rgba(255,255,255,.55);
}
/* Les paragraphes 4 et 5 (si presents) restent invisibles */
#bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) .panel-body > p:nth-child(n+4) { display: none; }
#bootstrap3 .liste_sidebar_msg img { width: 100%; display: block; }


/* ==========================
   PIED DE PAGE : charbon, angles superieurs arrondis (echo du menu)
========================== */
#bootstrap3 .footer {
    background: var(--bt-charcoal);
    border-top: none;
    border-radius: var(--bt-radius-xl) var(--bt-radius-xl) 0 0;
    color: rgba(255,255,255,.75);
    font-size: 0.8125em;
    padding-top: .75em;
}
#bootstrap3 .footer .text-muted { color: rgba(255,255,255,.75) !important; }
#bootstrap3 .footer a { color: var(--bt-white); text-decoration: underline; }
#bootstrap3 .footer .fa-rocket { color: var(--bt-coral); }


/* ==========================
   ACCESSIBILITE : contour visible au clavier
========================== */
#bootstrap3 a:focus-visible,
#bootstrap3 button:focus-visible,
#bootstrap3 .form-control:focus-visible { outline: 3px solid var(--bt-coral); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    #bootstrap3 * { transition: none !important; }
    #bootstrap3 .catalogue-gallery__card:hover,
    #bootstrap3 .welcome_msg > a:hover, #bootstrap3 .welcome_msg > p > a:hover { transform: none !important; }
}


/* ==========================
   MOBILE (moins de 768 px)
========================== */
@media (max-width: 767px) {
    #bootstrap3 .catalogue-navbar { border-radius: 0 0 var(--bt-radius) var(--bt-radius); }
    #bootstrap3 .well.welcome_msg { padding: 1.5em 1.25em; min-height: 0; }
    #bootstrap3 .catalogue-list > h2 { font-size: 1.2em; }
    #bootstrap3 .catalogue-formation-title { font-size: 1.5em; }
}


/* =====================================================================
   ACCESSIBILITE - MODES DU PANNEAU DENDREO (bouton " accessibilite " du menu)
   Dendreo pose des attributs sur la balise <html> :
     data-contrast="more_contrast"        -> contraste accentue
     data-font="dyslexia_font"            -> police adaptee dyslexie
     data-reduce-motion="reduce_motion"   -> animations reduites
   ===================================================================== */

/* ---------- Contraste accentue : palette noir / blanc, tuiles blanches cernees ---------- */
[data-contrast="more_contrast"] #bootstrap3 {
    --bt-charcoal:     #000000;
    --bt-charcoal-2:   #444444;
    --bt-bg:           #ffffff;
    --bt-card:         #ffffff;
    --bt-field:        #ffffff;
    --bt-line:         #000000;
    --bt-ink:          #000000;
    --bt-ink-soft:     #1a1a1a;
    --bt-ink-body:     #000000;
    --bt-placeholder:  #333333;
    --bt-coral:        #8a2f0f;   /* corail tres fonce : blanc dessus = contraste 8:1 */
    --bt-coral-dark:   #5e1f08;
    --bt-coral-light:  #ffffff;
    --bt-tile-1:       #ffffff;
    --bt-tile-2:       #ffffff;
    --bt-tile-3:       #ffffff;
    --bt-tile-4:       #ffffff;
    --bt-icon-1:       #000000;
    --bt-icon-2:       #000000;
    --bt-icon-3:       #000000;
    --bt-icon-4:       #000000;
    --bt-badge-bg:     #ffffff;
    --bt-badge-text:   #000000;
    --bt-purple:       #2d1a63;
    --bt-purple-light: #dddddd;
    --bt-success-bg:   #ffffff;  --bt-success-text: #000000;
    --bt-warning-bg:   #ffffff;  --bt-warning-text: #000000;
    --bt-danger-bg:    #ffffff;  --bt-danger-text:  #000000;
}
/* Bordures noires visibles sur tout ce qui etait distingue par la couleur */
[data-contrast="more_contrast"] #bootstrap3 .catalogue-gallery__card,
[data-contrast="more_contrast"] #bootstrap3 .panel.panel-default,
[data-contrast="more_contrast"] #bootstrap3 .well,
[data-contrast="more_contrast"] #bootstrap3 .form-control,
[data-contrast="more_contrast"] #bootstrap3 .btn,
[data-contrast="more_contrast"] #bootstrap3 .badge,
[data-contrast="more_contrast"] #bootstrap3 .nav-pills,
[data-contrast="more_contrast"] #bootstrap3 .breadcrumb,
[data-contrast="more_contrast"] #bootstrap3 .catalogue-prochaines-sessions .list-group-item { border: 2px solid #000 !important; }
[data-contrast="more_contrast"] #bootstrap3 .catalogue-gallery__img__mask { border: 2px solid #000; }
[data-contrast="more_contrast"] #bootstrap3 .catalogue-gallery__info { border-top-color: #000; }
[data-contrast="more_contrast"] #bootstrap3 .panel-default > .panel-heading .fa { color: #fff !important; }
/* Menu : Dendreo le force en noir ; l'onglet actif devient blanc a texte noir */
[data-contrast="more_contrast"] #bootstrap3 .navbar-nav > li.active > a::before,
[data-contrast="more_contrast"] #bootstrap3 .navbar-default .navbar-nav > .active > a::before { background: #fff; }
[data-contrast="more_contrast"] #bootstrap3 .navbar-nav > li.active > a { color: #000 !important; }
/* Banniere : Dendreo force le texte en noir -> tuile blanche cernee, bouton cerne */
[data-contrast="more_contrast"] #bootstrap3 .well.welcome_msg { border: 2px solid #000 !important; background: #fff !important; }
[data-contrast="more_contrast"] #bootstrap3 .welcome_msg > a,
[data-contrast="more_contrast"] #bootstrap3 .welcome_msg > p > a { background: #fff; color: #000 !important; border: 2px solid #000; text-decoration: underline; }
[data-contrast="more_contrast"] #bootstrap3 .welcome_msg > a::before,
[data-contrast="more_contrast"] #bootstrap3 .welcome_msg > p > a::before { border-left-color: #000; }
/* Bloc d'inscription : fond blanc, texte noir */
[data-contrast="more_contrast"] #bootstrap3 .catalogue-formation-formulaire { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; }
[data-contrast="more_contrast"] #bootstrap3 .catalogue-formation-formulaire .panel-title,
[data-contrast="more_contrast"] #bootstrap3 .catalogue-formation-formulaire label,
[data-contrast="more_contrast"] #bootstrap3 .catalogue-formation-formulaire .js-price-amount-ttc,
[data-contrast="more_contrast"] #bootstrap3 .catalogue-formation-formulaire .js-price-amount-ht,
[data-contrast="more_contrast"] #bootstrap3 .catalogue-formation-formulaire .text-muted,
[data-contrast="more_contrast"] #bootstrap3 .catalogue-formation-formulaire .text-subtle { color: #000 !important; opacity: 1 !important; }
[data-contrast="more_contrast"] #bootstrap3 .catalogue-formation-formulaire .form-control { background: #fff; color: #000; }
/* Tuile decorative laterale : formes cernees */
[data-contrast="more_contrast"] #bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) { background: #fff; border: 2px solid #000; }
[data-contrast="more_contrast"] #bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) .panel-body > p { outline: 2px solid #000; }
[data-contrast="more_contrast"] #bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) .panel-body::before { border-color: #000; }
[data-contrast="more_contrast"] #bootstrap3 .footer { background: #000; color: #fff; }
[data-contrast="more_contrast"] #bootstrap3 .footer .text-muted { color: #fff !important; }

/* ---------- Police dyslexie : on n'impose jamais notre police par-dessus ---------- */
[data-font="dyslexia_font"] #bootstrap3,
[data-font="dyslexia_font"] #bootstrap3 h1,
[data-font="dyslexia_font"] #bootstrap3 h2,
[data-font="dyslexia_font"] #bootstrap3 h3,
[data-font="dyslexia_font"] #bootstrap3 .panel-title,
[data-font="dyslexia_font"] #bootstrap3 .catalogue-gallery__title,
[data-font="dyslexia_font"] #bootstrap3 .catalogue-formation-title,
[data-font="dyslexia_font"] #bootstrap3 .btn,
[data-font="dyslexia_font"] #bootstrap3 .form-control { font-family: OpenDyslexic3, sans-serif !important; letter-spacing: 0; }

/* ---------- Animations reduites (reglage Dendreo) ---------- */
[data-reduce-motion="reduce_motion"] #bootstrap3 *,
[data-reduce-motion="reduce_motion"] #bootstrap3 *::before,
[data-reduce-motion="reduce_motion"] #bootstrap3 *::after { transition: none !important; animation: none !important; }
[data-reduce-motion="reduce_motion"] #bootstrap3 .catalogue-gallery__card:hover,
[data-reduce-motion="reduce_motion"] #bootstrap3 .welcome_msg > a:hover,
[data-reduce-motion="reduce_motion"] #bootstrap3 .welcome_msg > p > a:hover,
[data-reduce-motion="reduce_motion"] #bootstrap3 .resp-sharing-button__link:hover { transform: none !important; filter: none !important; }

/* ---------- Repli pour anciens navigateurs ---------- */
@supports not (aspect-ratio: 1 / 1) {
    #bootstrap3 .liste_sidebar_msg:not(:has(.panel-heading)) .panel-body { height: 0; padding-bottom: 100%; }
}

/* ==========================
   CORRECTIFS (a garder en fin de fichier)
========================== */
/* Bouton loupe des champs " Formation " et " Adresse " : Bootstrap met la taille de
   police du conteneur a 0, ce qui ecrasait le bouton -> on la retablit. */
#bootstrap3 .input-group-btn { font-size: 1em; }

/* Description de categorie : le gris natif sur fond gris clair ne contraste pas assez */
#bootstrap3 .liste_categorie_description { color: var(--bt-ink-soft); }

body#bootstrap3 .catalogue-container { margin-bottom: 100px; }
#bootstrap3 .footer { padding: 1.25em 0 1.5em; }
#bootstrap3 .footer.navbar-fixed-bottom .container.text-center { background: transparent; padding-bottom: 0 !important; }
#bootstrap3 .footer .text-muted,
#bootstrap3 .footer .text-muted a { line-height: 1.7; }

/* Choix de la session dans le bloc d'inscription colore : les cartes de session
   sont blanches, leur texte et leur prix doivent donc etre sombres (jamais blancs). */
#bootstrap3 .catalogue-formation-formulaire .radio-group__label {
    background: var(--bt-white) !important;
    border: 2px solid transparent !important;
    border-radius: var(--bt-radius-sm);
    color: var(--bt-ink) !important;
    font-size: 1em;
    padding: .8em .9em;
}
#bootstrap3 .catalogue-formation-formulaire .radio-group__label div,
#bootstrap3 .catalogue-formation-formulaire .radio-group__label span:not(.badge),
#bootstrap3 .catalogue-formation-formulaire .radio-group__label .js-price-amount-ttc,
#bootstrap3 .catalogue-formation-formulaire .radio-group__label .js-price-amount-ht,
#bootstrap3 .catalogue-formation-formulaire .radio-group__label .text-muted,
#bootstrap3 .catalogue-formation-formulaire .radio-group__label .text-subtle { color: var(--bt-ink) !important; }
#bootstrap3 .catalogue-formation-formulaire .radio-group__label .js-price-amount-ttc,
#bootstrap3 .catalogue-formation-formulaire .radio-group__label .js-price-amount-ht { font-size: 1.25em; font-weight: 800; }
#bootstrap3 .catalogue-formation-formulaire .radio-group__input:checked + .radio-group__label { border-color: var(--bt-ink) !important; }
#bootstrap3 .catalogue-formation-formulaire .radio-group__input:focus-visible + .radio-group__label { outline: 3px solid var(--bt-white); outline-offset: 2px; }
#bootstrap3 .catalogue-formation-formulaire .session-heading { color: var(--bt-white); font-weight: 700; margin: 1em 0 .5em; }
#bootstrap3 .catalogue-formation-formulaire .session-heading .fa { color: inherit !important; }
/* Sous-blocs du formulaire (formateur, lieu, creneaux) : fond blanc translucide, texte blanc.
   Le bloc " formateur " est masque quand il est vide (evite un rectangle blanc sans contenu). */
#bootstrap3 .catalogue-formation-formulaire .well { background: rgba(255,255,255,.15) !important; border: none !important; box-shadow: none !important; color: var(--bt-white); }
#bootstrap3 .catalogue-formation-formulaire .well a { color: var(--bt-white); }
#bootstrap3 .catalogue-formation-formulaire .well strong { color: var(--bt-white); }
#bootstrap3 .catalogue-formation-formulaire .js_formateur_lam:has(> strong:empty) { display: none; }
[data-contrast="more_contrast"] #bootstrap3 .catalogue-formation-formulaire .well { background: #fff !important; color: #000; border: 2px solid #000 !important; }
[data-contrast="more_contrast"] #bootstrap3 .catalogue-formation-formulaire .radio-group__label { border-color: #000 !important; }

/* Titres de categories : bandeau charbon pleine largeur pour bien separer chaque categorie.
   Les sous-categories (titres h3) ont un bandeau gris clair avec un carre corail. */
#bootstrap3 .catalogue-list { padding: 0 0 2.5em; }
#bootstrap3 .catalogue-list + .catalogue-list { border-top: 2px solid var(--bt-line); padding-top: 2em; }
#bootstrap3 .catalogue-list > h2,
#bootstrap3 .catalogue-list > h3 {
    display: flex;
    align-items: center;
    gap: .5em;
    background: var(--bt-charcoal);
    color: var(--bt-white);
    border-radius: var(--bt-radius-sm);
    padding: .6em 1em;
    margin: 0 0 1em;
    font-size: 1.25em;
    font-weight: 800;
}
#bootstrap3 .catalogue-list > h2 button,
#bootstrap3 .catalogue-list > h3 button { background: none; border: none; padding: 0; font: inherit; color: var(--bt-white); text-align: left; }
#bootstrap3 .catalogue-list > h2 button:hover,
#bootstrap3 .catalogue-list > h3 button:hover { color: var(--bt-coral); }
#bootstrap3 .catalogue-list > h2 .categorie-permalink,
#bootstrap3 .catalogue-list > h3 .categorie-permalink { color: rgba(255,255,255,.6); font-size: .6em; }
#bootstrap3 .catalogue-list > h2 .badge-count,
#bootstrap3 .catalogue-list > h3 .badge-count { background: var(--bt-coral) !important; color: var(--bt-white) !important; margin-left: auto; }
/* Sous-categorie : bandeau gris clair, texte charbon, carre corail devant le titre */
#bootstrap3 .liste_sous_categories { margin-top: .5em; }
#bootstrap3 .liste_sous_categories .catalogue-list { padding-bottom: 1.5em; }
#bootstrap3 .liste_sous_categories .catalogue-list + .catalogue-list { border-top: none; padding-top: 0; }
#bootstrap3 .liste_sous_categories .catalogue-list > h3 { background: var(--bt-field); color: var(--bt-ink); font-size: 1.125em; margin: 0 0 1em; }
#bootstrap3 .catalogue-list > h3::before { content: ""; width: .7em; height: .7em; border-radius: 3px; background: var(--bt-coral); flex: none; }
#bootstrap3 .catalogue-list > h3 button { color: var(--bt-ink); }
#bootstrap3 .catalogue-list > h3 .categorie-permalink { color: var(--bt-placeholder); }
#bootstrap3 .catalogue-list > h3 > .badge { background: var(--bt-charcoal) !important; color: var(--bt-white) !important; margin-left: auto; border-radius: 8px; padding: .3em .55em; font-size: .6em; }
[data-contrast="more_contrast"] #bootstrap3 .catalogue-list > h2 { background: #000; color: #fff; }
[data-contrast="more_contrast"] #bootstrap3 .catalogue-list > h3 { background: #fff; color: #000; border: 2px solid #000; }
[data-contrast="more_contrast"] #bootstrap3 .catalogue-list > h2 .badge-count { background: #fff !important; color: #000 !important; }
[data-contrast="more_contrast"] #bootstrap3 .catalogue-list > h3 > .badge { background: #000 !important; color: #fff !important; }
