/* ==========================================
   VARIABLES & GLOBALES
   ========================================== */
:root {
    --primary-color: #0f172a; /* Bleu nuit très sombre */
    --accent-color: #2563eb;  /* Bleu roi vibrant */
    --accent-glow: #38bdf8;   /* Bleu clair lumineux */
    --bg-base: #eef2f6;       /* Fond global teinté */
    --bg-light: #ffffff;      /* Fond des cartes */
    --text-color: #334155;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 25px -5px rgba(37, 99, 235, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-base);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ==========================================
   HEADER & MENU LATÉRAL
   ========================================== */
header {
    position: sticky; top: 0; z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-color);
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 5%;
}

.hamburger-btn {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger-btn .bar { width: 24px; height: 3px; background-color: var(--primary-color); border-radius: 2px; }
.logo-img { height: 45px; width: auto; }

.side-menu {
    position: fixed; top: 0; left: -320px;
    width: 300px; height: 100vh;
    background-color: var(--primary-color);
    color: white; z-index: 2000;
    box-shadow: 5px 0 25px rgba(0,0,0,0.3);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-menu.active { left: 0; }
.side-menu-content { padding: 80px 20px 30px; display: flex; flex-direction: column; height: 100%; }

.close-side-menu { 
    position: absolute; top: 25px; right: 25px; 
    font-size: 2.2rem; cursor: pointer; color: white; line-height: 1; 
}

.side-menu-links { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.side-menu-links a {
    display: block; padding: 14px 15px; font-weight: 600; 
    border-radius: 8px; transition: 0.2s; background: rgba(255,255,255,0.05); color: white;
}
.side-menu-links a:hover { background: rgba(255,255,255,0.15); transform: translateX(5px); }

/* Sélection dynamique du menu */
.side-menu-links a.active-nav {
    background: var(--accent-color);
    color: white;
    border-left: 4px solid #34d399;
}

/* ==========================================
   SYSTÈME D'ONGLETS
   ========================================== */
.main-content { min-height: 80vh; padding-bottom: 50px; }
.tab-content { display: none; padding: 40px 20px; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   TYPOGRAPHIE & BOUTONS
   ========================================== */
h1, h2, h3 { color: var(--primary-color); }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; }

.v-btn {
    background: linear-gradient(135deg, var(--accent-color), #1d4ed8); color: white;
    padding: 15px 30px; border-radius: 8px; border: none;
    font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3); transition: all 0.3s ease;
}
.v-slot-light { width: 8px; height: 18px; background: #34d399; border-radius: 2px; }
.v-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 20px rgba(37, 99, 235, 0.4); }

.v-btn-sec {
    background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5);
    padding: 13px 28px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.v-btn-sec:hover { background: white; color: var(--primary-color); }
.full-w { width: 100%; justify-content: center; }

/* ==========================================
   ACCUEIL & CONCEPT
   ========================================== */
.hero { 
    text-align: center; max-width: 900px; margin: 20px auto 60px; 
    background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 100%); 
    padding: 60px 40px; border-radius: 24px; color: white;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}
.badge-tag { display: inline-block; background: rgba(255,255,255,0.15); color: var(--accent-glow); padding: 8px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 25px; border: 1px solid rgba(255,255,255,0.1); }
.hero h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; color: white; }
.hero h1 span { color: var(--accent-glow); }
.hero p { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 35px; max-width: 700px; margin-left: auto; margin-right: auto; }
.actions { display: flex; justify-content: center; gap: 20px; }

.features { display: flex; gap: 25px; max-width: 1000px; margin: 0 auto; }
.feature-card { 
    background: var(--bg-light); padding: 35px 25px; border-radius: var(--radius); flex: 1; 
    box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.feature-card:nth-child(1) { border-top: 5px solid #10b981; }
.feature-card:nth-child(2) { border-top: 5px solid #3b82f6; }
.feature-card:nth-child(3) { border-top: 5px solid #f59e0b; }

.led-indicator { width: 14px; height: 14px; border-radius: 50%; margin-bottom: 20px; }
.led-indicator.green { background: #10b981; box-shadow: 0 0 12px #10b981; }
.led-indicator.blue { background: #3b82f6; box-shadow: 0 0 12px #3b82f6; }
.led-indicator.orange { background: #f59e0b; box-shadow: 0 0 12px #f59e0b; }

/* ==========================================
   GAMME (PRODUITS)
   ========================================== */
.gamme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; max-width: 1100px; margin: 0 auto; }
.gamme-card { 
    background: var(--bg-light); padding: 35px; border-radius: var(--radius); 
    border: 1px solid white; box-shadow: var(--shadow); transition: transform 0.3s ease;
}
.gamme-card:hover { transform: translateY(-5px); border-color: #bfdbfe; }
.gamme-badge { display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; background: #dbeafe; color: var(--accent-color); padding: 6px 12px; border-radius: 12px; margin-bottom: 20px; }
.gamme-badge.snack { background: #fef3c7; color: #d97706; }
.gamme-badge.coffee { background: #f3e8ff; color: #7e22ce; }
.gamme-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.gamme-card ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.gamme-card ul li { font-size: 0.95rem; padding-left: 20px; position: relative; color: var(--text-color); }
.gamme-card ul li::before { content: "✓"; color: var(--accent-color); position: absolute; left: 0; font-weight: bold; }

/* ==========================================
   SECTEUR
   ========================================== */
.sector-container { background: var(--bg-light); border: none; border-radius: 24px; padding: 50px; max-width: 800px; margin: 0 auto; box-shadow: var(--shadow); }
.cities-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 25px 0; }
.city-tag { background: var(--bg-base); padding: 8px 18px; border-radius: 30px; font-size: 0.95rem; font-weight: 600; color: var(--primary-color); border: 1px solid var(--border-color); }
.city-tag.highlight-around { background: var(--accent-color); color: white; border: none; cursor: pointer; transition: 0.2s; }
.city-tag.highlight-around:hover { background: #1d4ed8; }
.extra-cities-grid { display: none; background: #f8fafc; padding: 20px; border-radius: 12px; margin-top: 15px; border: 1px solid #e2e8f0; }
.extra-cities-grid.open { display: block; }
.cities-sub-list { display: flex; flex-wrap: wrap; gap: 8px; }
.city-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 15px; font-style: italic; }

/* ==========================================
   FORMULAIRE (CONTACT)
   ========================================== */
.contact-section { 
    max-width: 650px; margin: 0 auto; background: var(--bg-light); 
    padding: 50px; border-radius: 24px; box-shadow: var(--shadow); 
    border-top: 6px solid var(--accent-color); 
}
.form-group { margin-bottom: 25px; display: flex; flex-direction: column; gap: 8px; }
.form-row { display: flex; gap: 15px; }
.form-group.half { flex: 1; }
.form-group label { font-size: 0.95rem; font-weight: 600; color: var(--primary-color); }
.optional { color: var(--text-muted); font-weight: normal; font-size: 0.8rem; }
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: 8px; 
    font-family: inherit; font-size: 1rem; background: var(--bg-base); transition: 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent-color); background: white; box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.dynamic-fields { transition: opacity 0.3s ease; }
.hidden { display: none; opacity: 0; }

/* ==========================================
   POP-UP MODAL (À PROPOS)
   ========================================== */
.modal {
    display: none; position: fixed; z-index: 3000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.6);
    justify-content: center; align-items: center; padding: 20px;
}
.modal-content {
    background-color: var(--bg-light); padding: 40px;
    border-radius: var(--radius); max-width: 500px; width: 100%;
    position: relative; box-shadow: var(--shadow);
}
.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 1.8rem; font-weight: bold; cursor: pointer; color: var(--text-muted);
}
.close-modal:hover { color: var(--primary-color); }
.modal-content h3 { margin-bottom: 20px; font-size: 1.5rem; }
.modal-content p { margin-bottom: 15px; color: var(--text-color); }

/* ==========================================
   FOOTER
   ========================================== */
footer { text-align: center; padding: 30px; color: var(--text-muted); font-size: 0.9rem; margin-top: 40px; }
.about-link-container a { text-decoration: underline; cursor: pointer; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero { padding: 40px 20px; border-radius: 16px; margin: 10px auto 40px; }
    .features { flex-direction: column; }
    .hero h1 { font-size: 2.2rem; }
    .actions { flex-direction: column; }
    .form-row { flex-direction: column; gap: 0; }
    .v-btn-sec { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.3); }
    .sector-container { padding: 30px 20px; }
    .contact-section { padding: 30px 20px; }
}