/* =============================================================================
   Amphyx — Thème « EasyEDA » (v2, refonte complète du 18/11/2026)
   Reprend la présentation d'easyeda.com : bandeau d'annonce, bannière en
   carrousel sur fond sombre, sections blanches très aérées avec gros titres
   centrés, onglets soulignés, onglets verticaux, chiffres clés, bandeau
   d'appel final sur toute la largeur et pied de page en colonnes.

   Couleurs et police Amphyx INCHANGÉES : bleu nuit #0c2e60, orange #ee390f,
   jaune #f9b700 (variables de campusx-modern.css), police « Outfit ».

   Partie A : retouches communes à tout le site (en-tête, boutons, cartes...).
   Partie B : composants de la page d'accueil et du pied de page (préfixe .ex-).
   Le préfixe « html body » sert à passer devant les styles déjà écrits dans
   les gabarits. Pour revenir à l'ancien style : retirer le <link> dans base.html.
   ============================================================================= */

:root {
    --ex-navy: var(--primary, #0c2e60);
    --ex-navy-deep: #071830;
    --ex-accent: var(--accent, #ee390f);
    --ex-accent-hover: var(--accent-hover, #d12e07);
    --ex-gold: var(--gold, #f9b700);
    --ex-ink: #0f1f3a;
    --ex-muted: #5b6b82;
    --ex-line: #e3e8f0;
    --ex-soft: #f5f7fa;
    --ex-radius: 8px;
    --ex-shadow: 0 2px 10px rgba(12, 46, 96, 0.06);
    --ex-shadow-hover: 0 12px 32px rgba(12, 46, 96, 0.14);
    --ex-section-y: 96px;
    /* compatibilité avec la v1 */
    --cx-radius: 8px;
    --cx-radius-sm: 6px;
    --cx-shadow: var(--ex-shadow);
    --cx-shadow-hover: var(--ex-shadow-hover);
    --cx-ink: var(--ex-navy);
    --cx-muted: var(--ex-muted);
    --cx-line: var(--ex-line);
}

/* =============================================================================
   PARTIE A — RETOUCHES COMMUNES À TOUT LE SITE
   ============================================================================= */

/* En-tête blanc et plat, liens soulignés au survol */
html body .main_menu {
    background: #ffffff !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--ex-line) !important;
}
html body .main_menu.scrolled,
html body .main_menu.menu_fixed {
    box-shadow: 0 2px 12px rgba(12, 46, 96, 0.08) !important;
}
@media (min-width: 992px) {
    html body .main_menu .navbar-nav > .nav-item > .nav-link {
        position: relative;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 12px 14px !important; /* garde l'en-tête à 72 px, la hauteur réservée par base.html */
        font-size: 15px !important;
        font-weight: 500 !important;
        color: var(--ex-ink) !important;
        box-shadow: none !important;
    }
    html body .main_menu .navbar-nav > .nav-item > .nav-link::before {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: -12px; /* collé au bas de l'en-tête */
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: var(--ex-accent);
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }
    html body .main_menu .navbar-nav > .nav-item > .nav-link:hover,
    html body .main_menu .navbar-nav > .nav-item.active > .nav-link {
        color: var(--ex-accent) !important;
    }
    html body .main_menu .navbar-nav > .nav-item > .nav-link:hover::before,
    html body .main_menu .navbar-nav > .nav-item.active > .nav-link::before {
        transform: scaleX(1);
    }
    html body .main_menu .dropdown-menu-mega {
        border: 1px solid var(--ex-line) !important;
        border-radius: var(--ex-radius) !important;
        box-shadow: 0 16px 40px rgba(12, 46, 96, 0.12) !important;
        margin-top: 0 !important;
    }
    html body .main_menu .mega-menu-link {
        border-radius: 6px !important;
    }
    html body .main_menu .mega-menu-link:hover {
        background: var(--ex-soft) !important;
    }
}
html body .main_menu .navbar-nav .btn_1,
html body .main_menu .main-menu-item ul .btn_1 {
    background: var(--ex-accent) !important;
    background-image: none !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    padding: 9px 20px !important;
    font-weight: 600 !important;
}
html body .main_menu .navbar-nav .btn_1:hover,
html body .main_menu .main-menu-item ul .btn_1:hover {
    background: var(--ex-accent-hover) !important;
    transform: none !important;
}

/* Boutons du site : rectangulaires, aplats de couleur */
html body .btn_1,
html body .hero-btn-primary,
html body .campusx-gradient-pill-btn {
    background: var(--ex-accent) !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid var(--ex-accent) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}
html body .btn_1:hover,
html body .hero-btn-primary:hover,
html body .campusx-gradient-pill-btn:hover {
    background: var(--ex-accent-hover) !important;
    border-color: var(--ex-accent-hover) !important;
    color: #ffffff !important;
}
html body .btn_2,
html body .hero-btn-secondary {
    background: #ffffff !important;
    color: var(--ex-navy) !important;
    border: 1px solid var(--ex-navy) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}
html body .btn_2:hover,
html body .hero-btn-secondary:hover {
    background: var(--ex-navy) !important;
    color: #ffffff !important;
}

/* Titres de section des autres pages : centrés, gros, sans barre décorative */
html body .section_tittle p {
    background: transparent !important;
    color: var(--ex-accent) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1.4px !important;
    padding: 0 !important;
    border: none !important;
}
html body .section_tittle h2 {
    font-size: clamp(28px, 3.2vw, 40px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.6px !important;
    color: var(--ex-navy) !important;
}
html body .section_tittle h2::after,
html body .section_tittle h2:after {
    display: none !important;
    content: none !important;
}

/* Cartes : coins 8 px, bord fin, élévation au survol */
html body .card,
html body .campusx-card {
    border-radius: var(--ex-radius) !important;
}
html body .special_cource .card,
html body .feature_part .card,
html body section.section_padding .card,
html body .campusx-card {
    border: 1px solid var(--ex-line) !important;
    box-shadow: var(--ex-shadow) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
html body .special_cource .card:hover,
html body .feature_part .card:hover,
html body section.section_padding .card:hover,
html body .campusx-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--ex-shadow-hover) !important;
}

/* =============================================================================
   PARTIE B — PAGE D'ACCUEIL ET PIED DE PAGE (.ex-)
   ============================================================================= */

.ex-home {
    color: var(--ex-ink);
}
.ex-home h1,
.ex-home h2,
.ex-home h3,
.ex-home h4 {
    font-family: inherit;
}

/* Boutons (bannière, bandeau final) */
.ex-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 30px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ex-btn:hover {
    transform: translateY(-1px);
}
.ex-btn-primary {
    background: var(--ex-accent);
    border-color: var(--ex-accent);
    color: #ffffff !important;
}
.ex-btn-primary:hover {
    background: var(--ex-accent-hover);
    border-color: var(--ex-accent-hover);
}
.ex-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff !important;
}
.ex-btn-ghost:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--ex-navy) !important;
}

/* ---------- 1. Bandeau d'annonce ---------- */
.ex-notice {
    background: var(--ex-navy-deep);
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}
.ex-notice-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 42px;
    padding-top: 8px;
    padding-bottom: 8px;
    position: relative;
    text-align: center;
}
.ex-notice-text i {
    color: var(--ex-gold);
    margin-right: 6px;
}
.ex-notice-text strong {
    color: #ffffff;
}
.ex-notice-link {
    color: var(--ex-gold) !important;
    font-weight: 600;
    white-space: nowrap;
}
.ex-notice-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.ex-notice-close:hover {
    color: #ffffff;
}

/* ---------- 2. Bannière en carrousel ---------- */
.ex-banner {
    position: relative;
    overflow: hidden;
    /* Fond uni, sans quadrillage */
    background: var(--ex-navy);
    color: #ffffff;
}
.ex-banner-track {
    position: relative;
    min-height: 480px;
}
.ex-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.ex-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}
.ex-slide-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 32px;
    min-height: 480px;
    padding-top: 28px;
    padding-bottom: 52px;
}
.ex-slide-title {
    margin: 0 0 18px;
    color: #ffffff !important;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
}
.ex-slide-lead {
    margin: 0 0 22px;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.6;
}
.ex-slide-lead strong {
    color: var(--ex-gold);
}
.ex-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--ex-gold);
    color: var(--ex-navy-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.ex-slide-list {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}
.ex-slide-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.5;
}
.ex-slide-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ex-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23071830' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.ex-available {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}
.ex-available span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ex-available i {
    color: #ffffff;
    font-size: 16px;
}
.ex-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.ex-slide-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.ex-slide-visual img {
    width: 100%;
    max-width: 470px;
    max-height: 420px;
    object-fit: contain;
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.3));
}
.ex-slide-visual--small img {
    max-width: 270px;
}
.ex-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.ex-banner-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
}
.ex-banner-arrow--prev {
    left: 20px;
}
.ex-banner-arrow--next {
    right: 20px;
}
.ex-banner-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.ex-banner-dots button {
    width: 28px;
    height: 4px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.ex-banner-dots button.is-active {
    width: 44px;
    background: #ffffff;
}

/* ---------- Sections ---------- */
.ex-section {
    padding: var(--ex-section-y) 0;
    background: #ffffff;
}
.ex-section--soft {
    background: var(--ex-soft);
}
.ex-head {
    max-width: 820px;
    margin: 0 auto 56px;
    text-align: center;
}
.ex-head h2 {
    margin: 0;
    color: var(--ex-navy) !important;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.6px;
}
.ex-head p {
    margin: 14px 0 0;
    color: var(--ex-muted);
    font-size: 18px;
}
.ex-center {
    margin-top: 36px;
    text-align: center;
}
.ex-narrow {
    max-width: 860px;
}
.ex-link {
    color: var(--ex-accent) !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
}
.ex-link:hover {
    text-decoration: underline !important;
}

/* ---------- 3. Trois piliers ---------- */
.ex-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.ex-pillar {
    display: block;
    padding: 40px 32px;
    border: 1px solid var(--ex-line);
    border-radius: var(--ex-radius);
    background: #ffffff;
    text-align: center;
    color: inherit !important;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ex-pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--ex-shadow-hover);
    border-color: transparent;
}
.ex-pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: rgba(238, 57, 15, 0.08);
    color: var(--ex-accent);
    font-size: 30px;
}
.ex-pillar h3 {
    margin: 0 0 12px;
    color: var(--ex-navy) !important;
    font-size: 22px;
    font-weight: 700;
}
.ex-pillar p {
    margin: 0;
    color: var(--ex-muted);
    font-size: 16px;
    line-height: 1.65;
}

/* ---------- 4. Une interface : onglets horizontaux ---------- */
.ex-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: -24px 0 48px;
    border-bottom: 1px solid var(--ex-line);
    overflow-x: auto;
    scrollbar-width: none;
}
.ex-tabs::-webkit-scrollbar {
    display: none;
}
.ex-tab {
    position: relative;
    flex: 0 0 auto;
    padding: 16px 26px 18px;
    border: none;
    background: transparent;
    color: var(--ex-muted);
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}
.ex-tab::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--ex-accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.ex-tab:hover,
.ex-tab[aria-selected="true"] {
    color: var(--ex-navy);
}
.ex-tab[aria-selected="true"]::after {
    transform: scaleX(1);
}
.ex-panel {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 64px;
}
.ex-panel[hidden],
.ex-unique-panel[hidden] {
    display: none !important;
}
.ex-panel-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 32px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--ex-shadow);
}
.ex-panel-visual img {
    width: 100%;
    max-width: 480px;
    max-height: 340px;
    height: auto;
    object-fit: contain;
}
.ex-panel-text h3 {
    margin: 0 0 16px;
    color: var(--ex-navy) !important;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}
.ex-panel-text > p {
    margin: 0 0 24px;
    color: var(--ex-muted);
    font-size: 17px;
    line-height: 1.7;
}
.ex-hl {
    color: var(--ex-accent);
    font-weight: 700;
}
.ex-mini-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    border-top: 1px solid var(--ex-line);
}
.ex-mini-list li {
    border-bottom: 1px solid var(--ex-line);
}
.ex-mini-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    color: inherit !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}
.ex-mini-list a:hover {
    background: rgba(12, 46, 96, 0.03);
}
.ex-mini-list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(12, 46, 96, 0.06);
    color: var(--ex-navy);
    font-size: 17px;
}
.ex-mini-list span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ex-mini-list strong {
    overflow: hidden;
    color: var(--ex-ink);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ex-mini-list small {
    color: var(--ex-muted);
    font-size: 14px;
}
.ex-mini-empty {
    padding: 14px 4px;
    color: var(--ex-muted);
    font-size: 15px;
}

/* ---------- 5. Services : onglets verticaux ---------- */
.ex-unique {
    display: grid;
    grid-template-columns: 280px 1fr 240px;
    gap: 40px;
    align-items: start;
}
.ex-unique-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ex-unique-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    background: transparent;
    color: var(--ex-muted);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ex-unique-tab i {
    font-size: 18px;
}
.ex-unique-tab:hover {
    background: var(--ex-soft);
    color: var(--ex-navy);
}
.ex-unique-tab[aria-selected="true"] {
    border-left-color: var(--ex-accent);
    background: var(--ex-soft);
    color: var(--ex-navy);
}
.ex-unique-tab[aria-selected="true"] i {
    color: var(--ex-accent);
}
.ex-unique-panel h3 {
    margin: 4px 0 26px;
    color: var(--ex-navy) !important;
    font-size: 26px;
    font-weight: 700;
}
.ex-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 36px;
}
.ex-feature-grid h4 {
    position: relative;
    margin: 0 0 8px;
    padding-left: 16px;
    color: var(--ex-ink) !important;
    font-size: 18px;
    font-weight: 700;
}
.ex-feature-grid h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--ex-accent);
}
.ex-feature-grid p {
    margin: 0;
    color: var(--ex-muted);
    font-size: 15.5px;
    line-height: 1.65;
}
.ex-unique-visual {
    display: flex;
    justify-content: center;
}
.ex-unique-visual img {
    width: 100%;
    max-width: 220px;
    height: auto;
}

/* ---------- 6. Annonces partenaires ---------- */
.ex-ads {
    padding: 0 0 var(--ex-section-y);
    background: #ffffff;
}
.ex-ads-frame {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ex-soft);
    box-shadow: var(--ex-shadow);
}
/* Piste défilante : glisser au doigt ou à la souris, flèches, points, clavier */
.ex-ads-track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}
.ex-ads-track::-webkit-scrollbar {
    display: none;
}
.ex-ads-track:focus-visible {
    outline: 3px solid rgba(238, 57, 15, 0.45);
    outline-offset: -3px;
}
.ex-ads-track.is-dragging,
.ex-ads-track.is-animating {
    scroll-snap-type: none;
}
.ex-ads-track.is-dragging {
    cursor: grabbing;
    user-select: none;
}
.ex-ad {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.ex-ad img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    -webkit-user-drag: none;
}
.ex-ads-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0c2e60;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(7, 24, 48, 0.18);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.ex-ads-prev { left: 12px; }
.ex-ads-next { right: 12px; }
.ex-ads-frame:hover .ex-ads-nav,
.ex-ads-nav:focus-visible {
    opacity: 1;
}
.ex-ads-nav:hover {
    transform: scale(1.06);
}
.ex-ads-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 2;
    display: flex;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(7, 24, 48, 0.35);
    transform: translateX(-50%);
}
.ex-ads-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: width 0.35s ease, background 0.35s ease;
}
.ex-ads-dots button[aria-current="true"] {
    width: 22px;
    background: #ffffff;
}
@media (hover: none) {
    .ex-ads-nav { display: none; }   /* au doigt : on glisse directement */
}
@media (max-width: 575.98px) {
    .ex-ads-dots { bottom: 6px; padding: 4px 6px; }
    .ex-ads-dots button { width: 6px; height: 6px; }
    .ex-ads-dots button[aria-current="true"] { width: 16px; }
}
.ex-ads-label {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(7, 24, 48, 0.6);
    color: #ffffff;
    font-size: 12px;
}

/* ---------- 7. Pourquoi Amphyx ---------- */
.ex-why {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.ex-why-item {
    padding: 36px 20px;
    border-radius: var(--ex-radius);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--ex-shadow);
}
.ex-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--ex-navy);
    color: #ffffff;
    font-size: 24px;
}
.ex-why-item h3 {
    margin: 0 0 6px;
    color: var(--ex-navy) !important;
    font-size: 30px;
    font-weight: 700;
}
.ex-why-item p {
    margin: 0;
    color: var(--ex-muted);
    font-size: 16px;
}

/* ---------- 8. Cartes de concours ---------- */
.ex-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.ex-card {
    display: block;
    padding: 30px;
    border: 1px solid var(--ex-line);
    border-radius: var(--ex-radius);
    background: #ffffff;
    color: inherit !important;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ex-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ex-shadow-hover);
}
.ex-card-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(238, 57, 15, 0.08);
    color: var(--ex-accent);
    font-size: 13px;
    font-weight: 700;
}
.ex-card h3 {
    margin: 0 0 10px;
    color: var(--ex-navy) !important;
    font-size: 21px;
    font-weight: 700;
}
.ex-card p {
    margin: 0 0 18px;
    color: var(--ex-muted);
    font-size: 15.5px;
    line-height: 1.65;
}
.ex-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: var(--ex-ink);
    font-size: 14px;
    font-weight: 600;
}
.ex-card-meta i {
    margin-right: 4px;
    color: var(--ex-accent);
}

/* ---------- 9. FAQ ---------- */
.ex-faq details {
    margin-bottom: 12px;
    border: 1px solid var(--ex-line);
    border-radius: var(--ex-radius);
    background: #ffffff;
}
.ex-faq summary {
    position: relative;
    padding: 20px 56px 20px 24px;
    color: var(--ex-navy);
    font-size: 17px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}
.ex-faq summary::-webkit-details-marker {
    display: none;
}
.ex-faq summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ex-accent);
    font-size: 24px;
    font-weight: 400;
}
.ex-faq details[open] summary::after {
    content: "\2212";
}
.ex-faq details p {
    margin: 0;
    padding: 0 24px 22px;
    color: var(--ex-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* ---------- Bandeau d'appel final (commun à tout le site) ---------- */
.ex-footer-cta {
    padding: 88px 0;
    text-align: center;
    background-color: var(--ex-navy);
    background-image: none; /* fond uni */
}
.ex-footer-cta h2 {
    margin: 0 auto 32px;
    max-width: 760px;
    color: #ffffff !important;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.6px;
}
.ex-footer-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- Pied de page en colonnes ---------- */
html body .ex-footer {
    padding: 64px 0 0 !important;
    background: var(--ex-navy-deep) !important;
    color: rgba(255, 255, 255, 0.62);
}
.ex-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 32px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ex-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none !important;
}
.ex-footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.ex-accent {
    color: var(--ex-accent);
}
.ex-footer-tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}
.ex-footer-cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    padding-bottom: 48px;
}
html body .ex-footer h4 {
    margin: 0 0 18px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}
.ex-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ex-footer li {
    margin-bottom: 11px;
    font-size: 14.5px;
    line-height: 1.5;
}
html body .ex-footer li a {
    color: rgba(255, 255, 255, 0.62) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
html body .ex-footer li a:hover {
    color: #ffffff !important;
}
.ex-footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.ex-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13.5px;
}

/* =============================================================================
   PARTIE C — NAVIGATION EASYEDA (rubriques + panneaux pleine largeur)
   ============================================================================= */
