/* ============================================= */
/* RESET & BASE STYLES                          */
/* ============================================= */
body {
    font-family: Arial, sans-serif;
    padding-top: 66px;
    margin: 0;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 70px;
    }
}

/* ============================================= */
/* LAYOUT & CONTAINERS                          */
/* ============================================= */
.main-container {
    padding: 0;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================= */
/* NAVBAR & HEADER                              */
/* ============================================= */
.custom-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    background-color: var(--surface-page);
    border-bottom: 1px solid var(--color-neutral-dcdce4);
    padding: 0.5rem 1rem;
    box-shadow: none;
    z-index: 1030;
    width: 100%;
    box-sizing: border-box;
    transform: none !important;
    transition: none !important;
}

.navbar-brand {
    color: var(--bs-white) !important;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Les deux logos font 350x81 (le double de la taille d'affichage, pour les ecrans
   haute densite) : les attributs width/height du HTML decrivent l'image reelle,
   la hauteur d'affichage est fixee ici. */
.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-logo--dark {
    display: none;
}
[data-bs-theme="dark"] .navbar-logo--light {
    display: none;
}
[data-bs-theme="dark"] .navbar-logo--dark {
    display: inline-block;
}

.nav-link {
    color: var(--text-accent-mid) !important;
    margin: 0 0.75rem;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-services) !important;
}

.special-link::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}

.firework-link {
    color: #7a5200 !important;
}

/* Accès TestTrack (coccinelle) posé à droite de "IA-Claudine" : .nav-link
   descend la police à 14px, trop petit pour un emoji seul, et sa marge de
   0.75rem l'écarterait trop de la rubrique qui le précède. */
.nav-link--tickets {
    font-size: 18px;
    line-height: 1;
    margin-left: 0;
}

/* Bascule clair/sombre de la navbar desktop.
   Le gabarit utilise .btn-link, qui applique le bleu de lien Bootstrap :
   trop appuyé pour un contrôle utilitaire posé à côté des CTA "S'abonner"
   et "Mon compte". On le passe en gris discret, qui monte en contraste au
   survol. L'id suffit à battre la spécificité de .btn-link.
   --color-neutral-888 vaut #888 en clair et --bs-gray-400 en sombre :
   discret sur la navbar blanche, clair sur la navbar sombre. */
#themeToggleBtn {
    color: var(--color-neutral-888);
}

#themeToggleBtn:hover,
#themeToggleBtn:focus {
    color: var(--text-accent);
}

.bouton-menu {
    margin-right: 10px;
    border: none;
    background: transparent;
    padding: 0.5rem;
}

.bouton-menu .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(26, 26, 46, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.offcanvas {
    width: 250px;
    background-color: var(--bs-gray-800);
    color: white;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#accountOffcanvas {
    background-color: var(--surface-page);
    color: var(--text-strong);
}

#accountOffcanvas .offcanvas-header {
    border-bottom: 1px solid var(--color-services-light);
}

#accountOffcanvas .offcanvas-title {
    color: var(--text-strong);
}

#accountOffcanvas .btn-close {
    filter: none;
}

.offcanvas-body .nav-link {
    color: white !important;
    padding: 0.5rem 1rem;
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#offcanvasNav .menu-section-title {
    font-weight: 600;
    padding-left: 0 !important;
    display: inline-block;
}

/* ============================================= */
/* BARRE PROFIL (home uniquement)               */
/* ============================================= */
.prof {
    background: var(--surface-highlight);
    border-bottom: 1px solid var(--color-neutral-dcdce4);
}

.prof__in {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 12px;
    color: var(--text-accent-mid);
    flex-wrap: wrap;
    padding-top: 5px;
    padding-bottom: 5px;
}

.prof__btns {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.prof button {
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-accent-mid);
    padding: 3px 10px;
    cursor: pointer;
}

.prof button:hover {
    color: var(--text-accent);
}

.prof button[aria-pressed="true"] {
    background: var(--color-services);
    color: var(--bs-white);
    font-weight: 600;
}

.prof__end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.prof__end a {
    color: var(--text-accent-mid);
    text-decoration: none;
}

.prof__end a:hover {
    color: var(--text-accent);
}

@media (max-width: 820px) {
    .prof__end {
        display: none;
    }
}

/* ============================================= */
/* SEARCH FORM & BUTTONS                        */
/* ============================================= */
/* Bloc de recherche de la navbar desktop : volontairement plus étroit
   qu'avant (800px) pour laisser respirer les rubriques à gauche et les CTA
   "S'abonner" / "Mon compte" à droite. flex-grow le laisse se réduire encore
   sur les écrans intermédiaires. */
.search-form {
    flex-grow: 1;
    max-width: 480px;
    margin: 0 1.25rem;
}

/* Le champ était figé en sombre (#2c2c2c + texte blanc) même en thème clair,
   héritage de l'ancienne navbar sombre. On passe sur les tokens de rôle :
   fond gris léger sur la navbar blanche, fond gris foncé en thème sombre. */
.search-form .form-control {
    background-color: var(--surface-subtle);
    border-color: var(--border-subtle);
    color: var(--text-strong);
    border-radius: 25px 0 0 25px;
    padding: 0.5rem 1rem;
    /* -10% sur le 1rem par défaut de Bootstrap : le placeholder tient
       sur plus de caractères dans un champ devenu plus étroit. */
    font-size: 0.9rem;
    /* Répartition 52/48 avec le bouton IA-Claudine : le champ, texte
       raccourci, n'a plus besoin d'autant de place. */
    flex: 0 1 52%;
}

.search-form .form-control::placeholder {
    color: var(--color-neutral-777);
    opacity: 1;
}

/* Champ non saisissable : il sert de déclencheur vers la page /recherche */
.search-form__trigger,
.search-form__trigger:focus {
    cursor: pointer;
    background-color: var(--surface-subtle);
    color: var(--text-strong);
    box-shadow: none;
}

.search-form .btn {
    background-color: #dc3545;
    border-color: #dc3545;
    border-radius: 0 25px 25px 0;
    color: var(--bs-white);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* Répartition 52/48 avec le champ de recherche */
    flex: 0 1 48%;
}

.btn-subscribe {
    background-color: #d81e2c;
    border-color: #d81e2c;
    color: var(--bs-white);
    margin-right: 0.5rem;
    padding: 9px 15px;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
}

.btn-subscribe:hover {
    background-color: #b3151f;
    border-color: #b3151f;
    color: var(--bs-white);
}

.btn-login {
    background-color: transparent;
    border: 1px solid var(--color-services);
    color: var(--text-accent);
    padding: 9px 15px;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
}

.btn-login:hover {
    background-color: var(--color-services-hover);
    border-color: var(--color-services-hover);
    color: var(--bs-white);
}

