@charset "UTF-8";
/* ================================================================
   PREMIUM LIGHT — BMS-A Consulting
   Style : Blanc, épuré, grand cabinet, Navy + Vert en accents fins
   Inspiré : McKinsey, BCG, Deloitte
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* Couleurs du logo */
    --visite : #4CAF50;
    --navy: #001f3f;
    --navy-mid: #0a3060;
    --navy-light: #e8eef8;
    --green: #2e7d4f;
    --green-light: #e8f5ee;
    --green-vif: #4CAF50;

    /* Fond & Surfaces */
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --bg-hero: #f4f7fb;
    --surface: #ffffff;
    --surface-alt: #f0f4fa;

    /* Textes */
    --text: #0a1628;
    --text-mid: #2d3f55;
    --text-muted: #6b7f96;
    --text-light: #ffffff;

    /* Séparateurs */
    --border: #e2e8f0;
    --border-navy: rgba(0, 31, 63, 0.12);
    --border-green: rgba(46, 125, 79, 0.2);

    /* Ombres douces */
    --shadow-xs: 0 1px 4px rgba(0, 31, 63, 0.06);
    --shadow-sm: 0 4px 16px rgba(0, 31, 63, 0.07);
    --shadow-md: 0 12px 32px rgba(0, 31, 63, 0.09);
    --shadow-lg: 0 24px 56px rgba(0, 31, 63, 0.11);

    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 50px;
}


/* ═══ RESET ═══════════════════════════════════════════ */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2 {
    font-family: 'Playfair Display', serif;
}

h3,
h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

/* ═══ ANIMATIONS ══════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ NAVIGATION ══════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.95rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}



 .nav-menu a:visited {
    color: var(--green);
} 

.nav-menu a:hover {
    color: var(--green-vif);
}

.nav-menu a::after {
    color: var(--green-vif);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lang-toggle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.lang-toggle span {
    cursor: pointer;
    transition: color 0.2s;
}

.lang-toggle span:hover,
.lang-toggle span.active {
    color: var(--navy);
}


/* Liens FR/EN (remplace les <span>) */

.lang-toggle {
        display: flex;
        align-items: center;
        gap: 0;
        background: var(--bg-alt);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 0.18rem 0.3rem;
        overflow: hidden;
    }
.lang-link:hover,
/*.lang-link.active {*/
/*     background: #05d71540;*/
/*    color: #0a3060;*/
}
}
.lang-separator {
    display: :none;
}

.nav-cart-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.22s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: var(--shadow-xs);
}

.nav-cart-btn:hover {
    background: var(--navy-mid);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.cart-badge {
    background: var(--green-vif);
    color: white;
    font-size: 0.66rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══ HERO ═══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    background: var(--bg-hero);
    display: flex;
    align-items: center;
    padding: 9rem 5% 5rem;
    position: relative;
    overflow: hidden;
}

/* Accent géométrique décoratif retiré pour correspondre à la maquette */
.hero::before {
    display: none;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.tagline::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--green);
    flex-shrink: 0;
}

.hero-text h1 h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.2rem, 4.5vw, 4.5rem);
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 1.4rem;
    letter-spacing: -0.5px;
}

.hero-text h1 span {
    color: var(--green);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
    max-width: 490px;
    margin-bottom: 2.8rem;
    font-weight: 400;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--navy-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    display: inline-block;
    background: white;
    color: var(--navy);
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-navy);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.22s;
}

.btn-outline:hover {
    border-color: var(--navy);
    background: var(--navy-light);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-image-card {
    width: 100%;
    border-radius: 80px 0 0 0;
    /* Huge top-left radius per mockup */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    right: -2rem;
    /* Pull slightly to the right to fill space */
}

.hero-image-card img {
    width: 100%;
    height: 500px;
    /* Slightly taller to fit the huge radius nicely */
    object-fit: cover;
    display: block;
}

/* ═══ SECTIONS ═══════════════════════════════════════ */
section {
    padding: 4rem 5%;
}

.section-title {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    color: var(--navy);
    text-align: center;
    margin-bottom: 0.9rem;
    letter-spacing: -0.3px;
}

.section-title span {
    color: var(--green);
}

.section-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: var(--green-vif);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 620px;
    margin-top: 0;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 2rem;
    font-size: 0.97rem;
    line-height: 1.8;
}

