* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { overflow-x: hidden; }

body {
    overflow-x: hidden;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eef2fb;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background-color: #0a1635;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.top-bar.nav-up { transform: translateY(-100%); }

.top-bar .top-link {
    text-decoration: none;
    color: rgba(255,255,255,.75);
    margin-right: 28px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color .3s;
}
.top-bar .top-link:hover { color: #F2C14E; }

.top-bar .social-link {
    margin-left: 8px;
    font-size: 20px;
    text-decoration: none;
    transition: transform .25s, opacity .25s;
    opacity: .88;
    display: inline-flex;
    align-items: center;
}
.top-bar .social-link:hover { transform: scale(1.2); opacity: 1; }
.top-bar .social-link .fa-facebook  { color: #1877F2; }
.top-bar .social-link .fa-whatsapp  { color: #25D366; }
.top-bar .social-link .fa-instagram { color: #E1306C; }
.top-bar .social-link .fa-youtube   { color: #FF0000; }

/* État caché (ajouté/retiré par JS au scroll) */
.top-bar.nav-up { transform: translateY(-100%); }

.top-bar .top-link {
    text-decoration: none;
    color: rgba(255,255,255,.75);
    margin-right: 28px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color .3s;
}

.top-bar .top-link:hover { color: #F2C14E; }

.top-bar .social-link {
    margin-left: 8px;
    font-size: 20px;
    text-decoration: none;
    transition: transform .25s, opacity .25s;
    opacity: .88;
    display: inline-flex;
    align-items: center;
}
.top-bar .social-link:hover { transform: scale(1.2); opacity: 1; }
.top-bar .social-link .fa-facebook  { color: #1877F2; }
.top-bar .social-link .fa-whatsapp  { color: #25D366; }
.top-bar .social-link .fa-instagram { color: #E1306C; }
.top-bar .social-link .fa-youtube   { color: #FF0000; }

/* ── Salutation utilisateur dans la top-bar ─────────────────── */
.tb-user-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, rgba(65,105,225,.18) 0%, rgba(30,64,175,.12) 100%);
    border: 1px solid rgba(65,105,225,.4);
    border-radius: 50px;
    padding: 4px 12px 4px 4px;
    color: white;
    text-decoration: none;
    transition: background .2s, border-color .2s;
    white-space: nowrap;
}
.tb-user-pill:hover {
    background: linear-gradient(135deg, rgba(65,105,225,.28) 0%, rgba(30,64,175,.2) 100%);
    border-color: rgba(65,105,225,.65);
}

/* Avatar — cercle avec l'initiale */
.tb-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4169E1, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(65,105,225,.4);
}

/* Texte en 2 lignes */
.tb-user-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.tb-welcome {
    font-size: 9px;
    font-weight: 500;
    opacity: .72;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #F2C14E;
}
.tb-username {
    font-size: 12px;
    font-weight: 700;
    color: white;
}

/* Étoile décorative */
.tb-star {
    font-size: 9px;
    color: #F2C14E;
    opacity: .8;
    margin-left: 2px;
}

/* ============================================================
   MAIN NAV (navbar unique, blanche)
   ============================================================ */
header {
    background-color: white;
    padding-top: 40px;   /* hauteur top-bar */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    transition: background-color 0.35s ease, box-shadow 0.35s ease,
                padding-top 0.35s ease;
}

/* Quand la top-bar glisse vers le haut (scroll), le header suit */
header.nav-transparent {
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    padding-top: 0;
}

.main-nav {
    background-color: white;
    padding: 14px 0;
}

.main-nav .container-fluid { padding: 0 30px; }

.logo { width: auto; display: inline-block; }
.logo img { height: 100px; width: auto; }

.menu {
    display: flex;
    gap: 2px;
    align-items: center;
}

.menu-link {
    text-decoration: none;
    color: #333;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 6px;
    transition: color .25s, background .25s;
}

.menu-link i { font-size: 12px; color: #D4A017; flex-shrink: 0; }

.menu-link:hover,
.menu-link.active {
    color: #4169E1;
    background: rgba(65,105,225,.08);
}

/* ── Séparateur vertical entre menu et auth ── */
.nav-auth-wrap {
    border-left: 1px solid #e2e8f0;
    padding-left: 10px;
    flex-shrink: 0;   /* ne jamais rétrécir la zone auth */
}

/* Boutons nav auth — style lien avec icône */
.main-nav .btn {
    padding: 6px 11px;
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all .25s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn-white {
    background-color: transparent;
    color: #1e3a8a;
    border: 1.5px solid transparent;
}
.btn-white:hover { color: #4169E1; background: rgba(65,105,225,.08); }

.btn-start {
    background-color: transparent;
    color: #1e3a8a;
    border: 1.5px solid transparent;
}
.btn-start:hover { color: #4169E1; background: rgba(65,105,225,.08); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main {
    padding-top: 168px;   /* top-bar(40) + nav(128, logo 100px) = 168px */
    min-height: 100vh;
    transition: padding-top 0.35s ease;
}

/* Quand le header devient transparent/compact au scroll (top-bar cachée),
   le contenu (et donc les images de hero) doit remonter d'autant pour
   ne plus être masqué par le header fixe. */
body.nav-compact main {
    padding-top: 128px;   /* nav seul, sans top-bar */
}

/* ============================================================
   SECTION HÉRO
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #4169E1 0%, #1e40af 100%);
    min-height: calc(100vh - 168px);
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-content { color: white; }

.hero-content h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: .95;
}

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.btn-hero-primary {
    background-color: white;
    color: #1e40af;
    padding: 13px 32px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all .3s;
    display: inline-block;
}
.btn-hero-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
    color: #1e40af;
}

.btn-hero-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 11px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s;
    display: inline-block;
}
.btn-hero-secondary:hover { background-color: white; color: #1e40af; }

.hero-image { text-align: center; }
.hero-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

/* ============================================================
   SECTION FORMATION
   ============================================================ */
.formation-section {
    padding: 90px 0;
    background-color: white;
}

.formation-section h2,
.pricing-section h2,
.series-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
}

.formation-item { margin-bottom: 30px; }

.formation-card {
    background: white;
    border: 2px solid #4169E1;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all .3s;
    height: 100%;
}

.formation-card:hover {
    border-color: #1e40af;
    box-shadow: 0 10px 25px rgba(65,105,225,.2);
    transform: translateY(-5px);
}

.formation-card i {
    font-size: 38px;
    color: #4169E1;
    margin-bottom: 15px;
}

.formation-card h3 {
    font-size: 19px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.formation-card p { font-size: 14px; color: #666; line-height: 1.6; }

.formation-card .btn-serie {
    margin-top: 16px;
    background: #4169E1;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s;
    display: inline-block;
    text-decoration: none;
}
.formation-card .btn-serie:hover { background: #1e40af; }

/* ============================================================
   SECTION EXPERTISE (homepage — texte + image)
   ============================================================ */
.expertise-section {
    background: #f7f8fc;
    padding: 90px 0;
}

.expertise-card {
    background: white;
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    padding: 44px 40px;
    box-shadow: 0 4px 28px rgba(0,0,0,.07);
}

.expertise-title {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 34px;
}
.expertise-accent { color: #1e3a8a; }

/* Feature row */
.expertise-feature {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}
.expertise-feature:last-of-type { margin-bottom: 36px; }

.expertise-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(30,58,138,.1);
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.expertise-icon--upload { background: rgba(30,58,138,.13); }

.expertise-feature-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.expertise-feature-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* Image droite */
.expertise-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #1e3a8a;
    box-shadow: 0 8px 36px rgba(30,58,138,.18);
}
.expertise-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease;
}
.expertise-img-wrap:hover img { transform: scale(1.03); }

/* ── Bouton CTA "NOS FORMATIONS →" ── */
.btn-nos-formations {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 36px;
    border-radius: 8px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: background .25s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(30,58,138,.30);
    animation: btnPulse 2.2s ease-in-out infinite;
}

/* Pulsation lumineuse pour attirer l'œil */
@keyframes btnPulse {
    0%   { box-shadow: 0 4px 18px rgba(30,58,138,.30), 0 0 0 0 rgba(65,105,225,.55); }
    60%  { box-shadow: 0 4px 18px rgba(30,58,138,.30), 0 0 0 16px rgba(65,105,225,0); }
    100% { box-shadow: 0 4px 18px rgba(30,58,138,.30), 0 0 0 0 rgba(65,105,225,0); }
}

/* Reflet doré qui balaye le bouton */
.btn-nos-formations::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(242,193,78,.45), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
    0%       { left: -80%; }
    45%,100% { left: 130%; }
}

.btn-nos-formations:hover {
    background: #162c6b;
    color: #ffffff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 32px rgba(30,58,138,.45);
    animation-play-state: paused;
}
.btn-nos-formations i { font-size: 14px; transition: transform .25s; }
.btn-nos-formations:hover i { transform: translateX(5px); }

/* Accessibilité : pas d'animation si l'utilisateur la désactive */
@media (prefers-reduced-motion: reduce) {
    .btn-nos-formations, .btn-nos-formations::before { animation: none; }
}

/* ============================================================
   SECTION SÉRIES
   ============================================================ */
.series-section {
    padding: 80px 0;
    background-color: #f0f5ff;
}

.series-section h2 {
    color: #1a4d9b;
    text-align: center;
    font-size: 34px;
}

.series-section .section-subtitle { color: #444; }

.series-card {
    background-color: white;
    border: 1px solid #d8e8ff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(25,94,189,.08);
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
    margin-bottom: 20px;
}

.series-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 22px rgba(25,94,189,.22);
    border-color: #4169E1;
}

.series-card h4 { font-size: 15px; font-weight: 700; color: #1a4d9b; margin-bottom: 8px; }
.series-card .meta { font-size: 13px; color: #666; margin-bottom: 12px; }
.series-card .badge-cat {
    background: #e8eeff;
    color: #1e40af;
    font-size: 12px;
    border-radius: 20px;
    padding: 3px 10px;
    display: inline-block;
    margin-bottom: 8px;
}

/* ============================================================
   SECTION AVANTAGES
   ============================================================ */
.advantages-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #4169E1 0%, #1e40af 100%);
}

.advantages-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.advantage-item { margin-bottom: 30px; }

.advantage-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    height: 100%;
    backdrop-filter: blur(10px);
    transition: all .3s;
}

.advantage-card:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.5);
    transform: translateY(-5px);
}

.advantage-icon { font-size: 42px; color: white; margin-bottom: 15px; }

.advantage-card h3 { font-size: 18px; font-weight: 600; color: white; margin-bottom: 12px; }
.advantage-card p { font-size: 14px; color: rgba(255,255,255,.9); line-height: 1.6; }

/* ============================================================
   SECTION TARIFS
   ============================================================ */
/* ============================================================
   SECTION TARIFS — redesign complet
   Hover : toute la carte passe en bleu foncé
   ============================================================ */
.pricing-section {
    padding: 100px 0;
    background: #f4f6fb;
}

/* En-tête de section */
.pricing-header {
    text-align: center;
    margin-bottom: 10px;
}
.pricing-header h2 {
    font-size: 36px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 12px;
}
.pricing-header p {
    font-size: 16px;
    color: #64748b;
}

/* ── Kicker : distingue "Accès plateforme seul" vs "Formation avec formateur" ── */
.tarif-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.tarif-kicker.tarif-kicker--autonome {
    background: rgba(65,105,225,.1);
    color: #4169E1;
    border: 1.5px solid rgba(65,105,225,.35);
}
.tarif-kicker.tarif-kicker--formation {
    background: rgba(212,160,23,.12);
    color: #a9760f;
    border: 1.5px solid rgba(212,160,23,.4);
}
.tarif-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 70px 0 0;
    text-align: center;
    color: #64748b;
    font-size: 15px;
}
.tarif-divider::before,
.tarif-divider::after {
    content: "";
    flex: 1;
    max-width: 220px;
    height: 1px;
    background: #dbe2f0;
}

/* ── Carte de base — fond blanc, tout le texte en bleu ciel ── */
.pricing-card {
    background: #ffffff;
    border: 1.5px solid #4169E1;
    border-radius: 20px;
    padding: 40px 32px 36px;
    text-align: center;
    height: 100%;
    position: relative;
    transition: background 0.35s ease, border-color 0.35s ease,
                transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

/* ── Hover → fond bleu ciel, tout le texte blanc ── */
.pricing-card:hover {
    background: #4169E1;
    border-color: #4169E1;
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(65,105,225, 0.5);
}

/* ── .featured = badge seulement, aucune couleur spéciale ── */

/* Badge "POPULAIRE" */
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #F2C14E, #D4A017);
    color: #142654;
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: background 0.35s ease, color 0.35s ease;
}
.pricing-card:hover .pricing-badge {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* Nom du forfait — bleu ciel */
.pricing-plan-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #4169E1;
    margin-bottom: 18px;
    transition: color 0.35s ease;
}
.pricing-card:hover .pricing-plan-name { color: #ffffff; }

/* Prix — bleu ciel */
.pricing-price {
    font-size: 56px;
    font-weight: 900;
    color: #4169E1;
    line-height: 1;
    margin-bottom: 6px;
    transition: color 0.35s ease;
}
.pricing-price span {
    font-size: 28px;
    font-weight: 700;
    vertical-align: super;
}
.pricing-card:hover .pricing-price { color: #ffffff; }

/* Durée — bleu ciel atténué */
.pricing-duration {
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 28px;
    transition: color 0.35s ease;
}
.pricing-card:hover .pricing-duration { color: rgba(255,255,255,0.85); }

/* Bouton S'abonner — fond bleu ciel, texte blanc (comme "Voir les séries") */
.pricing-btn,
a.pricing-btn {
    display: block !important;
    width: 100%;
    padding: 11px 0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    margin-bottom: 28px;
    background: #4169E1 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Hover direct sur le bouton seul → bleu un peu plus foncé */
.pricing-btn:hover,
a.pricing-btn:hover {
    background: #1e40af !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Hover sur la carte entière → bouton passe en bleu foncé */
.pricing-card:hover .pricing-btn,
.pricing-card:hover a.pricing-btn {
    background: #1e3a8a !important;
    color: #ffffff !important;
}

/* Liste de features — texte bleu ciel */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #1e40af;
    border-bottom: 1px solid #e8eeff;
    transition: color 0.35s ease, border-color 0.35s ease;
}
.pricing-features li:last-child { border-bottom: none; }

.pricing-features i {
    color: #4169E1;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
    transition: color 0.35s ease;
}

/* Hover → features en blanc */
.pricing-card:hover .pricing-features li { color: #ffffff; border-color: rgba(255,255,255,0.3); }
.pricing-card:hover .pricing-features i  { color: #ffffff; }

/* ============================================================
   PAGE CHECKOUT / PAIEMENT
   ============================================================ */
.checkout-section {
    padding: 50px 0 80px;
    background: #f4f6fb;
    min-height: calc(100vh - 168px);
}

/* Alerte devise */
.checkout-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}
.alert-icon { font-size: 20px; }
.alert-red  { color: #e74c3c; }

/* Titre section */
.checkout-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.checkout-sub { font-size: 14px; color: #64748b; }
.checkout-link { color: #4169E1; font-weight: 600; text-decoration: underline; }

/* Inputs */
.checkout-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}
.checkout-input:focus { border-color: #4169E1; background: #fff; }
.checkout-select { cursor: pointer; }

/* Champ téléphone intl-tel-input */
.iti { width: 100%; display: block; }

/* L'input lui-même — pas de padding-left fixe, laissé à intl-tel-input */
.iti__tel-input {
    width: 100% !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-right: 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #f9fafb !important;
    outline: none !important;
    font-family: 'Inter', sans-serif !important;
    box-sizing: border-box !important;
}
.iti__tel-input:focus {
    border-color: #4169E1 !important;
    background: #fff !important;
}

/* Le bouton drapeau + indicatif à gauche */
.iti--separate-dial-code .iti__selected-flag {
    background: #f1f5f9;
    border-right: 1px solid #d1d5db;
    border-radius: 8px 0 0 8px;
    padding: 0 10px;
}

/* S'assurer que le padding-left de l'input laisse la place au drapeau */
.iti--separate-dial-code .iti__tel-input {
    padding-left: 100px !important;   /* suffisant pour drapeau + indicatif +XX */
}

.iti__dropdown-content { z-index: 9999 !important; font-family: 'Inter', sans-serif; }

/* Input avec œil */
.input-eye-wrap {
    position: relative;
}
.input-eye-wrap .checkout-input { padding-right: 44px; }
.input-eye-wrap .btn-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    font-size: 15px;
}
.input-eye-wrap .btn-eye:hover { color: #4169E1; }

/* ── Résumé commande ── */
.order-summary {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 28px;
}
.order-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}
.order-table { margin-bottom: 20px; }
.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}
.order-row:last-child { border-bottom: none; }
.order-header { font-weight: 600; color: #94a3b8; font-size: 13px; text-transform: uppercase; }
.order-plan-name { font-weight: 600; color: #0f172a; }
.order-amount    { font-weight: 600; color: #0f172a; }
.order-subtotal  { color: #64748b; }
.order-total     { font-size: 15px; color: #0f172a; padding-top: 12px; }

/* Modes de paiement */
.payment-methods { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}
.payment-option:hover { border-color: #4169E1; background: #f0f9ff; }
.payment-option input[type="radio"] { margin-top: 3px; accent-color: #4169E1; }
.payment-info { display: flex; flex-direction: column; gap: 3px; }
.payment-name { font-size: 14px; font-weight: 600; color: #0f172a; }
.payment-desc { font-size: 12px; color: #94a3b8; }

/* Texte RGPD */
.order-privacy {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 16px 0 12px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

/* Checkbox termes */
.order-terms {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    margin-bottom: 20px;
}
.order-terms input { accent-color: #4169E1; width: 16px; height: 16px; }

/* Message retour */
.checkout-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}
.msg-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.msg-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

/* Bouton payer */
.btn-pay {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-pay:hover    { background: #c0392b; }
.btn-pay:disabled { background: #94a3b8; cursor: not-allowed; }

/* ============================================================
   SECTION CONTACT
   ============================================================ */
.contact-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #4169E1 0%, #1e40af 100%);
}

.contact-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.contact-item { margin-bottom: 30px; }

.contact-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    padding: 35px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all .3s;
}
.contact-card:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-5px);
}
.contact-card i { font-size: 38px; color: white; margin-bottom: 15px; display: block; }
.contact-card h3 { font-size: 20px; font-weight: 600; color: white; margin-bottom: 10px; }
.contact-card p { font-size: 14px; color: rgba(255,255,255,.9); }

/* ============================================================
   SECTION BULLETIN (newsletter)
   ============================================================ */
.bulletin-section {
    background: #0a1635;
    padding: 50px 0;
    border-bottom: 1px solid rgba(65,105,225,0.15);
}
.bulletin-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}
.bulletin-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 0;
}
.bulletin-form {
    display: flex;
    gap: 12px;
    align-items: center;
}
.bulletin-input {
    flex: 1;
    padding: 12px 18px;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
    transition: border-color .2s, background .2s;
}
.bulletin-input::placeholder { color: rgba(255,255,255,0.4); }
.bulletin-input:focus { border-color: #F2C14E; background: rgba(255,255,255,0.12); }
.bulletin-btn {
    padding: 12px 28px;
    background: #F2C14E;
    color: #142654;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .3s;
}
.bulletin-btn:hover { background: #D4A017; color: #fff; }
.bulletin-msg { font-size: 13px; margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: #0a1635;
    color: rgba(255,255,255,0.8);
    padding: 55px 0 0;
}

.footer h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #F2C14E;
}

.footer p { font-size: 13px; line-height: 1.7; opacity: .75; }

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li {
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}
.footer ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color .3s;
}
.footer ul li a:hover { color: #F2C14E; }

/* Badges modes de paiement */
.payment-accept { display: flex; flex-direction: column; gap: 8px; }
.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    width: fit-content;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}
.payment-badge:hover {
    background: rgba(242,193,78,0.15);
    border-color: #F2C14E;
    color: #F2C14E;
    transform: translateY(-2px);
}
.payment-badge.orange { color: #fb923c; border-color: rgba(251,146,60,0.35); }
.payment-badge.orange:hover {
    background: rgba(251,146,60,0.12);
    border-color: #fb923c;
    color: #fb923c;
    transform: translateY(-2px);
}

.social-footer { display: flex; gap: 14px; margin-top: 5px; }
.social-footer a { font-size: 24px; transition: transform .25s, opacity .25s; opacity: .85; }
.social-footer a:hover { transform: scale(1.2); opacity: 1; }
.social-footer .fa-facebook  { color: #1877F2; }
.social-footer .fa-whatsapp  { color: #25D366; }
.social-footer .fa-instagram { color: #E1306C; }
.social-footer .fa-youtube   { color: #FF0000; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 30px;
    padding: 16px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   MODAL AUTH
   ============================================================ */
.modal-content { border-radius: 12px; border: none; }
.modal-header { background: #4169E1; border-radius: 12px 12px 0 0; }
.modal-title { color: white; font-weight: 700; }

.nav-tabs .nav-link { color: #555; font-weight: 500; }
.nav-tabs .nav-link.active { color: #4169E1; border-bottom: 2px solid #4169E1; font-weight: 700; }

/* Bouton œil — afficher/masquer mot de passe */
.btn-eye {
    background: white;
    border: 1px solid #dee2e6;
    border-left: none;
    cursor: pointer;
    color: #6c757d;
    transition: color .2s;
    padding: 0 12px;
}
.btn-eye:hover { color: #4169E1; }

/* ============================================================
   USER GREETING BADGE
   ============================================================ */
#user-greeting {
    background: rgba(65,105,225,.15);
    border: 1px solid rgba(65,105,225,.4);
    color: #1e3a8a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 991.98px) {
    .top-bar        { display: none !important; }
    header          { padding-top: 0; }
    main            { padding-top: 128px; }
}

/* ============================================================
   BOUTON HAMBURGER
   ============================================================ */
.hamburger-btn {
    background: transparent;
    border: 1.5px solid #1e3a8a;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    white-space: nowrap;
}
.hamburger-btn:hover {
    background: #4169E1;
    border-color: #4169E1;
    color: #ffffff;
}

/* ============================================================
   OVERLAY MENU MOBILE
   ============================================================ */
.mob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mob-overlay.mob-active {
    opacity: 1;
    visibility: visible;
}

/* Panneau (slide depuis la droite) */
.mob-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 100vw);
    height: 100dvh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -6px 0 30px rgba(0,0,0,0.18);
}
.mob-overlay.mob-active .mob-panel {
    transform: translateX(0);
}

/* ── En-tête du panneau ── */
.mob-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e8eeff;
    flex-shrink: 0;
}
.mob-logo {
    display: flex;
    align-items: center;
}
.mob-close {
    background: transparent;
    border: 1.5px solid #1e3a8a;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.25s, color 0.25s;
}
.mob-close:hover { background: #e63946; border-color: #e63946; color: #fff; }

/* ── Corps navigation ── */
.mob-body {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.mob-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 14.5px;
    border-bottom: 1px solid #f0f7fc;
    cursor: pointer;
    transition: background 0.2s;
}
.mob-nav-item:hover { background: #f0f7fc; }

.mob-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e8eeff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1e3a8a;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}
.mob-nav-item:hover .mob-icon { background: #4169E1; color: #fff; }

.mob-nav-content { display: flex; flex-direction: column; }
.mob-nav-title   { font-weight: 600; color: #1e3a8a; }

/* Sous-menus */
.mob-sub {
    display: none;
    flex-direction: column;
    margin-top: 8px;
    gap: 4px;
}
.mob-sub-open .mob-sub { display: flex; }
.mob-sub a {
    font-size: 13px;
    font-weight: 400;
    color: #1e40af;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.2s;
}
.mob-sub a:hover { color: #1e3a8a; }

.mob-chevron {
    font-size: 11px;
    margin-left: 6px;
    transition: transform 0.3s;
}
.mob-sub-open .mob-chevron { transform: rotate(180deg); }

/* ── Pied du panneau ── */
.mob-footer {
    background: #e8eeff;
    padding: 20px 20px 28px;
    border-top: 1px solid #d0e8f8;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mob-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mob-footer-links a {
    color: #1e3a8a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.mob-footer-links a:hover { color: #F2C14E; }
.mob-footer-links i { width: 16px; text-align: center; }

.mob-footer-btns {
    display: flex;
    gap: 10px;
}
.btn-mob-start {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #4169E1;
    color: #ffffff;
    border-radius: 7px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.25s;
}
.btn-mob-start:hover { background: #1e40af; color: #fff; }

.btn-mob-login {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #1e3a8a;
    color: #ffffff;
    border-radius: 7px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.25s;
}
.btn-mob-login:hover { background: #142d58; color: #fff; }

/* Section utilisateur connecté */
.mob-user-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mob-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mob-logout-btn {
    flex: 1;
    background: #ffffff;
    border: 1.5px solid #e63946;
    color: #e63946;
    border-radius: 7px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.25s, color 0.25s;
}
.mob-logout-btn:hover { background: #e63946; color: #fff; }

/* Réseaux sociaux */
.mob-social {
    display: flex;
    gap: 14px;
}
.mob-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
}
.mob-social a:hover { transform: scale(1.15); }
.mob-social .fa-facebook  { color: #1877F2; }
.mob-social .fa-whatsapp  { color: #25D366; }
.mob-social .fa-instagram { color: #E1306C; }
.mob-social .fa-youtube   { color: #FF0000; }

/* ============================================================
   BADGE UTILISATEUR CONNECTÉ (navbar desktop)
   ============================================================ */
.nav-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8eeff;
    border: 1px solid #4169E1;
    border-radius: 20px;
    padding: 4px 12px 4px 4px;
}
.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   NAV FLEXBOX — évite que les boutons écrasent le menu
   ============================================================ */
.main-nav-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

/* Logo : largeur auto (taille naturelle du logo 65px de haut) */
.nav-logo-wrap { flex: 0 0 auto; }

/* Menu : prend l'espace dispo, centré horizontalement */
.nav-menu-wrap {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Auth : taille naturelle, ne rétrécit jamais */
.nav-auth-wrap {
    flex: 0 0 auto;
}

/* Greeting : texte compact, pas de retour à la ligne */
.nav-greeting {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
    white-space: nowrap;
}

/* ============================================================
   BANNIÈRE SIMULATION EXAMEN
   ============================================================ */
.simulation-banner {
    background: linear-gradient(135deg, #142654 0%, #1e3a8a 60%, #1e40af 100%);
    padding: 70px 0;
    color: #fff;
}
.simulation-banner .sim-icon {
    font-size: 42px;
    color: #F2C14E;
    margin-bottom: 18px;
    display: inline-block;
}
.simulation-banner h2 {
    font-size: 30px;
    font-weight: 800;
    max-width: 820px;
    margin: 0 auto 14px;
}
.simulation-banner p {
    font-size: 15px;
    opacity: .85;
    max-width: 680px;
    margin: 0 auto 30px;
    line-height: 1.7;
}
.sim-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.sim-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    border: 2px solid #F2C14E;
    border-radius: 8px;
    color: #F2C14E;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .25s, color .25s, transform .2s;
}
.sim-btn:hover {
    background: #F2C14E;
    color: #142654;
    transform: translateY(-2px);
}

/* ============================================================
   SECTION AVIS DES CANDIDATS
   ============================================================ */
.testimonials-section {
    padding: 80px 0;
    background: #eef2fb;
}
.testimonials-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #1e3a8a;
}
.testimonials-section .section-subtitle { text-align: center; color: #555; }
.testimonial-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid #4169E1;
    box-shadow: 0 6px 24px rgba(30,58,138,.10);
    transition: transform .3s, box-shadow .3s;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(30,58,138,.18);
}
.testimonial-stars { color: #F2C14E; font-size: 14px; margin-bottom: 14px; letter-spacing: 3px; }
.testimonial-text {
    font-size: 13.5px;
    color: #444;
    line-height: 1.75;
    flex: 1;
    margin-bottom: 18px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13.5px;
    color: #1e3a8a;
}
.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4169E1, #1e40af);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
}

/* ============================================================
   SECTION FAQ
   ============================================================ */
.faq-section {
    padding: 80px 0;
    background: #fff;
}
.faq-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #1e3a8a;
}
.faq-section .section-subtitle { text-align: center; color: #555; margin-bottom: 40px; }
.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
}
.faq-accordion .accordion-item {
    border: 1.5px solid #e2e8f5;
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 14px;
}
.faq-accordion .accordion-button {
    font-weight: 700;
    color: #0f172a;
    font-size: 15.5px;
    padding: 20px 24px;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(65,105,225,.08);
    color: #1e3a8a;
    box-shadow: none;
}
.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: #e2e8f5;
}
.faq-accordion .accordion-body {
    padding: 4px 24px 22px;
    color: #555;
    font-size: 14.5px;
    line-height: 1.75;
}

/* ============================================================
   CONTACT — BADGE 24/7 & CTA WHATSAPP
   ============================================================ */
.badge-247 {
    display: inline-flex;
    align-items: center;
    background: rgba(242,193,78,.15);
    border: 1.5px solid #F2C14E;
    color: #F2C14E;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 18px;
}
.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    background: #25D366;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    padding: 15px 36px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(37,211,102,.35);
    transition: transform .2s, box-shadow .2s, background .25s;
}
.whatsapp-cta:hover {
    background: #1ebe5a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37,211,102,.45);
}
.whatsapp-cta i { font-size: 20px; }
