/* ═══════════════════════════════════════════════════════════════════════════
   MbeSchool Vitrine — Main Stylesheet
   Design: Luxury-refined with ocean blue gradient brand
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
    --brand-start: #0047cc;
    --brand-end: #007bff;
    --brand-gradient: linear-gradient(90deg, #0047cc, #007bff);
    --brand-gradient-135: linear-gradient(135deg, #0047cc, #007bff);
    --accent: #00d4ff;
    --accent-soft: rgba(0, 212, 255, 0.12);
    --gold: #f4b942;
    --white: #ffffff;
    --bg-light: #f8fbff;
    --bg-subtle: #eef4ff;
    --text-dark: #0d1b3e;
    --text-muted: #6b7a99;
    --border: rgba(0, 71, 204, 0.12);
    --shadow-sm: 0 2px 16px rgba(0,71,204,0.08);
    --shadow-md: 0 8px 40px rgba(0,71,204,0.14);
    --shadow-lg: 0 20px 60px rgba(0,71,204,0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --footer-bg: #050e24;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Blocage immédiat — avant tout JS */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}
body { top: 0 !important; margin-top: 0 !important; }

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; }
h5, h6, .font-display { font-family: 'DM Sans', sans-serif; font-weight: 600; }

.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.mbs-navbar {
    background: transparent;
    padding: 1.2rem 0;
    transition: var(--transition);
    z-index: 1000;
}

.mbs-navbar.scrolled {
    background: rgba(5, 14, 36, 0.97) !important;
    backdrop-filter: blur(20px);
    padding: 0.7rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.logo-icon {
    width: 40px; height: 40px;
    background: var(--brand-gradient);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white;
}

.logo-icon .material-icons-round { font-size: 22px; }

.logo-text { line-height: 1; }
.logo-main { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.4rem; color: white; }
.logo-accent { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.4rem; color: var(--accent); }

.mbs-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.mbs-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%; right: 50%;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}

.mbs-navbar .nav-link:hover::after,
.mbs-navbar .nav-link.active::after { left: 1rem; right: 1rem; }
.mbs-navbar .nav-link:hover,
.mbs-navbar .nav-link.active { color: white !important; }

.btn-demo {
    background: var(--brand-gradient);
    color: white !important;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 6px;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,71,204,0.4);
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,71,204,0.5);
    color: white !important;
}

.btn-demo .material-icons-round { font-size: 18px; }

/* ── Hero Section ───────────────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    background: var(--footer-bg);
    position: relative;
    display: flex; align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute; inset: 0;
    background:
            radial-gradient(ellipse 70% 60% at 20% 50%, rgba(0,71,204,0.35) 0%, transparent 60%),
            radial-gradient(ellipse 50% 40% at 80% 30%, rgba(0,123,255,0.25) 0%, transparent 60%),
            radial-gradient(ellipse 40% 50% at 60% 80%, rgba(0,212,255,0.12) 0%, transparent 50%);
}

.hero-grid {
    position: absolute; inset: 0;
    background-image:
            linear-gradient(rgba(0,71,204,0.06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0,71,204,0.06) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-particles {
    position: absolute; inset: 0; pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: float-particle linear infinite;
    opacity: 0;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-20px) scale(1.5); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,212,255,0.12);
    border: 1px solid rgba(0,212,255,0.3);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge .pulse-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-hero-primary {
    background: var(--brand-gradient);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: flex; align-items: center; gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0,71,204,0.5);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,71,204,0.6);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: flex; align-items: center; gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    transform: translateY(-3px);
}

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }

.hero-stat-item {}
.hero-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* Hero Visual */
.hero-visual {
    position: relative;
    /* Espace réservé : haut pour card-1, bas pour card-2, côtés pour marge */
    padding: 56px 12px 56px 12px;
}

.hero-mockup {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    position: relative;
    animation: float 6s ease-in-out infinite;
    /* Se positionne dans le flux, entre les paddings réservés aux cartes */
    z-index: 5;
    width: 100%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.mockup-header {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.2rem;
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
    width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }
.mockup-title { color: rgba(255,255,255,0.6); font-size: 0.8rem; margin-left: auto; }

.mockup-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1rem; }

.mockup-stat {
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.mockup-stat-val { color: white; font-weight: 700; font-size: 1.3rem; line-height: 1; }
.mockup-stat-lbl { color: rgba(255,255,255,0.5); font-size: 0.7rem; margin-top: 3px; }
.mockup-stat-trend { font-size: 0.65rem; color: #28c840; }

.mockup-chart-bar {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }

.bar {
    flex: 1;
    background: var(--brand-gradient);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: var(--transition);
    animation: grow-bar 1.5s ease-out forwards;
}

@keyframes grow-bar { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); } }

/* Floating cards */
.hero-float-card {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 0.8rem 1.2rem;
    display: flex; align-items: center; gap: 10px;
    color: white;
    font-size: 0.8rem; font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: float-card ease-in-out infinite;
}

.hero-float-card .material-icons-round { font-size: 20px; color: var(--accent); }
.hero-float-card-1 {
    /* Coin supérieur droit — HORS du mockup, dans le padding haut */
    top: 8px;
    right: 8px;
    left: auto;
    bottom: auto;
    animation-duration: 4s;
    animation-delay: 0s;
    z-index: 10;
    white-space: nowrap;
}
.hero-float-card-2 {
    /* Coin inférieur gauche — HORS du mockup, dans le padding bas */
    bottom: 8px;
    left: 8px;
    right: auto;
    top: auto;
    animation-duration: 5s;
    animation-delay: 1s;
    z-index: 10;
    white-space: nowrap;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

/* ── Section Headings ───────────────────────────────────────────────────── */
.section-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent-soft);
    color: var(--brand-start);
    border: 1px solid rgba(0,71,204,0.15);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 580px;
}

/* ── Stats Strip ────────────────────────────────────────────────────────── */
.stats-strip {
    background: var(--brand-gradient);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Grille principale : 4 colonnes égales, JAMAIS en ligne */
.stats-strip-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 !important;
    align-items: center !important;
    position: relative;
}

/* Chaque cellule stat */
.stat-strip-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1.5rem 1rem !important;
    position: relative;
}

/* Séparateur vertical entre les items */
.stat-strip-sep {
    display: none; /* géré via pseudo-element ci-dessous */
}
.stat-strip-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 15%; bottom: 15%;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

/* Icône */
.stat-strip-icon {
    width: 52px !important;
    height: 52px !important;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem auto !important;
    color: white !important;
    flex-shrink: 0 !important;
}
.stat-strip-icon .material-icons-round {
    font-size: 26px !important;
    color: white !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Chiffre */
.stat-strip-number {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    color: white !important;
    line-height: 1 !important;
    display: block !important;
    white-space: nowrap !important;
    margin-bottom: 0.4rem !important;
}
/* <font> injecté par Google dans le chiffre */
.stat-strip-number font {
    font-family: 'Playfair Display', serif !important;
    font-size: inherit !important;
    color: inherit !important;
    font-weight: inherit !important;
    display: inline !important;
    line-height: inherit !important;
}

/* Label */
.stat-strip-label {
    color: rgba(255,255,255,0.78) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    display: block !important;
    white-space: nowrap !important;
}
.stat-strip-label font {
    color: inherit !important;
    font-size: inherit !important;
    display: inline !important;
}

/* Anciens sélecteurs — compatibilité si encore présents */
.stat-card-strip { text-align: center; position: relative; padding: 1rem; }
.stat-card-strip::after {
    content: ''; position: absolute; right: 0; top: 20%; bottom: 20%;
    width: 1px; background: rgba(255,255,255,0.2);
}
.stat-card-strip:last-child::after { display: none; }
.stat-icon-strip {
    width: 48px; height: 48px; background: rgba(255,255,255,0.15);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 0.8rem; color: white;
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem; font-weight: 800; color: white; line-height: 1;
}
.stat-label-strip {
    color: rgba(255,255,255,0.75); font-size: 0.9rem;
    font-weight: 500; margin-top: 0.3rem;
}

/* Responsive */
@media (max-width: 767px) {
    .stats-strip-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .stat-strip-item:nth-child(2)::after { display: none !important; }
    .stat-strip-number { font-size: 2rem !important; }
    .stat-strip-label  { white-space: normal !important; font-size: .8rem !important; }
}
@media (max-width: 480px) {
    .stats-strip-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .stat-strip-icon { width: 40px !important; height: 40px !important; }
}

/* ── Feature Cards ──────────────────────────────────────────────────────── */
.features-section { background: var(--bg-light); padding: 6rem 0; }

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 28px;
}