@media (min-width: 992px) {
    html body .main_menu .ex-nav-item {
        position: static;
    }
    html body .main_menu .navbar-nav > .ex-nav-item > .ex-nav-trigger {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: none;
        cursor: pointer;
        font-family: inherit;
    }
    html body .main_menu .ex-nav-trigger::after {
        content: "";
        width: 7px;
        height: 7px;
        margin-top: -3px;
        border-right: 1.6px solid currentColor;
        border-bottom: 1.6px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }
    html body .main_menu .ex-nav-item:hover .ex-nav-trigger::after,
    html body .main_menu .ex-nav-item.is-open .ex-nav-trigger::after {
        transform: rotate(-135deg);
        margin-top: 3px;
    }
    html body .main_menu .ex-nav-item:hover > .ex-nav-trigger,
    html body .main_menu .ex-nav-item.is-open > .ex-nav-trigger {
        color: var(--ex-accent) !important;
    }
    html body .main_menu .ex-nav-item:hover > .ex-nav-trigger::before,
    html body .main_menu .ex-nav-item.is-open > .ex-nav-trigger::before {
        transform: scaleX(1);
    }
    /* Le panneau commence 12 px plus haut (bordure transparente) pour que la souris ne le « perde » pas */
    .ex-nav-panel {
        position: fixed;
        left: 0;
        right: 0;
        top: 60px;
        z-index: 1040;
        border-top: 12px solid transparent;
        background: #ffffff;
        background-clip: padding-box;
        box-shadow: 0 18px 36px rgba(12, 46, 96, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }
    .ex-nav-panel::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 1px;
        background: var(--ex-line);
    }
    .ex-nav-item:hover > .ex-nav-panel,
    .ex-nav-item:focus-within > .ex-nav-panel,
    .ex-nav-item.is-open > .ex-nav-panel {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}
.ex-nav-panel-inner {
    text-align: left;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 12px 48px;
    padding-top: 30px;
    padding-bottom: 30px;
}
.ex-nav-intro strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ex-navy);
    font-size: 20px;
    font-weight: 700;
}
.ex-nav-intro p {
    margin: 0;
    color: var(--ex-muted);
    font-size: 14.5px;
    line-height: 1.6;
}
.ex-nav-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 16px;
}
.ex-nav-links a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: inherit !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}
.ex-nav-links a:hover,
.ex-nav-links a:focus-visible {
    background: var(--ex-soft);
}
.ex-nav-links i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(238, 57, 15, 0.08);
    color: var(--ex-accent);
    font-size: 17px;
}
.ex-nav-links span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ex-nav-links b {
    color: var(--ex-ink);
    font-size: 15px;
    font-weight: 600;
}
.ex-nav-links em {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--ex-accent);
    color: #ffffff;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
    vertical-align: 2px;
}
.ex-nav-links em.ex-soon {
    background: var(--ex-gold);
    color: var(--ex-navy-deep);
}
.ex-nav-links small {
    color: var(--ex-muted);
    font-size: 13px;
    line-height: 1.45;
}
.ex-nav-actions {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding-top: 14px;
    border-top: 1px solid var(--ex-line);
}
.ex-nav-actions a {
    color: var(--ex-navy) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}
.ex-nav-actions a:hover {
    color: var(--ex-accent) !important;
}
.ex-nav-actions i {
    margin-right: 4px;
    color: var(--ex-accent);
}

/* =============================================================================
   PARTIE C-BIS — NAVIGATION MOBILE STRUCTURÉE (style EasyEDA / Miroir Desktop)
   5 rubriques en accordéon tactile : Apprendre, Gagner, Communauté, Concours, Aide.
   ============================================================================= */
@media (max-width: 991px) {
    .main_menu .navbar-nav .ex-mob-section {
        border-bottom: 1px solid #f1f5f9 !important;
        padding: 2px 0 !important;
        margin: 0 !important;
        width: 100% !important;
        list-style: none !important;
    }

    .ex-mob-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        padding: 11px 8px !important;
        font-family: inherit !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #0c2e60 !important;
        text-align: left !important;
        cursor: pointer !important;
        border-radius: 10px !important;
        transition: background 0.15s ease, color 0.15s ease !important;
    }

    .ex-mob-trigger:hover,
    .ex-mob-trigger:focus {
        background: #f8fafc !important;
        color: #0c2e60 !important;
    }

    .ex-mob-trigger.active {
        color: #ee390f !important;
        background: #fff7ed !important;
    }

    .ex-mob-trigger-title {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .ex-mob-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    .ex-mob-icon--home { background: #fef2f2 !important; color: #dc2626 !important; }
    .ex-mob-icon--learn { background: #eff6ff !important; color: #2563eb !important; }
    .ex-mob-icon--earn { background: #ecfdf5 !important; color: #059669 !important; }
    .ex-mob-icon--community { background: #fff7ed !important; color: #ea580c !important; }
    .ex-mob-icon--contests { background: #fefce8 !important; color: #ca8a04 !important; }
    .ex-mob-icon--help { background: #f1f5f9 !important; color: #475569 !important; }

    .ex-mob-chevron {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        color: #94a3b8 !important;
        margin-left: auto !important;
        transition: transform 0.25s ease, color 0.25s ease !important;
    }

    .ex-mob-trigger:not(.collapsed) .ex-mob-chevron,
    .ex-mob-trigger[aria-expanded="true"] .ex-mob-chevron {
        transform: rotate(180deg) !important;
        color: #ee390f !important;
    }

    .ex-mob-panel {
        background: #f8fafc !important;
        border-radius: 12px !important;
        margin: 4px 0 10px 0 !important;
        padding: 6px !important;
        border: 1px solid #e2e8f0 !important;
    }

    .ex-mob-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
    }

    .ex-mob-link {
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 9px 10px !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        color: inherit !important;
        transition: background 0.15s ease, transform 0.1s ease !important;
    }

    .ex-mob-link:hover,
    .ex-mob-link:focus {
        background: #edf2f7 !important;
        text-decoration: none !important;
    }

    .ex-mob-link.active {
        background: #ffffff !important;
        box-shadow: 0 1px 4px rgba(12, 46, 96, 0.08) !important;
        border-left: 3px solid #ee390f !important;
    }

    .ex-mob-link i {
        font-size: 16px !important;
        min-width: 20px !important;
        text-align: center !important;
        margin-top: 2px !important;
        color: #ee390f !important;
        flex-shrink: 0 !important;
    }

    .ex-mob-link-text {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        text-align: left !important;
    }

    .ex-mob-link-text b {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        color: #0c2e60 !important;
        line-height: 1.3 !important;
    }

    .ex-mob-link-text small {
        font-size: 11.5px !important;
        color: #64748b !important;
        line-height: 1.35 !important;
    }

    .ex-tag-new {
        background: #dcfce7 !important;
        color: #166534 !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        padding: 1px 5px !important;
        border-radius: 4px !important;
        text-transform: uppercase !important;
        margin-left: 6px !important;
        font-style: normal !important;
        vertical-align: 1px !important;
    }

    .ex-tag-soon {
        background: #fef3c7 !important;
        color: #92400e !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        padding: 1px 5px !important;
        border-radius: 4px !important;
        text-transform: uppercase !important;
        margin-left: 6px !important;
        font-style: normal !important;
        vertical-align: 1px !important;
    }

    .ex-mob-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 8px 6px 4px 6px !important;
        margin-top: 6px !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    .ex-mob-action-btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #0c2e60 !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        padding: 5px 11px !important;
        border-radius: 20px !important;
        text-decoration: none !important;
        transition: all 0.15s ease !important;
    }

    .ex-mob-action-btn i {
        font-size: 11px !important;
        color: #ee390f !important;
    }

    .ex-mob-action-btn:hover,
    .ex-mob-action-btn:active {
        background: #ee390f !important;
        color: #ffffff !important;
        border-color: #ee390f !important;
        text-decoration: none !important;
    }

    .ex-mob-action-btn:hover i,
    .ex-mob-action-btn:active i {
        color: #ffffff !important;
    }
}

/* =============================================================================
   PARTIE D — EN-TÊTES DES AUTRES PAGES (style EasyEDA : clair, aéré, sobre)
   Fil d'Ariane, titre bleu marine, sous-titre, avantages cochés, actions,
   recherche, illustration posée sur un disque doux.
   ============================================================================= */
.ex-ph,
html body section.breadcrumb.breadcrumb_bg,
html body .ex-page-hero,
html body .partner-hero {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--ex-line) !important;
    border-radius: 0 !important;
    background-color: #f6f8fc !important;
    background-image: none !important; /* fond uni */
    color: var(--ex-ink) !important;
    min-height: 0 !important;
}
html body section.breadcrumb.breadcrumb_bg::before,
html body section.breadcrumb.breadcrumb_bg::after,
html body .partner-hero::before,
html body .partner-hero::after {
    display: none !important;
}
.ex-ph {
    padding: 44px 0 48px;
}
.ex-ph-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 48px;
}
.ex-ph-text {
    max-width: 680px;
}
.ex-ph-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ex-muted);
    font-size: 13.5px;
}
.ex-ph-trail a {
    color: var(--ex-muted) !important;
    text-decoration: none !important;
}
.ex-ph-trail a:hover {
    color: var(--ex-accent) !important;
}
.ex-ph-trail i {
    font-size: 9px;
    opacity: 0.6;
}
.ex-ph-trail [aria-current] {
    color: var(--ex-navy);
    font-weight: 600;
}
.ex-ph .ex-ph-title {
    margin: 0 0 14px;
    color: var(--ex-navy);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.8px;
}
.ex-ph .ex-ph-subtitle {
    margin: 0 0 18px;
    color: var(--ex-muted);
    font-size: 16.5px;
    line-height: 1.65;
}
.ex-ph-note {
    margin: 0 0 14px;
    color: var(--ex-ink);
    font-size: 14.5px;
}
.ex-ph-note i {
    margin-right: 6px;
    color: var(--ex-gold);
}
.ex-ph-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.ex-ph-facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ex-ink);
    font-size: 14.5px;
    font-weight: 500;
}
.ex-ph-facts i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(238, 57, 15, 0.1);
    color: var(--ex-accent);
    font-size: 10px;
}
.ex-ph-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ex-ph-actions:not(:has(a)) {
    display: none;
}
.ex-btn.ex-btn-outline {
    border: 1px solid #c9d3e3;
    background: #ffffff;
    color: var(--ex-navy) !important;
}
.ex-btn.ex-btn-outline:hover {
    border-color: var(--ex-navy);
    color: var(--ex-navy) !important;
}
/* Recherche : un seul champ net, bouton intégré */
.ex-ph-search {
    max-width: 620px;
    margin-top: 22px;
}
.ex-ph-actions:not(:has(a)) + .ex-ph-search {
    margin-top: 0;
}
.ex-ph-search [class*="-hero-search-box"] {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 6px 0 46px;
    border: 1px solid #c9d3e3 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 6px 20px rgba(12, 46, 96, 0.07) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ex-ph-search [class*="-hero-search-box"]:focus-within {
    border-color: var(--ex-navy) !important;
    box-shadow: 0 0 0 3px rgba(12, 46, 96, 0.12) !important;
}
.ex-ph-search [class*="-hero-search-icon"] {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ex-muted);
    font-size: 16px;
}
.ex-ph-search [class*="-hero-search-input"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ex-ink);
    font-size: 15px;
}
.ex-ph-search [class*="-hero-search-clear"] {
    margin: 0 8px;
    color: var(--ex-muted) !important;
}
.ex-ph-search [class*="-hero-search-btn"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 6px !important;
    background: var(--ex-accent) !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}
.ex-ph-search [class*="-hero-search-btn"]:hover {
    background: var(--ex-accent-hover) !important;
}
/* Illustration posée sur un disque doux */
.ex-ph-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
}
.ex-ph-visual::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12, 46, 96, 0.10) 0%, rgba(12, 46, 96, 0.03) 60%, rgba(12, 46, 96, 0) 72%);
}
.ex-ph-visual img {
    position: relative;
    max-width: 240px;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.ex-ph--center .ex-ph-grid {
    grid-template-columns: 1fr;
    text-align: center;
}
.ex-ph--center .ex-ph-text {
    margin: 0 auto;
}

/* Anciens bandeaux .breadcrumb (≈ 36 pages) et bandeau simple : même rendu */
html body section.breadcrumb.breadcrumb_bg {
    padding: 44px 0 40px !important;
}
html body section.breadcrumb.breadcrumb_bg .breadcrumb_iner .breadcrumb_iner_item .breadcrumb_tag,
html body section.breadcrumb.breadcrumb_bg .breadcrumb_iner .breadcrumb_iner_item h5,
html body .ex-page-hero .ex-page-hero-tag {
    display: inline-block !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    color: var(--ex-accent) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
}
html body section.breadcrumb.breadcrumb_bg .breadcrumb_iner .breadcrumb_iner_item h1,
html body section.breadcrumb.breadcrumb_bg .breadcrumb_iner .breadcrumb_iner_item h2,
html body .ex-page-hero .ex-page-hero-title {
    margin-bottom: 10px !important;
    color: var(--ex-navy) !important;
    font-size: clamp(28px, 3vw, 40px) !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
    letter-spacing: -0.8px !important;
}
html body section.breadcrumb.breadcrumb_bg .breadcrumb_iner .breadcrumb_iner_item p,
html body .ex-page-hero .ex-page-hero-subtitle {
    margin: 0 !important;
    color: var(--ex-muted) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}
html body section.breadcrumb.breadcrumb_bg .breadcrumb_iner .breadcrumb_iner_item p span {
    color: #b8c3d4 !important;
}
html body section.breadcrumb.breadcrumb_bg .breadcrumb-header-cta {
    border-radius: 6px !important;
    background: var(--ex-accent) !important;
    box-shadow: none !important;
    color: #ffffff !important;
}
html body .ex-page-hero {
    padding: 44px 0 40px !important;
}
/* Écoles partenaires : bandeau en ligne (style inline sombre) ramené au clair */
html body .partner-hero h1,
html body .partner-hero h2 {
    color: var(--ex-navy) !important;
}
html body .partner-hero p {
    color: var(--ex-muted) !important;
}

@media (max-width: 991.98px) {
    .ex-ph-grid {
        grid-template-columns: 1fr;
    }
    .ex-ph-visual {
        display: none;
    }
}
@media (max-width: 575.98px) {
    .ex-ph,
    html body section.breadcrumb.breadcrumb_bg,
    html body .ex-page-hero {
        padding: 30px 0 32px !important;
    }
    .ex-ph .ex-ph-subtitle {
        font-size: 15px;
    }
    .ex-ph-facts {
        flex-direction: column;
        gap: 8px;
    }
    .ex-ph-search [class*="-hero-search-btn"] span {
        display: none;
    }
    .ex-ph-search [class*="-hero-search-btn"] {
        padding: 0 14px;
    }
}

/* =============================================================================
   PARTIE E — ÉLÉMENTS COMMUNS DES PAGES (formulaires, boutons, puces, onglets)
   ============================================================================= */
html body .btn {
    border-radius: 6px;
}
html body .form-control,
html body .custom-select {
    border-radius: 6px;
    border-color: #d5dce7;
}
html body .form-control:focus,
html body .custom-select:focus {
    border-color: var(--ex-navy);
    box-shadow: 0 0 0 3px rgba(12, 46, 96, 0.12);
}
html body .btn-primary {
    background-color: var(--ex-navy);
    border-color: var(--ex-navy);
}
html body .btn-primary:hover {
    background-color: #0a2650;
    border-color: #0a2650;
}
html body .btn-danger {
    background-color: var(--ex-accent);
    border-color: var(--ex-accent);
}
html body .btn-danger:hover {
    background-color: var(--ex-accent-hover);
    border-color: var(--ex-accent-hover);
}
html body .btn-outline-danger {
    color: var(--ex-accent);
    border-color: var(--ex-accent);
}
html body .btn-outline-danger:hover {
    background-color: var(--ex-accent);
    color: #ffffff;
}
html body .nav-tabs .nav-link.active,
html body .nav-pills .nav-link.active {
    background-color: var(--ex-navy);
    border-color: var(--ex-navy);
}
html body .nav-tabs .nav-link.active {
    background-color: #ffffff;
    color: var(--ex-navy);
    border-color: var(--ex-line) var(--ex-line) #ffffff;
    box-shadow: inset 0 -3px 0 var(--ex-accent);
}
html body .pagination .page-item.active .page-link {
    background-color: var(--ex-navy);
    border-color: var(--ex-navy);
}
html body .pagination .page-link {
    color: var(--ex-navy);
}

/* ---------- Tablette ---------- */
@media (max-width: 991.98px) {
    :root {
        --ex-section-y: 72px;
    }
    .ex-slide-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 48px;
        padding-bottom: 80px;
        text-align: left;
    }
    .ex-slide-visual {
        display: none; /* tablette et mobile : texte seul, bannière beaucoup plus courte */
    }
    .ex-banner-arrow {
        display: none;
    }
    .ex-pillars {
        grid-template-columns: 1fr;
    }
    .ex-tabs {
        justify-content: flex-start;
    }
    .ex-panel {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ex-panel-visual {
        min-height: 260px;
    }
    .ex-unique {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .ex-unique-nav {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .ex-unique-nav::-webkit-scrollbar {
        display: none;
    }
    .ex-unique-tab {
        flex: 0 0 auto;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px 8px 0 0;
    }
    .ex-unique-tab[aria-selected="true"] {
        border-bottom-color: var(--ex-accent);
    }
    .ex-unique-visual {
        display: none;
    }
    .ex-why {
        grid-template-columns: repeat(2, 1fr);
    }
    .ex-cards {
        grid-template-columns: 1fr;
    }
    .ex-footer-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
    :root {
        --ex-section-y: 56px;
    }
    .ex-notice-inner {
        flex-direction: column;
        gap: 2px;
        padding-right: 40px;
        text-align: left;
        align-items: flex-start;
    }
    .ex-banner-track,
    .ex-slide-inner {
        min-height: 0;
    }
    .ex-slide-actions .ex-btn {
        width: 100%;
    }
    .ex-tab {
        padding: 14px 16px 16px;
        font-size: 16px;
    }
    .ex-feature-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .ex-why {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .ex-why-item {
        padding: 26px 12px;
    }
    .ex-why-item h3 {
        font-size: 24px;
    }
    .ex-footer-cta-actions .ex-btn {
        width: 100%;
    }
    .ex-footer-cols {
        grid-template-columns: 1fr 1fr;
    }
}

/* Navigation au clavier et animations réduites */
.ex-home a:focus-visible,
.ex-home button:focus-visible,
.ex-footer a:focus-visible,
.ex-footer-cta a:focus-visible {
    outline: 3px solid var(--ex-gold);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .ex-slide,
    .ex-btn,
    .ex-pillar,
    .ex-card,
    .ex-tab::after,
    .ex-banner-dots button {
        transition: none !important;
    }
}

/* =============================================================================
   PARTIE F — CONTENU DES PAGES : cartes, barre de recherche/filtres, titres
   ============================================================================= */
html body .card.h-100,
html body .campusx-tool-card,
html body .campusx-job-card,
html body .campusx-skill-card,
html body .campusx-event-card,
html body .mkt-popular-card {
    border: 1px solid var(--ex-line) !important;
    border-radius: var(--ex-radius) !important;
    box-shadow: var(--ex-shadow) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}
html body .card.h-100:hover,
html body .campusx-tool-card:hover,
html body .campusx-job-card:hover,
html body .campusx-skill-card:hover,
html body .campusx-event-card:hover,
html body .mkt-popular-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(12, 46, 96, 0.22) !important;
    box-shadow: var(--ex-shadow-hover) !important;
}
html body .card.h-100 .card-title,
html body .card.h-100 h3,
html body .card.h-100 h4,
html body .card.h-100 h5 {
    color: var(--ex-ink);
    font-weight: 600 !important;
    letter-spacing: -0.2px;
}
html body .card.h-100 .btn,
html body .card.h-100 .btn_1,
html body .card.h-100 a[class*="btn"] {
    border-radius: 6px !important;
}
.modal .card.h-100,
.modal .card.h-100:hover {
    transform: none !important;
    box-shadow: none !important;
}
/* Barre de recherche et filtres sous les bandeaux */
html body .campusx-search-ribbon-bar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--ex-line) !important;
    box-shadow: 0 6px 18px rgba(12, 46, 96, 0.05) !important;
}
html body .campusx-search-ribbon-bar input[type="text"],
html body .campusx-search-ribbon-bar input[type="search"] {
    border-radius: 6px !important;
}
html body .campusx-search-ribbon-bar button,
html body .campusx-search-ribbon-bar .btn {
    border-radius: 6px !important;
}
/* Titres de section des pages internes */
html body .section_tittle h2,
html body .cx-section-title {
    color: var(--ex-navy);
    font-weight: 700;
    letter-spacing: -0.6px;
}
/* Pages internes : fond de contenu gris très clair comme EasyEDA */
html body .section_padding {
    background-color: #f7f9fc;
}

/* Retouches des en-têtes de page */
.ex-ph .ex-btn {
    gap: 8px;
}
.ex-ph-visual img {
    border-radius: 12px;
}
.ex-ph-visual img[src*="ai-mascot"] {
    mix-blend-mode: multiply; /* l'image a un fond blanc : on le fond dans le bandeau */
}

/* =============================================================================
   PARTIE G — EN-TÊTE DE LA FICHE PRODUIT (marketplace)
   ============================================================================= */
html body .ex-ph--product {
    padding: 32px 0 40px !important;
    background-image: none !important; /* fond uni */
}
.ex-pd-head {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 300px;
    align-items: center;
    gap: 28px;
}
.ex-pd-thumb {
    width: 112px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 26px rgba(12, 46, 96, 0.16);
}
.ex-pd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.ex-pd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--ex-line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ex-ink);
    font-size: 12.5px;
    font-weight: 600;
}
.ex-pd-chip--navy {
    border-color: var(--ex-navy);
    background: var(--ex-navy);
    color: #ffffff;
}
.ex-pd-chip--ok {
    border-color: #bfe8d3;
    background: #effaf4;
    color: #13784a;
}
.ex-ph .ex-pd-title {
    margin-bottom: 8px;
    font-size: clamp(24px, 2.6vw, 34px);
}
.ex-pd-seller {
    margin: 0;
    color: var(--ex-muted);
    font-size: 14px;
}
.ex-pd-seller a {
    color: var(--ex-navy) !important;
    font-weight: 600;
}
.ex-pd-seller span {
    margin: 0 4px;
}
.ex-pd-price {
    padding: 20px 22px;
    border: 1px solid var(--ex-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(12, 46, 96, 0.08);
}
.ex-pd-price-label {
    display: block;
    color: var(--ex-muted);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.ex-pd-price-value {
    display: block;
    margin: 4px 0 14px;
    color: var(--ex-navy);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}
.ex-pd-price-value small {
    color: var(--ex-muted);
    font-size: 15px;
    font-weight: 600;
}
.ex-pd-price-value--free {
    color: #13784a;
}
.ex-pd-buy {
    display: flex !important;
    justify-content: center;
    width: 100%;
}
.ex-pd-perks {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ex-muted);
    font-size: 13px;
}
.ex-pd-perks li + li {
    margin-top: 6px;
}
.ex-pd-perks i {
    margin-right: 6px;
    color: var(--ex-accent);
}
@media (max-width: 991.98px) {
    .ex-pd-head {
        grid-template-columns: 88px minmax(0, 1fr);
    }
    .ex-pd-thumb {
        width: 88px;
        height: 110px;
    }
    .ex-pd-price {
        grid-column: 1 / -1;
    }
}
@media (max-width: 575.98px) {
    .ex-pd-head {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .ex-pd-thumb {
        display: none;
    }
}
html body .ex-ph--product,
html body .ex-ph--product .ex-pd-head,
html body .ex-ph--product .ex-pd-price {
    text-align: left !important;
}

/* Zone d'achat de la fiche produit : boutons de même hauteur, sur une ligne lisible */
.ex-buy-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}
.ex-buy-actions > * {
    min-width: 0;
    box-sizing: border-box;
}
.ex-buy-actions .ex-btn {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 50px;
    padding-left: 14px;
    padding-right: 14px;
    white-space: normal;
    text-align: center;
}
.ex-buy-bonus {
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(249, 183, 0, 0.18);
    color: #8a5a00;
    font-size: 12px;
    font-weight: 700;
}
html body .mkt-detail-cart-btn {
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid #c9d3e3;
    border-radius: 6px;
    box-shadow: none;
    font-size: 15px;
    font-weight: 600;
}
html body .mkt-detail-cart-btn:hover {
    border-color: var(--ex-navy);
    transform: none;
    box-shadow: none;
}
.ex-buy-actions .ex-buy-cart {
    grid-column: 1 / -1;
    width: 100%;
}
.ex-buy-now {
    min-height: 54px;
    justify-content: center;
    gap: 8px;
    font-size: 15.5px;
}
@media (max-width: 1199.98px) {
    .ex-buy-actions {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}
@media (max-width: 575.98px) {
    .ex-buy-actions .ex-btn,
    html body .ex-buy-actions .mkt-detail-cart-btn {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 14px;
    }
    .ex-buy-bonus {
        margin-left: 2px;
        white-space: nowrap;
    }
}

/* =============================================================================
   PARTIE H — PAGES D'AUTHENTIFICATION (connexion)
   ============================================================================= */
.ex-auth {
    padding: 56px 0 72px;
    background-color: #f3f6fb;
    background-image: none; /* fond uni */
}
.ex-auth-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--ex-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(12, 46, 96, 0.12);
}
/* Panneau de marque */
.ex-auth-brand {
    position: relative;
    overflow: hidden;
    padding: 44px 40px;
    background-color: var(--ex-navy);
    background-image: none; /* fond uni */
    color: #ffffff;
}
.ex-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}
.ex-auth-logo img {
    height: 34px;
    width: auto;
}
.ex-auth-logo span {
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.4px;
}
.ex-auth-logo b {
    color: var(--ex-accent);
}
.ex-auth-brand-title {
    margin: 40px 0 10px;
    color: #ffffff !important;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.6px;
}
.ex-auth-brand-text {
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15.5px;
    line-height: 1.6;
}
.ex-auth-benefits {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ex-auth-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.ex-auth-benefits li + li {
    margin-top: 18px;
}
.ex-auth-benefit-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffd27a;
    font-size: 16px;
}
.ex-auth-benefits b {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}
.ex-auth-benefits small {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13.5px;
}
.ex-auth-brand-mascot {
    position: absolute;
    right: -18px;
    bottom: -14px;
    width: 170px;
    opacity: 0.95;
    pointer-events: none;
}
/* Formulaire */
.ex-auth-form {
    padding: 48px 52px 40px;
}
.ex-auth-logo--mobile {
    display: none;
}
.ex-auth-logo--mobile span {
    color: var(--ex-navy);
}
.ex-auth-title {
    margin: 0 0 6px;
    color: var(--ex-navy);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.6px;
}
.ex-auth-subtitle {
    margin: 0 0 30px;
    color: var(--ex-muted);
    font-size: 15px;
}
.ex-auth-subtitle a,
.ex-field-head a {
    color: var(--ex-accent) !important;
    font-weight: 600;
}
.ex-field {
    margin-bottom: 18px;
}
.ex-field label,
.ex-field-head label {
    display: block;
    margin-bottom: 7px;
    color: var(--ex-ink);
    font-size: 14px;
    font-weight: 600;
}
.ex-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.ex-field-head a {
    font-size: 13.5px;
}
.ex-input {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    border: 1px solid #c9d3e3;
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ex-input:focus-within {
    border-color: var(--ex-navy);
    box-shadow: 0 0 0 3px rgba(12, 46, 96, 0.12);
}
.ex-input.is-invalid {
    border-color: var(--ex-accent);
    box-shadow: 0 0 0 3px rgba(238, 57, 15, 0.12);
}
.ex-input > i {
    width: 44px;
    text-align: center;
    color: #8a97ab;
    font-size: 15px;
}
.ex-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px 0 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ex-ink);
    font-size: 15.5px;
}
.ex-input input::placeholder {
    color: #9aa6b8;
}
.ex-input-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    border: none;
    background: transparent;
    color: #8a97ab;
    cursor: pointer;
}
.ex-input-toggle:hover {
    color: var(--ex-navy);
}
.ex-caps-warning {
    margin: 6px 0 0;
    color: #b45309;
    font-size: 13px;
}
.ex-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 22px;
    color: var(--ex-muted);
    font-size: 14px;
    cursor: pointer;
}
.ex-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--ex-navy);
}
.ex-auth-submit {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    font-size: 16px;
}
.ex-auth-submit.is-loading {
    opacity: 0.75;
    cursor: wait;
}
.ex-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 16px;
    color: #9aa6b8;
    font-size: 13px;
}
.ex-auth-divider::before,
.ex-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ex-line);
}
.ex-auth-register {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
}
.ex-auth-secure {
    margin: 22px 0 0;
    color: #8a97ab;
    font-size: 13px;
    text-align: center;
}
.ex-auth-secure i {
    margin-right: 5px;
    color: #13784a;
}
@media (max-width: 991.98px) {
    .ex-auth-card {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .ex-auth-brand {
        display: none;
    }
    .ex-auth-logo--mobile {
        display: inline-flex;
        margin-bottom: 26px;
    }
}
@media (max-width: 575.98px) {
    .ex-auth {
        padding: 24px 0 40px;
    }
    .ex-auth-form {
        padding: 30px 22px 28px;
    }
    .ex-auth-title {
        font-size: 26px;
    }
}
html body .ex-input input:focus,
html body .ex-input input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}
.ex-auth-form {
    min-width: 0;
}
@media (max-width: 991.98px) {
    .ex-auth-card {
        grid-template-columns: minmax(0, 1fr);
    }
}
.ex-auth-register {
    white-space: nowrap;
}

