/* ============================================================
   AFRICAPPIO - STYLES PRINCIPAUX
   Tous les styles centralisés
   ============================================================ */

/* ─── PALETTE ─── */
:root {
    --bg-body: #f5f3f0;
    --bg-dark: #1a1a2e;
    --bg-darker: #0a0a0a;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f6f3;
    --bg-accent: #e8f0fe;
    --text-dark: #1a1a1a;
    --text-mid: #4a4a4a;
    --text-light: #8a8a8a;
    --color-primary: #c72c41;
    --color-primary-dark: #a01f31;
    --color-primary-light: #e85a6e;
    --color-gold: #d4a853;
    --color-teal: #14b8a6;
    --color-blue: #3b82f6;
    --border-light: #e8e4de;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-top: 70px; /* Hauteur du header */
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── TYPOGRAPHIE ─── */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.25rem; }

p {
    color: var(--text-mid);
}

.highlight {
    color: var(--color-primary);
}

/* ─── CONTAINER ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ─── PAGE WRAPPER ─── */
.page-wrapper {
    min-height: calc(100vh - 72px);
    width: 100%;
    overflow-x: hidden;
}

/* ============================================================
   HEADER MODERNE ET RESPONSIVE
   ============================================================ */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(199, 44, 65, 0.25);
    flex-shrink: 0;
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-text span {
    color: var(--color-primary);
}

/* Navigation desktop */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-mid);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 4px 0;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-dark);
}

/* Bouton contact header */
.btn-contact-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(199, 44, 65, 0.2);
    white-space: nowrap;
}

.btn-contact-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(199, 44, 65, 0.3);
    color: #fff;
}

/* ─── BURGER MENU ─── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── OVERLAY MOBILE ─── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-overlay.active {
    display: block !important;
    opacity: 1;
    pointer-events: all;
}

/* ─── PANEL MOBILE ─── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    padding: 5rem 2rem 2rem;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
}

.mobile-menu.active {
    display: block !important;
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-header .logo {
    font-size: 1.1rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-mid);
    padding: 0 4px;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mobile-menu-inner a {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-mid);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-inner a:hover,
.mobile-menu-inner a.active {
    background: var(--bg-body);
    color: var(--text-dark);
}

.mobile-menu-inner a .nav-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 1rem 0;
}

.mobile-menu-inner .btn {
    margin-top: 0.5rem;
    justify-content: center;
    padding: 0.9rem;
    width: 100%;
}

/* ─── RESPONSIVE HEADER ─── */

/* Tablette et mobile : cacher la navigation desktop */
@media (max-width: 1024px) {

    body {
        padding-top: 50px;
    }

    .main-nav {
        display: none;
    }

    .btn-contact-header {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-overlay {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .header-wrapper {
        height: 64px;
        padding: 0 0.5rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .page-wrapper {
        min-height: calc(100vh - 64px);
    }
}

/* Mobile moyen */
@media (max-width: 640px) {

    body {
        padding-top: 60px;
    }

    .header-wrapper {
        height: 60px;
        padding: 0 0.5rem;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }

    .mobile-menu {
        width: 280px;
        padding: 4.5rem 1.5rem 1.5rem;
    }

    .mobile-menu-inner a {
        font-size: 0.95rem;
        padding: 0.7rem 0.8rem;
    }

    .burger span {
        width: 22px;
        height: 2px;
    }

    .page-wrapper {
        min-height: calc(100vh - 60px);
    }
}

/* Petits mobiles */
@media (max-width: 380px) {
    body {
        padding-top: 50px;
    }

    .logo-text {
        font-size: 0.8rem;
    }

    .logo-icon {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .logo-img {
        width: 26px;
        height: 26px;
    }

    .header-wrapper {
        height: 56px;
        gap: 0.5rem;
    }

    .mobile-menu {
        width: 260px;
        padding: 4rem 1rem 1rem;
    }

    .page-wrapper {
        min-height: calc(100vh - 56px);
    }
}

/* Desktop : cacher le mobile */
@media (min-width: 1025px) {
    .mobile-overlay {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* ============================================================
   FOOTER MODERNE
   ============================================================ */
.site-footer {
    background: var(--bg-darker);
    padding: 4rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Brand */
.footer-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff;
}

.footer-brand .logo .logo-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 4px 12px rgba(199, 44, 65, 0.2);
}

.footer-brand .logo .logo-text {
    color: #ffffff;
}

.footer-brand .logo .logo-text span {
    color: var(--color-primary);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-top: 0.8rem;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(199, 44, 65, 0.08);
    transform: translateY(-2px);
}

/* Colonnes */
.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.6rem;
    transition: all 0.3s ease;
    padding: 0.1rem 0;
}

.footer-col a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer-col span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

/* Bottom */
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom .footer-links a {
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.3s ease;
}

.footer-bottom .footer-links a:hover {
    color: var(--color-primary);
}

/* ─── RESPONSIVE FOOTER ─── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .footer-brand .logo {
        font-size: 1rem;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-col h4 {
        font-size: 0.65rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-bottom .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(199, 44, 65, 0.25);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--text-mid);
    color: var(--text-mid);
}

.btn-outline:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

.btn-lg {
    padding: 0.9rem 2.4rem;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-danger {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.btn-danger:hover {
    background: #c62828;
    color: #fff;
}

/* ─── BOUTONS HERO ─── */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 2.4rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 24px rgba(199, 44, 65, 0.3);
    cursor: pointer;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(199, 44, 65, 0.4);
    color: #fff;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.9rem 2rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ─── BOUTONS CTA ─── */
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 2.4rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(199, 44, 65, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(199, 44, 65, 0.4);
    color: #fff;
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.9rem 2rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--text-mid);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1.5px solid var(--border-light);
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 0 4rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 40%, #16213e 70%, #0f3460 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(199, 44, 65, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

.hero-particles span:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 18s; }
.hero-particles span:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 22s; width: 6px; height: 6px; }
.hero-particles span:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 16s; }
.hero-particles span:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 20s; width: 8px; height: 8px; }
.hero-particles span:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 24s; }
.hero-particles span:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 19s; width: 5px; height: 5px; }
.hero-particles span:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 21s; }
.hero-particles span:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 17s; width: 7px; height: 7px; }
.hero-particles span:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 23s; }
.hero-particles span:nth-child(10) { left: 95%; animation-delay: 3s; animation-duration: 20s; }

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(199, 44, 65, 0.15);
    border: 1px solid rgba(199, 44, 65, 0.25);
    padding: 0.4rem 1.2rem 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}

