/* ==========================================================================
   MeeDoo Website Stylesheet - Space Grotesk Dark Theme (Fully Responsive)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* --- 1. VARIABLES & CONFIGURATION --- */
:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #00f0ff; /* Cyan */
    --accent-gradient: linear-gradient(90deg, #00f0ff, #0066ff);
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Espacements standards */
    --container-padding: 4rem;
    --section-padding: 6rem;
    --grid-gap: 1.5rem;
}

/* --- 2. RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-display);
    overflow-x: hidden; /* Empêche le débordement horizontal */
    width: 100%;
    line-height: 1.6;
    min-height: 100vh;
}

/* --- 3. LAYOUT & TYPOGRAPHIE FLUIDE --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Les textes s'adaptent automatiquement à la taille de l'écran avec clamp() */
h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 6rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: var(--text-main);
}

h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.5rem; font-weight: 500; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 1rem; font-weight: 600; }
p { font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: var(--text-muted); margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: var(--accent); }

/* --- 4. HEADER & NAVIGATION DESKTOP --- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(5, 5, 5, 0.90);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.05em;
    z-index: 1004; /* Au dessus de tout pour rester cliquable */
    position: relative;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav a {
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Bouton Burger caché sur Desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1004;
    position: relative;
}

/* L'overlay sombre caché par défaut */
.mobile-menu-overlay {
    display: none;
}

/* --- 5. BOUTONS --- */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #000000;
    border-color: var(--accent);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--card-border);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
}

/* --- 6. SECTIONS, HERO & GRILLES BENTO --- */
.section { padding: var(--section-padding) 0; }

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 6rem;
    text-align: center;
}

.hero .subtitle {
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- 7. PRICING & COMPARISON BLOCK --- */
.comparison-block { 
    text-align: center; 
    padding: 4rem 3rem; 
    margin-bottom: 8rem; /* Grand espace avant la grille des prix */
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.comparison-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.comparison-item.highlight {
    border-color: var(--accent);
    background: rgba(0, 240, 255, 0.03);
}

.comparison-item ul { list-style: none; margin-top: 1.5rem; }
.comparison-item li { margin-bottom: 1rem; color: var(--text-muted); }
.comparison-item li::before { content: '•'; color: var(--accent); margin-right: 10px; font-weight: bold;}

/* Grille des prix (4 colonnes sur desktop) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.pricing-card { display: flex; flex-direction: column; }
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 30px rgba(0, 240, 255, 0.05); }

.price {
    font-size: 3.5rem;
    color: var(--text-main);
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1;
}

.price span { font-size: 1.2rem; color: var(--text-muted); font-weight: 400; }

.pricing-card ul { list-style: none; margin: 2rem 0; flex-grow: 1; }
.pricing-card li { margin-bottom: 1.2rem; font-size: 0.95rem; color: var(--text-muted); position: relative; padding-left: 25px; }
.pricing-card li::before { content: '✔'; color: var(--accent); position: absolute; left: 0; }
.pricing-card li.negative::before { content: '✖'; color: var(--card-border); }
.pricing-card .btn { margin-top: auto; }

.badge {
    background: var(--accent);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* --- 8. FAQ --- */
.faq-list details {
    border-bottom: 1px solid var(--card-border);
    padding: 1.5rem 0;
    cursor: pointer;
}
.faq-list summary {
    font-size: 1.2rem;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-list summary::after { content: '+'; color: var(--accent); font-size: 1.8rem; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin-top: 1.5rem; color: var(--text-muted); }

/* --- 9. FOOTER --- */
.footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--card-border);
    margin-top: 4rem;
    background-color: #000;
}
.footer-content { display: grid; grid-template-columns: 1.5fr 3fr; gap: 4rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-links h4 { margin-bottom: 1.5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-bottom {
    margin-top: 5rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-legal { display: flex; justify-content: center; gap: 2rem; }


/* ==========================================================================
   ENTERPRISE BANNER (PLEINE LARGEUR)
   ========================================================================== */
.enterprise-banner {
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, rgba(0, 240, 255, 0.05) 100%);
    border: 1px solid var(--accent);
}

.enterprise-info {
    flex: 1.2;
}

.enterprise-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.enterprise-info .price {
    font-size: 2.5rem;
    margin: 0.5rem 0 1rem;
}

.enterprise-info p {
    margin-bottom: 0;
}

.enterprise-info strong {
    color: var(--accent);
}

.enterprise-features {
    flex: 1;
}

.enterprise-features ul {
    list-style: none;
    margin: 0;
}

.enterprise-features li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 25px;
}

.enterprise-features li::before {
    content: '✔';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.enterprise-action {
    flex-shrink: 0;
}

/* Adaptation Responsive de la bannière Custom */
@media (max-width: 1024px) {
    .enterprise-banner {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .enterprise-features ul {
        text-align: left;
        display: inline-block;
    }
}

/* ==========================================================================
   10. RESPONSIVE DESIGN (Adaptation tous écrans & Menu Mobile 80%)
   ========================================================================== */

/* Écrans Moyens & Tablettes Paysage */
@media (max-width: 1200px) {
    :root { --container-padding: 2.5rem; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
}

/* Tablettes & Mobiles */
@media (max-width: 992px) {
    :root { --section-padding: 5rem; }
    h1 { font-size: 4rem; }
}

/* --- LE FAMEUX MENU MOBILE (SIDEBAR 80%) POUR ECRANS <= 768px --- */
@media (max-width: 768px) {
    :root { 
        --container-padding: 1.5rem; 
        --section-padding: 4rem; 
        --grid-gap: 1.2rem; 
    }
    
    /* Affichage du bouton Burger */
    .mobile-menu-toggle { display: block; }
    
    /* Structure du menu (Tiroir caché à droite par défaut) */
    .nav ul {
        position: fixed;
        top: 0;
        right: -100%; /* Totalement sorti de l'écran */
        width: 80%; /* Prend 80% de l'écran */
        height: 100vh; /* Toute la hauteur */
        background-color: #0a0a0a; /* Fond légèrement différent pour détacher */
        padding: 7rem 2rem 3rem; /* Espace en haut pour la croix */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Animation fluide */
        z-index: 1003; /* Au-dessus de l'overlay */
        border-left: 1px solid var(--card-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        overflow-y: auto; /* Permet le scroll dans le menu si besoin */
    }
    
    /* Liens dans le menu mobile */
    .nav ul li { width: 100%; }
    .nav ul li a { 
        font-size: 1.3rem; 
        display: block; 
        width: 100%; 
        padding: 0.5rem 0;
    }
    .nav ul li .btn { width: 100%; text-align: center; margin-top: 0.5rem; }
    
    /* Animation d'ouverture du menu (géré par le JS) */
    .nav.active ul { right: 0; }
    
    /* L'Overlay sombre pour les 20% restants (Cliquable pour fermer) */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 1001; /* En dessous du menu, au dessus du site */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }
    
    /* Affichage de l'overlay quand actif */
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Grilles et Blocs pour Mobile */
    .pricing-grid, .comparison-grid { grid-template-columns: 1fr; }
    .comparison-block { padding: 2rem 1.5rem; margin-bottom: 4rem; }
    
    .footer-links { grid-template-columns: 1fr; gap: 3rem; }
    .footer-legal { flex-direction: column; gap: 1rem; align-items: center; }
    
    .cta-group { flex-direction: column; }
    .cta-group .btn { width: 100%; }
    .card { padding: 2rem; border-radius: 16px; }
}

/* Très Petits Écrans (Ex: iPhone SE) */
@media (max-width: 480px) {
    :root { --container-padding: 1.2rem; }
    h1 { font-size: 2.8rem; line-height: 1.1; }
    .card { padding: 1.5rem; }
    .btn { padding: 1rem 1.5rem; font-size: 0.95rem; }
    .price { font-size: 2.8rem; }
}