.feature-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ── Why Us Section ─────────────────────────────────────────────────────── */
.why-section { padding: 6rem 0; }

.advantage-item {
    display: flex; gap: 1.2rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.advantage-item:hover { background: var(--bg-light); }

.advantage-icon {
    width: 50px; height: 50px; min-width: 50px;
    background: var(--brand-gradient);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white;
}

.advantage-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.advantage-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* Visual block */
.why-visual {
    background: var(--brand-gradient-135);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.why-visual::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -100px; right: -100px;
}

/* ── Testimonials ───────────────────────────────────────────────────────── */
.testimonials-section { background: var(--bg-light); padding: 6rem 0; }

.testimonial-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    height: 100%;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.testimonial-quote {
    font-size: 4rem;
    line-height: 0.5;
    color: var(--brand-start);
    opacity: 0.15;
    font-family: serif;
    margin-bottom: 1rem;
}

.testimonial-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1.1rem;
    flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.author-role { font-size: 0.8rem; color: var(--text-muted); }

.stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.2rem; }

/* Testimonial form */
.testimonial-form-section { padding: 4rem 0; }

.form-glass {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* ── Partners ───────────────────────────────────────────────────────────── */
.partners-section { padding: 5rem 0; }

.partner-logo {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    display: flex; align-items: center; justify-content: center;
    min-height: 90px;
    transition: var(--transition);
    filter: grayscale(0.5) opacity(0.7);
}

.partner-logo:hover { filter: none; transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.partner-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
}

/* ── Gallery Section ────────────────────────────────────────────────────── */
.gallery-section { padding: 6rem 0; background: var(--footer-bg); }

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    aspect-ratio: 16/10;
    cursor: pointer;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex; align-items: flex-end; padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-text { color: white; }
.gallery-overlay-title { font-weight: 700; font-size: 1rem; }
.gallery-overlay-desc { font-size: 0.8rem; opacity: 0.8; }

.gallery-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.3);
}

.gallery-placeholder .material-icons-round { font-size: 48px; margin-bottom: 0.5rem; }

/* Video embed */
.video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(0,212,255,0.3);
    box-shadow: 0 0 60px rgba(0,123,255,0.3);
}

.video-placeholder {
    background: rgba(255,255,255,0.04);
    aspect-ratio: 16/9;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover { background: rgba(255,255,255,0.07); }

.play-btn {
    width: 80px; height: 80px;
    background: var(--brand-gradient);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 40px rgba(0,71,204,0.6);
    transition: var(--transition);
}

.play-btn:hover { transform: scale(1.1); }
.play-btn .material-icons-round { font-size: 36px; color: white; }

/* ── Events ─────────────────────────────────────────────────────────────── */
.events-section { padding: 6rem 0; background: var(--bg-light); }

.event-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.event-card-header {
    background: var(--brand-gradient);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.event-card-header::after {
    content: '';
    position: absolute;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -40px; right: -40px;
}

.event-date-badge {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.8rem;
    display: inline-flex; flex-direction: column; align-items: center;
    min-width: 56px;
    backdrop-filter: blur(10px);
}

.event-date-day { font-size: 1.5rem; font-weight: 800; color: white; line-height: 1; }
.event-date-month { font-size: 0.7rem; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 1px; }

.event-type-badge {
    font-size: 0.72rem; font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-card-body { padding: 1.5rem; }
.event-title { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.event-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.event-location { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.8rem; }

/* ── Blog Cards ─────────────────────────────────────────────────────────── */
.blog-section { padding: 6rem 0; }

.article-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.article-thumb {
    aspect-ratio: 16/9;
    background: var(--bg-subtle);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.article-card:hover .article-thumb img { transform: scale(1.05); }

.article-thumb-placeholder {
    display: flex; flex-direction: column; align-items: center;
    color: var(--text-muted); opacity: 0.5;
}

.article-thumb-placeholder .material-icons-round { font-size: 40px; }

.article-body { padding: 1.5rem; }
.article-category { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--brand-start); margin-bottom: 0.5rem; }
.article-title { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.4; margin-bottom: 0.5rem; }
.article-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.article-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); }

/* ── Team ───────────────────────────────────────────────────────────────── */
.team-section { background: var(--bg-light); padding: 6rem 0; }

.team-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.team-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; font-weight: 700;
    margin: 0 auto 1.2rem;
    font-family: 'Playfair Display', serif;
    border: 4px solid var(--accent-soft);
}

.team-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.25rem; }
.team-role { font-size: 0.85rem; color: var(--brand-start); font-weight: 600; margin-bottom: 0.7rem; }
.team-bio { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Values ─────────────────────────────────────────────────────────────── */
.values-section { padding: 6rem 0; }

.value-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    background: white;
}

.value-card:hover { background: var(--brand-gradient); color: white; transform: translateY(-8px); box-shadow: var(--shadow-md); }
.value-card:hover .value-title, .value-card:hover .value-desc { color: white; }
.value-card:hover .value-icon { background: rgba(255,255,255,0.2); color: white; }

.value-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--brand-start);
    font-size: 30px;
    transition: var(--transition);
}

.value-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; transition: var(--transition); }
.value-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; transition: var(--transition); }

/* ── CTA Section ────────────────────────────────────────────────────────── */
.cta-section {
    background: var(--brand-gradient);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='40' cy='40' r='1' fill='rgba(255,255,255,0.08)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-section { padding: 6rem 0; background: var(--bg-light); }

.accordion-item {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--text-dark) !important;
    background: white !important;
    border-radius: var(--radius) !important;
}

.accordion-button:not(.collapsed) {
    color: var(--brand-start) !important;
    background: var(--accent-soft) !important;
    box-shadow: none !important;
}

.accordion-button::after { filter: none; }

/* ── Contact / Forms ────────────────────────────────────────────────────── */
.contact-section { padding: 6rem 0; }

.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-end);
    box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
    outline: none;
}

.form-label { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 0.4rem; }

.btn-primary-custom {
    background: var(--brand-gradient);
    color: white; border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,71,204,0.4);
    color: white;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.mbs-footer { background: var(--footer-bg); position: relative; margin-top: 0; }

.footer-wave { line-height: 0; transform: scaleY(-1); }
.footer-wave svg { fill: var(--bg-light); }
.footer-body { padding: 4rem 0 2rem; }

.footer-desc { color: rgba(255,255,255,0.55); font-size: 0.92rem; line-height: 1.8; }

.footer-heading {
    color: white; font-weight: 700; font-size: 0.95rem;
    margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: 1px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); padding-left: 6px; }

.footer-contact-list { list-style: none; padding: 0; margin: 0; }

.footer-contact-list li {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
}

.footer-contact-list .material-icons-round { font-size: 18px; color: var(--accent); flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-contact-list a:hover { color: var(--accent); }

.social-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover { background: var(--brand-gradient); border-color: transparent; color: white; transform: translateY(-3px); }

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; font-weight: 800; color: white;
}

.footer-logo-text span { color: var(--accent); }
.logo-icon-sm { width: 32px; height: 32px; background: var(--brand-gradient); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; }
.logo-icon-sm .material-icons-round { font-size: 18px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; }
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-bottom-link { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.82rem; transition: var(--transition); }
.footer-bottom-link:hover { color: var(--accent); }

.btn-demo-footer {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600; font-size: 0.88rem;
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-demo-footer:hover { background: var(--brand-gradient); border-color: transparent; color: white; }

/* ── WhatsApp Float ─────────────────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 58px; height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 999;
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
    transition: var(--transition);
    animation: bounce-wa 2s ease-in-out infinite;
}

.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(37,211,102,0.6); }

@keyframes bounce-wa {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ── Page Hero (inner pages) ─────────────────────────────────────────────── */
.page-hero {
    background: var(--footer-bg);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,71,204,0.3) 0%, transparent 70%);
}