.hero-badge .dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.hero-content h1 {
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.hero-stats .stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    letter-spacing: -0.02em;
}

.hero-stats .stat-item .stat-number .accent {
    color: var(--color-primary);
}

.hero-stats .stat-item .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── HERO VISUAL ─── */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-illustration {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 480px;
    position: relative;
}

.hero-illustration::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(135deg, rgba(199, 44, 65, 0.2), rgba(59, 130, 246, 0.1), rgba(20, 184, 166, 0.2));
    z-index: -1;
}

.ill-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.5rem 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: rgba(199, 44, 65, 0.2);
}

.ill-card .ill-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 0.3rem;
}

.ill-card .ill-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
}

.ill-card .ill-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── RESPONSIVE HERO ─── */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content { max-width: 100%; }
    .hero-content .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-illustration { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding: 3rem 0 2.5rem;
    }
    .hero-stats { gap: 1.5rem; }
    .hero-stats .stat-item .stat-number { font-size: 1.4rem; }
    .hero-illustration { gap: 0.6rem; padding: 1rem; }
    .ill-card { padding: 1rem 0.5rem; }
    .ill-card .ill-value { font-size: 1rem; }
    .ill-card .ill-icon { font-size: 1.6rem; }
    .hero-content h1 { font-size: clamp(2.2rem, 8vw, 2.8rem); }
}

/* ============================================================
   SECTION APPLICATIONS
   ============================================================ */
.section-featured {
    padding: 5rem 0;
    background: var(--bg-body);
    position: relative;
}

.section-featured .bg-decoration {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 44, 65, 0.04), transparent 70%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    padding: 0.3rem 1.4rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header h2 .highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header .section-sub {
    color: var(--text-mid);
    font-size: 1rem;
    max-width: 520px;
    margin: 0.6rem auto 0;
    line-height: 1.7;
}

/* ─── APP CARD ─── */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

.app-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.app-card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-accent), #dce4f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.app-card:hover .app-card-image img {
    transform: scale(1.05);
}

.app-card-image .app-placeholder {
    font-size: 3.5rem;
}

.app-card-image .app-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-free {
    background: rgba(46, 125, 50, 0.9);
    color: #fff;
}

.badge-pro {
    background: rgba(230, 81, 0, 0.9);
    color: #fff;
}

.app-card-image .app-users {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.app-card-body {
    padding: 1.5rem;
}

.app-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.app-card-desc {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.app-card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.app-card-tags .tag {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    background: var(--bg-body);
    color: var(--text-mid);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.app-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid #f0ede8;
}

.app-card-footer .app-rating {
    font-size: 0.8rem;
    color: var(--text-light);
}

.app-card-footer .app-rating .stars {
    color: var(--color-gold);
}

.text-center {
    text-align: center;
    margin-top: 2.5rem;
}

/* ─── RESPONSIVE APPS ─── */
@media (max-width: 640px) {
    .apps-grid { grid-template-columns: 1fr; }
    .section-featured { padding: 3rem 0; }
}

/* ============================================================
   SECTION WHY
   ============================================================ */
.section-why {
    padding: 5rem 0;
    background: #ffffff;
    position: relative;
}

.section-why .bg-decoration-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03), transparent 70%);
    pointer-events: none;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-card {
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 400px;
}