/* ═══ EXPERTISE ═══════════════════════════════════════ */
#expertise {
    background: var(--bg-alt);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

.expertise-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--green-vif));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.expertise-card:hover {
    border-color: var(--border-navy);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card h3 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
}

.expertise-card p {
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.72;
    margin-bottom: 1.2rem;
}

.cta-link {
    color: var(--green);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cta-link:hover {
    color: var(--navy);
}

/* ═══ FORMATIONS ════════════════════════════════════ */
#formations {
    background: #fdfdfe;
    padding: 4rem 5%;
}

#formations .section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    position: relative;
}

#formations .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2563eb;
    margin: 1rem auto 2.5rem;
}

#formations .section-subtitle {
    text-align: left;
    max-width: 1100px;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.filter-buttons {
    max-width: 1100px;
    margin: 0 auto 3.5rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    background: #f3f4f6;
    /* Gray 100 */
    color: #4b5563;
    /* Gray 600 */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e5e7eb;
    color: var(--navy);
}

.filter-btn.active {
    background: #2563eb;
    /* Blue 600 */
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1080px) {
    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .formations-grid {
        grid-template-columns: 1fr;
    }
}

.formation-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.formation-card.hidden {
    display: none !important;
}

.formation-header {
    height: 220px;
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background-size: cover;
    background-position: center;
}

/* En-têtes avec images et overlay sombre orienté vers le bas */
.bg-strategy {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.1) 80%), url('hero_bg.png');
	}
	
.bg-strategie {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.1) 80%), url('hero_bg.png');
	
	}
	
.bg-gouvernance {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.1) 80%), url('bg_gouvernance.png');
}

.bg-finance {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.1) 80%), url('bg_finance.png');
}

.bg-digital {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.1) 80%), url('bg_strategy.png');
}

.bg-leadership {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.1) 80%), url('bg_finance.png');
}

.formation-category {
    color: #10b981;
    /* Emeraude */
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    position: static;
    background: transparent;
    padding: 0;
    z-index: 2;
}

.formation-header h3 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.25;
    z-index: 2;
}

.formation-duration {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.formation-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: white;
    text-align: left;
}

.formation-body p {
    color: #475569;
    /* Slate 600 */
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.formation-cta {
    width: 100%;
    padding: 0.85rem;
    border-radius: 8px;
    /* Bords légèrement arrondis */
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    background: #f8fafc;
    /* Very light slate */
    color: #0f172a;
    transition: all 0.3s ease;
}

.formation-cta:hover {
    background: #e2e8f0;
}

.formation-card:hover .formation-cta {
    background: #2563eb;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.formation-cta.in-cart {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #10b981;
    cursor: pointer;
}

body #formations .formation-card .formation-body .formation-cta.in-cart:hover {
    background: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.4) !important;
    cursor: pointer !important;
}


/* ═══ PARTENAIRES ═════════════════════════════════════ */
#partenaires {
    background: var(--bg-alt);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-card {
    background: white;
    padding: 1.8rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-xs);
}



.partner-card img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
}

.partner-name {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.8rem;
}

/* ═══ CONTACT ══════════════════════════════════════ */
#contact {
    background: var(--bg);
}

/* ═══ FOOTER ══════════════════════════════════════ */
footer {
    background: var(--navy);
    color: white;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 5%;
    text-align: center;
}