@media (max-width: 991.98px) {
    .navbar-collapse.d-lg-flex {
        display: none !important;
    }
}

.mobile-menu-button {
    margin-left: auto;
}

.mobile-menu-button .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(26, 26, 46, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mobileOffcanvasNav {
    background-color: var(--bs-gray-800);
    color: white;
}

#mobileOffcanvasNav .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobileOffcanvasNav .nav-link {
    color: white !important;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0;
}

#mobileOffcanvasNav .menu-section-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 0 !important;
}

#mobileOffcanvasNav .menu-section-title .bi-stars {
    color: #ffd75e;
}

/* Bascule clair/sombre du menu mobile : la navbar mobile n'a pas la place
   d'accueillir le bouton icône du desktop, l'action est donc proposée ici.
   Traitée comme une action et non comme une rubrique : pas de graisse de
   titre de section, placée en dernier dans la liste. L'offcanvas est sombre
   dans les 2 thèmes, ces valeurs n'ont donc pas de contrepartie.
   padding-left: 0 aligne l'icône sur les autres entrées de premier niveau,
   qui neutralisent le padding de .nav-link via .menu-section-title. */
#mobileOffcanvasNav .menu-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7) !important;
    padding-left: 0;
}

#mobileOffcanvasNav .menu-theme-toggle:hover {
    color: rgba(255, 255, 255, 1) !important;
}

#mobileOffcanvasNav .submenu-toggle,
#offcanvasNav .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mobileOffcanvasNav .submenu-toggle-icon,
#offcanvasNav .submenu-toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.2s ease-in-out;
}

#mobileOffcanvasNav .submenu-toggle.collapsed .submenu-toggle-icon,
#offcanvasNav .submenu-toggle.collapsed .submenu-toggle-icon {
    transform: rotate(-90deg);
}

#mobileOffcanvasNav .submenu-toggle + ul .nav-link,
#offcanvasNav .submenu-toggle + ul .nav-link {
    padding-left: 2rem;
    font-size: 0.95em;
}

#mobileOffcanvasNav .form-control {
    background-color: var(--color-neutral-2c2c2c);
    border-color: var(--color-neutral-444);
    color: var(--bs-white);
    border-radius: 5px;
}

#mobileOffcanvasNav .btn-search {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    border-radius: 5px;
}

/* ============================================= */
/* SITE FOOTER                                  */
/* ============================================= */
.foot {
    background: var(--color-services);
    color: rgba(255, 255, 255, .66);
    padding: 44px 0 26px;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 13px;
}

.foot__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 30px;
}

.foot h4 {
    color: var(--bs-white);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.foot ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.foot li {
    margin-bottom: 7px;
}

.foot a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.foot a:hover {
    color: var(--bs-white);
}

.foot__legal {
    margin-top: 32px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 11.5px;
    color: rgba(255, 255, 255, .55);
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.foot__legal a {
    color: inherit;
}

.foot__legal a:hover {
    color: var(--bs-white);
}

@media (max-width: 767.98px) {
    .foot__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .foot__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ============================================= */
/* MOBILE BOTTOM NAVIGATION                     */
/* ============================================= */
.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    display: none;
    background-color: var(--color-neutral-1a1a1a);
    border-top: 1px solid var(--color-neutral-e0deda);
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 100%;
    transform: none !important;
    transition: none !important;
}

@media (max-width: 767.98px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

.mobile-bottom-nav .nav-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-neutral-999);
    font-size: 0.50rem;
    padding: 0.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-bottom-nav .nav-button:hover,
.mobile-bottom-nav .nav-button:active {
    color: #dc3545;
}

.mobile-bottom-nav .nav-button i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.mobile-bottom-nav .nav-button-claudine {
    flex-direction: row;
    gap: 0.15rem;
}

.mobile-bottom-nav .nav-button-claudine i {
    margin-bottom: 0;
    color: #ffd75e;
}

.mobile-bottom-nav .nav-button-claudine .bi-stars {
    font-size: 0.85rem;
}

/* ============================================= */
/* HERO SECTION                                 */
/* ============================================= */
.hero-section {
    background-image: url('/imgbqe/6203');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 500px;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-buttons {
    justify-content: center;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.hero-btn:hover {
    background-color: #bb2d3b;
}

/* Boutons filtre métiers /videos */
.metier-btn {
    background: var(--surface-page);
    color: var(--color-neutral-444);
    border: 1.5px solid var(--border-subtle);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.metier-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: #fff5f6;
}
.metier-btn.active {
    background: #dc3545;
    border-color: #dc3545;
    color: var(--bs-white);
}
.metier-btn .badge {
    font-size: 0.7rem;
}

.hero-text {
    max-width: 100%;
    margin: 0 20%;
    margin-bottom: 2rem;
    align-self: center;
    text-align: left;
}

.hero-text h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .limited-text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.read-more-btn {
    background-color: transparent;
    color: var(--bs-white);
    border: 1px solid var(--bs-white);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background-color: #dc3545;
    color: white;
}

/* ============================================= */
/* INFO SECTION (2 COLUMNS LAYOUT)              */
/* ============================================= */
.info-header {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 20px;
}

.info-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 0px;
    color: var(--bs-black);
}

.info-subtitle {
    font-size: 16px;
    color: var(--color-neutral-666);
    margin-bottom: 10px;
}

.info-title-all {
    color: #dc3545;
    float: right;
    margin-top: 8px;
}

.info-grid {
    display: flex;
    gap: 20px;
}

.info-col1 {
    flex: 1;
}

.info-main-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.info-main-title {
    font-size: 20px;
    font-weight: bold;
    padding: 15px 15px 5px;
    margin: 0;
}

.info-main-subtitle {
    font-size: 14px;
    color: var(--color-neutral-666);
    padding: 0 15px 15px;
    margin: 0;
}

.info-col2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.info-row-image {
    flex: 0 0 30%;
}

.info-row-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.info-row-content {
    flex: 1;
    padding: 5px 0;
}

.info-row-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px;
}

.info-row-desc {
    font-size: 14px;
    color: var(--color-neutral-666);
    margin: 0 0 8px;
}

.info-row-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.info-row-link:hover {
    text-decoration: underline;
}

/* ============================================= */
/* CARDS (GENERIC)                              */
/* ============================================= */
.card {
    overflow: hidden;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-hover {
    position: relative;
}

.card-hover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.card-hover:hover .card-hover-content {
    transform: translateY(0);
}

/* ============================================= */
/* NEWSLETTER SECTION                           */
/* ============================================= */
.newsletter-container {
    background-color: var(--color-neutral-2c2c2c);
    padding: 40px;
    border-radius: 10px;
    margin: 30px 0;
    color: white;
}

.newsletter-row {
    min-height: 300px;
}

.newsletter-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.newsletter-text h3 {
    color: var(--bs-gray-100);
    margin-bottom: 20px;
    font-weight: 600;
}

.newsletter-text p {
    color: var(--bs-gray-500);
    margin-bottom: 25px;
    line-height: 1.6;
}

.newsletter-form .form-control {
    background-color: var(--bs-gray-800);
    border: 1px solid var(--bs-gray-700);
    color: white;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.newsletter-form .form-control::placeholder {
    color: var(--bs-gray-500);
}

.newsletter-form .btn {
    background-color: #dc3545;
    border-color: #dc3545;
    padding: 12px 30px;
    font-weight: 500;
    width: 100%;
    border-radius: 5px;
}

.newsletter-form .btn:hover {
    background-color: #e35d6a;
    border-color: #e35d6a;
}

.newsletter-image {
    background-image: url('../img/Img-enveloppe.png');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    opacity: 0.8;
    position: relative;
}

.newsletter-image:hover {
    opacity: 1;
}

/* ============================================= */
/* PROCHAINEMENT SECTION                        */
/* ============================================= */
.prochainement-container {
    background-color: var(--color-neutral-2c2c2c);
    padding: 40px;
    border-radius: 10px;
    margin: 30px 0;
    color: white;
}

.prochainement-row {
    min-height: 300px;
}

.prochainement-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.prochainement-text h3 {
    color: var(--bs-gray-100);
    margin-bottom: 20px;
    font-weight: 600;
}

.prochainement-text p {
    color: var(--bs-gray-500);
    margin-bottom: 25px;
    line-height: 1.6;
}

.prochainement-image {
    background-image: url('/imgbqe/9612');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    opacity: 0.8;
    position: relative;
}

.prochainement-image:hover {
    opacity: 1;
}

/* ============================================= */
/* CLAUDINE SECTION                             */
/* ============================================= */
.claudine-container {
    background-color: var(--color-neutral-2c2c2c);
    padding: 40px;
    border-radius: 10px;
    margin: 30px 0;
    color: white;
}

.claudine-row {
    min-height: 300px;
}

.claudine-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.claudine-text h3 {
    color: var(--bs-gray-100);
    margin-bottom: 20px;
    font-weight: 600;
}

.claudine-text p {
    color: var(--bs-gray-500);
    margin-bottom: 25px;
    line-height: 1.6;
}

.claudine-image {
    background-image: url('/imgbqe/1614');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    opacity: 0.8;
    position: relative;
}

.claudine-image:hover {
    opacity: 1;
}

/* ============================================= */
/* MARCHES SECTION                              */
/* ============================================= */
.liste-marches {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-neutral-f0f0f0);
    overflow: hidden;
}

.liste-marches-couverture {
    float: left;
    width: 80px;
}

.liste-marches-couverture img {
    width: 80px;
    border-radius: 4px;
}

.liste-marches-texte {
    margin-left: 95px;
}

@media (min-width: 768px) {
    .liste-marches-couverture {
        width: 110px;
    }
    .liste-marches-couverture img {
        width: 110px;
    }
    .liste-marches-texte {
        margin-left: 125px;
    }
}

.liste-marches-texte h3 {
    color: var(--text-222);
    font-size: 1.2em;
    line-height: 22px;
    margin-bottom: 4px;
}

.liste-marches-texte h3 a {
    color: var(--text-222);
    text-decoration: none;
}

.liste-marches-texte h3 a:hover {
    text-decoration: underline;
}

.liste-marches-descriptif {
    /*font-size: 0.85em;*/
    color: var(--color-neutral-666);
    line-height: 1.45;
}

.liste-marches-descriptif-fin {
    color: #e61933;
    font-size: 0.70em;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 4px;
}

.liste-marches-descriptif-fin a {
    color: #e61933;
}

.color-red {
    color: #e61933;
    font-size: 0.70em;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 4px;
}

/* ============================================= */
/* EMPLOIS SECTION                              */
/* ============================================= */
.liste-emplois {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-neutral-f0f0f0);
    overflow: hidden;
}

.liste-emplois-couverture {
    float: left;
    width: 80px;
}

.liste-emplois-couverture img {
    width: 80px;
    border-radius: 4px;
}

.liste-emplois-texte {
    margin-left: 95px;
}

@media (min-width: 768px) {
    .liste-emplois-couverture {
        width: 110px;
    }
    .liste-emplois-couverture img {
        width: 110px;
    }
    .liste-emplois-texte {
        margin-left: 125px;
    }
}

.liste-emplois-texte h3 {
    color: var(--text-222);
    font-size: 1.2em;
    line-height: 22px;
    margin-bottom: 4px;
}

.liste-emplois-texte h3 a {
    color: var(--text-222);
    text-decoration: none;
}

.liste-emplois-texte h3 a:hover {
    text-decoration: underline;
}

.liste-emplois-descriptif-fin {
    color: #e61933;
    font-size: 0.70em;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 4px;
}

.liste-emplois-descriptif-fin a {
    color: #e61933;
}

/* ============================================= */
/* EMPLOIS CARDS v2 (ec-card)                   */
/* ============================================= */
.ec-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--surface-page);
    border: 1px solid var(--color-neutral-f0f0f0);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}
 
.ec-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border-color: var(--color-neutral-ccc);
}

.ec-card--visibilite {
    background: var(--surface-highlight);
    border-color: #d4d4e2;
    border-left: 3px solid var(--accent-border);
}

.ec-card--visibilite:hover {
    border-left-color: var(--accent-border);
    border-color: #b9b9d0;
}

/* Mode sombre : le liseré lavande #d4d4e2 et le bleu nuit du bord gauche
   étaient figés en valeurs claires — l'un trop lumineux, l'autre invisible
   sur le fond gris foncé de la carte. */
[data-bs-theme="dark"] .ec-card--visibilite {
    border-color: var(--bs-gray-700);
    border-left-color: var(--accent-border);
}

[data-bs-theme="dark"] .ec-card--visibilite:hover {
    border-color: var(--bs-gray-600);
    border-left-color: var(--accent-border);
}

.ec-card:hover .ec-card__title {
    text-decoration: underline;
}

/* Lien invisible couvrant toute la carte */
.ec-card__link {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    border-radius: 8px;
}

/* Bouton favori (coeur) */
.ec-card__favori {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-page);
    border: 1px solid var(--color-neutral-e0deda);
    border-radius: 50%;
    color: var(--color-neutral-999);
    font-size: 15px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.ec-card__favori:hover { background: var(--color-neutral-f5f4f0); color: var(--color-neutral-5f5e5a); }