.why-card .why-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.why-card .why-brand {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.why-card .why-brand span {
    color: var(--color-primary);
}

.why-card .why-sub {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.why-card .why-countries {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.why-card .why-countries span {
    font-size: 0.8rem;
    color: var(--text-mid);
    font-weight: 500;
}

.why-content .section-tag {
    margin-bottom: 1rem;
}

.why-content h2 .highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-content .why-lead {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.why-features {
    display: grid;
    gap: 0.8rem;
}

.why-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-body);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.why-feature:hover {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transform: translateX(4px);
}

.why-feature .wf-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.why-feature .wf-content strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.why-feature .wf-content p {
    font-size: 0.8rem;
    color: var(--text-mid);
    margin: 0;
    line-height: 1.5;
}

/* ─── RESPONSIVE WHY ─── */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .why-visual { order: -1; }
}

@media (max-width: 640px) {
    .section-why { padding: 3rem 0; }
    .why-card { padding: 1.8rem 1.2rem; }
    .why-card .why-countries { flex-direction: column; gap: 0.5rem; }
    .why-feature { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   CTA
   ============================================================ */
.section-cta {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(199, 44, 65, 0.08), transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.06), transparent 60%);
    pointer-events: none;
}

.cta-box {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-box .section-tag {
    background: rgba(199, 44, 65, 0.15);
    color: var(--color-primary);
}

.cta-box h2 {
    color: #ffffff;
}

.cta-box h2 .highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── RESPONSIVE CTA ─── */
@media (max-width: 640px) {
    .section-cta { padding: 3rem 0; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   ALERTES
   ============================================================ */
.alert {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: #fff;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(199, 44, 65, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   UPLOAD ZONE
   ============================================================ */
.upload-zone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.upload-zone:hover {
    border-color: var(--color-primary);
    background: var(--bg-accent);
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-icon {
    font-size: 1.8rem;
    display: block;
}

.upload-label {
    font-size: 0.85rem;
    color: var(--text-mid);
}

.upload-sub {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================================================
   ADMIN - OVERRIDES
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--bg-dark);
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.admin-sidebar .sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
}

.admin-sidebar .sidebar-logo .logo-text {
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.admin-sidebar .sidebar-logo .logo-text span {
    color: var(--color-primary);
}

.side-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    text-decoration: none;
}

.side-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.side-nav-item.active {
    background: rgba(199, 44, 65, 0.15);
    color: var(--color-primary);
}

.side-nav-item .nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.side-nav-item .nav-badge {
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 50px;
    margin-left: auto;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.8rem 0;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-footer a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    background: var(--bg-body);
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
}

.admin-greeting {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Admin cards */
.admin-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-card-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Admin stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card .stat-icon {
    font-size: 2rem;
}

.stat-card .stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.stat-card .stat-badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.6rem;
    border-radius: 50px;
    margin-top: 0.2rem;
}

/* Admin tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th {
    text-align: left;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.data-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #f0ede8;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Admin badges */
.badge {
    display: inline-block;
    padding: 0.1rem 0.6rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #e65100;
}

.badge-danger {
    background: #fbe9e7;
    color: #c62828;
}

.badge-info {
    background: #e3f2fd;
    color: #0d47a1;
}

/* Admin messages & reviews */
.message-item,
.review-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0ede8;
    align-items: flex-start;
}

.message-item:last-child,
.review-item:last-child {
    border-bottom: none;
}

.message-item.unread {
    background: rgba(199, 44, 65, 0.03);
    margin: 0 -0.5rem;
    padding: 0.8rem 0.5rem;
    border-radius: var(--radius);
}

.message-avatar,
.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.message-content,
.review-content {
    flex: 1;
    min-width: 0;
}

.message-sender {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.message-email {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.message-app {
    font-size: 0.75rem;
    color: var(--color-primary);
}

.message-preview,
.review-preview {
    font-size: 0.8rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.message-meta,
.review-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.message-date {
    font-size: 0.7rem;
    color: var(--text-light);
}

.review-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.review-app {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.75rem;
}

.review-stars {
    color: var(--color-gold);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Admin responsive */
@media (max-width: 1024px) {
    .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 1rem;
    }
    .admin-sidebar .sidebar-logo { margin-bottom: 1rem; }
    .admin-main { padding: 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ─── UTILITAIRES ─── */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }