/* Tocha Smart Solutions — styles partagés par index.html (FR) et en/index.html (EN) */

:root {
    --ink: #0b1020;
    --ink-2: #131a33;
    --tocha-red: #e8343a;
    --tocha-red-dark: #c9262c;
    --text: #1a1d26;
    --muted: #5d6474;
    --line: #e4e7ee;
    --soft: #f5f6f9;

    /* SABI */
    --sabi: #2f4fd8;
    --sabi-dark: #2843bd;
    --sabi-soft: #e6eafc;

    /* MBOA BRAIN (couleurs du Cameroun sur fond nuit) */
    --mboa-bg: #0f172a;
    --mboa-card: #16203a;
    --cm-green: #12a05c;
    --cm-red: #ce1126;
    --cm-yellow: #fcd116;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    background: #fff;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    overflow-x: hidden;
}

a { text-decoration: none; }

/* Les animations d'entrée (AOS) décalent les blocs hors de l'écran avant leur apparition :
   on coupe ce débordement pour éviter que la page glisse sur le côté sur mobile. */
main, .footer { overflow-x: clip; }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section { padding: 100px 0; }
.section-title { font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; }
.section-lead { color: var(--muted); font-size: 1.12rem; max-width: 640px; }

.btn-main {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-main:hover { transform: translateY(-2px); }
.btn-tocha { background: var(--tocha-red); color: #fff; border: none; }
.btn-tocha:hover { background: var(--tocha-red-dark); color: #fff; box-shadow: 0 10px 30px rgba(232, 52, 58, .3); }
.btn-sabi { background: var(--sabi); color: #fff; border: none; }
.btn-sabi:hover { background: var(--sabi-dark); color: #fff; box-shadow: 0 10px 30px rgba(47, 79, 216, .3); }
.btn-mboa { background: var(--cm-yellow); color: #1a1400; border: none; }
.btn-mboa:hover { background: #ffdd3d; color: #1a1400; box-shadow: 0 10px 30px rgba(252, 209, 22, .25); }

/* --- NAVIGATION --- */
.navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}
.navbar-brand img { height: 46px; }
.navbar .nav-link { color: var(--text); font-weight: 600; font-size: .95rem; }
.navbar .nav-link:hover { color: var(--tocha-red); }
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    font-size: .8rem;
    font-weight: 700;
}
.lang-switch a, .lang-switch span {
    padding: 4px 11px;
    border-radius: 999px;
    color: var(--muted);
}
.lang-switch [aria-current="true"] { background: var(--ink); color: #fff; }
.lang-switch a:hover { color: var(--tocha-red); }

/* --- HERO --- */
.hero {
    /* Fond de l'ancienne version du site */
    background: radial-gradient(circle at top right, rgba(0, 210, 255, .15), transparent),
                linear-gradient(135deg, #060918 0%, #0a0f2f 100%);
    color: #fff;
    padding: 160px 0 110px;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--tocha-red); }
.hero .lead { color: rgba(255, 255, 255, .72); font-size: 1.2rem; max-width: 560px; }
.hero .eyebrow { color: #00d2ff; }

.hero-stack { display: grid; gap: 18px; }
.hero-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    transition: transform .25s ease, background .25s ease;
}
.hero-card:hover { transform: translateX(6px); background: rgba(255, 255, 255, .1); color: #fff; }
.hero-card img { width: 120px; height: 80px; object-fit: cover; border-radius: 12px; flex: none; }
.hero-card strong { display: block; font-size: 1.1rem; }
.hero-card small { color: rgba(255, 255, 255, .65); }
.hero-card .bi { margin-left: auto; font-size: 1.4rem; opacity: .7; }

.hero-stats { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero-stats div { font-size: .9rem; color: rgba(255, 255, 255, .6); }
.hero-stats strong { display: block; color: #fff; font-size: 1.5rem; font-weight: 800; }

/* --- PRODUITS (vue d'ensemble) --- */
.product-card {
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(11, 16, 32, .12); }
.product-card .media { aspect-ratio: 16 / 9; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.product-card .tag {
    align-self: flex-start;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 1rem;
}
.product-card h3 { font-weight: 800; }
.product-card p { color: var(--muted); }
.product-card .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 1rem; }
.product-card.sabi .tag { background: var(--sabi-soft); color: var(--sabi); }
.product-card.mboa .tag { background: #fff6cf; color: #7a5d00; }
.product-card.mboa .media { background: var(--mboa-bg); }

/* --- LOGO SABI (reproduit depuis sabiseek.com) --- */
.sabi-logo { display: inline-flex; align-items: center; gap: .36em; font-size: 30px; line-height: 1; color: var(--text); }
.sabi-logo svg { width: 1.4em; height: 1.4em; flex: none; }
.sabi-logo .word { font-weight: 800; letter-spacing: -.02em; }
.sabi-logo--light { color: #fff; }

/* --- SECTION SABI --- */
.sabi-section { background: linear-gradient(180deg, #f3f5fe 0%, #fff 100%); }
.sabi-section .eyebrow { color: var(--sabi); }
.sabi-section .tagline { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.sabi-photo { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(47, 79, 216, .18); position: relative; }
.sabi-photo img { width: 100%; display: block; }
.sabi-bubble {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 14px 18px;
    font-size: .9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.sabi-bubble .q { font-weight: 700; }
.sabi-bubble .a { color: var(--muted); margin-top: 4px; }
.sabi-bubble .src { color: var(--sabi); font-weight: 700; font-size: .8rem; }

.feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    height: 100%;
}
.feature .ic {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--sabi-soft);
    color: var(--sabi);
    font-size: 1.25rem;
}
.feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .85rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }

/* --- SECTION MBOA BRAIN --- */
.mboa-section {
    background:
        radial-gradient(700px 400px at 90% 0%, rgba(18, 160, 92, .18), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(206, 17, 38, .15), transparent 60%),
        var(--mboa-bg);
    color: #fff;
    position: relative;
}
.cm-bar { display: flex; height: 6px; }
.cm-bar span { flex: 1; }
.cm-bar span:nth-child(1) { background: var(--cm-green); }
.cm-bar span:nth-child(2) { background: var(--cm-red); }
.cm-bar span:nth-child(3) { background: var(--cm-yellow); }
.mboa-section .eyebrow { color: var(--cm-yellow); }
.mboa-section .section-lead { color: rgba(255, 255, 255, .7); }
.mboa-logo { background: #fff; border-radius: 18px; padding: 10px 16px; display: inline-block; }
.mboa-logo img { height: 74px; display: block; }

.game-card {
    height: 100%;
    padding: 22px;
    border-radius: 18px;
    background: var(--mboa-card);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: transform .25s ease, border-color .25s ease;
}
.game-card:hover { transform: translateY(-6px); }
.game-card .ic { font-size: 1.6rem; margin-bottom: .75rem; display: block; }
.game-card h3 { font-size: 1.05rem; font-weight: 700; }
.game-card p { color: rgba(255, 255, 255, .65); font-size: .9rem; margin: 0; }
.game-card.g1:hover { border-color: var(--cm-green); }
.game-card.g2:hover { border-color: var(--cm-red); }
.game-card.g3:hover { border-color: var(--cm-yellow); }
.game-card.g4:hover { border-color: #7f97ff; }

.phone {
    width: min(300px, 80%);
    margin: 0 auto;
    border-radius: 38px;
    padding: 10px;
    background: #050811;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .03);
}
.phone img { width: 100%; border-radius: 30px; display: block; }

.mboa-perks { list-style: none; padding: 0; margin: 0; }
.mboa-perks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: .6rem; color: rgba(255, 255, 255, .85); }
.mboa-perks .bi { color: var(--cm-yellow); }

/* --- SERVICES --- */
.services-section { background: var(--soft); }
.services-section .eyebrow { color: var(--tocha-red); }
.service-card {
    height: 100%;
    padding: 30px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(11, 16, 32, .08); }
.service-card .ic {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    background: rgba(232, 52, 58, .08);
    color: var(--tocha-red);
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; }
.service-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* --- À PROPOS --- */
.about-section .eyebrow { color: var(--tocha-red); }
.value {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--soft);
    border-left: 4px solid var(--tocha-red);
}
.value .bi { font-size: 1.5rem; color: var(--tocha-red); }
.value h3 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.value p { font-size: .9rem; color: var(--muted); margin: 0; }

/* --- TÉMOIGNAGES --- */
.testimonials-section { background: var(--soft); }
.testimonial-item { height: 100%; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.testimonial-item p { font-style: italic; color: var(--muted); font-size: .92rem; }
.testimonial-item h3 { font-size: .95rem; font-weight: 700; margin: 0; }
.testimonial-item small { color: var(--sabi); }

/* --- CONTACT --- */
.contact-card { border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px rgba(11, 16, 32, .1); }
.contact-side a { color: #fff; }
.contact-side .text-white-50 { color: rgba(255, 255, 255, .8) !important; }
.contact-card .form-control, .contact-card .form-select { background: var(--soft); border: 1px solid transparent; }
.contact-card .form-control:focus, .contact-card .form-select:focus { border-color: var(--sabi); box-shadow: 0 0 0 4px var(--sabi-soft); }
.contact-card label { font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }

/* --- FOOTER --- */
.footer { background: #060918; color: #fff; padding: 80px 0 30px; }
.footer a { color: rgba(255, 255, 255, .5); }
.footer a:hover { color: #fff; }
.footer p a { color: inherit; }
.footer .form-control::placeholder { color: rgba(255, 255, 255, .5); }

/* --- COOKIES --- */
#cookieBanner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 520px;
    background: rgba(11, 16, 32, .96);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    padding: 18px 20px;
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, .1);
}

@media (max-width: 991.98px) {
    .section { padding: 70px 0; }
    .hero { padding: 130px 0 80px; }
    .navbar-collapse { padding: 1rem 0; }
}

@media (max-width: 575.98px) {
    /* L'espacement g-5 (3rem) est plus large que la marge du conteneur : il déborde sur petit écran */
    .row.g-5 { --bs-gutter-x: 1.5rem; }
    /* La bulle SABI passe sous la photo au lieu de la recouvrir */
    .sabi-photo { background: #fff; }
    .sabi-bubble { position: static; box-shadow: none; border-radius: 0; backdrop-filter: none; }
    .phone { width: 230px; border-radius: 30px; padding: 8px; }
    .phone img { border-radius: 23px; }
    .hero-card img { width: 84px; height: 60px; }
    .hero-stats { gap: 1.25rem 1.75rem; }
    .hero-stats strong { font-size: 1.25rem; }
    .product-card .body { padding: 24px; }
    .mboa-logo img { height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