/* =============================================================================
   PARTIE I — MARKETPLACE « BOUTIQUE » (inspiration grands sites e-commerce)
   Rayons, menu catégories, carrousel à la une, offres, garanties, étagères,
   cartes produit.
   ============================================================================= */
html body .mkt-page-container {
    max-width: 1240px;
}
/* Rayons en puces */
.ex-dept-chips {
    display: flex;
    gap: 8px;
    margin: 4px 0 18px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ex-dept-chips::-webkit-scrollbar {
    display: none;
}
.ex-dept-chip,
.ex-subcat {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--ex-line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ex-ink) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ex-dept-chip i {
    color: var(--ex-accent);
}
.ex-dept-chip span,
.ex-subcat span {
    padding: 0 6px;
    border-radius: 10px;
    background: var(--ex-soft);
    color: var(--ex-muted);
    font-size: 12px;
}
.ex-dept-chip:hover,
.ex-subcat:hover {
    border-color: var(--ex-navy);
}
.ex-dept-chip.active,
.ex-subcat.active {
    border-color: var(--ex-navy);
    background: var(--ex-navy);
    color: #ffffff !important;
}
.ex-dept-chip.active i {
    color: #ffd27a;
}
.ex-dept-chip.active span,
.ex-subcat.active span {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
.ex-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -6px 0 22px;
}
.ex-subcat {
    padding: 6px 12px;
    font-size: 13.5px;
}
.ex-subcat.is-empty {
    opacity: 0.55;
}
/* Ligne du haut : menu | carrousel | offres */
.ex-shop-hero-row {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 250px;
    gap: 16px;
    margin-bottom: 16px;
}
.ex-cat-menu {
    position: relative;
    z-index: 5;
    border: 1px solid var(--ex-line);
    border-radius: 10px;
    background: #ffffff;
}
.ex-cat-menu-head {
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px 10px 0 0;
    background: var(--ex-navy);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}
.ex-cat-menu-head i {
    margin-right: 8px;
}
.ex-cat-menu > ul {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}
.ex-cat-menu-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--ex-ink) !important;
    font-size: 14.5px;
    text-decoration: none !important;
}
.ex-cat-menu-item > a > i:first-child {
    width: 18px;
    color: var(--ex-muted);
    text-align: center;
}
.ex-cat-menu-item > a span {
    flex: 1;
}
.ex-cat-menu-caret {
    color: #b8c3d4;
    font-size: 10px;
}
.ex-cat-menu-item:hover > a,
.ex-cat-menu-item:focus-within > a {
    background: var(--ex-soft);
    color: var(--ex-accent) !important;
}
.ex-cat-menu-item:hover > a > i,
.ex-cat-menu-item:focus-within > a > i {
    color: var(--ex-accent);
}
.ex-cat-flyout {
    position: absolute;
    top: 0;
    left: calc(100% - 1px);
    width: 460px;
    min-height: 100%;
    padding: 22px 24px;
    border: 1px solid var(--ex-line);
    border-radius: 0 10px 10px 0;
    background: #ffffff;
    box-shadow: 18px 12px 40px rgba(12, 46, 96, 0.14);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease, visibility 0.12s ease;
}
.ex-cat-menu-item:hover > .ex-cat-flyout,
.ex-cat-menu-item:focus-within > .ex-cat-flyout {
    opacity: 1;
    visibility: visible;
}
.ex-cat-flyout-title {
    margin: 0;
    color: var(--ex-navy);
    font-size: 18px;
    font-weight: 700;
}
.ex-cat-flyout-sub {
    margin: 2px 0 14px;
    color: var(--ex-muted);
    font-size: 13.5px;
}
.ex-cat-flyout ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.ex-cat-flyout ul a {
    display: flex;
    justify-content: space-between;
    padding: 7px 8px;
    border-radius: 6px;
    color: var(--ex-ink) !important;
    font-size: 14px;
    text-decoration: none !important;
}
.ex-cat-flyout ul a span {
    color: var(--ex-muted);
    font-size: 12.5px;
}
.ex-cat-flyout ul a:hover {
    background: var(--ex-soft);
    color: var(--ex-accent) !important;
}
.ex-cat-flyout ul a.is-empty {
    color: #9aa6b8 !important;
}
.ex-cat-flyout-all {
    color: var(--ex-accent) !important;
    font-size: 14px;
    font-weight: 600;
}
/* Carrousel à la une */
.ex-feature {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    border-radius: 10px;
    background-color: var(--ex-navy);
    background-image: none; /* fond uni */
    color: #ffffff;
}
.ex-feature-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: center;
    gap: 24px;
    padding: 30px 36px 44px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.ex-feature-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.ex-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--ex-gold);
    color: var(--ex-navy-deep);
    font-size: 12.5px;
    font-weight: 700;
}
.ex-feature-title {
    margin: 0 0 8px;
    color: #ffffff !important;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.ex-feature-meta {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}
.ex-feature-price {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}
.ex-feature-price small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}
.ex-feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
html body .ex-feature-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}
html body .ex-feature-cart:hover,
html body .ex-feature-cart.in-cart {
    background: #ffffff;
    color: var(--ex-navy);
}
.ex-feature-visual {
    display: flex;
    justify-content: center;
}
.ex-feature-visual img {
    width: 190px;
    height: 250px;
    object-fit: cover;
    border: 5px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
    transform: rotate(3deg);
}
.ex-feature-dots {
    position: absolute;
    left: 36px;
    bottom: 18px;
    display: flex;
    gap: 6px;
}
.ex-feature-dots button {
    width: 22px;
    height: 4px;
    padding: 0;
    border: none;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}