.ec-card__favori--active {
    background: #fff0f0;
    color: #991B1B;
    border-color: #fca5a5;
}
.ec-card__favori--active:hover { background: #fee2e2; }

/* Logo */
.ec-card__logo-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ec-card__logo-col .ec-card__badge-new {
    position: relative;
    z-index: 2;
}

.ec-card__logo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 1px solid var(--color-neutral-f0f0f0);
    border-radius: 6px;
    background: var(--surface-page);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ec-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.ec-card__logo-placeholder {
    font-size: 26px;
    color: var(--color-neutral-ccc);
}

/* Corps */
.ec-card__body {
    flex: 1;
    min-width: 0;
}

/* Ligne du haut : badges */
.ec-card__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.ec-card__badge-contrat {
    display: inline-block;
    font-size: 0.70em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-neutral-555);
    background: var(--color-neutral-f0f0f0);
    border-radius: 4px;
    padding: 2px 8px;
}

/* Badge type (marchés publics) — fond bleuté + bord gauche, comme .ec-card__badge-veille sur les cartes publications */
.ec-card__badge-primary {
    display: inline-block;
    font-size: 0.70em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-services-mid);
    background: var(--color-services-light);
    border-left: 3px solid var(--color-services);
    border-radius: 4px;
    padding: 2px 8px;
}

.ec-card__badge-veille {
    display: inline-block;
    font-size: 0.70em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-publications-mid);
    background: var(--color-publications-light);
    border-left: 3px solid var(--color-publications);
    border-radius: 4px;
    padding: 2px 8px;
}

.ec-card__badge-new {
    display: inline-block;
    font-size: 0.70em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-white);
    background: #e61933;
    border-radius: 4px;
    padding: 2px 8px;
}

/* Date limite (marchés publics) — texte coloré, sans fond ni bordure */
.ec-card__deadline {
    color: #92540a;
    font-weight: 600;
}

.ec-card__deadline--urgent {
    color: #991b1b;
}

.ec-card__deadline--expired {
    color: var(--color-neutral-888);
    font-weight: 400;
}

.ec-card__meta-item.ec-card__deadline i { color: inherit; }

/* Titre */
.ec-card__title {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-1a1a1a);
    margin: 0 0 5px 0;
    line-height: 1.35;
}

/* Accroche */
.ec-card__accroche {
    font-size: 0.875em;
    color: var(--color-neutral-555);
    margin: 0 0 10px 0;
    line-height: 1.45;
}

/* Ligne méta */
.ec-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ec-card__meta-item {
    font-size: 0.80em;
    color: var(--color-neutral-777);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ec-card__meta-item i {
    color: var(--color-neutral-aaa);
    font-size: 0.90em;
}

/* CTA */
.ec-card__cta {
    margin-left: auto;
    font-size: 0.80em;
    font-weight: 600;
    color: var(--text-accent);
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

/* Portrait variant */
.ec-card--portrait .ec-card__logo {
    width: 90px;
    height: 90px;
    border: none;
    border-radius: 10px;
}
.ec-card--portrait .ec-card__logo img {
    object-fit: cover;
    padding: 0;
}

/* Mobile */
@media (max-width: 575px) {
    .ec-card {
        gap: 12px;
        padding: 12px;
    }
    .ec-card__logo {
        width: 56px;
        height: 56px;
    }
    .ec-card--portrait .ec-card__logo {
        width: 70px;
        height: 70px;
    }
    .ec-card__cta {
        display: none;
    }
}

/* ============================================= */
/* PORTRAITS SECTION                            */
/* ============================================= */
.liste-portraits {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-neutral-f0f0f0);
    overflow: hidden;
}

.liste-portraits-couverture {
    float: left;
    width: 88px;
}

.liste-portraits-couverture img {
    width: 88px;
    border-radius: 4px;
}

.liste-portraits-texte {
    margin-left: 103px;
}

@media (min-width: 768px) {
    .liste-portraits-couverture {
        width: 116px;
    }
    .liste-portraits-couverture img {
        width: 116px;
    }
    .liste-portraits-texte {
        margin-left: 131px;
    }
}

.liste-portraits-texte h3 {
    color: var(--text-222);
    font-size: 1.2em;
    line-height: 22px;
    margin-bottom: 4px;
}

.liste-portraits-texte h3 a {
    color: var(--text-222);
    text-decoration: none;
}

.liste-portraits-texte h3 a:hover {
    text-decoration: underline;
}

.liste-portraits-fonction {
    font-size: 0.85em;
    font-weight: bold;
    color: var(--color-neutral-333);
    margin-bottom: 4px;
}

.liste-portraits-chapo {
    font-size: 0.85em;
    color: var(--color-neutral-777);
    line-height: 1.45;
    margin-bottom: 4px;
}

@media (max-width: 575.98px) {
    .liste-portraits-chapo {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.liste-portraits-descriptif-fin {
    color: #e61933;
    font-size: 0.70em;
    text-transform: uppercase;
    font-weight: bold;
}

.liste-portraits-descriptif-fin a {
    color: #e61933;
}

/* ============================================= */
/* OFFCANVAS CUSTOM HEIGHT                      */
/* ============================================= */
.offcanvas-custom-height {
    height: auto !important;
    max-height: 90vh;
    top: 10px;
    bottom: auto !important;
    border-radius: 0.5rem;
    overflow-y: auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    width: 700px !important;
}

.offcanvas-custom-height .offcanvas-body {
    padding: 1rem;
}

.offcanvas-custom-height .offcanvas-header {
    padding: 1rem 1rem 0.5rem;
}

/* ============================================= */
/* RESPONSIVE DESIGN                            */
/* ============================================= */
@media (max-width: 991.98px) {
    .search-form {
        margin: 0.5rem 0;
        max-width: none;
    }

    .navbar-collapse {
        background-color: var(--color-neutral-1a1a1a);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }

    .hero-section {
        height: auto;
        padding: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-text {
        margin-top: 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .info-grid {
        flex-direction: column;
    }

    .info-row {
        flex-direction: row;
    }

    .info-row-image {
        flex: 0 0 30%;
    }

    .info-row-content {
        flex: 1;
    }
}

/* ============================================= */
/* NOMINATIONS SECTION                          */
/* ============================================= */
.nomination-header {
    border-bottom: 1px solid var(--color-neutral-f0f0f0);
    padding-bottom: 0.5rem;
}

.nomination-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-neutral-333);
    margin: 0;
}

.nomination-carousel {
    position: relative;
}

.carousel-container {
    overflow: hidden;
}

.carousel-inner {
    scroll-behavior: smooth;
}

.nomination-card {
    min-width: 180px;
    background: var(--surface-page);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.nomination-card:hover {
    transform: translateY(-4px);
}

.nomination-card-image {
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.nomination-card-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.nomination-card-body {
    padding: 0.75rem;
}

.nomination-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-neutral-333);
    margin: 0;
}

.nomination-card-role {
    font-size: 0.875rem;
    color: var(--color-neutral-666);
    margin: 0;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--bs-white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: -20px;
}

.carousel-control.next {
    right: -20px;
}

/* ============================================= */
/* VIDEOS PAGE                                  */
/* ============================================= */

/* Vignette vidéo : ratio 16:9 garanti cross-browser + mobile */
.videos-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-neutral-222);
    overflow: hidden;
}

.videos-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

a:hover .videos-thumb-img {
    opacity: 0.85;
}

.videos-thumb-overlay {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.videos-thumb-duree {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.7);
    color: var(--bs-white);
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 20px;
}

/* --- Section titles (legacy, conservé pour compatibilité) --- */
.videos-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-1a1a1a);
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #dc3545;
    display: inline-block;
}