.footer-logo {
    max-height: 50px;
    width: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

/* Logo footer cassé : fallback texte visible si image absente */
/*.footer-logo {
    display: block;
    min-width: 40px;
    min-height: 40px;
}
*/


.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-info {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-info p {
    margin-bottom: 0.4rem;
}

.footer-info strong {
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* ═══ PANIER ══════════════════════════════════════ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-panel {
    position: fixed;
    top: 0;
	right: -100%;
    left: auto !important; 
/*    right: -420px;*/
	/* Pour que le panier glisse depuis la DROITE */
/*.cart-panel {
    right: -100%;
    left: auto !important;   Force la position à droite */
/*
.cart-panel.active {
    right: 0;
    left: auto !important;
}*/
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: white;
    border-left: 1px solid var(--border);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
}

.cart-panel.active {
    right: 0;
}

.cart-header {
    padding: 1.4rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 700;
}

.close-cart-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-cart-btn:hover {
    color: var(--navy);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.empty-msg {
    color: var(--text-muted);
    text-align: center;
    margin-top: 3rem;
    font-size: 0.88rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-title {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
}

.remove-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.remove-btn:hover {
    color: #e53e3e;
}

.cart-footer {
    padding: 1.4rem 2rem;
    border-top: 1px solid var(--border);
}

.submit-btn {
    width: 100%;
    background: var(--navy);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.22s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.submit-btn:hover:not(:disabled) {
    background: var(--navy-mid);
    box-shadow: var(--shadow-md);
}

.submit-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

/* ═══ MODAL ══════════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 520px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--navy);
}

.modal-content h2 {
    color: var(--navy);
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.07);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.formation-name {
    margin-bottom: 1.5rem;
}

.modal-formations-list {
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

.modal-formations-list strong {
    display: block;
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.6rem;
}

.modal-formations-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-formations-list ul li {
    padding: 0.3rem 0;
    color: var(--text);
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-formations-list ul li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    font-size: 0.9rem;
}

.modal-formations-list ul li:last-child {
    border-bottom: none;
}

.success-message {
    display: none;
    background: var(--green-light);
    border: 1px solid var(--border-green);
    color: var(--green);
    padding: 0.9rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.88rem;
}

.success-message.show {
    display: block;
}

/* ═══ TOAST ═══════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--navy);
    color: white;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    pointer-events: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══ RESPONSIVE MOBILE ═══════════════════════════════ */
@media (max-width: 900px) {

    /* ── Topbar ─────────────────────────────────────────── */
    .nav-container {
        justify-content: space-between;
        padding: 0.75rem 5%;
    }

    /* ── Bouton hamburger — 3 barres animées ────────────── */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100;
        order: 3;
        padding: 0;
    }

    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 2.5px;
        background: var(--navy);
        border-radius: 4px;
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                    opacity   0.25s ease,
                    width     0.3s ease;
        transform-origin: center;
    }

    /* Barre du milieu plus courte pour un look design */
    .mobile-toggle span:nth-child(2) {
        width: 70%;
        align-self: flex-end;
    }

    /* Animation → croix */
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8.75px) rotate(45deg);
        width: 100%;
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8.75px) rotate(-45deg);
        width: 100%;
    }

    /* ── Actions (lang + panier) ────────────────────────── */
    .nav-actions {
        order: 2;
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin-left: auto;
        margin-right: 1.1rem;
    }

    /* Sélecteur de langue — pills FR|EN */
    .lang-toggle {
        display: flex;
        align-items: center;
        gap: 0;
        background: var(--bg-alt);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 0.18rem 0.3rem;
        overflow: hidden;
    }

    .lang-link {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        padding: 0.22rem 0.55rem;
        border-radius: 16px;
        text-decoration: none;
        color: var(--text-muted);
        transition: all 0.2s;
    }

 .lang-link.active {
    background: #05d71540;
    color: #0a3060;
}

     #nav-cart-label {
        display: none;
    }


    .lang-separator {
        display: none; /* Masqué : le pill suffit */
    }

    /* Bouton panier — compact avec badge */
    .nav-cart-btn {
        padding: 0.42rem 0.7rem;
        font-size: 0.75rem;
        gap: 6px;
        border-radius: var(--radius-pill);
    }

  
   
    /* ── Panneau menu latéral ───────────────────────────── */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(82%, 340px);
        height: 100vh;
        background: white;
        padding: 0;
        box-shadow: -8px 0 40px rgba(0,31,63,0.16);
        transition: right 0.42s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1055;
        gap: 0;
        overflow-y: auto;
        isolation: isolate;
        will-change: transform;
    }

    .nav-menu.active {
        right: 0;
    }

    /* En-tête du panneau : logo + ligne de fermeture */
    .nav-menu::before {
        content: 'BMS-A';
        text-align: center;
        align-content: center;
        color:var(--green-vif) ;
        display: block;
        height: 72px;
        background: var(--navy-light); /*var(--navy);*/
        flex-shrink: 0;
        
   /* Ajoutez ces propriétés pour agrandir et centrer */
    font-size: 24px;        /* Ajustez cette valeur pour la taille du texte (ex: 24px, 32px, 2rem, etc.) */
    font-weight: bold;      /* Optionnel : rend le texte plus gras */
    line-height: normal;    /* Assure un meilleur centrage vertical */
    
    /* Pour un centrage parfait (optionnel) */
    display: flex;
    align-items: center;
    justify-content: center;
     }

    /* Chaque lien du menu */
    .nav-menu li {
        border-bottom: 1px solid var(--border);
        transform: translateX(20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Animation des items au slide-in */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.08s; transform: translateX(0); opacity: 1; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.13s; transform: translateX(0); opacity: 1; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.18s; transform: translateX(0); opacity: 1; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.23s; transform: translateX(0); opacity: 1; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.28s; transform: translateX(0); opacity: 1; }

    .nav-menu li a {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text);
        padding: 1.15rem 1.8rem;
        text-decoration: none;
        transition: background 0.18s, color 0.18s, padding-left 0.2s;
        letter-spacing: 0.01em;
    }

    /* Icônes devant chaque lien via ::before */
    #nav-home::before      { content: '⌂'; font-size: 1.05rem; }
    #nav-expertise::before { content: '◈'; font-size: 1.05rem; }
    #nav-formations::before{ content: '◻'; font-size: 1.05rem; }
    #nav-partners::before  { content: '◇'; font-size: 1.05rem; }
    #nav-contact::before   { content: '✉'; font-size: 1.05rem; }

    .nav-menu li a:hover {
        background: var(--navy-light);
        color: var(--navy);
        padding-left: 2.2rem;
    }

    /* Flèche → à droite de chaque lien */
    .nav-menu li a::after {
        content: '›';
        margin-left: auto;
        font-size: 1.2rem;
        color: var(--text-muted);
        font-weight: 300;
    }

    /* ── Overlay sombre derrière le panneau ─────────────── */
   

    .menu-overlay {
        position: fixed;
        inset: 0;
        /* background: rgba(0, 15, 35, 0.35);*/
         backdrop-filter supprimé — causait un flou sur le panneau dans certains navigateurs 
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 100;
         cursor: pointer; /* Curseur main sur l'overlay */
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero::before {
        display: none;
    }
}