.page-hero-content { position: relative; z-index: 2; text-align: center; color: white; }
.page-hero-title { font-size: clamp(2rem, 4vw, 3.2rem); color: white; }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.btn-outline-brand {
    border: 2px solid var(--brand-start);
    color: var(--brand-start);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}

.btn-outline-brand:hover { background: var(--brand-gradient); border-color: transparent; color: white; }

.btn-brand {
    background: var(--brand-gradient);
    color: white; border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600; font-size: 0.88rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}

.btn-brand:hover { color: white; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.divider-gradient {
    height: 3px;
    background: var(--brand-gradient);
    border-radius: 3px;
    width: 60px;
}

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .mbs-navbar { background: rgba(5,14,36,0.97) !important; }
    .hero-visual { margin-top: 3rem; }
    .hero-float-card-1, .hero-float-card-2 { display: none; }
    .stat-card-strip::after { display: none; }
}

@media (max-width: 576px) {
    .hero-cta-group { flex-direction: column; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-value { font-size: 1.5rem; }
}

/* ── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--brand-gradient); border-radius: 3px; }

/* ── Selection ──────────────────────────────────────────────────────────── */
::selection { background: rgba(0,71,204,0.2); color: var(--text-dark); }

/* ══════════════════════════════════════════════════════════════════════════
   CORRECTIFS GOOGLE TRANSLATE — empêche la déformation des layouts
   Google injecte des <span class="notranslate">, <font> et modifie
   display des éléments. Ces règles neutralisent tous les effets de bord.
══════════════════════════════════════════════════════════════════════════ */

/* 1. Les <font> injectés par Google dans les boutons/flex ne doivent
      pas casser l'alignement — on les remet en inline neutre */
.btn font,
.btn > font,
.btn span font,
.nav-link font,
.navbar-brand font,
a font,
button font,
[class*="btn"] font,
[class*="card"] font,
.d-flex font,
.gap-2 font,
.gap-3 font,
h1 font, h2 font, h3 font, h4 font, h5 font, h6 font {
    display: inline !important;
    vertical-align: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

/* 2. Les <span> injectés dans les flex containers ne doivent pas
      passer en block et casser l'alignement */
.btn > span:not(.material-icons-round):not(.lang-code):not(.lang-caret),
.d-flex > font,
.gap-2 > font,
.gap-3 > font {
    display: inline !important;
}

/* 3. Boutons : forcer le maintien du display flex même après traduction */
.btn,
.btn-demo,
.btn-primary,
.btn-outline-primary,
.btn-light,
.btn-success,
.btn-warning,
.btn-danger,
[class*="btn"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    /* Empêcher le texte de dépasser */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 4. Material Icons : ne jamais laisser Google les traduire ou les déformer */
.material-icons-round,
[class*="material-icons"] {
    font-family: 'Material Icons Round' !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    speak: none !important;
    /* Taille ne change pas */
    font-size: inherit;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* 5. Images : Google Translate ne doit pas les déplacer */
img,
.navbar-logo,
.partner-logo img,
.team-photo,
.gallery-item img,
.flag-img {
    display: inline-block !important;
    flex-shrink: 0 !important;
    max-width: 100% !important;
}

/* 6. Navbar : maintenir l'alignement horizontal même traduit */
.navbar .d-flex,
.navbar-nav,
.navbar-collapse .d-flex {
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.navbar-nav .nav-item {
    display: flex !important;
    align-items: center !important;
}

.nav-link {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* 7. Cards : maintenir le layout interne */
.card,
.card-body,
[class*="-card"] {
    overflow: hidden;
}

.card .d-flex,
[class*="-card"] .d-flex {
    align-items: center !important;
}

/* 8. Hero & sections : les titres ne doivent pas déborder */
.hero-title,
.hero-subtitle,
h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 9. Stat cards / strip */
.stat-value,
[class*="stat-"] {
    white-space: nowrap;
    display: flex !important;
    align-items: center !important;
}

/* 10. Éléments flex généraux — forcer les <font> à ne pas casser le flux */
.d-flex > *,
.row > * {
    min-width: 0; /* permet le text-overflow dans flex */
}

/* 11. Feature cards icons */
.feature-icon,
[class*="-icon"] {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 12. Bandeau Google — masquage absolu et définitif */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-te-gadget,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}
body {
    top: 0 !important;
    position: static !important;
    margin-top: 0 !important;
}

/* 13. Logo text (Mbe + School) */
.logo-main, .logo-accent {
    display: inline !important;
    white-space: nowrap !important;
}
.logo-text {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* 14. Testimonials stars */
.stars,
[class*="star"] {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* 15. Badges */
.badge {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   PROTECTION ANTI-DÉFORMATION GOOGLE TRANSLATE — couche renforcée
   Cible les <font> injectés dans TOUS les contextes
══════════════════════════════════════════════════════════════════════════ */

/* Tous les <font> partout sur la page */
font {
    display: inline !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    vertical-align: inherit !important;
    font-weight: inherit !important;
    font-style: inherit !important;
    letter-spacing: inherit !important;
}

/* <font> enfants directs d'un flex container */
.d-flex > font,
[class*="d-flex"] > font,
.btn > font,
.btn-demo > font,
.nav-link > font,
.navbar-brand > font,
.badge > font,
h1 > font, h2 > font, h3 > font, h4 > font, h5 > font, h6 > font,
p > font, li > font, td > font, th > font,
.card-body > font,
.card-title > font,
.hero-title > font {
    display: inline !important;
    vertical-align: baseline !important;
}

/* Empêcher Google de mettre display:none sur nos images */
img:not([class*="goog"]):not([src*="translate.google"]) {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Icônes Material : jamais traduites, jamais déformées */
.material-icons-round,
.material-icons,
[class^="material-icons"] {
    font-family: 'Material Icons Round', 'Material Icons' !important;
    speak: none !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
}

/* Bouton démo : taille fixe pour ne pas être déformé */
.btn-demo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Nav links : pas de retour à la ligne sur traduction longue */
.nav-link {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Sécurité sur les stat cards */
.stat-card-strip {
    overflow: hidden;
}

.stats-strip-grid {
    overflow: visible !important;
}

/* Sécurité sur hero floating cards */
.hero-float-card-1,
.hero-float-card-2 {
    overflow: hidden;
}

.navbar-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
}

.navbar-collapse {
    flex: 1 1 auto;
    min-width: 0;
}

.navbar-nav.navbar-links-wrap {
    flex-wrap: nowrap;
    gap: 0.1rem;
    row-gap: 0;
}

.navbar-nav.navbar-links-wrap .nav-link {
    white-space: nowrap;
    padding: 0.5rem 0.6rem !important;
    font-size: 0.85rem;
}

.navbar-right-group {
    flex-shrink: 0;
    z-index: 10;
    margin-left: 1.5rem;
}

.lang-switcher,
.btn-demo,
.navbar-toggler {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 1400px) {
    .btn-demo-text { display: none; }
    .btn-demo { padding: 0.6rem 0.9rem; }
}

@media (min-width: 1600px) {
    .mbs-navbar .container {
        max-width: 1700px;
    }
}
@media (min-width: 1900px) {
    .mbs-navbar .container {
        max-width: 1850px;
    }
}

.navbar-nav.navbar-links-wrap .nav-item {
    flex-shrink: 0 !important;
}
.navbar-nav.navbar-links-wrap .nav-link {
    flex-shrink: 0 !important;
}
.navbar-nav.navbar-links-wrap {
    flex-shrink: 0 !important;
}

.navbar-nav.navbar-links-wrap .nav-link {
    padding: 0.5rem 0.5rem !important;
    font-size: 0.82rem !important;
}

.navbar-right-group {
    margin-left: 2rem !important;
}

@media (max-width: 1699.98px) {
    .navbar-collapse:not(.show) { display: none !important; }
    .navbar-toggler { display: inline-flex !important; }
}
@media (min-width: 1700px) {
    .navbar-toggler { display: none !important; }
    .navbar-collapse { display: flex !important; }
}