/* --- Une éditoriale --- */
.videos-une-col-img {
    min-height: 200px; /* hauteur mini sur mobile */
}

.videos-une-img-link {
    display: block;
    position: absolute;
    inset: 0;
}

.videos-une-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s;
}

.videos-une-img-link:hover .videos-une-img {
    opacity: 0.85;
}

.videos-une-titre {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bs-gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .videos-une-titre { font-size: 1.5rem; }
}

.videos-une-resume {
    font-size: 0.95rem;
    color: var(--bs-gray-700);
    line-height: 1.6;
    margin-bottom: 0;
}

.videos-une-metiers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.videos-une-badge-metier {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* --- Tuiles métiers --- */
.videos-metiers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .videos-metiers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .videos-metiers-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.videos-metier-tile {
    background: var(--surface-subtle);
    border: 2px solid var(--surface-subtle);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.videos-metier-tile:hover {
    border-color: #dc3545;
    background: #fff5f6;
}

.videos-metier-tile.active {
    border-color: #dc3545;
    background: #dc3545;
    color: var(--bs-white);
}

.videos-metier-tile.active .videos-metier-count {
    color: rgba(255, 255, 255, 0.85);
}

.videos-metier-tile.active .videos-metier-bar {
    background: rgba(255, 255, 255, 0.5);
}

.videos-metier-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.2;
}

.videos-metier-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc3545;
}

.videos-metier-bar-wrap {
    width: 100%;
    height: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.videos-metier-bar {
    height: 100%;
    background: #dc3545;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* --- Cartes vidéo --- */
.videos-card {
    color: var(--color-neutral-333);
    background: var(--surface-page);
    transition: box-shadow 0.2s, transform 0.2s;
}

.videos-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.videos-card-duree {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    color: var(--bs-white);
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 4px;
}

.videos-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-1a1a1a);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.videos-card-text {
    font-size: 0.85rem;
    color: var(--color-neutral-555);
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.videos-card-metiers {
    font-size: 0.75rem;
    color: #dc3545;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* --- Parcours de formation --- */
.videos-parcours-st-btn {
    font-size: 0.9rem;
    background: var(--surface-subtle);
}

.videos-parcours-item {
    font-size: 0.875rem;
    color: var(--color-neutral-333);
}

.videos-parcours-item:hover {
    background: #fff5f6;
    color: #dc3545;
}

.videos-parcours-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- Cartes home : overlay titre au hover --- */
.videos-home-card {
    background: var(--surface-page);
}

.videos-home-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.78);
    color: var(--bs-white);
    padding: 0.75rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.videos-home-overlay .videos-card-title {
    color: var(--bs-white);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.videos-home-overlay .videos-card-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    margin: 0;
}

a:hover .videos-home-overlay {
    transform: translateY(0);
}

/* --- Cartes home agenda : overlay titre au hover --- */
.agenda-card {
    background: var(--surface-page);
    transition: box-shadow 0.2s, transform 0.2s;
}

.agenda-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.agenda-thumb-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-neutral-222);
}

.agenda-thumb-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.2s;
}

a:hover .agenda-thumb-img {
    opacity: 0.85;
}

.agenda-home-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.78);
    color: var(--bs-white);
    padding: 0.75rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.agenda-home-overlay .agenda-card-title {
    color: var(--bs-white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.agenda-home-overlay .agenda-card-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

a:hover .agenda-home-overlay {
    transform: translateY(0);
}

/* ============================================= */
/* BREADCRUMB                                   */
/* ============================================= */

.breadcrumb {
    font-size: 0.85em;
}

.breadcrumb-item a {
    color: var(--color-neutral-555);
    text-decoration: none;
    font-weight: bold;
}

.breadcrumb-item a:hover {
    color: var(--color-neutral-333);
    text-decoration: underline;
}

.breadcrumb-item.active {
    font-weight: normal;
}

/* --- HTMX loading indicator --- */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: block;
}

/* ============================================= */
/* RUBRIQUE SERVICES — TOKENS & COMPOSANTS      */
/* ============================================= */

/* Liens "Voir toutes les offres / marchés / agenda" */
.section-link {
    color: var(--text-accent);
    font-weight: 500;
    text-decoration: none;
}
.section-link:hover {
    color: var(--color-services-hover);
    text-decoration: underline;
}

/* Boutons outline rubrique Services */
.btn-outline-services {
    background: transparent;
    border: 0.5px solid var(--color-services);
    color: var(--text-accent);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color .15s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline-services:hover {
    background-color: var(--surface-highlight);
    color: var(--text-accent);
    text-decoration: none;
}

/* ============================================= */
/* LISTING PAGES — BANDEAU CONTEXTE             */
/* ============================================= */

.listing-context-bar {
    border-left: 3px solid var(--color-services);
    padding: 16px 20px;
    margin-bottom: 28px;
    background: var(--surface-highlight);
    border-radius: 0 8px 8px 0;
}
.listing-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-services-text);
    margin: 6px 0 4px;
}
.listing-subtitle {
    font-size: 13px;
    color: var(--text-accent-mid);
    margin: 0;
}
.listing-breadcrumb {
    font-size: 12px;
    color: var(--text-accent-mid);
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}
.listing-breadcrumb a {
    color: var(--text-accent-mid);
    text-decoration: none;
}
.listing-breadcrumb a:hover {
    color: var(--text-accent);
}

/* Lien "Voir l'offre →" dans les items de listing */
.item-link {
    color: var(--text-accent);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.item-link:hover {
    color: var(--color-services-hover);
    text-decoration: underline;
}

/* Badges de type (tags) */
.badge-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--color-services-light);
    color: var(--color-services-text);
    border: 0.5px solid var(--color-services-mid);
}

/* ============================================= */
/* FICHES — SECTION TITLE                       */
/* ============================================= */

.section-title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-accent-mid);
    margin-bottom: 10px;
}

/* ============================================= */
/* HERO SOUS-RUBRIQUES                          */
/* ============================================= */

.hero-rubrique .container { position: relative; }
.hero-rubrique__accent {
    width: 40px;
    height: 3px;
    background: #C8102E;
    border-radius: 2px;
    margin-bottom: 12px;
}

.hero-rubrique {
    width: 100%;
    min-height: 170px;
    background: var(--color-services);
    position: relative;
    overflow: hidden;
    color: var(--bs-white);
    padding: 36px 0 28px;
}
.hero-rubrique::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(200,16,46,.35) 0%, transparent 60%);
    pointer-events: none;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}
.hero-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.6);
    margin: 0 0 10px;
}
.hero-rubrique h1 {
    color: var(--bs-white);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.hero-rubrique__subtitle {
    color: rgba(255,255,255,.72);
    font-size: 0.95rem;
    margin: 0 0 10px;
}
.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ============================================= */
/* BREADCRUMB BAR                               */
/* ============================================= */

.breadcrumb-bar {
    width: 100%;
    background: var(--color-services-light);
    border-bottom: 0.5px solid var(--color-services-mid);
}
.breadcrumb-inner {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 10px calc(var(--bs-gutter-x, 1.5rem) * .5);
}
@media (min-width: 576px)  { .breadcrumb-inner { max-width: 540px;  } }
@media (min-width: 768px)  { .breadcrumb-inner { max-width: 720px;  } }
@media (min-width: 992px)  { .breadcrumb-inner { max-width: 960px;  } }
@media (min-width: 1200px) { .breadcrumb-inner { max-width: 1140px; } }
@media (min-width: 1400px) { .breadcrumb-inner { max-width: 1320px; } }
.breadcrumb-bar nav.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    background: none;
}
.breadcrumb-bar nav.breadcrumb a {
    color: var(--color-services-mid);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.breadcrumb-bar nav.breadcrumb a:hover {
    color: var(--color-services);
    text-decoration: none;
}
.breadcrumb-bar nav.breadcrumb span[aria-hidden] {
    color: var(--color-services-mid);
    opacity: 0.5;
}
.breadcrumb-current {
    color: var(--color-services-text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb-bar nav.breadcrumb a:not(:nth-last-child(-n+3)),
    .breadcrumb-bar nav.breadcrumb span[aria-hidden]:not(:nth-last-child(-n+3)) {
        display: none;
    }
}

/* ============================================= */
/* INFO — HERO & BREADCRUMB                    */
/* ============================================= */

.info-hero .container { position: relative; }
.info-hero__accent {
    width: 40px;
    height: 3px;
    background: #C8102E;
    border-radius: 2px;
    margin-bottom: 12px;
}

.info-hero {
    width: 100%;
    min-height: 170px;
    background: var(--color-services);
    position: relative;
    overflow: hidden;
    color: var(--bs-white);
    padding: 36px 0 28px;
}
.info-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(200,16,46,.35) 0%, transparent 60%);
    pointer-events: none;
}
.info-hero h1 {
    color: var(--bs-white);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.info-hero__subtitle {
    color: rgba(255,255,255,.72);
    font-size: 0.95rem;
    margin: 0;
}

.info-breadcrumb-bar {
    width: 100%;
    background: var(--color-info-light);
    border-bottom: 0.5px solid var(--color-info-mid);
}
.info-breadcrumb-bar nav.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    background: none;
}
.info-breadcrumb-bar nav.breadcrumb a {
    color: var(--color-info-mid);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.info-breadcrumb-bar nav.breadcrumb a:hover {
    color: var(--color-info);
    text-decoration: none;
}
.info-breadcrumb-bar nav.breadcrumb span[aria-hidden] {
    color: var(--color-info-mid);
    opacity: 0.5;
}
.info-breadcrumb-bar .breadcrumb-current {
    color: var(--color-info-text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .info-breadcrumb-bar nav.breadcrumb a:not(:nth-last-child(-n+3)),
    .info-breadcrumb-bar nav.breadcrumb span[aria-hidden]:not(:nth-last-child(-n+3)) {
        display: none;
    }
}

/* ============================================= */
/* PUBLICATIONS — HERO                          */
/* ============================================= */

.publications-hero .container { position: relative; }
.publications-hero__accent {
    width: 40px;
    height: 3px;
    background: #C8102E;
    border-radius: 2px;
    margin-bottom: 12px;
}

.publications-hero {
    width: 100%;
    min-height: 170px;
    background: var(--color-services);
    position: relative;
    overflow: hidden;
    color: var(--bs-white);
    padding: 36px 0 28px;
}
.publications-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(200,16,46,.35) 0%, transparent 60%);
    pointer-events: none;
}
.publications-hero h1 {
    color: var(--bs-white);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.publications-hero__subtitle {
    color: rgba(255,255,255,.72);
    font-size: 0.95rem;
    margin: 0 0 10px;
}

/* ============================================= */
/* PUBLICATIONS — BREADCRUMB BAR               */
/* ============================================= */

.publications-breadcrumb-bar {
    width: 100%;
    background: var(--color-publications-light);
    border-bottom: 0.5px solid var(--color-publications-mid);
}
.publications-breadcrumb-bar nav.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    background: none;
}
.publications-breadcrumb-bar nav.breadcrumb a {
    color: var(--color-publications-mid);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.publications-breadcrumb-bar nav.breadcrumb a:hover {
    color: var(--color-publications);
    text-decoration: none;
}
.publications-breadcrumb-bar nav.breadcrumb span[aria-hidden] {
    color: var(--color-publications-mid);
    opacity: 0.5;
}
.publications-breadcrumb-bar .breadcrumb-current {
    color: var(--color-publications-text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .publications-breadcrumb-bar nav.breadcrumb a:not(:nth-last-child(-n+3)),
    .publications-breadcrumb-bar nav.breadcrumb span[aria-hidden]:not(:nth-last-child(-n+3)) {
        display: none;
    }
}

/* =========================================================
   Espace compte
   ========================================================= */

.account-layout {
    display: flex;
    min-height: calc(100vh - 56px);
}

.account-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 0.5px solid var(--color-services-mid);
    padding-bottom: 24px;
}

.account-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px 16px;
    background: var(--surface-highlight);
    border-bottom: 0.5px solid var(--color-services-mid);
    margin-bottom: 8px;
}

.account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-services);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.account-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-strong);
    margin: 0;
}

.account-role {
    font-size: 12px;
    color: var(--text-accent-mid);
    margin: 0;
}

.account-nav {
    flex: 1;
    padding: 0 8px;
}

.account-nav-group {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-accent-mid);
    padding: 16px 8px 6px;
    margin: 0;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-strong);
    text-decoration: none;
    transition: background-color .15s, color .15s;
    margin-bottom: 2px;
}

.account-nav-item:hover {
    background: var(--surface-highlight);
    color: var(--text-accent);
    text-decoration: none;
}

.account-nav-item.active {
    background: var(--surface-highlight);
    color: var(--text-accent);
    font-weight: 500;
    border-left: 3px solid var(--color-services);
    padding-left: 7px;
}

.account-nav-sub {
    padding-left: 18px;
    font-size: 13px;
}

.account-nav-item .bi-stars {
    color: #ffd75e;
}

.claudine-day-band {
    background: var(--color-services);
    color: var(--bs-white);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    /* --color-services (#1a1a2e) est un bleu nuit déjà sombre, cohérent tel
       quel dans les 2 thèmes (cf. tokens.css) : pas d'override [data-bs-theme="dark"]
       nécessaire pour la couleur elle-même. Le liseré ci-dessous évite juste que
       la bande se fonde visuellement avec le fond de carte en thème sombre. */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.claudine-sources-strip {
    padding: 12px 16px 16px;
    border-top: 1px solid #ffd75e;
}

.claudine-source-vignette {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ffd75e;
    background: #fffaed;
    flex-shrink: 0;
}

.claudine-source-vignette img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.claudine-source-vignette__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #7a5200;
    font-size: 20px;
}

.account-nav-sub.active {
    padding-left: 15px;
}

.account-sidebar-footer {
    padding: 16px 8px 0;
    border-top: 0.5px solid var(--color-services-mid);
    margin: 0 8px;
}

.account-signout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-accent-mid);
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.account-signout:hover {
    background: var(--surface-highlight);
    color: var(--text-accent);
    text-decoration: none;
}

.account-main {
    flex: 1;
    min-width: 0;
    padding: 28px 32px;
}

/* Tableau de bord */
.account-dashboard {
    max-width: 1100px;
}

.account-page-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-strong);
    margin-bottom: 4px;
}

/* Ligne de titre du tableau de bord : titre + invitation à compléter le profil */
.account-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 4px;
}

.account-title-row .account-page-title {
    margin-bottom: 0;
}

.account-profil-nudge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface-highlight);
    border: 0.5px solid var(--border-subtle);
    color: var(--text-accent);
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .15s;
}

.account-profil-nudge:hover,
.account-profil-nudge:focus {
    background: var(--surface-subtle);
    color: var(--text-accent);
}

/* Champ du formulaire profil restant à compléter */
.account-champ-a-completer {
    background: var(--surface-highlight);
    border-left: 3px solid var(--text-accent);
    border-radius: 8px;
    padding-top: 10px;
    padding-right: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
    scroll-margin-top: 90px;
}

.account-page-subtitle {
    font-size: 14px;
    color: var(--text-accent-mid);
    margin-bottom: 28px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 36px;
}

.dashboard-stat-card {
    background: var(--surface-highlight);
    border-radius: 10px;
    padding: 18px 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background-color .15s;
    border: 0.5px solid transparent;
}

.dashboard-stat-card:hover {
    border-color: var(--color-services-mid);
    text-decoration: none;
}

/* Vignette IA-Claudine : léger rappel de la palette jaune de l'assistant */
.dashboard-stat-card--claudine .stat-value,
.dashboard-stat-card--claudine .stat-label {
    color: #7a5200;
}

.dashboard-stat-card--claudine {
    background: #fffaed;
}

.dashboard-stat-card--claudine:hover {
    border-color: #ffd75e;
}

.stat-value {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-accent);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-accent-mid);
}

.account-section-title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-accent-mid);
    margin-bottom: 12px;
}

.dashboard-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-action-btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: var(--color-services);
    color: var(--bs-white);
    transition: background-color .15s;
}

.dashboard-action-btn:hover {
    background: var(--color-services-hover);
    color: var(--bs-white);
    text-decoration: none;
}

.dashboard-action-btn--outline {
    background: transparent;
    color: var(--text-accent);
    border: 0.5px solid var(--color-services);
}

.dashboard-action-btn--outline:hover {
    background: var(--surface-highlight);
    color: var(--text-accent);
}


/* Tableau de bord - blocs sur deux colonnes.
   Une .dashboard-grid par ligne, avec un seul bloc par colonne : sur mobile
   les colonnes s'empilent dans l'ordre du HTML (Claudine, Documents, Emplois,
   Marchés) au lieu de dérouler une colonne entière avant l'autre. */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-col {
    min-width: 0;
}

.dashboard-panel {
    height: 100%;
    background: var(--surface-page);
    border: 0.5px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
}

/* Entête de bloc : même recette que .claudine-day-band — --color-services
   (#1a1a2e) est un bleu nuit déjà sombre, cohérent tel quel dans les 2 thèmes
   (cf. tokens.css), le liseré évite juste qu'il se fonde avec le fond de carte
   en thème sombre. */
.dashboard-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    background: var(--color-services);
    color: var(--bs-white);
    padding: 10px 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.dashboard-panel__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-white);
    margin: 0;
}

.dashboard-panel__icon {
    color: rgba(255, 255, 255, .75);
    margin-right: 6px;
}

.dashboard-panel__icon--claudine {
    color: #ffd75e;
}

.dashboard-panel__link {
    flex: none;
    font-size: 12px;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-panel__link:hover {
    color: var(--bs-white);
    text-decoration: underline;
}

.dashboard-panel__body {
    padding: 12px 20px 16px;
}

/* Liens pratiques sous l'entête : plus clairs, plus petits, soulignés */
.dashboard-panel__links {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.7;
}

.dashboard-panel__links a {
    color: var(--text-accent-mid);
    text-decoration: underline;
}

.dashboard-panel__links a:hover {
    color: var(--text-accent);
}

.dashboard-panel__sep {
    color: var(--color-neutral-aaa);
    margin: 0 4px;
}

.dashboard-panel__caption {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-neutral-888);
    margin: 0 0 4px;
}

.dashboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-list-item + .dashboard-list-item {
    border-top: 0.5px solid var(--surface-subtle);
}

.dashboard-list-link {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
}

.dashboard-list-link:hover .dashboard-list-title {
    text-decoration: underline;
}

.dashboard-list-title {
    display: block;
    font-size: 14px;
    color: var(--text-strong);
}

.dashboard-list-sub {
    display: block;
    font-size: 12px;
    color: var(--text-accent-mid);
}

.dashboard-list-meta {
    display: block;
    font-size: 11px;
    color: var(--color-neutral-888);
    margin-top: 2px;
}

.dashboard-empty {
    font-size: 13px;
    color: var(--text-accent-mid);
    margin: 0;
    padding: 8px 0;
}

.dashboard-actions {
    margin-top: 16px;
}