/* ═══ TRÈS PETITS ÉCRANS (≤ 480px) ═════════════════════ */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.65rem 4%;
    }

    .logo-container img {
        max-height: 32px;
    }

    .nav-actions {
        gap: 0.35rem;
        margin-right: 0.8rem;
    }

    .lang-link {
        padding: 0.18rem 0.45rem;
        font-size: 0.62rem;
    }

    .nav-cart-btn {
        padding: 0.38rem 0.6rem;
    }

    .mobile-toggle {
        width: 24px;
        height: 18px;
    }

    .mobile-toggle span:nth-child(2) {
        width: 65%;
    }

    .nav-menu li a {
        padding: 1rem 1.4rem;
        font-size: 0.95rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.3rem;
    }

    .btn-group {
        flex-wrap: wrap;
    }

    .hero-visual {
        display: none;
    }

    .section-padding {
        padding: 4rem 6%;
    }

    .logo-container img {
        height: 38px;
    }

    /* Espacement réduit sur mobile */
    section {
        padding: 2.5rem 5%;
    }

    #formations {
        padding: 2.5rem 5%;
    }
}

.cart-item {
    display: flex !important;
    align-items: center;
    width: 100% !important;
	padding: 6px 10px;
	border-bottom: 1px solid #ddd;
}

.cart-item:last-child {
    	border-bottom: none;
}



.cart-item-name {
    flex: 1;
}
.cart-item-key {
/*    font-weight: bold;*/
	margin-right:10px;
    color: #555;
}
.remove-btn {
    margin-left: auto;
    cursor: pointer;
}

.remove-btnx {
    background: var(--green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
	 cursor: pointer;
}

/* ID service dans le panier */
.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-id {
    flex-shrink: 0;
    background: var(--primary, #1a3c5e);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.cart-item-title {
    flex: 1;
}
/*-------------------------FR | EN -------------------*/
.lang-link {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        padding: 0.22rem 0.55rem;
        border-radius: 16px;
        text-decoration: none;
        color: var(--text-muted);
        transition: all 0.2s;
}

.lang-link.active {
    background: #05d71540;
    color: #0a3060;
}




/*----*/
.lang-switch {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 8px;
    color: inherit;
}

.lang-switch.active {
    font-weight: 700;
    color: var(--primary, #1a3a6f);
}