.ex-feature-dots button.is-active {
    width: 34px;
    background: var(--ex-accent);
}
/* Offres */
.ex-promo-col {
    display: grid;
    gap: 16px;
}
.ex-promo {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ex-promo:hover {
    transform: translateY(-2px);
    box-shadow: var(--ex-shadow-hover);
}
.ex-promo--free {
    background: #e9f7ef;
}
.ex-promo--sell {
    background: #fff1ea;
}
.ex-promo-kicker {
    color: var(--ex-muted);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.ex-promo strong {
    position: relative;
    z-index: 1;
    max-width: 85%;
    color: var(--ex-navy);
    font-size: 18px;
    line-height: 1.25;
}
.ex-promo-link {
    color: var(--ex-accent);
    font-size: 14px;
    font-weight: 600;
}
.ex-promo--free .ex-promo-link {
    color: #13784a;
}
.ex-promo-icon {
    position: absolute;
    right: -6px;
    bottom: -10px;
    color: rgba(12, 46, 96, 0.08);
    font-size: 78px;
}
/* Garanties */
.ex-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    border: 1px solid var(--ex-line);
    border-radius: 10px;
    background: #ffffff;
}
.ex-trust li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}
.ex-trust li + li {
    border-left: 1px solid var(--ex-line);
}
.ex-trust i {
    color: var(--ex-accent);
    font-size: 22px;
}
.ex-trust b {
    display: block;
    color: var(--ex-ink);
    font-size: 14.5px;
    font-weight: 600;
}
.ex-trust small {
    color: var(--ex-muted);
    font-size: 12.5px;
}
/* Rayons en tuiles */
.ex-section-h {
    margin: 0 0 14px;
    color: var(--ex-navy);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
}
.ex-dept-tiles-wrap {
    margin-bottom: 30px;
}
.ex-dept-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.ex-dept-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 10px 16px;
    border: 1px solid var(--ex-line);
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
    text-decoration: none !important;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ex-dept-tile:hover {
    border-color: rgba(12, 46, 96, 0.25);
    transform: translateY(-3px);
    box-shadow: var(--ex-shadow-hover);
}
.ex-dept-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: rgba(238, 57, 15, 0.08);
    color: var(--ex-accent);
    font-size: 22px;
}
.ex-dept-tile b {
    color: var(--ex-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.ex-dept-tile small {
    color: var(--ex-muted);
    font-size: 12.5px;
}
/* Étagères */
.ex-shelf {
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid var(--ex-line);
    border-radius: 10px;
    background: #ffffff;
}
.ex-shelf-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 12px 18px;
    background: var(--ex-navy);
}
.ex-shelf--hot .ex-shelf-head {
    background: var(--ex-accent);
}
.ex-shelf--green .ex-shelf-head {
    background: #13784a;
}
.ex-shelf--plain .ex-shelf-head {
    border-bottom: 1px solid var(--ex-line);
    background: #ffffff;
}
.ex-shelf-title {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
}
.ex-shelf--plain .ex-shelf-title {
    color: var(--ex-navy) !important;
}
.ex-shelf--plain .ex-shelf-title i {
    color: var(--ex-accent);
}
.ex-shelf-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    font-size: 13px;
}
.ex-shelf-timer span {
    margin-right: 4px;
    opacity: 0.85;
}
.ex-shelf-timer b {
    min-width: 26px;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.22);
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.ex-shelf-more {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}
.ex-shelf--plain .ex-shelf-more {
    color: var(--ex-accent) !important;
}
.ex-shelf-body {
    position: relative;
}
.ex-shelf-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 210px;
    gap: 14px;
    padding: 16px 18px 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.ex-shelf-track::-webkit-scrollbar {
    display: none;
}
.ex-shelf-track > .ex-pcard {
    scroll-snap-align: start;
}
.ex-shelf-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border: 1px solid var(--ex-line);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(12, 46, 96, 0.16);
    color: var(--ex-navy);
    cursor: pointer;
}
.ex-shelf-arrow--prev {
    left: 8px;
}
.ex-shelf-arrow--next {
    right: 8px;
}
.ex-shelf-arrow:hover {
    background: var(--ex-navy);
    color: #ffffff;
}
/* Carte produit */
.ex-pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ex-line);
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ex-pcard:hover {
    border-color: rgba(12, 46, 96, 0.22);
    box-shadow: var(--ex-shadow-hover);
    transform: translateY(-3px);
}
.ex-pcard.is-boosted {
    border-color: #f6c15a;
}
.ex-pcard-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ex-soft);
}
.ex-pcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.ex-pcard:hover .ex-pcard-media img {
    transform: scale(1.04);
}
.ex-pcard-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 52px);
}
.ex-pbadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #ffffff;
    color: var(--ex-ink);
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.ex-pbadge--hot {
    background: var(--ex-accent);
    color: #ffffff;
}
.ex-pbadge--free {
    background: #13784a;
    color: #ffffff;
}
.ex-pbadge--ok {
    color: #13784a;
}
html body .ex-pcard-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    color: var(--ex-muted);
    cursor: pointer;
}
html body .ex-pcard-fav.active {
    color: var(--ex-accent);
}
.ex-pcard-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 12px 12px;
}
.ex-pcard-cat {
    overflow: hidden;
    margin-bottom: 4px;
    color: var(--ex-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ex-pcard-title {
    display: -webkit-box;
    min-height: 40px;
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.38;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ex-pcard-title a {
    color: var(--ex-ink) !important;
    text-decoration: none !important;
}
.ex-pcard-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ex-pcard-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--ex-muted);
    font-size: 12.5px;
}
.ex-pcard-stars {
    color: #c98a00;
    font-weight: 600;
}
.ex-pcard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.ex-pcard-price {
    color: var(--ex-accent);
    font-size: 17px;
    font-weight: 700;
}
.ex-pcard-price small {
    color: var(--ex-muted);
    font-size: 12px;
    font-weight: 600;
}
.ex-pcard-price.is-free {
    color: #13784a;
}
/* Les boutons passent au-dessus du lien étiré de la carte */
.ex-pcard-fav,
.ex-pcard-cart,
.ex-pcard-badges {
    z-index: 2;
}
html body .ex-pcard-cart {
    position: relative;
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--ex-line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ex-navy);
    cursor: pointer;
}
html body .ex-pcard-cart:hover {
    border-color: var(--ex-accent);
    background: var(--ex-accent);
    color: #ffffff;
}
html body .ex-pcard-cart.in-cart {
    border-color: #13784a;
    background: #13784a;
    color: #ffffff;
}
/* Grille du catalogue */
html body .mkt-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
/* Ordinateur : rangées de 5 exactement (5 ressources, la pub, puis 5 ressources) */
@media (min-width: 1200px) {
    html body .mkt-products-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
    .ex-shop-hero-row {
        grid-template-columns: 230px minmax(0, 1fr);
    }
    .ex-promo-col {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 991.98px) {
    .ex-shop-hero-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .ex-cat-menu {
        display: none; /* les puces de rayon prennent le relais */
    }
    .ex-trust {
        grid-template-columns: 1fr 1fr;
    }
    .ex-trust li:nth-child(3) {
        border-left: none;
    }
    .ex-trust li:nth-child(n + 3) {
        border-top: 1px solid var(--ex-line);
    }
}
@media (max-width: 575.98px) {
    .ex-feature {
        min-height: 300px;
    }
    .ex-feature-slide {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 14px;
        padding: 22px 18px 40px;
    }
    .ex-feature-visual img {
        width: 96px;
        height: 128px;
        border-width: 3px;
    }
    .ex-feature-price {
        font-size: 24px;
    }
    .ex-feature-dots {
        left: 18px;
    }
    .ex-feature-cart .mkt-cart-btn-text {
        display: none;
    }
    .ex-promo-col {
        grid-template-columns: 1fr;
    }
    .ex-trust li {
        padding: 12px;
    }
    .ex-shelf-track {
        grid-auto-columns: 160px;
        gap: 10px;
        padding: 12px;
    }
    html body .mkt-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .ex-pcard-title {
        font-size: 13.5px;
    }
    .ex-shelf-timer span {
        display: none;
    }
}
.ex-shelf-arrow[hidden] {
    display: none !important;
}
@media (min-width: 992px) {
    .ex-dept-tiles {
        grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    }
}
/* Bannière publicitaire de la marketplace : hauteur maîtrisée */
html body .mkt-page-container .campusx-pure-ad-banner .campusx-ad-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}
@media (max-width: 575.98px) {
    html body .mkt-page-container .campusx-pure-ad-banner .campusx-ad-img {
        max-height: 140px;
    }
}
@media (max-width: 767.98px) {
    .ex-shelf-arrow {
        display: none !important; /* au doigt, on fait défiler directement */
    }
    .ex-dept-tiles {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .ex-dept-tiles::-webkit-scrollbar {
        display: none;
    }
    .ex-dept-tile {
        flex: 0 0 112px;
        padding: 14px 8px 12px;
    }
    .ex-dept-tile-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .ex-dept-tile b {
        font-size: 13px;
    }
}
@media (max-width: 575.98px) {
    .ex-feature {
        min-height: 360px;
    }
    .ex-feature-slide {
        align-items: start;
        padding-top: 20px;
    }
    .ex-feature-title {
        display: -webkit-box;
        overflow: hidden;
        font-size: 20px;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    .ex-feature-meta {
        font-size: 13px;
    }
    .ex-feature-visual {
        padding-top: 30px;
    }
    .ex-feature-actions .ex-btn {
        min-height: 44px;
        padding: 0 16px;
    }
    .ex-trust b {
        font-size: 13.5px;
    }
    .ex-trust small {
        display: none;
    }
}
.ex-page-hero .ex-btn {
    gap: 8px;
}
@media (max-width: 575.98px) {
    .ex-feature-actions {
        flex-wrap: nowrap;
    }
    html body .ex-feature-cart {
        flex: 0 0 46px;
        justify-content: center;
        width: 46px;
        min-height: 44px;
        padding: 0;
    }
    .ex-feature {
        min-height: 330px;
    }
}
.ex-feature-cart i { color: inherit !important; }
.ex-shelf-track {
    scroll-padding-inline: 18px; /* l'aimantation respecte la marge : pas de décalage au départ */
}
@media (max-width: 575.98px) {
    .ex-shelf-track {
        scroll-padding-inline: 12px;
    }
}

/* =============================================================================
   PARTIE J — EN-TÊTE DES PAGES OUTIL (boîte à outils)
   ============================================================================= */
html body .ex-tool-head {
    padding: 30px 0 36px !important;
}
.ex-tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 40px;
}
.ex-tool-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}
.ex-tool-icon {
    display: inline-flex;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: var(--ex-navy);
    background-image: radial-gradient(circle at 80% 15%, rgba(238, 57, 15, 0.55) 0, rgba(238, 57, 15, 0) 60%);
    box-shadow: 0 12px 26px rgba(12, 46, 96, 0.25);
    color: #ffffff;
    font-size: 30px;
}
.ex-tool-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.ex-tool-chip-badge {
    border-color: #f6d58a;
    background: #fff8e6;
    color: #8a5a00;
}
.ex-ph .ex-tool-title {
    margin: 0;
    font-size: clamp(26px, 2.8vw, 38px);
}
.ex-ph .ex-tool-desc {
    max-width: 640px;
}
.ex-tool-head .ex-ph-facts {
    margin-bottom: 0;
}
.ex-tool-card {
    padding: 20px 22px;
    border: 1px solid var(--ex-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(12, 46, 96, 0.08);
}
.ex-tool-card ul {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.ex-tool-card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ex-tool-card li + li {
    margin-top: 12px;
}
.ex-tool-card li > i {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(238, 57, 15, 0.08);
    color: var(--ex-accent);
    font-size: 15px;
}
.ex-tool-card b {
    display: block;
    color: var(--ex-ink);
    font-size: 14.5px;
    font-weight: 600;
}
.ex-tool-card small {
    color: var(--ex-muted);
    font-size: 13px;
}
.ex-tool-start {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
}
#outil {
    scroll-margin-top: 90px;
}
@media (max-width: 991.98px) {
    .ex-tool-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
    .ex-tool-card ul {
        display: none; /* sur mobile, on garde seulement le bouton */
    }
    .ex-tool-card {
        padding: 0;
        border: none;
        background: none;
        box-shadow: none;
    }
}
@media (max-width: 575.98px) {
    .ex-tool-icon {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        border-radius: 12px;
        font-size: 24px;
    }
    .ex-tool-title-row {
        gap: 14px;
    }
}

/* =============================================================================
   PARTIE K — FENÊTRES D'ANNONCE (navigation + déblocage des outils)
   --ex-ad-p : avancement de 0 à 1, mis à jour par le compte à rebours.
   ============================================================================= */
.ex-admodal {
    --ex-ad-p: 0;
}
.ex-admodal .modal-dialog {
    max-width: 620px;
}
.ex-admodal .modal-content {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(7, 24, 48, 0.35);
}
.modal-backdrop.show {
    opacity: 0.6;
}
.ex-admodal-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px 14px;
}
.ex-admodal-brand {
    flex: 1;
    min-width: 0;
}
.ex-admodal-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    padding: 3px 9px;
    border-radius: 4px;
    background: rgba(238, 57, 15, 0.1);
    color: var(--ex-accent);
    font-size: 12px;
    font-weight: 700;
}
.ex-admodal-label--ok {
    background: #e9f7ef;
    color: #13784a;
}
.ex-admodal-brand strong {
    display: block;
    overflow: hidden;
    color: var(--ex-navy);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ex-admodal-timer {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ex-admodal-timer[hidden] {
    display: none;
}
/* Anneau de progression (conic-gradient piloté par --ex-ad-p) */
.ex-admodal-ring {
    position: relative;
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: conic-gradient(var(--ex-accent) calc(var(--ex-ad-p) * 360deg), #e6ebf3 0);
    transition: background 0.3s linear;
}
.ex-admodal-ring::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #ffffff;
}
.ex-admodal-ring b {
    position: relative;
    color: var(--ex-navy);
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.ex-admodal.is-unlocked .ex-admodal-ring {
    background: #13784a;
}
.ex-admodal.is-unlocked .ex-admodal-ring b {
    color: #13784a;
}
.ex-admodal-timer-label {
    max-width: 120px;
    color: var(--ex-muted);
    font-size: 12.5px;
    line-height: 1.3;
}
.ex-admodal-close {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ex-line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ex-ink);
    font-size: 14px;
    cursor: pointer;
    animation: exAdPop 0.25s ease;
}
.ex-admodal-close[hidden] {
    display: none;
}
.ex-admodal-close:hover {
    border-color: var(--ex-navy);
    background: var(--ex-navy);
    color: #ffffff;
}
@keyframes exAdPop {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.ex-admodal-intro {
    margin: -4px 18px 12px;
    color: var(--ex-muted);
    font-size: 14px;
    line-height: 1.5;
}
/* Média */
.ex-admodal-media {
    position: relative;
    margin: 0 18px;
    overflow: hidden;
    border-radius: 10px;
    background: #0a1c38;
    aspect-ratio: 16 / 9;
}
.ex-admodal-media-link,
.ex-admodal-media img,
.ex-admodal-video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.ex-admodal-media img,
.ex-admodal-video {
    object-fit: cover;
}
.ex-admodal-media-link img {
    transition: transform 0.4s ease;
}
.ex-admodal-media-link:hover img {
    transform: scale(1.03);
}
.ex-admodal-sponsor {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 4px;
    background: rgba(7, 24, 48, 0.72);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    pointer-events: none;
}
.ex-admodal-sound {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(7, 24, 48, 0.72);
    color: #ffffff;
    cursor: pointer;
}
/* Pied */
.ex-admodal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px 18px;
}
.ex-admodal-copy {
    min-width: 0;
}
.ex-admodal-copy p {
    margin: 0 0 4px;
    color: var(--ex-ink);
    font-size: 14px;
    line-height: 1.45;
}
.ex-admodal-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ex-muted);
    font-size: 12.5px;
}
.ex-admodal-trust i {
    margin-right: 4px;
    color: #13784a;
}
.ex-admodal-cta {
    flex: 0 0 auto;
    gap: 8px;
    white-space: nowrap;
}
.ex-admodal-foot--slim {
    padding-top: 0;
    padding-bottom: 16px;
    color: var(--ex-muted);
    font-size: 13px;
}
.ex-admodal-sponsor-line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ex-admodal-sponsor-line b {
    color: var(--ex-ink);
    font-weight: 600;
}
.ex-admodal-link {
    flex: 0 0 auto;
    color: var(--ex-accent) !important;
    font-weight: 600;
}
/* Zone de déblocage */
.ex-admodal-unlock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 18px;
    padding: 14px 16px;
    border: 1px solid var(--ex-line);
    border-radius: 10px;
    background: var(--ex-soft);
}
.ex-admodal-timer-text b {
    display: block;
    color: var(--ex-ink);
    font-size: 15px;
    font-weight: 600;
}
.ex-admodal-timer-text small {
    color: var(--ex-muted);
    font-size: 12.5px;
}
.ex-admodal-timer-text small i {
    margin-right: 3px;
    color: #13784a;
}
.ex-admodal-dl {
    flex: 0 0 auto;
    gap: 8px;
    min-height: 46px;
    white-space: nowrap;
}
.ex-admodal-dl[disabled] {
    border: 1px solid var(--ex-line);
    background: #ffffff;
    color: #9aa6b8 !important;
    cursor: not-allowed;
}
/* Barre d'avancement en bas de la fenêtre */
.ex-admodal-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: #eef2f8;
}
.ex-admodal-bar span {
    display: block;
    width: calc(var(--ex-ad-p) * 100%);
    height: 100%;
    background: linear-gradient(90deg, var(--ex-accent), var(--ex-gold));
    transition: width 0.9s linear;
}
.ex-admodal.is-unlocked .ex-admodal-bar span {
    background: #13784a;
}
@media (max-width: 575.98px) {
    .ex-admodal .modal-dialog {
        margin: 12px;
    }
    .ex-admodal-head {
        padding: 14px 14px 12px;
    }
    .ex-admodal-media,
    .ex-admodal-intro {
        margin-left: 14px;
        margin-right: 14px;
    }
    .ex-admodal-timer-label {
        display: none;
    }
    .ex-admodal-foot {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px 16px;
    }
    .ex-admodal-cta {
        justify-content: center;
    }
    .ex-admodal-unlock {
        flex-direction: column;
        align-items: stretch;
        margin: 12px 14px;
    }
    .ex-admodal-dl {
        justify-content: center;
    }
    .ex-admodal-foot--slim {
        flex-direction: row;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ex-admodal-bar span,
    .ex-admodal-ring {
        transition: none;
    }
}
@media (max-width: 575.98px) {
    .ex-admodal-foot--slim {
        flex-wrap: wrap;
        gap: 4px 12px;
    }
    .ex-admodal-sponsor-line {
        white-space: normal;
    }
}

/* =============================================================================
   PARTIE L — FICHES SERVICE FREELANCE / TÂCHE RÉMUNÉRÉE
   ============================================================================= */
.ex-pd-thumb--wide {
    width: 150px;
    height: 112px;
}
.ex-pd-head:has(.ex-pd-thumb--wide) {
    grid-template-columns: 150px minmax(0, 1fr) 300px;
}
.ex-pd-icon {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
    font-size: 36px;
}
.ex-pd-chip--hot {
    border-color: var(--ex-accent);
    background: var(--ex-accent);
    color: #ffffff;
}
.ex-pd-person {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    color: var(--ex-muted) !important;
    font-size: 14px;
    text-decoration: none !important;
}
.ex-pd-person img,
.ex-pd-person > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ex-navy);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}
.ex-pd-person b {
    color: var(--ex-navy);
    font-weight: 600;
}
.ex-pd-person:hover b {
    color: var(--ex-accent);
}
.ex-pd-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1877f2;
    color: #ffffff;
    font-size: 8px;
}
@media (max-width: 991.98px) {
    .ex-pd-head:has(.ex-pd-thumb--wide) {
        grid-template-columns: 110px minmax(0, 1fr);
    }
    .ex-pd-thumb--wide {
        width: 110px;
        height: 84px;
    }
    .ex-pd-icon {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        font-size: 26px;
    }
}
@media (max-width: 575.98px) {
    .ex-pd-head:has(.ex-pd-thumb--wide) {
        grid-template-columns: 1fr;
    }
    .ex-pd-icon {
        display: none;
    }
}
/* Corps des fiches : cartes plates, boutons et badges sobres */
html body .ex-detail-body {
    background: #f6f8fc;
}
html body .ex-detail-body .card,
html body .ex-detail-body .jobs-detail-card {
    border: 1px solid var(--ex-line) !important;
    border-radius: 12px !important;
    box-shadow: var(--ex-shadow) !important;
}
html body .ex-detail-body .btn,
html body .ex-detail-body .btn_1 {
    border-radius: 6px !important;
}
html body .ex-detail-body .badge {
    border-radius: 4px !important;
}
html body .ex-detail-body h4,
html body .ex-detail-body h5 {
    color: var(--ex-navy) !important;
}
html body .ex-detail-body .ex-order-box {
    border: 1px solid var(--ex-line);
    border-top: 3px solid var(--ex-accent);
    border-radius: 12px;
    background: #ffffff;
}
#commander,
#postuler {
    scroll-margin-top: 90px;
}

/* =============================================================================
   PARTIE M — PROFIL PUBLIC
   ============================================================================= */
.ex-prof {
    padding: 28px 0 64px;
    background: #f3f6fb;
}
.ex-prof-header {
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--ex-line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--ex-shadow);
}
.ex-prof-cover {
    height: 170px;
    background-color: var(--ex-navy);
    background-image: none; /* fond uni */
}
.ex-prof-cover--admin {
    background-color: #071830;
}
.ex-prof-id {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    padding: 0 28px 22px;
}
.ex-prof-avatar {
    position: relative;
    flex: 0 0 132px;
    width: 132px;
    height: 132px;
    margin-top: -66px;
    border: 5px solid #ffffff;
    border-radius: 50%;
    background: var(--ex-navy);
    box-shadow: 0 10px 26px rgba(12, 46, 96, 0.22);
}
.ex-prof-avatar img,
.ex-prof-avatar > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
}
.ex-prof-avatar-badge {
    position: absolute;
    right: 4px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #1877f2;
    color: #ffffff;
    font-size: 12px;
}
.ex-prof-avatar-badge--admin {
    background: #071830;
    color: var(--ex-gold);
}
.ex-prof-ident {
    flex: 1;
    min-width: 0;
    padding-top: 16px;
}
.ex-prof-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 2px;
    color: var(--ex-navy);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    letter-spacing: -0.6px;
}
.ex-prof-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}
.ex-prof-tag--ok {
    background: #e8f1ff;
    color: #1564d1;
}
.ex-prof-tag--admin {
    background: #071830;
    color: var(--ex-gold);
}
.ex-prof-tag--gold {
    background: #fff4d6;
    color: #8a5a00;
}
.ex-prof-handle {
    margin: 0 0 10px;
    color: var(--ex-muted);
    font-size: 15px;
}
.ex-prof-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ex-ink);
    font-size: 14px;
}
.ex-prof-meta i {
    margin-right: 6px;
    color: var(--ex-accent);
}
.ex-prof-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 4px;
}
.ex-prof-actions .ex-btn {
    gap: 8px;
}
.ex-prof-wa {
    border: 1px solid #1fb855;
    background: #25d366;
    color: #ffffff !important;
}
.ex-prof-wa:hover {
    background: #1fb855;
}
.ex-prof-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ex-line);
}
.ex-prof-stats li {
    padding: 14px 10px;
    text-align: center;
}
.ex-prof-stats li + li {
    border-left: 1px solid var(--ex-line);
}
.ex-prof-stats b {
    display: block;
    color: var(--ex-navy);
    font-size: 20px;
    font-weight: 700;
}
.ex-prof-stats span {
    color: var(--ex-muted);
    font-size: 12.5px;
}
.ex-prof-tabs {
    display: flex;
    gap: 4px;
    padding: 0 18px;
    overflow-x: auto;
    border-top: 1px solid var(--ex-line);
    scrollbar-width: none;
}
.ex-prof-tabs a {
    flex: 0 0 auto;
    padding: 14px 12px;
    border-bottom: 3px solid transparent;
    color: var(--ex-ink) !important;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
}
.ex-prof-tabs a:hover {
    border-bottom-color: var(--ex-accent);
    color: var(--ex-accent) !important;
}
.ex-prof-tabs span {
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--ex-soft);
    color: var(--ex-muted);
    font-size: 12px;
}
.ex-prof-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}
.ex-prof-side {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 16px;
}
.ex-prof-main {
    display: grid;
    gap: 16px;
}
.ex-prof-card {
    padding: 22px 24px;
    border: 1px solid var(--ex-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--ex-shadow);
    scroll-margin-top: 90px;
}
.ex-prof-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--ex-navy);
    font-size: 17px;
    font-weight: 700;
}
.ex-prof-h span {
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--ex-soft);
    color: var(--ex-muted);
    font-size: 12.5px;
    font-weight: 600;
}
.ex-prof-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.ex-prof-sec-head a {
    color: var(--ex-accent) !important;
    font-size: 14px;
    font-weight: 600;
}
.ex-prof-bio {
    margin: 0;
    color: var(--ex-ink);
    font-size: 15.5px;
    line-height: 1.7;
    white-space: pre-line;
}
.ex-prof-checks {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ex-prof-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ex-muted);
    font-size: 14px;
}
.ex-prof-checks li + li {
    margin-top: 10px;
}
.ex-prof-checks i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ex-soft);
    font-size: 12px;
}
.ex-prof-checks li.is-ok {
    color: var(--ex-ink);
}
.ex-prof-checks li.is-ok i {
    background: #e9f7ef;
    color: #13784a;
}
.ex-prof-dl {
    margin: 0;
}
.ex-prof-dl dt {
    color: var(--ex-muted);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.ex-prof-dl dd {
    margin: 2px 0 12px;
    color: var(--ex-ink);
    font-size: 14.5px;
}
.ex-prof-dl dd:last-child {
    margin-bottom: 0;
}
.ex-prof-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ex-prof-pills span {
    padding: 5px 10px;
    border: 1px solid #d5dce7;
    border-radius: 4px;
    background: #ffffff;
    color: var(--ex-ink);
    font-size: 13px;
    font-weight: 500;
}
.ex-prof-pills--soft span {
    border-color: transparent;
    background: rgba(238, 57, 15, 0.08);
    color: #b2300b;
}
.ex-prof-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}
.ex-prof-list {
    display: grid;
    gap: 10px;
}
.ex-prof-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--ex-line);
    border-radius: 10px;
    color: inherit !important;
    text-decoration: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ex-prof-item:hover {
    border-color: rgba(12, 46, 96, 0.25);
    box-shadow: var(--ex-shadow-hover);
}
.ex-prof-item-icon,
.ex-prof-item-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
}
.ex-prof-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 183, 0, 0.16);
    color: #8a5a00;
    font-size: 20px;
}
.ex-prof-item-body {
    flex: 1;
    min-width: 0;
}
.ex-prof-item-body b {
    display: block;
    overflow: hidden;
    color: var(--ex-ink);
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ex-prof-item-body small {
    color: var(--ex-muted);
    font-size: 13px;
}
.ex-prof-item-side {
    flex: 0 0 auto;
    color: var(--ex-accent);
    font-size: 16px;
    font-weight: 700;
}
.ex-prof-item-side small {
    color: var(--ex-muted);
    font-size: 12px;
}
.ex-prof-item-side--pts {
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(249, 183, 0, 0.18);
    color: #8a5a00;
    font-size: 13.5px;
}
.ex-prof-empty {
    margin: 0;
    padding: 22px;
    border: 1px dashed #cfd8e6;
    border-radius: 10px;
    color: var(--ex-muted);
    font-size: 14px;
    text-align: center;
}
.ex-prof-empty i {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
}
@media (max-width: 991.98px) {
    .ex-prof-id {
        flex-wrap: wrap;
    }
    .ex-prof-actions {
        width: 100%;
    }
    .ex-prof-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .ex-prof-stats li:nth-child(4) {
        border-left: none;
    }
    .ex-prof-stats li:nth-child(n + 4) {
        border-top: 1px solid var(--ex-line);
    }
    .ex-prof-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .ex-prof-side {
        position: static;
        order: 2;
    }
}
@media (max-width: 575.98px) {
    .ex-prof {
        padding-top: 12px;
    }
    .ex-prof-cover {
        height: 110px;
    }
    .ex-prof-id {
        padding: 0 16px 18px;
        gap: 12px;
    }
    .ex-prof-avatar {
        flex-basis: 96px;
        width: 96px;
        height: 96px;
        margin-top: -48px;
    }
    .ex-prof-avatar > span {
        font-size: 36px;
    }
    .ex-prof-ident {
        flex-basis: 100%;
        padding-top: 0;
    }
    .ex-prof-actions .ex-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
    .ex-prof-card {
        padding: 18px 16px;
    }
    .ex-prof-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* =============================================================================
   PARTIE N — ACCUEIL : CARTES AVEC ANIMATION AU SURVOL (remplacent les onglets)
   Tout le contenu est visible (mobile compris) ; le survol ajoute du relief.
   ============================================================================= */
.ex-head p {
    max-width: 620px;
    margin: 10px auto 0;
    color: var(--ex-muted);
    font-size: 16px;
}
.ex-xgrid,
.ex-fgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.ex-xcard,
.ex-fcard {
    --x-c: var(--ex-navy);
    --x-bg: rgba(12, 46, 96, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px 22px 22px;
    border: 1px solid var(--ex-line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--ex-shadow);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.ex-fcard {
    cursor: default;
}
/* Liseré de couleur qui se déploie */
.ex-xcard::before,
.ex-fcard::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: var(--x-c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Halo de couleur qui monte depuis le bas */
.ex-xcard::after,
.ex-fcard::after {
    content: "";
    position: absolute;
    right: -40%;
    bottom: -60%;
    width: 120%;
    height: 90%;
    border-radius: 50%;
    background: var(--x-bg);
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}
.ex-xcard:hover,
.ex-xcard:focus-within,
.ex-fcard:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 22px 44px rgba(12, 46, 96, 0.16);
}
.ex-xcard:hover::before,
.ex-xcard:focus-within::before,
.ex-fcard:hover::before {
    transform: scaleX(1);
}
.ex-xcard:hover::after,
.ex-xcard:focus-within::after,
.ex-fcard:hover::after {
    opacity: 1;
    transform: none;
}
.ex-xcard > *,
.ex-fcard > * {
    position: relative;
    z-index: 1;
}
.ex-xcard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.ex-xcard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--x-bg);
    color: var(--x-c);
    font-size: 22px;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease;
}
.ex-xcard:hover .ex-xcard-icon,
.ex-xcard:focus-within .ex-xcard-icon,
.ex-fcard:hover .ex-xcard-icon {
    background: var(--x-c);
    color: #ffffff;
    transform: rotate(-8deg) scale(1.1);
}
.ex-xcard-count {
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--x-bg);
    color: var(--x-c);
    font-size: 12.5px;
    font-weight: 700;
}
.ex-xcard h3,
.ex-fcard h3 {
    margin: 0 0 8px;
    color: var(--ex-navy);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}
.ex-fcard h3 {
    margin-top: 16px;
}
.ex-xcard h3 a {
    color: inherit !important;
    text-decoration: none !important;
}
.ex-xcard > p {
    margin: 0 0 14px;
    color: var(--ex-muted);
    font-size: 14.5px;
    line-height: 1.6;
}
.ex-xcard-list,
.ex-fcard ul {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.ex-xcard-list li + li {
    border-top: 1px dashed var(--ex-line);
}
.ex-xcard-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 8px 0;
    color: var(--ex-ink) !important;
    font-size: 14px;
    text-decoration: none !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease, padding-left 0.25s ease;
}
.ex-xcard-list a i {
    flex: 0 0 auto;
    color: var(--x-c);
}
.ex-xcard-list a:hover {
    padding-left: 6px;
    color: var(--x-c) !important;
}
/* Les éléments de la liste arrivent l'un après l'autre au survol */
.ex-xcard:hover .ex-xcard-list li {
    animation: exListIn 0.4s ease both;
}
.ex-xcard:hover .ex-xcard-list li:nth-child(2) {
    animation-delay: 0.06s;
}
.ex-xcard:hover .ex-xcard-list li:nth-child(3) {
    animation-delay: 0.12s;
}
@keyframes exListIn {
    from { opacity: 0.3; transform: translateX(-8px); }
    to { opacity: 1; transform: none; }
}
.ex-xcard-empty {
    padding: 8px 0;
    color: var(--ex-muted);
    font-size: 13.5px;
}
.ex-xcard-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--x-c);
    font-size: 14.5px;
    font-weight: 700;
}
.ex-xcard-more i {
    transition: transform 0.3s ease;
}
.ex-xcard:hover .ex-xcard-more i {
    transform: translateX(6px);
}
/* Illustration discrète qui « sort » de la carte au survol */
.ex-xcard-art {
    position: absolute !important;
    z-index: 0 !important;
    right: -18px;
    bottom: -14px;
    width: 120px;
    opacity: 0.1;
    filter: grayscale(1);
    transform: translateY(18px) rotate(-6deg);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.45s ease;
    pointer-events: none;
}
.ex-xcard:hover .ex-xcard-art,
.ex-xcard:focus-within .ex-xcard-art {
    opacity: 0.32;
    filter: none;
    transform: translateY(0) rotate(0);
}
/* Cartes « services » */
.ex-fcard ul li {
    position: relative;
    padding: 8px 0 8px 22px;
    color: var(--ex-muted);
    font-size: 13.5px;
    line-height: 1.45;
}
.ex-fcard ul li + li {
    border-top: 1px dashed var(--ex-line);
}
.ex-fcard ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--x-c);
    transition: transform 0.3s ease;
}
.ex-fcard:hover ul li::before {
    transform: scale(1.4);
}
.ex-fcard ul b {
    display: block;
    color: var(--ex-ink);
    font-size: 14.5px;
    font-weight: 600;
}
.ex-fcard ul b a {
    color: inherit !important;
}
.ex-fcard ul b a:hover {
    color: var(--x-c) !important;
}
@media (max-width: 1199.98px) {
    .ex-xgrid,
    .ex-fgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px) {
    .ex-xgrid,
    .ex-fgrid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .ex-xcard,
    .ex-fcard {
        padding: 20px 18px 18px;
    }
    /* Pas de survol au doigt : le liseré et l'illustration restent visibles */
    .ex-xcard::before,
    .ex-fcard::before {
        transform: scaleX(1);
    }
    .ex-xcard-art {
        opacity: 0.22;
        filter: none;
    }
}
@media (hover: none) {
    .ex-xcard::before,
    .ex-fcard::before {
        transform: scaleX(1);
    }
}
@media (prefers-reduced-motion: reduce) {
    .ex-xcard,
    .ex-fcard,
    .ex-xcard *,
    .ex-fcard * {
        transition: none !important;
        animation: none !important;
    }
}

/* =============================================================================
   PARTIE O — PAGE À PROPOS : PANTHÉON DES BÂTISSEURS (premium et doux)
   Palette : ivoire, or doux, bleu marine ; ombres longues et légères.
   ============================================================================= */