/* Mobile */
@media (max-width: 768px) {
    .account-layout {
        flex-direction: column;
    }

    .account-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 0.5px solid var(--color-services-mid);
        padding-bottom: 0;
    }

    .account-sidebar.is-drawer {
        position: fixed;
        top: 56px;
        left: 0;
        height: calc(100vh - 56px);
        width: 280px;
        background: var(--surface-page);
        transform: translateX(-100%);
        transition: transform .2s ease;
        z-index: 200;
        box-shadow: 2px 0 12px rgba(26, 26, 46, 0.12);
        overflow-y: auto;
        padding-bottom: 24px;
    }

    .account-sidebar.is-drawer.is-open {
        transform: translateX(0);
    }

    .account-main {
        padding: 20px 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}



/* Bouton Claudine : couleur harmonisée #ffd75e */
.btn-claudine-analyse,
.btn-claudine-analyse:hover,
.btn-claudine-analyse:focus {
    background-color: #ffd75e;
    border-color: #ffd75e;
    color: #7a5200;
}
.btn-claudine-analyse:hover,
.btn-claudine-analyse:focus {
    background-color: #ffc93a;
    border-color: #ffc93a;
}

/* Teaser Claudine (aperçu non-abonné) */
.claudine-fade {
    position: relative;
    max-height: 3.4em;
    overflow: hidden;
}
.claudine-fade::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.4em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--surface-page));
}
.claudine-upsell-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #7a5200;
    text-decoration: none;
}
.claudine-upsell-cta:hover {
    color: #4d3400;
    text-decoration: underline;
}

/* ============================================= */
/* MODE SOMBRE — cas isolés (une seule occurrence,   */
/* ne justifient pas un token de rôle réutilisable)  */
/* ============================================= */
[data-bs-theme="dark"] .info-title,
[data-bs-theme="dark"] .videos-une-titre {
    color: var(--bs-white);
}
[data-bs-theme="dark"] .videos-une-resume {
    color: var(--bs-gray-400);
}
[data-bs-theme="dark"] .metier-btn {
    color: var(--bs-gray-200);
}
[data-bs-theme="dark"] .firework-link {
    color: #ffd700 !important;
}
/* Le hamburger est un SVG dont la couleur de trait est figée dans l'URL
   data: ; il faut donc réémettre l'image entière pour le thème sombre.
   .mobile-menu-button était absent de cette règle : sur mobile, le trait
   bleu nuit rgba(26, 26, 46, 0.7) restait posé sur une navbar sombre,
   donc quasiment invisible. */
[data-bs-theme="dark"] .bouton-menu .navbar-toggler-icon,
[data-bs-theme="dark"] .mobile-menu-button .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================= */
/* MODE SOMBRE — utilitaire Bootstrap .bg-light  */
/* ============================================= */
/* Bootstrap 5.3 remappe --bs-secondary-color (donc .text-muted) et
   --bs-body-color en clair sous [data-bs-theme="dark"], mais laisse
   --bs-light à #f8f9fa. Résultat : tout `bg-light` dont le contenu suit
   la couleur du thème (texte hérité, .text-muted, icônes) devient
   illisible - texte clair sur fond clair. Concerne une vingtaine de
   templates : badges "facultatif" des formulaires de dépôt, encarts
   d'alertes, vignettes de repli, blocs de résultat Claudine.

   L'exclusion .text-dark est essentielle : `bg-light text-dark` (badges
   de comptage, tags de mots-clés) est un couple fond pâle + texte foncé
   auto-cohérent - .text-dark n'étant pas remappé non plus, ces badges
   restent corrects dans les deux thèmes. Les assombrir ici les casserait
   à l'inverse (texte #212529 sur gris foncé). Même doctrine que les
   badges maison laissés en fond pâle (cf. tokens.css).

   Thème clair strictement inchangé : la règle ne vit que sous
   [data-bs-theme="dark"]. */
[data-bs-theme="dark"] .bg-light:not(.text-dark) {
    background-color: var(--bs-gray-800) !important;
}

/* ============================================= */
/* MODE SOMBRE — barre de recherche input-group  */
/* ============================================= */
/* Les 12 barres de recherche du site (emplois, agenda, entreprises/Presta'Tour,
   vidéos, portraits, et les 7 pages publications) partagent exactement le même
   gabarit : un <span class="input-group-text bg-white border-end-0"> portant la
   loupe, suivi immédiatement du <input class="form-control border-start-0 ps-0">.
   Le fond blanc de la loupe vient de l'utilitaire .bg-white, que Bootstrap 5.3
   ne remappe pas en thème sombre (--bs-white reste #fff) : on obtenait donc une
   pastille blanche collée à un champ sombre.
   La règle vivait auparavant dans publications.css, limitée à une classe d'accroche
   .pub-search-bar posée sur les seuls conteneurs des pages publications ;
   comme le gabarit est identique partout, elle est remontée ici et s'accroche au
   balisage lui-même — plus besoin de classe d'accroche sur le conteneur.
   Le sélecteur d'adjacence (+) est volontaire plutôt qu'un :has() : compatibilité
   navigateurs anciens, cf. contraintes du projet.
   Thème clair strictement inchangé. */
[data-bs-theme="dark"] .input-group-text.bg-white,
[data-bs-theme="dark"] .input-group-text.bg-white + .form-control {
    background-color: var(--surface-subtle) !important;
    color: var(--text-strong);
}
[data-bs-theme="dark"] .input-group-text.bg-white + .form-control::placeholder {
    color: var(--text-accent-mid);
}

/* ------------------------------------------------------------------
   Recueil d'avis — modale "prise en main du nouveau site"
   (templates/components/modale_avis.php + public/assets/js/avis.js)
   Volontairement minimal : la modale Bootstrap gère déjà le thème
   clair/sombre, on n'ajoute que la mise en forme propre au formulaire.
   ------------------------------------------------------------------ */
.avis-modal .avis-question {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 14px;
}

.avis-modal .avis-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.avis-modal .avis-rappel {
    padding: 0;
    font-size: 13px;
    text-decoration: underline;
    color: var(--text-accent-mid);
}

.avis-modal .avis-merci {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-services);
}

.avis-modal .avis-merci .bi {
    font-size: 20px;
}

@media (max-width: 575.98px) {
    .avis-modal .avis-actions {
        justify-content: space-between;
    }
}

/* ------------------------------------------------------------------
   Modale de bienvenue (templates/components/modale_bienvenue.php
   + public/assets/js/bienvenue.js)
   ------------------------------------------------------------------ */
.bienvenue-modal .bienvenue-intro {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 12px;
}

.bienvenue-modal .bienvenue-liste {
    padding-left: 22px;
    margin: 0 0 16px;
}

.bienvenue-modal .bienvenue-liste li {
    margin-bottom: 8px;
}

.bienvenue-modal .bienvenue-liste li::marker {
    color: var(--color-services);
    font-weight: 700;
}

.bienvenue-modal .bienvenue-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