.ex-pan {
    --pan-gold: #c9962b;
    --pan-gold-soft: #f6e7c4;
    --pan-ivory: #fffbf3;
    --pan-shadow: 0 1px 2px rgba(12, 46, 96, 0.04), 0 14px 40px rgba(12, 46, 96, 0.07);
    position: relative;
    margin-top: 72px;
    padding: 64px 48px 48px;
    border: 1px solid #f1e6cf;
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 0%, rgba(249, 183, 0, 0.10) 0, rgba(249, 183, 0, 0) 38%),
        radial-gradient(circle at 92% 8%, rgba(238, 57, 15, 0.05) 0, rgba(238, 57, 15, 0) 32%),
        linear-gradient(180deg, var(--pan-ivory) 0%, #ffffff 55%);
}
.ex-pan-head {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}
.ex-pan-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #9a6f17;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}
.ex-pan-head .ex-pan-kicker::before,
.ex-pan-head .ex-pan-kicker::after {
    content: "";
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 150, 43, 0), var(--pan-gold));
}
.ex-pan-head .ex-pan-kicker::after {
    background: linear-gradient(90deg, var(--pan-gold), rgba(201, 150, 43, 0));
}
.ex-pan-title {
    margin: 14px 0 12px;
    color: var(--ex-navy);
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.12;
}
.ex-pan-title span {
    background: linear-gradient(120deg, #b07a12 0%, #e3b04b 45%, #b07a12 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ex-pan-lead {
    margin: 0;
    color: var(--ex-muted);
    font-size: 16.5px;
    line-height: 1.7;
}
/* Chiffres clés */
.ex-pan-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 36px;
    border: 1px solid #f1e6cf;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--pan-shadow);
    backdrop-filter: blur(6px);
}
.ex-pan-stats > div {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 26px;
}
.ex-pan-stats > div + div {
    border-left: 1px solid #f3ead8;
}
.ex-pan-stat-icon {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff6df, #f6e7c4);
    color: #9a6f17;
    font-size: 19px;
    box-shadow: inset 0 0 0 1px rgba(201, 150, 43, 0.25);
}
.ex-pan-stats small {
    display: block;
    color: var(--ex-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.ex-pan-stats b {
    display: block;
    color: var(--ex-navy);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.25;
}
.ex-pan-stats b em {
    color: var(--ex-muted);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
}
.ex-pan-stat-note {
    color: #8a96a8;
    font-size: 12.5px;
    font-style: normal;
}
/* Sceaux (monogrammes) */
.ex-pan-seal {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(145deg, #23498a, #0c2e60);
}
.ex-pan-seal b,
.ex-pan-seal > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    color: var(--ex-navy);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.ex-pan-seal--gold {
    background: linear-gradient(145deg, #f3d48a 0%, #c9962b 50%, #f0cf7f 100%);
}
.ex-pan-seal--gold b,
.ex-pan-seal--gold > i {
    background: #fffaf0;
    color: #9a6f17;
}
.ex-pan-seal--silver {
    background: linear-gradient(145deg, #eef1f6 0%, #9aa7ba 50%, #e3e8f0 100%);
}
.ex-pan-seal--silver b {
    color: #4b5a70;
}
.ex-pan-seal--bronze {
    background: linear-gradient(145deg, #f5c8a0 0%, #b8743e 50%, #f0bf93 100%);
}
.ex-pan-seal--bronze b {
    color: #8a4b1c;
}
.ex-pan-seal--lg {
    width: 76px;
    height: 76px;
    padding: 4px;
}
.ex-pan-seal--lg b,
.ex-pan-seal--lg > i {
    font-size: 24px;
}
/* Plaque d'honneur */
.ex-pan-spot {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 32px;
    overflow: hidden;
    margin-bottom: 44px;
    padding: 36px 40px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(227, 176, 75, 0.28) 0, rgba(227, 176, 75, 0) 45%),
        radial-gradient(circle at 0% 100%, rgba(238, 57, 15, 0.16) 0, rgba(238, 57, 15, 0) 40%),
        linear-gradient(135deg, #0c2e60 0%, #0a2550 60%, #071830 100%);
    box-shadow: 0 24px 60px rgba(7, 24, 48, 0.28);
    color: #ffffff;
}
.ex-pan-spot::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(227, 176, 75, 0.28);
    border-radius: 16px;
    pointer-events: none;
}
.ex-pan-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(227, 176, 75, 0.16);
    color: #f3d48a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ex-pan-spot-id {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}
.ex-pan-spot-id h3 {
    margin: 0 0 4px;
    color: #ffffff !important;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.4px;
}
.ex-pan-spot-id p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}
.ex-pan-spot blockquote {
    margin: 0;
    padding-left: 16px;
    border-left: 2px solid rgba(227, 176, 75, 0.6);
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    font-style: italic;
    line-height: 1.65;
}
.ex-pan-spot-amount {
    position: relative;
    padding: 26px 20px;
    border: 1px solid rgba(227, 176, 75, 0.35);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
}
.ex-pan-spot-amount small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ex-pan-spot-amount b {
    display: block;
    margin: 6px 0 0;
    background: linear-gradient(120deg, #f3d48a, #e3b04b, #f6dc9c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
}
.ex-pan-spot-amount em {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}
.ex-pan-spot-cause {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}
/* Barre de filtres */
.ex-pan-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.ex-pan-bar h3 {
    margin: 0 0 4px;
    color: var(--ex-navy);
    font-size: 21px;
    font-weight: 700;
}
.ex-pan-bar p {
    margin: 0;
    color: var(--ex-muted);
    font-size: 14px;
}
.ex-pan-filters {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid #efe5d1;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(12, 46, 96, 0.05);
}
html body .ex-pan-filters .prestige-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: var(--ex-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}
html body .ex-pan-filters .prestige-filter-btn span {
    padding: 0 7px;
    border-radius: 10px;
    background: var(--ex-soft);
    font-size: 12px;
}
html body .ex-pan-filters .prestige-filter-btn:hover {
    color: var(--ex-navy);
}
html body .ex-pan-filters .prestige-filter-btn.active {
    background: var(--ex-navy);
    color: #ffffff;
}
html body .ex-pan-filters .prestige-filter-btn.active span {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
/* Grille de plaques */
.ex-pan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 44px;
}
.ex-pan-grid > .prestige-card-col {
    display: flex;
}
.ex-pan-card {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 24px 18px;
    border: 1px solid #eef1f6;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--pan-shadow);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.ex-pan-card::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #23498a, #0c2e60);
    opacity: 0.85;
}
.ex-pan-card--gold {
    border-color: #f1e2bd;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 45%);
}
.ex-pan-card--gold::before {
    background: linear-gradient(90deg, #e3b04b, #c9962b, #f0cf7f);
}
.ex-pan-card--silver::before {
    background: linear-gradient(90deg, #c4cdd9, #8a98ad);
}
.ex-pan-card--bronze::before {
    background: linear-gradient(90deg, #e6a36c, #b8743e);
}
.ex-pan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 4px rgba(12, 46, 96, 0.04), 0 26px 50px rgba(12, 46, 96, 0.12);
}
.ex-pan-card--gold:hover {
    box-shadow: 0 2px 4px rgba(12, 46, 96, 0.04), 0 26px 50px rgba(201, 150, 43, 0.22);
}
.ex-pan-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.ex-pan-card-id {
    min-width: 0;
}
.ex-pan-card-id h4 {
    overflow: hidden;
    margin: 0 0 3px;
    color: var(--ex-navy);
    font-size: 17px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ex-pan-tier {
    color: #8a96a8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.ex-pan-card--gold .ex-pan-tier {
    color: #9a6f17;
}
.ex-pan-card--silver .ex-pan-tier {
    color: #5b6b82;
}
.ex-pan-card--bronze .ex-pan-tier {
    color: #a0602e;
}
.ex-pan-quote {
    flex: 1;
    margin: 0 0 18px;
    color: #4a5568;
    font-size: 14.5px;
    font-style: italic;
    line-height: 1.65;
}
.ex-pan-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #f1f3f7;
}
.ex-pan-amount {
    color: var(--ex-navy);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.ex-pan-card--gold .ex-pan-amount {
    color: #9a6f17;
}
.ex-pan-amount em {
    color: var(--ex-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}
.ex-pan-cause {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f5f7fb;
    color: var(--ex-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.ex-pan-date {
    margin-top: 10px;
    color: #a3adbd;
    font-size: 12px;
}
/* État vide */
.ex-pan-empty {
    grid-column: 1 / -1;
    max-width: 560px;
    margin: 0 auto;
    padding: 44px 32px;
    border: 1px solid #f1e2bd;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--pan-shadow);
    text-align: center;
}
.ex-pan-empty h4 {
    margin: 18px 0 8px;
    color: var(--ex-navy);
    font-size: 20px;
    font-weight: 700;
}
.ex-pan-empty p {
    margin: 0 0 22px;
    color: var(--ex-muted);
    font-size: 15px;
    line-height: 1.6;
}
/* Bouton doré */
html body .ex-pan-gold-btn {
    gap: 8px;
    min-height: 50px;
    padding: 0 26px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6dc9c 0%, #e3b04b 50%, #c9962b 100%);
    box-shadow: 0 10px 26px rgba(201, 150, 43, 0.35);
    color: #3d2a05 !important;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
html body .ex-pan-gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(201, 150, 43, 0.45);
}
/* Invitation */
.ex-pan-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 36px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 95% 50%, rgba(227, 176, 75, 0.22) 0, rgba(227, 176, 75, 0) 40%),
        linear-gradient(135deg, #0c2e60 0%, #0a2550 100%);
    box-shadow: 0 20px 50px rgba(7, 24, 48, 0.22);
}
.ex-pan-kicker--light {
    color: #f3d48a;
}
.ex-pan-cta h3 {
    margin: 8px 0 12px;
    color: #ffffff !important;
    font-size: 23px;
    font-weight: 700;
}
.ex-pan-cta ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}
.ex-pan-cta ul i {
    margin-right: 6px;
    color: #f3d48a;
}
@media (max-width: 991.98px) {
    .ex-pan {
        padding: 48px 24px 32px;
    }
    .ex-pan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ex-pan-spot {
        grid-template-columns: minmax(0, 1fr);
        padding: 30px 28px;
    }
}
@media (max-width: 767.98px) {
    .ex-pan-stats {
        grid-template-columns: 1fr;
    }
    .ex-pan-stats > div + div {
        border-left: none;
        border-top: 1px solid #f3ead8;
    }
}
@media (max-width: 575.98px) {
    .ex-pan {
        margin-top: 48px;
        padding: 36px 14px 20px;
        border-radius: 20px;
    }
    .ex-pan-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .ex-pan-filters {
        width: 100%;
        overflow-x: auto;
    }
    .ex-pan-spot {
        padding: 26px 20px;
    }
    .ex-pan-spot-id h3 {
        font-size: 21px;
    }
    .ex-pan-cta {
        padding: 26px 20px;
    }
    .ex-pan-cta .ex-btn {
        width: 100%;
        justify-content: center;
    }
}
html body .ex-pan-filters .prestige-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* =============================================================================
   PARTIE P — INSCRIPTION (assistant en 9 étapes)
   ============================================================================= */
html body .ex-onb {
    padding: 48px 0 72px !important;
    background-color: #f3f6fb !important;
    background-image: none !important; /* fond uni */
}
.ex-onb-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--ex-line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(12, 46, 96, 0.12);
}
html body .ex-onb .onboarding-card {
    max-width: none !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.ex-onb-side {
    position: relative;
    overflow: hidden;
    padding: 36px 30px;
    background-color: var(--ex-navy);
    background-image: none; /* fond uni */
    color: #ffffff;
}
.ex-onb-side-title {
    margin: 30px 0 8px;
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}
.ex-onb-side-text {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14.5px;
    line-height: 1.6;
}
.ex-onb-steps {
    position: relative;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.ex-onb-steps::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: rgba(255, 255, 255, 0.14);
}
.ex-onb-steps li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease;
}
.ex-onb-steps li span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: #0b2a58;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
}
.ex-onb-steps li.is-done {
    color: rgba(255, 255, 255, 0.85);
}
.ex-onb-steps li.is-done span {
    border-color: #34d399;
    background: #13784a;
    color: #ffffff;
}
.ex-onb-steps li.is-current {
    color: #ffffff;
    font-weight: 700;
}
.ex-onb-steps li.is-current span {
    border-color: var(--ex-accent);
    background: var(--ex-accent);
    box-shadow: 0 0 0 5px rgba(238, 57, 15, 0.25);
    color: #ffffff;
}
.ex-onb-bonus {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(249, 183, 0, 0.35);
    border-radius: 10px;
    background: rgba(249, 183, 0, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
}
.ex-onb-bonus i {
    color: var(--ex-gold);
    font-size: 18px;
}
.ex-onb-bonus b {
    color: #ffd27a;
}
.ex-onb-login {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}
.ex-onb-login a {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: underline !important;
}
/* Sur ordinateur, les étapes de gauche remplacent les pastilles horizontales */
@media (min-width: 992px) {
    html body .ex-onb .wizard-steps-pills,
    html body .ex-onb .wizard-login-link {
        display: none !important;
    }
}
/* Champs et boutons de l'assistant, au style du site */
html body .ex-onb .wizard-input,
html body .ex-onb .wizard-select {
    min-height: 50px;
    border: 1px solid #c9d3e3 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
html body .ex-onb .wizard-input:focus,
html body .ex-onb .wizard-select:focus {
    border-color: var(--ex-navy) !important;
    box-shadow: 0 0 0 3px rgba(12, 46, 96, 0.12) !important;
}
html body .ex-onb .btn-wizard-next {
    border-radius: 6px !important;
    background: var(--ex-accent) !important;
    box-shadow: none !important;
}
html body .ex-onb .btn-wizard-next:hover {
    background: var(--ex-accent-hover) !important;
}
html body .ex-onb .btn-wizard-prev {
    border-radius: 6px !important;
}
html body .ex-onb .question-title {
    color: var(--ex-navy) !important;
    letter-spacing: -0.5px;
}
html body .ex-onb .tag-square-btn {
    border-radius: 6px !important;
}
/* Message d'erreur dans l'étape */
.ex-onb-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
    padding: 12px 14px;
    border: 1px solid #f8c4b5;
    border-left: 4px solid var(--ex-accent);
    border-radius: 6px;
    background: #fff4f0;
    color: #a3290b;
    font-size: 14px;
    font-weight: 500;
}
.ex-onb-error.is-shake {
    animation: exShake 0.35s ease;
}
@keyframes exShake {
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
@media (max-width: 991.98px) {
    .ex-onb-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 640px;
    }
    .ex-onb-side {
        display: none;
    }
}
@media (max-width: 575.98px) {
    html body .ex-onb {
        padding: 16px 0 32px !important;
    }
    .ex-onb-shell {
        margin: 0 12px;
    }
}

/* =============================================================================
   PARTIE Q — TABLEAU DE BORD ÉTUDIANT
   ============================================================================= */
html body .cx-sidebar .ex-side-label {
    margin: 16px 12px 6px !important;
    color: #9aa6b8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
}
html body .cx-sidebar .ex-side-label:first-child {
    margin-top: 4px !important;
}
html body .cx-sidebar .cx-sidebar-link {
    position: relative;
    border-radius: 8px !important;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease !important;
}
html body .cx-sidebar .cx-sidebar-link:hover {
    background: var(--ex-soft) !important;
    color: var(--ex-navy) !important;
}
/* Élément actif : fond doux + barre d'accent (au lieu d'un aplat orange) */
html body .cx-sidebar .cx-sidebar-link.active {
    background: rgba(238, 57, 15, 0.08) !important;
    box-shadow: none !important;
    color: var(--ex-accent) !important;
    font-weight: 700 !important;
}
html body .cx-sidebar .cx-sidebar-link.active i {
    color: var(--ex-accent) !important;
}
html body .cx-sidebar .cx-sidebar-link.active::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--ex-accent);
}
html body .cx-sidebar-level-card {
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(140deg, #0c2e60 0%, #0a2550 100%) !important;
    color: #ffffff !important;
}
html body .cx-sidebar-level-card .cx-level-subtitle,
html body .cx-sidebar-level-card .cx-level-points-text {
    color: rgba(255, 255, 255, 0.7) !important;
}
html body .cx-sidebar-level-card .cx-level-title {
    color: #ffffff !important;
}
html body .cx-sidebar-level-card .cx-level-progress-track {
    background: rgba(255, 255, 255, 0.15) !important;
}
html body .cx-sidebar-level-card .cx-level-progress-bar {
    background: linear-gradient(90deg, var(--ex-gold), var(--ex-accent)) !important;
}
html body .cx-sidebar-level-card .cx-level-btn {
    border-radius: 8px !important;
    background: var(--ex-accent) !important;
    color: #ffffff !important;
}
/* Cartes chiffres clés */
html body .cx-kpi-card {
    border: 1px solid var(--ex-line) !important;
    border-radius: 12px !important;
    box-shadow: var(--ex-shadow) !important;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}
html body .cx-kpi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(12, 46, 96, 0.2) !important;
    box-shadow: var(--ex-shadow-hover) !important;
}
html body .cx-kpi-card:hover [class*="cx-kpi-icon"] {
    transform: rotate(-6deg) scale(1.08);
}
html body [class*="cx-kpi-icon"] {
    transition: transform 0.3s ease;
}
html body .cx-kpi-value {
    letter-spacing: -0.5px;
}
/* Panneaux et cartes du tableau de bord */
html body .dashboard-clean-frame .card,
html body .dash-panel .card {
    border: 1px solid var(--ex-line) !important;
    border-radius: 12px !important;
    box-shadow: var(--ex-shadow) !important;
}
html body .btn-dash-primary,
html body .btn-dash-outline,
html body .cx-toolbar-btn {
    border-radius: 8px !important;
}
html body .btn-dash-primary {
    background: var(--ex-accent) !important;
    border-color: var(--ex-accent) !important;
}
html body .btn-dash-primary:hover {
    background: var(--ex-accent-hover) !important;
}
html body .dash-panel-title {
    color: var(--ex-navy) !important;
    letter-spacing: -0.4px;
}
/* Mobile : chiffres clés en 2 × 2 au lieu d'une longue colonne */
@media (max-width: 767.98px) {
    html body .cx-kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    html body .cx-kpi-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 14px !important;
    }
    html body .cx-kpi-card [class*="cx-kpi-icon"] {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }
    html body .cx-kpi-value {
        font-size: 22px !important;
    }
    html body .cx-kpi-sub {
        font-size: 11.5px !important;
    }
}
/* Menu latéral plus compact (les rubriques tiennent sans défiler sur un écran standard) */
html body .cx-dash-shell .cx-sidebar-nav {
    padding: 10px 12px !important;
    scrollbar-width: thin;
}
html body .cx-dash-shell .cx-sidebar-link {
    margin-bottom: 1px !important;
    padding: 8px 14px !important;
}
html body .cx-sidebar .ex-side-label {
    margin: 12px 12px 4px !important;
}
html body .cx-dash-shell .cx-sidebar-level-card {
    margin: 8px 12px !important;
    padding: 12px 14px !important;
}

/* Validation en direct de l'inscription */
.ex-field-msg {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-height: 0;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}
.ex-field-msg:empty {
    display: none;
}
.ex-field-msg i {
    margin-top: 2px;
    font-size: 11px;
}
.ex-field-msg.is-error {
    color: #c2300b;
    animation: exMsgIn 0.2s ease;
}
.ex-field-msg.is-ok {
    color: #13784a;
}
.ex-field-msg.is-checking {
    color: var(--ex-muted);
}
.ex-field-msg.is-checking i {
    animation: exSpin 0.8s linear infinite;
}
@keyframes exSpin {
    to { transform: rotate(360deg); }
}
@keyframes exMsgIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: none; }
}
html body .ex-onb .wizard-input.is-invalid,
html body .ex-onb .wizard-select.is-invalid {
    border-color: #e0532f !important;
    background-color: #fffaf8 !important;
    box-shadow: 0 0 0 3px rgba(238, 57, 15, 0.1) !important;
}
html body .ex-onb .wizard-input.is-valid,
html body .ex-onb .wizard-select.is-valid {
    border-color: #2fa36b !important;
}
html body .ex-onb .input-group .wizard-input.is-invalid ~ .input-group-append .btn,
html body .ex-onb .input-group:has(.is-invalid) .input-group-text {
    border-color: #e0532f !important;
}
.ex-check-missing {
    padding: 6px 8px;
    border-radius: 6px;
    background: #fff4f0;
    box-shadow: inset 3px 0 0 var(--ex-accent);
}
/* L'ancien message global du PIN fait doublon avec le message sous le champ */
html body .ex-onb #pinMatchHelper {
    display: none !important;
}

/* Pas de liseré de couleur en haut des cartes de l'accueil (demande du 19/11/2026) */
.ex-xcard::before,
.ex-fcard::before {
    display: none !important;
}
.ex-pan-card::before {
    display: none !important;
}
html body .ex-detail-body .ex-order-box {
    border-top: 1px solid var(--ex-line) !important;
}

/* =====================================================================
   PARTIE R : chargement des pages
   Plus d'écran de démarrage plein écran : le contenu apparaît tout de suite
   avec un fondu léger, et la fine barre en haut indique la navigation.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  #main-content { animation: exPageIn .28s ease-out; } /* sans "fill" : sinon les fenêtres modales passent sous le voile */
}
@keyframes exPageIn { from { opacity: 0; } to { opacity: 1; } }
#campusx-preloader { display: none !important; }

/* =====================================================================
   PARTIE S : panneau de filtres du marketplace
   Ordinateur : fenêtre centrée. Mobile : tiroir qui monte du bas.
   ===================================================================== */
.ex-flt .ex-flt-dialog {
  max-width: 560px;
  margin: 1.75rem auto;
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}
.ex-flt .ex-flt-content {
  width: 100%;
  max-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(12, 46, 96, .22);
  overflow: hidden;
}
.ex-flt-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--ex-line, #e6eaf0);
}
.ex-flt-grip { display: none; }
.ex-flt-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--ex-navy, #0c2e60);
}
.ex-flt-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f9;
  color: #334155;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ex-flt-close:hover { background: #e3e8f0; }
.ex-flt-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 22px 18px;
}
.ex-flt-group {
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #eef1f6;
  min-width: 0;
}
.ex-flt-group legend { float: left; width: 100%; }
.ex-flt-group legend + * { clear: both; }
.ex-flt-group legend,
.ex-flt-field > span {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
/* Puces (une seule valeur possible par groupe) */
.ex-flt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chip { position: relative; margin: 0; cursor: pointer; }
.ex-chip input,
.ex-flt-seg input,
.ex-flt-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ex-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d5dce6;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.ex-chip:hover span { border-color: #9aa8bc; }
.ex-chip input:checked + span {
  border-color: var(--ex-navy, #0c2e60);
  background: var(--ex-navy, #0c2e60);
  color: #fff;
}
.ex-chip input:focus-visible + span,
.ex-flt-seg input:focus-visible + span,
.ex-flt-switch input:focus-visible + .ex-flt-switch-ui {
  outline: 2px solid var(--ex-accent, #ee390f);
  outline-offset: 2px;
}
/* Sélecteur segmenté pour le prix */
.ex-flt-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 12px;
  background: #f1f4f9;
}
.ex-flt-seg label { position: relative; margin: 0; cursor: pointer; }
.ex-flt-seg span {
  display: block;
  padding: 9px 6px;
  border-radius: 9px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.ex-flt-seg input:checked + span {
  background: #fff;
  color: var(--ex-navy, #0c2e60);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(12, 46, 96, .14);
}
/* Listes déroulantes */
.ex-flt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #eef1f6;
}
.ex-flt-field { margin: 0; min-width: 0; }
.ex-flt-field select {
  display: block !important;
  width: 100%;
  height: 44px;
  padding: 0 36px 0 12px;
  border: 1px solid #d5dce6;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 13px center;
  -webkit-appearance: none;
  appearance: none;
  font-size: 14px;
  color: #1e293b;
  text-overflow: ellipsis;
}
.ex-flt-field select:focus { outline: none; border-color: var(--ex-navy, #0c2e60); box-shadow: 0 0 0 3px rgba(12, 46, 96, .12); }
/* Interrupteur */
.ex-flt-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 0 4px;
  cursor: pointer;
}
.ex-flt-switch-ui {
  flex: 0 0 auto;
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cbd3df;
  transition: background-color .2s ease;
}
.ex-flt-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}
.ex-flt-switch input:checked + .ex-flt-switch-ui { background: #16a34a; }
.ex-flt-switch input:checked + .ex-flt-switch-ui::after { transform: translateX(18px); }
.ex-flt-switch-txt strong { display: block; font-size: 14px; font-weight: 600; color: #1e293b; }
.ex-flt-switch-txt small { display: block; font-size: 12.5px; color: #64748b; }
/* Pied fixe */
.ex-flt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--ex-line, #e6eaf0);
  background: #fff;
}
.ex-flt-reset {
  padding: 10px 4px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ex-flt-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--ex-accent, #ee390f);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ex-flt-apply:hover { background: #d42f08; }
.ex-flt-n {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
  font-size: 12.5px;
  line-height: 22px;
  text-align: center;
}
.ex-flt-n[hidden] { display: none; }

/* Mobile : tiroir du bas */
@media (max-width: 575.98px) {
  .ex-flt .ex-flt-dialog {
    max-width: none;
    margin: 0;
    min-height: 100%;
    align-items: flex-end;
  }
  .ex-flt.fade .ex-flt-dialog { transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .ex-flt.show .ex-flt-dialog { transform: none; }
  .ex-flt .ex-flt-content {
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 18px 18px 0 0;
  }
  .ex-flt-head { padding: 22px 18px 12px; }
  .ex-flt-grip {
    display: block;
    position: absolute;
    top: 8px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 4px;
    background: #d5dce6;
  }
  .ex-flt-body { padding: 4px 18px 14px; }
  .ex-flt-row { grid-template-columns: 1fr; }
  .ex-flt-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .ex-flt-apply { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-flt.fade .ex-flt-dialog { transition: none; }
}

/* =====================================================================
   PARTIE T : espaces Admin et Étudiant
   ===================================================================== */
/* Le menu latéral défile : un léger fondu en bas montre qu'il y a d'autres rubriques */
html body .cx-dash-shell .cx-sidebar-nav {
    padding-bottom: 28px !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
}
/* Carte « Super-Admin » plus compacte : plus de place pour les rubriques */
html body .cx-sidebar-level-card.ex-admin-card .cx-level-header { margin-bottom: 0 !important; }
html body .cx-sidebar-level-card.ex-admin-card .cx-level-btn { padding-top: 7px !important; padding-bottom: 7px !important; }
/* Tableaux larges : défilement horizontal propre plutôt que des colonnes coupées */
html body .cx-dash-shell .admin-content-box .table-responsive,
html body .cx-dash-shell .admin-content-box > div[style*="overflow"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
/* Fiches admin (utilisateur, document, mission…) : barre du haut lisible sur mobile */
html body .cx-detail-shell > .d-flex:first-child .d-flex { flex-wrap: wrap; }
html body .cx-detail-shell > .d-flex:first-child .btn { white-space: nowrap; }
@media (max-width: 767.98px) {
    html body .cx-detail-shell > .d-flex:first-child > .d-flex > .text-muted.small { display: none; }
    html body .cx-detail-shell > .d-flex:first-child .badge { white-space: normal; text-align: left; }
}
@media (max-width: 575.98px) {
    html body .cx-user-hero .cx-hero-user-main { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
    html body .cx-user-hero .cx-hero-avatar-wrap { width: 76px !important; height: 76px !important; }
    html body .cx-user-hero h1, html body .cx-user-hero .cx-hero-name { font-size: 24px !important; }
    html body .cx-user-hero { word-break: break-word; }
}

/* =====================================================================
   PARTIE U : Amphyx Études (sondages rémunérés)
   ===================================================================== */
.ex-etu { padding: 40px 0 64px; background: #f6f8fc; }
.ex-etu-admin, .ex-etu-take { padding-top: 28px; }
.ex-etu-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: #475569; }
.ex-etu-back:hover { color: var(--ex-navy); }
.ex-etu-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 28px 0 14px; }
.ex-etu-head h2, .ex-etu-panel h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--ex-navy); }
.ex-etu-head small { color: #64748b; font-size: 13px; }
.ex-etu-link { margin-left: 14px; font-size: 14px; font-weight: 600; color: var(--ex-navy); text-decoration: underline; text-underline-offset: 3px; }

.ex-etu-consent { display: flex; gap: 18px; padding: 24px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.ex-etu-consent-icon { flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #eef3fb; color: var(--ex-navy); font-size: 22px; }
.ex-etu-consent h2 { margin: 2px 0 10px; font-size: 20px; font-weight: 700; color: var(--ex-navy); }
.ex-etu-consent ul { margin: 0 0 18px; padding-left: 18px; list-style: disc; color: #334155; font-size: 15px; line-height: 1.6; }
.ex-etu-consent p { color: #475569; margin-bottom: 14px; }

.ex-etu-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.ex-etu-stats > div { padding: 16px 18px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.ex-etu-stats span { display: block; font-size: 24px; font-weight: 800; color: var(--ex-navy); line-height: 1.2; }
.ex-etu-stats small { color: #64748b; font-size: 13px; }

.ex-etu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ex-etu-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.ex-etu-card:hover { box-shadow: 0 12px 30px rgba(12, 46, 96, .1); transform: translateY(-2px); }
.ex-etu-brand { display: inline-block; align-self: flex-start; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: #fff4e5; color: #b45309; font-size: 12px; font-weight: 700; }
.ex-etu-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: #0f172a; line-height: 1.35; }
.ex-etu-card p { margin: 0 0 12px; color: #475569; font-size: 14px; line-height: 1.55; }
.ex-etu-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 14px; padding: 0; list-style: none; color: #64748b; font-size: 13px; }
.ex-etu-meta li { display: inline-flex; align-items: center; gap: 5px; }
.ex-etu-meta .is-reward { color: #15803d; font-weight: 700; }
.ex-etu-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid #eef1f6; }
.ex-etu-reward strong { display: block; color: #15803d; font-size: 17px; }
.ex-etu-reward span { color: #b45309; font-size: 13px; font-weight: 700; }
.ex-btn-sm { padding: 8px 16px !important; font-size: 14px !important; }

.ex-etu-empty { padding: 36px 20px; border: 1px dashed #cbd5e1; border-radius: 16px; background: #fff; text-align: center; color: #64748b; }
.ex-etu-empty i { display: block; margin-bottom: 10px; font-size: 28px; color: #94a3b8; }
.ex-etu-empty p { max-width: 520px; margin: 0 auto; }
.ex-etu-done { margin: 0; padding: 0; list-style: none; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.ex-etu-done li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #eef1f6; }
.ex-etu-done li:last-child { border-bottom: 0; }
.ex-etu-done strong { display: block; font-size: 15px; color: #0f172a; }
.ex-etu-done small { color: #64748b; }
.ex-etu-done em { font-style: normal; font-weight: 700; color: #15803d; white-space: nowrap; }
.ex-etu-revoke { margin-top: 24px; text-align: center; }
.ex-etu-revoke button { border: 0; background: none; color: #64748b; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* Questionnaire */
.ex-etu-take .container { max-width: 760px; }
.ex-etu-take-head { margin-bottom: 18px; }
.ex-etu-take-head h1 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--ex-navy); }
.ex-etu-take-head p { color: #475569; font-size: 15px; }
.ex-etu-alert { margin: 12px 0; padding: 12px 16px; border-radius: 12px; background: #eef3fb; color: #1e3a8a; font-size: 14px; }
.ex-etu-alert.is-error { background: #fef2f2; color: #b91c1c; }
.ex-etu-alert ul { margin: 0; padding-left: 18px; }
.ex-etu-q { margin: 0 0 14px; padding: 20px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; min-width: 0; }
.ex-etu-q.has-error { border-color: #fca5a5; box-shadow: 0 0 0 3px rgba(239, 68, 68, .08); }
.ex-etu-q legend { float: left; width: 100%; margin: 0 0 12px; font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1.45; }
.ex-etu-q legend + * { clear: both; }
.ex-etu-q legend em { font-weight: 500; color: #64748b; font-style: normal; font-size: 13px; }
.ex-etu-qn { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--ex-navy); color: #fff; font-size: 13px; vertical-align: 1px; }
.ex-etu-hint { display: block; margin-bottom: 8px; color: #64748b; }
.ex-etu-opt { position: relative; display: block; margin: 0 0 8px; cursor: pointer; }
.ex-etu-opt input { position: absolute; opacity: 0; }
.ex-etu-opt span { display: block; padding: 12px 14px 12px 44px; border: 1px solid #d5dce6; border-radius: 12px; font-size: 15px; color: #1e293b; transition: border-color .15s, background-color .15s; }
.ex-etu-opt span::before { content: ""; position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid #94a3b8; border-radius: 50%; background: #fff; }
.ex-etu-opt input[type=checkbox] + span::before { border-radius: 5px; }
.ex-etu-opt input:checked + span { border-color: var(--ex-navy); background: #eef3fb; }
.ex-etu-opt input:checked + span::before { border-color: var(--ex-navy); background: var(--ex-navy); box-shadow: inset 0 0 0 3px #fff; }
.ex-etu-opt input:focus-visible + span, .ex-etu-scale input:focus-visible + span { outline: 2px solid var(--ex-accent); outline-offset: 2px; }
.ex-etu-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ex-etu-scale label { position: relative; margin: 0; cursor: pointer; }
.ex-etu-scale input { position: absolute; opacity: 0; }
.ex-etu-scale span { display: block; padding: 12px 0; border: 1px solid #d5dce6; border-radius: 12px; text-align: center; font-size: 17px; font-weight: 700; color: #334155; }
.ex-etu-scale input:checked + span { border-color: var(--ex-navy); background: var(--ex-navy); color: #fff; }
.ex-etu-scale-legend { display: flex; justify-content: space-between; margin-top: 6px; color: #64748b; font-size: 12.5px; }
.ex-etu-q textarea, .ex-etu-fields input, .ex-etu-fields textarea, .ex-q-row input[type=text], .ex-q-row select, .ex-q-row textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; font-size: 15px; color: #1e293b;
}
.ex-etu-q textarea:focus, .ex-etu-fields input:focus, .ex-etu-fields textarea:focus, .ex-q-row input:focus, .ex-q-row select:focus, .ex-q-row textarea:focus {
    outline: none; border-color: var(--ex-navy); box-shadow: 0 0 0 3px rgba(12, 46, 96, .12);
}
.ex-etu-err { margin-top: 6px; color: #b91c1c; font-size: 13.5px; font-weight: 600; }
.ex-etu-err:empty { display: none; }
.ex-etu-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.ex-etu-submit small { color: #64748b; }

/* Gestion */
.ex-etu-admin-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.ex-etu-admin-head h1 { margin: 0 0 4px; font-size: 28px; font-weight: 800; color: var(--ex-navy); }
.ex-etu-admin-head p { margin: 0; color: #475569; }
.ex-etu-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-etu-head-actions form { margin: 0; }
.ex-etu-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.ex-etu-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.ex-etu-table th { padding: 12px 14px; background: #f8fafc; color: #475569; font-size: 12.5px; font-weight: 700; text-align: left; white-space: nowrap; }
.ex-etu-table td { padding: 12px 14px; border-top: 1px solid #eef1f6; vertical-align: middle; }
.ex-etu-table td strong { display: block; color: #0f172a; }
.ex-etu-table td small { color: #64748b; }
.ex-etu-empty-row { padding: 30px !important; text-align: center; color: #64748b; }
.ex-etu-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ex-etu-status.is-draft { background: #f1f5f9; color: #475569; }
.ex-etu-status.is-active { background: #dcfce7; color: #15803d; }
.ex-etu-status.is-closed { background: #fee2e2; color: #b91c1c; }
.ex-etu-bar { flex: 1; height: 8px; min-width: 60px; border-radius: 999px; background: #e9eef5; overflow: hidden; }
.ex-etu-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ex-navy); }
.ex-etu-actions { white-space: nowrap; }
.ex-etu-actions a, .ex-etu-actions button { margin-left: 10px; border: 0; background: none; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--ex-navy); cursor: pointer; }
.ex-etu-actions button.is-go { color: #15803d; }
.ex-etu-actions form { display: inline; }
.is-pos { color: #15803d !important; }
.is-neg { color: #b91c1c !important; }
.ex-etu-note { margin-top: 10px; color: #64748b; font-size: 13px; }
.ex-etu-panel { margin-bottom: 16px; padding: 22px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.ex-etu-panel h2 { margin-bottom: 14px; }
.ex-etu-sub { margin: -6px 0 14px; color: #64748b; font-size: 13.5px; }
.ex-etu-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ex-etu-fields label, .ex-etu-fields > div { margin: 0; }
.ex-etu-fields label > span, .ex-etu-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #475569; }
.ex-etu-fields .is-wide { grid-column: 1 / -1; }
.ex-etu-calc { align-self: end; padding: 10px 14px; border-radius: 10px; background: #f8fafc; font-size: 13.5px; color: #334155; line-height: 1.6; }
.ex-etu-levels { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-etu-levels label { position: relative; margin: 0; cursor: pointer; }
.ex-etu-levels input { position: absolute; opacity: 0; }
.ex-etu-levels span { display: inline-block; padding: 7px 12px; border: 1px solid #d5dce6; border-radius: 999px; font-size: 13.5px; }
.ex-etu-levels input:checked + span { border-color: var(--ex-navy); background: var(--ex-navy); color: #fff; }
.ex-q-row { margin-bottom: 12px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.ex-q-top { display: grid; grid-template-columns: 28px 1fr 180px; gap: 10px; align-items: center; }
.ex-q-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ex-navy); color: #fff; font-size: 13px; font-weight: 700; }
.ex-q-choices { margin: 10px 0 0 38px; }
.ex-q-bottom { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 0 38px; font-size: 13.5px; }
.ex-q-bottom label { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.ex-q-tools button { margin-left: 6px; padding: 4px 10px; border: 1px solid #d5dce6; border-radius: 8px; background: #fff; font-size: 13px; cursor: pointer; }
.ex-q-tools .is-del { color: #b91c1c; }
.ex-etu-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ex-etu-res { display: grid; grid-template-columns: minmax(0, 220px) 1fr 52px auto; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.ex-etu-res span { color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-etu-res b { text-align: right; color: var(--ex-navy); }
.ex-etu-res small { color: #94a3b8; }
.ex-etu-texts { max-height: 320px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.ex-etu-texts li { padding: 10px 12px; border-bottom: 1px solid #eef1f6; color: #334155; font-size: 14px; }
.ex-etu-texts .is-empty { color: #94a3b8; }

@media (max-width: 767.98px) {
    .ex-etu-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ex-etu-fields, .ex-etu-split { grid-template-columns: 1fr; }
    .ex-q-top { grid-template-columns: 28px 1fr; }
    .ex-q-top select { grid-column: 2; }
    .ex-q-choices, .ex-q-bottom { margin-left: 0; }
    .ex-etu-res { grid-template-columns: minmax(0, 1fr) 70px 46px; }
    .ex-etu-res small { display: none; }
    .ex-etu-consent { flex-direction: column; }
    .ex-etu-consent-icon { align-self: flex-start; width: 52px; }
}

/* =====================================================================
   PARTIE V : espace Jeux (défi du jour, Légendes, échecs)
   ===================================================================== */
.ex-jx { padding: 32px 0 64px; background: #f6f8fc; }
.ex-jx-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ex-jx-card { padding: 22px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; margin-bottom: 20px; }
.ex-jx-card h2 ,
.ex-jx-card h1 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--ex-navy); }
.ex-jx-sub { margin: 0 0 16px; color: #64748b; font-size: 14px; }
.ex-jx-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: #fff4e5; color: #b45309; font-size: 12px; font-weight: 700; }
.ex-jx-q { margin: 0 0 14px; font-size: 18px; font-weight: 600; color: #0f172a; line-height: 1.45; }
.ex-jx-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.ex-jx-opt { position: relative; margin: 0; cursor: pointer; }
.ex-jx-opt input { position: absolute; opacity: 0; }
.ex-jx-opt span { display: block; padding: 12px 14px; border: 1px solid #d5dce6; border-radius: 12px; font-size: 15px; color: #1e293b; transition: border-color .15s, background-color .15s; }
.ex-jx-opt input:checked + span { border-color: var(--ex-navy); background: #eef3fb; font-weight: 600; }
.ex-jx-opt input:focus-visible + span { outline: 2px solid var(--ex-accent); outline-offset: 2px; }
.ex-jx-opt.is-right span { border-color: #16a34a; background: #f0fdf4; color: #166534; font-weight: 600; }
.ex-jx-opt.is-wrong span { border-color: #ef4444; background: #fef2f2; color: #991b1b; }
.ex-jx-expl { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; color: #334155; font-size: 14px; line-height: 1.6; }
.ex-jx-streak { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ex-jx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 13px; font-weight: 600; }
.ex-jx-pill.is-hot { background: #fff1ec; color: #c2410c; }
.ex-jx-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.ex-jx-game { display: flex; flex-direction: column; padding: 20px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; color: inherit; transition: transform .2s, box-shadow .2s; }
.ex-jx-game:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(12, 46, 96, .1); color: inherit; text-decoration: none; }
.ex-jx-game-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: var(--ex-navy); color: #fff; font-size: 22px; }
.ex-jx-game.is-orange .ex-jx-game-ic { background: var(--ex-accent); }
.ex-jx-game.is-gold .ex-jx-game-ic { background: #b45309; }
.ex-jx-game.is-navy .ex-jx-game-ic { background: #0c2e60; }
.ex-jx-game h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #0f172a; }
.ex-jx-game p { margin: 0 0 14px; color: #475569; font-size: 14px; line-height: 1.55; }
.ex-jx-game b { margin-top: auto; color: var(--ex-navy); font-size: 14px; }
.ex-jx-rank { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.ex-jx-rank li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef1f6; counter-increment: r; font-size: 14px; }
.ex-jx-rank li:last-child { border-bottom: 0; }
.ex-jx-rank li::before { content: counter(r); display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: #f1f5f9; color: #334155; font-size: 12px; font-weight: 700; }
.ex-jx-rank li:nth-child(1)::before { background: #fef3c7; color: #b45309; }
.ex-jx-rank li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #0f172a; }
.ex-jx-rank li b { color: var(--ex-navy); }
.ex-jx-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ex-jx-region { position: relative; margin: 0; cursor: pointer; }
.ex-jx-region input { position: absolute; opacity: 0; }
.ex-jx-region > span { display: block; height: 100%; padding: 12px; border: 1px solid #d5dce6; border-radius: 12px; background: #fff; }
.ex-jx-region b { display: block; font-size: 14px; color: #0f172a; }
.ex-jx-region small { display: block; margin-top: 2px; color: #64748b; font-size: 12px; }
.ex-jx-region input:checked + span { border-color: var(--ex-navy); background: #eef3fb; box-shadow: 0 0 0 2px rgba(12, 46, 96, .15); }
.ex-jx-region input:focus-visible + span { outline: 2px solid var(--ex-accent); outline-offset: 2px; }
.ex-jx-empty { padding: 24px; border: 1px dashed #cbd5e1; border-radius: 14px; text-align: center; color: #64748b; font-size: 14px; }
.ex-jx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ex-jx-table th { padding: 10px 12px; background: #f8fafc; color: #475569; font-size: 12.5px; font-weight: 700; text-align: left; }
.ex-jx-table td { padding: 10px 12px; border-top: 1px solid #eef1f6; }
.ex-jx-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.ex-jx-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: #475569; }
.ex-jx-status.is-inscription { background: #dbeafe; color: #1d4ed8; }
.ex-jx-status.is-en_cours { background: #dcfce7; color: #15803d; }
@media (max-width: 991.98px) { .ex-jx-grid { grid-template-columns: 1fr; } }

/* Légendes : arène */
/* Amphyx Légendes : jeu d'action (canvas) */
.lg-step { font-size: 16px; font-weight: 700; color: #0f172a; margin: 18px 0 10px; }
.lg-start-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.lg-start-row small { color: #64748b; max-width: 560px; }
.lg-modes .ex-jx-region span b i { color: var(--ex-orange, #ee390f); }
.lg-code-teaser { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: #0c2e60; border-color: #0c2e60; }
.lg-code-teaser h2, .lg-code-teaser .ex-jx-sub { color: #fff; }
.lg-code-teaser .ex-jx-sub { opacity: .85; margin-bottom: 0; }
.lg-code-teaser .ex-jx-kicker { color: #f9b700; }
.lg-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 120px); margin: 0 auto; border-radius: 18px; overflow: hidden; background: #0b1220; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 18px 40px rgba(12, 46, 96, .25); }
.lg-stage canvas, .ar-stage canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.lg-stage:fullscreen, .lg-stage.is-fs { position: fixed; inset: 0; z-index: 3000; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; }
.lg-stage:-webkit-full-screen { width: 100%; height: 100%; max-height: none; border-radius: 0; }
.lg-top { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.lg-ico { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .6); color: #fff; font-size: 15px; cursor: pointer; }
.lg-ico:hover { background: rgba(15, 23, 42, .85); }
.lg-ico s { position: absolute; width: 22px; height: 2px; background: #f87171; transform: rotate(-45deg); }
.lg-ico.is-light { background: #eef3fb; color: #0c2e60; }
.lg-ico.is-light:hover { background: #dde7f5; }
.lg-touch { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: flex-end; gap: 14px; }
.lg-tb { --cd: 0; position: relative; display: grid; place-items: center; width: 62px; height: 62px; border: 3px solid rgba(255, 255, 255, .85); border-radius: 50%; background: rgba(12, 46, 96, .6); color: #fff; font-weight: 800; font-size: 12px; overflow: hidden; touch-action: none; }
.lg-tb.is-big { width: 82px; height: 82px; background: rgba(238, 57, 15, .7); font-size: 13px; margin-bottom: 30px; }
.lg-tb::after { content: ""; position: absolute; inset: 0; background: conic-gradient(rgba(15, 23, 42, .7) calc(var(--cd) * 360deg), transparent 0); pointer-events: none; }
.lg-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 23, .55); }
.lg-panel { width: min(420px, 100%); padding: 24px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.lg-panel h3 { margin: 0 0 8px; font-size: 26px; font-weight: 900; color: #0c2e60; }
.lg-panel.is-win h3 { color: #15803d; }
.lg-panel.is-lose h3 { color: #b91c1c; }
.lg-panel p { margin: 0 0 8px; color: #475569; font-size: 14.5px; }
.lg-reward { font-weight: 600; color: #0f172a !important; }
.lg-panel-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Code Arena */
.ar-me { display: flex; flex-direction: column; align-items: flex-end; padding: 10px 16px; border-radius: 14px; background: #0c2e60; color: #fff; }
.ar-me span { font-size: 12px; opacity: .8; }
.ar-me b { font-size: 26px; line-height: 1.1; color: #f9b700; }
.ar-me small { font-size: 12px; opacity: .85; }
.ar-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ar-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #0b1220; }
.ar-stage:fullscreen, .ar-stage.is-fs { position: fixed; inset: 0; z-index: 3000; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.ar-stage-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; color: #cbd5e1; text-align: center; }
.ar-stage-empty i { font-size: 34px; color: #f9b700; }
.ar-stage-empty p { margin: 0; max-width: 300px; }
.ar-stage-empty[hidden] { display: none; }
.ar-player { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ar-player input[type=range] { flex: 1; accent-color: #ee390f; }
.ar-speed { width: auto; padding: 0 12px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.ar-run { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ar-run label, .ar-toolbar label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 13px; font-weight: 600; color: #475569; }
.ar-run label { flex: 1; min-width: 220px; }
.ar-run select, .ar-toolbar select { height: 42px; padding: 0 10px; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; font-size: 14px; }
.ar-right { display: flex; flex-direction: column; min-width: 0; padding: 14px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.ar-tabs { display: flex; gap: 4px; margin-bottom: 12px; padding: 4px; border-radius: 12px; background: #f1f5f9; }
.ar-tabs button { flex: 1; height: 36px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 13.5px; color: #475569; cursor: pointer; }
.ar-tabs button.is-on { background: #fff; color: #0c2e60; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.ar-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ar-toolbar label { flex: 1; min-width: 140px; }
.ar-editor { position: relative; display: flex; height: 440px; border-radius: 12px; overflow: hidden; background: #0f172a; border: 1px solid #0f172a; }
.ar-lines { flex: 0 0 auto; min-width: 40px; margin: 0; padding: 12px 8px; overflow: hidden; background: #0b1220; color: #475569; text-align: right; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; user-select: none; white-space: pre; }
.ar-editor textarea { flex: 1; min-width: 0; padding: 12px; border: 0; outline: 0; resize: none; background: transparent; color: #e2e8f0; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; white-space: pre; overflow: auto; caret-color: #f9b700; }
.ar-submit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ar-submit small { color: #64748b; font-size: 12.5px; }
.ar-tip { display: block; margin-top: 6px; color: #94a3b8; font-size: 12px; }
.ar-console { height: 520px; overflow-y: auto; padding: 12px; border-radius: 12px; background: #0f172a; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #cbd5e1; }
.ar-log { white-space: pre-wrap; word-break: break-word; }
.ar-log.is-err { color: #fca5a5; }
.ar-log.is-ok { color: #86efac; font-weight: 700; }
.ar-log.is-warn { color: #fcd34d; }
.ar-log.is-info { color: #93c5fd; }
.ar-rules { max-height: 560px; overflow-y: auto; font-size: 14px; color: #334155; }
.ar-rules h3 { margin: 14px 0 6px; font-size: 15px; font-weight: 800; color: #0c2e60; }
.ar-rules h3:first-child { margin-top: 0; }
.ar-rules pre { padding: 10px 12px; border-radius: 10px; background: #0f172a; color: #e2e8f0; font-size: 12.5px; }
.ar-rules code { padding: 1px 5px; border-radius: 5px; background: #eef3fb; color: #0c2e60; font-size: 12.5px; }
.ar-rules ul { padding-left: 18px; }
.ar-rules li { margin-bottom: 4px; }
.ar-bottom { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.ex-jx-table tr.is-me td { background: #fff7e0; }
.ar-campus { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.ar-campus li { display: grid; grid-template-columns: 26px 1fr auto; grid-template-areas: "n u r" "n s r"; column-gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef2f7; counter-increment: c; }
.ar-campus li::before { content: counter(c); grid-area: n; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0c2e60; color: #fff; font-size: 12px; font-weight: 800; }
.ar-campus li span { grid-area: u; font-weight: 700; color: #0f172a; font-size: 14px; }
.ar-campus li b { grid-area: r; align-self: center; color: #ee390f; }
.ar-campus li small { grid-area: s; color: #64748b; }
.ar-recent { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.ar-recent li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eef2f7; }
.ar-recent small { color: #94a3b8; white-space: nowrap; }
@media (max-width: 991.98px) {
    .ar-layout, .ar-bottom { grid-template-columns: 1fr; }
    .ar-editor { height: 360px; }
    .ar-console { height: 320px; }
}
@media (max-width: 575.98px) {
    .lg-stage { aspect-ratio: 4 / 3; border-radius: 14px; }
    .ar-stage { aspect-ratio: 1; }
}

/* Échiquier */
.cx-chess-wrap { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 20px; align-items: start; }
.cx-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 3px solid #0c2e60; user-select: none; }
.cx-sq { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; aspect-ratio: 1; border: 0; padding: 0; overflow: hidden; cursor: pointer; font-size: clamp(26px, 6.2vw, 52px); line-height: 1; font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols 2", serif; }
.cx-sq.l { background: #eef2f7; }
.cx-sq.d { background: #7b93b8; }
.cx-sq.is-last { box-shadow: inset 0 0 0 100px rgba(249, 183, 0, .35); }
.cx-sq.is-sel { box-shadow: inset 0 0 0 100px rgba(238, 57, 15, .35); }
.cx-sq.is-check { box-shadow: inset 0 0 0 100px rgba(220, 38, 38, .55); }
.cx-sq.is-target::after { content: ""; position: absolute; width: 28%; height: 28%; border-radius: 50%; background: rgba(12, 46, 96, .35); }
.cx-sq.is-target.has-piece::after { width: 86%; height: 86%; background: transparent; border: 4px solid rgba(12, 46, 96, .35); }
.cx-sq .pw { color: #fff; text-shadow: 0 0 2px #0f172a, 0 0 2px #0f172a, 0 1px 2px #0f172a; }
.cx-sq .pb { color: #111827; }
.cx-sq .co { position: absolute; font-size: 10px; font-family: inherit; color: rgba(15, 23, 42, .55); }
.cx-sq .co.f { bottom: 2px; right: 4px; }
.cx-sq .co.r { top: 2px; left: 4px; }
.cx-side { display: flex; flex-direction: column; gap: 12px; }
.cx-status { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; font-size: 15px; font-weight: 600; color: #0f172a; }
.cx-moves { max-height: 260px; overflow-y: auto; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; font-size: 14px; font-family: var(--font-mono, monospace); color: #334155; line-height: 1.8; }
.cx-promo { display: flex; gap: 6px; }
.cx-promo button { flex: 1; padding: 8px; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; font-size: 28px; cursor: pointer; }
.cx-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 991.98px) { .cx-chess-wrap { grid-template-columns: 1fr; } }

/* Échiquier en plein écran (API Fullscreen ou mode CSS .is-fs sur iPhone) */
.cx-fs-btn { align-self: flex-start; }
html.cx-noscroll, html.cx-noscroll body { overflow: hidden; }
.cx-chess-wrap:fullscreen, .cx-chess-wrap.is-fs {
    --bw: min(calc(100vh - 32px), calc(100vw - 380px));
    position: fixed; inset: 0; z-index: 3000; width: 100%; height: 100%; margin: 0; padding: 16px;
    display: grid; grid-template-columns: var(--bw) minmax(220px, 320px); justify-content: center; align-content: center; gap: 20px;
    background: #0c2e60; overflow: auto;
}
.cx-chess-wrap:-webkit-full-screen { --bw: min(calc(100vh - 32px), calc(100vw - 380px)); width: 100%; height: 100%; padding: 16px; display: grid; grid-template-columns: var(--bw) minmax(220px, 320px); justify-content: center; align-content: center; gap: 20px; background: #0c2e60; }
@supports (height: 100dvh) {
    .cx-chess-wrap:fullscreen, .cx-chess-wrap.is-fs { --bw: min(calc(100dvh - 32px), calc(100vw - 380px)); }
}
.cx-chess-wrap:fullscreen .cx-board, .cx-chess-wrap.is-fs .cx-board { width: var(--bw); border-color: #f9b700; }
.cx-chess-wrap:fullscreen .cx-sq, .cx-chess-wrap.is-fs .cx-sq { font-size: calc(var(--bw) / 8 * .78); }
.cx-chess-wrap:fullscreen .cx-sq .co, .cx-chess-wrap.is-fs .cx-sq .co { font-size: 12px; }
.cx-chess-wrap:fullscreen .cx-side label, .cx-chess-wrap.is-fs .cx-side label { color: #e2e8f0 !important; }
.cx-chess-wrap:fullscreen .cx-fs-btn, .cx-chess-wrap.is-fs .cx-fs-btn { background: #fff; }
.cx-chess-wrap:fullscreen .cx-moves, .cx-chess-wrap.is-fs .cx-moves { max-height: 30vh; }
@media (orientation: portrait), (max-width: 760px) {
    .cx-chess-wrap:fullscreen, .cx-chess-wrap.is-fs {
        --bw: min(calc(100vw - 24px), calc(100vh - 230px));
        grid-template-columns: var(--bw); align-content: start; padding: 12px; gap: 12px;
    }
    @supports (height: 100dvh) { .cx-chess-wrap:fullscreen, .cx-chess-wrap.is-fs { --bw: min(calc(100vw - 24px), calc(100dvh - 230px)); } }
    .cx-chess-wrap:fullscreen .cx-side, .cx-chess-wrap.is-fs .cx-side { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .cx-chess-wrap:fullscreen .cx-side > *, .cx-chess-wrap.is-fs .cx-side > * { flex: 1 1 auto; }
    .cx-chess-wrap:fullscreen .cx-side label, .cx-chess-wrap.is-fs .cx-side label { flex: 1 1 40%; font-size: 12px !important; }
    .cx-chess-wrap:fullscreen .cx-status, .cx-chess-wrap.is-fs .cx-status { flex-basis: 100%; font-size: 14px; padding: 8px 12px; }
    .cx-chess-wrap:fullscreen .cx-moves, .cx-chess-wrap.is-fs .cx-moves { flex-basis: 100%; max-height: 60px; }
}

/* Arcade des facultés */
.ax-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 18px; }
.ax-head h1 { margin: 2px 0 4px; font-size: 28px; font-weight: 800; color: #0f172a; }
.ax-head p { margin: 0; color: #475569; }
.ax-ic { flex: 0 0 auto; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #fff; font-size: 24px; }
.ax-disc { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #64748b; text-transform: uppercase; }
.ax-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.ax-stage { aspect-ratio: 16 / 10; }
.ax-side .ex-jx-card { margin-bottom: 16px; }
.ax-side h2 { font-size: 18px; }
.ax-howto { margin: 0; padding-left: 20px; color: #334155; font-size: 14px; }
.ax-howto li { margin-bottom: 7px; line-height: 1.5; }
.ax-disclaimer { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 12.5px; }
.ax-mybest { margin: 0 0 10px; color: #475569; }
.ax-mybest b { color: #ee390f; }
.ax-board { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.ax-board li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eef2f7; counter-increment: r; font-size: 14px; }
.ax-board li::before { content: counter(r); flex: 0 0 24px; display: grid; place-items: center; height: 24px; border-radius: 50%; background: #eef3fb; color: #0c2e60; font-size: 12px; font-weight: 800; }
.ax-board li:nth-child(1)::before { background: #f9b700; color: #3b2a00; }
.ax-board li span { flex: 1; min-width: 0; font-weight: 600; color: #0f172a; }
.ax-board li span small { display: block; font-weight: 400; color: #64748b; font-size: 12px; }
.ax-board li b { color: #0c2e60; }
.ax-others { margin-top: 26px; }
.ax-others h2 { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.ax-others-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ax-mini { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; color: inherit; transition: transform .15s, box-shadow .15s; }
.ax-mini:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(12, 46, 96, .08); color: inherit; text-decoration: none; }
.ax-mini .ax-ic { width: 42px; height: 42px; border-radius: 12px; font-size: 19px; }
.ax-mini b { display: block; font-size: 14.5px; color: #0f172a; }
.ax-mini small { color: #64748b; font-size: 12.5px; }
.ax-hub-head { max-width: 760px; margin: 6px 0 22px; }
.ax-hub-head h1 { font-size: 32px; font-weight: 800; color: #0f172a; margin: 6px 0; }
.ax-hub-head p { color: #475569; font-size: 15.5px; }
.ax-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ax-card { position: relative; display: flex; flex-direction: column; padding: 22px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; color: inherit; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ax-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.ax-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(12, 46, 96, .12); color: inherit; text-decoration: none; }
.ax-card .ax-ic { margin-bottom: 12px; background: var(--c); }
.ax-card .ax-disc { color: var(--c); }
.ax-card h3 { margin: 4px 0 6px; font-size: 20px; font-weight: 800; color: #0f172a; }
.ax-card p { margin: 0 0 8px; color: #475569; font-size: 14px; line-height: 1.55; }
.ax-fil { color: #94a3b8; font-size: 12.5px; margin-bottom: 14px; }
.ax-card-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid #eef2f7; color: #64748b; font-size: 12.5px; }
.ax-card-foot b { color: #0f172a; }
.ax-play { margin-top: 12px; color: var(--c); }
.ax-menu h3 { margin-top: 10px; }
.ax-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; }
.ax-note { font-size: 13px !important; color: #b45309 !important; }
.ax-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.ax-opts label { margin: 0; cursor: pointer; }
.ax-opts input { position: absolute; opacity: 0; pointer-events: none; }
.ax-opts span { display: inline-block; padding: 8px 14px; border: 2px solid #d5dce6; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: #334155; }
.ax-opts input:checked + span { border-color: #0c2e60; background: #0c2e60; color: #fff; }
.ax-opts input:focus-visible + span { outline: 3px solid #f9b700; }
.ax-score { margin: 6px 0 10px; font-size: 42px; font-weight: 900; color: #0c2e60; line-height: 1; }
.ax-score small { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: #64748b; }
.ax-lines { margin: 0 0 10px; padding: 0; list-style: none; color: #475569; font-size: 14px; }
.ax-lines li { padding: 2px 0; }
@media (max-width: 991.98px) { .ax-layout { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .ax-stage { aspect-ratio: 3 / 4; } .ax-head h1 { font-size: 23px; } .ax-head .ax-ic { width: 46px; height: 46px; } }
.ax-stage .lg-top { top: 9px; bottom: auto; left: auto; right: 10px; transform: none; gap: 5px; }
.ax-stage .lg-ico { width: 34px; height: 34px; font-size: 13px; background: rgba(255, 255, 255, .16); }
.ax-stage .lg-ico:hover { background: rgba(255, 255, 255, .3); }
.ax-levels { display: grid; gap: 8px; margin: 14px 0 6px; text-align: left; }
.ax-levels label { margin: 0; cursor: pointer; }
.ax-levels input { position: absolute; opacity: 0; pointer-events: none; }
.ax-levels span { display: block; padding: 10px 12px; border: 2px solid #e2e8f0; border-radius: 12px; }
.ax-levels b { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: #0f172a; }
.ax-levels em { font-style: normal; font-size: 12px; color: #ee390f; }
.ax-levels small { display: block; margin-top: 2px; color: #64748b; font-size: 12.5px; line-height: 1.4; }
.ax-levels input:checked + span { border-color: #0c2e60; background: #eef3fb; }
.ax-levels input:focus-visible + span { outline: 3px solid #f9b700; }
.ax-levels .is-locked { cursor: not-allowed; opacity: .6; }
.ax-menu { max-height: none; }

/* Jeux sur mobile : tant que le jeu n'est pas en plein écran, on peut faire défiler la page
   en glissant sur le cadre ; en plein écran, tous les gestes vont au jeu. */
.lg-stage { touch-action: pan-y; }
.lg-stage:fullscreen, .lg-stage:-webkit-full-screen, .lg-stage.is-fs { touch-action: none; }
.lg-overlay { display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.lg-overlay > .lg-panel { margin: auto; flex-shrink: 0; }

/* =============================================================================
   NAVIGATION MOBILE — feuille plein écran (téléphone et tablette, < 992 px)
   Le menu s'ouvre sur toute la largeur et toute la hauteur sous l'en-tête,
   la page derrière ne défile plus, le bouton menu devient une croix.
   Carte du compte en haut (connecté), boutons Connexion / Créer un compte
   ou Déconnexion fixés en bas de la feuille.
   ============================================================================= */
@media (max-width: 991.98px) {
    .ex-desk-only { display: none !important; }

    /* --- Bouton menu : trois traits qui deviennent une croix --- */
    html body .main_menu .navbar-toggler {
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 12px !important;
        background: #f1f5f9 !important;
        box-shadow: none !important;
        transition: background 0.2s ease !important;
    }
    html body .main_menu .navbar-toggler:focus-visible {
        box-shadow: 0 0 0 3px rgba(238, 57, 15, 0.35) !important;
    }
    html body .main_menu .navbar-toggler[aria-expanded="true"] {
        background: #0c2e60 !important;
    }
    html body .main_menu .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' d='M8 8l14 14M22 8L8 22'/%3E%3C/svg%3E") !important;
    }

    /* Recherche et panier : même zone tactile que le bouton menu */
    html body .main_menu .campusx-mobile-search-toggle-btn,
    html body .main_menu .campusx-mobile-cart-btn {
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    html body .main_menu .campusx-mobile-search-toggle-btn:active,
    html body .main_menu .campusx-mobile-cart-btn:active {
        background: #f1f5f9 !important;
    }

    /* --- La feuille --- */
    html.cx-mnav-open,
    html.cx-mnav-open body {
        overflow: hidden !important;
    }
    html body .main_menu .navbar-collapse {
        position: fixed !important;
        top: var(--cx-mnav-top, 64px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 6px 16px 0 !important;
        border: none !important;
        border-top: 1px solid #eef2f7 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        z-index: 1040 !important;
    }
    html body .main_menu .navbar-collapse.collapsing {
        height: auto !important;
        transition: none !important;
    }
    html body .main_menu .navbar-collapse.show {
        animation: cxMnavIn 0.22s ease-out both;
    }
    html body .main_menu .navbar-collapse > .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        min-height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    html body .main_menu .navbar-collapse > .navbar-nav > li {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* --- Recherche --- */
    html body .main_menu .campusx-mobile-drawer-search-item {
        padding: 10px 0 12px !important;
        border: none !important;
    }
    html body .main_menu .campusx-drawer-search-box {
        height: 48px !important;
        border-radius: 14px !important;
        border: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        box-shadow: none !important;
    }

    /* --- Carte du compte (connecté) --- */
    .ex-mob-account {
        padding: 4px 0 14px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        list-style: none !important;
    }
    .ex-mob-account-head {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 16px;
        background: #0c2e60;
        color: #ffffff !important;
        text-decoration: none !important;
    }
    .ex-mob-account-head:hover,
    .ex-mob-account-head:focus { color: #ffffff !important; text-decoration: none !important; }
    .ex-mob-avatar {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.85);
    }
    .ex-mob-avatar--initial {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #ee390f;
        color: #ffffff;
        font-size: 18px;
        font-weight: 800;
    }
    .ex-mob-account-id {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1;
    }
    html body .main_menu .ex-mob-account-id b {
        color: #ffffff !important;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ex-mob-account-id small {
        font-size: 12.5px;
        color: rgba(255, 255, 255, 0.72);
    }
    .ex-mob-account-head > i { font-size: 14px; opacity: 0.8; }
    .ex-mob-quick {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
    }
    .ex-mob-quick a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 10px 2px;
        border-radius: 12px;
        background: #f8fafc;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #0c2e60 !important;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none !important;
    }
    .ex-mob-quick a i { font-size: 17px; color: #ee390f; }
    .ex-mob-quick a:active { background: #eef2f7; }

    /* --- Rubriques (Accueil, Apprendre, Gagner…) : mêmes alignements partout --- */
    html body .main_menu .navbar-nav .ex-mob-section {
        padding: 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    html body .main_menu .navbar-nav .ex-mob-trigger {
        min-height: 58px !important;
        padding: 9px 6px !important;
        margin: 0 !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        letter-spacing: -0.1px;
    }
    html body .main_menu .navbar-nav .ex-mob-trigger-title { gap: 12px !important; }
    html body .main_menu .navbar-nav .ex-mob-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 11px !important;
        font-size: 16px !important;
    }
    html body .main_menu .navbar-nav .ex-mob-trigger.active {
        background: transparent !important;
        color: #ee390f !important;
    }
    html body .main_menu .navbar-nav .ex-mob-trigger:not(.collapsed)[aria-expanded="true"] {
        background: #fff6f2 !important;
    }
    html body .main_menu .navbar-nav .ex-mob-chevron {
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
        background: #f1f5f9 !important;
        font-size: 12px !important;
    }
    html body .main_menu .navbar-nav .ex-mob-trigger[aria-expanded="true"] .ex-mob-chevron {
        background: #ffffff !important;
    }

    /* --- Liens d'une rubrique : liste légère alignée sous le titre --- */
    html body .main_menu .navbar-nav .ex-mob-panel {
        margin: 2px 0 10px 24px !important;
        padding: 2px 0 2px 14px !important;
        border: none !important;
        border-left: 2px solid #f1f5f9 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }
    html body .main_menu .navbar-nav .ex-mob-links { gap: 2px !important; }
    html body .main_menu .navbar-nav .ex-mob-link {
        align-items: center !important;
        gap: 12px !important;
        padding: 10px 10px !important;
        border-radius: 12px !important;
        border-left: none !important;
        box-shadow: none !important;
    }
    html body .main_menu .navbar-nav .ex-mob-link i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        margin: 0 !important;
        border-radius: 10px !important;
        background: #fff4ef !important;
        font-size: 15px !important;
    }
    html body .main_menu .navbar-nav .ex-mob-link-text b { font-size: 14.5px !important; }
    html body .main_menu .navbar-nav .ex-mob-link-text small { font-size: 12px !important; }
    html body .main_menu .navbar-nav .ex-mob-link.active {
        background: #fff6f2 !important;
    }
    html body .main_menu .navbar-nav .ex-mob-link.active .ex-mob-link-text b { color: #ee390f !important; }
    html body .main_menu .navbar-nav .ex-mob-link.active i { background: #ee390f !important; color: #ffffff !important; }
    html body .main_menu .navbar-nav .ex-mob-actions {
        border-top: none !important;
        padding: 6px 10px 4px !important;
        margin-top: 2px !important;
    }

    /* --- Installer l'application : carte discrète --- */
    html body .main_menu .navbar-nav .ex-mob-install {
        margin: 14px 0 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    html body .main_menu .navbar-nav .ex-mob-install .nav-link {
        padding: 12px 14px !important;
        border-radius: 14px !important;
        background: #fff6f2 !important;
        font-size: 14.5px !important;
    }

    /* --- Pied de feuille : actions du compte, toujours visibles --- */
    .ex-mob-cta {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 2;
        display: flex !important;
        gap: 10px;
        margin-top: auto !important;
        padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        background: #ffffff !important;
        box-shadow: 0 -10px 18px -12px rgba(12, 46, 96, 0.18);
        list-style: none !important;
    }
    .ex-mob-cta-btn {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 50px;
        border-radius: 14px;
        background: #ee390f;
        color: #ffffff !important;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none !important;
        box-shadow: 0 6px 16px rgba(238, 57, 15, 0.25);
    }
    .ex-mob-cta-btn:hover,
    .ex-mob-cta-btn:focus { color: #ffffff !important; }
    .ex-mob-cta-btn--ghost {
        background: #ffffff;
        color: #0c2e60 !important;
        border: 1.5px solid #dbe3ee;
        box-shadow: none;
    }
    .ex-mob-cta-btn--ghost:hover,
    .ex-mob-cta-btn--ghost:focus { color: #0c2e60 !important; }

    /* Le voile n'est plus utile : la feuille couvre tout l'écran */
    html body .campusx-mobile-backdrop { display: none !important; }
}
@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    html body .main_menu .navbar-collapse.show { animation: none; }
}
@keyframes cxMnavIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
}
/* Panier fermé : pas d'ombre qui déborde sur le bord droit de l'écran */
.campusx-cart-drawer:not(.active) {
    box-shadow: none !important;
}
/* Menu mobile ouvert : la bulle de l'assistant ne recouvre pas les boutons du bas */
@media (max-width: 991.98px) {
    html.cx-mnav-open .campusx-ai-trigger,
    html.cx-mnav-open .campusx-ai-teaser {
        display: none !important;
    }
}

/* Bannières publicitaires au format 1080 × 360 (3:1) : affichées en entier, jamais rognées.
   Une image d'un autre format reste entière, avec un fond neutre autour. */
html body .ex-ad img,
html body .campusx-pure-ad-banner img.campusx-ad-img {
    aspect-ratio: 3 / 1 !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    background: #f1f5f9;
}
