/* --- 1. VARIABLES & CONFIGURATION --- */
:root {
    --primary: #2c3e50;  /* Bleu Nuit (Pro) */
    --accent: #e67e22;   /* Orange Luma (Dynamique) */
    --bg: #f4f7f6;       /* Gris très clair (Fond) */
    --text: #333;
}

body {
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- 2. MENU HAMBURGER --- */
.hamburger-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.hamburger-btn:hover { transform: scale(1.1); background: var(--accent); }

.sidebar {
    height: 100%;
    width: 280px;
    position: fixed;
    z-index: 2001;
    top: 0;
    right: -300px; /* Caché par défaut */
    background-color: var(--primary);
    overflow-x: hidden;
    transition: 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    padding-top: 60px;
}
.sidebar.active { right: 0; }

.sidebar a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 1.1em;
    color: #ddd;
    display: block;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar a:hover { color: white; background-color: rgba(255,255,255,0.1); padding-left: 35px; }
.close-btn { position: absolute; top: 15px; right: 25px; font-size: 36px; color: white; cursor: pointer; }

/* --- 3. HEADER (EN-TÊTE) --- */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 80px 20px 100px 20px;
    text-align: center;
    border-bottom-left-radius: 50% 30px;
    border-bottom-right-radius: 50% 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
header h1 { margin: 0; font-size: 3em; font-weight: 700; letter-spacing: 1px; }
header p { font-size: 1.2em; opacity: 0.9; margin-top: 10px; }

/* --- 4. STRUCTURE --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- 5. PACK SÉRÉNITÉ --- */
.serenite-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: -50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}
.price-big { font-size: 3.5em; font-weight: bold; color: var(--accent); display: block; }

/* --- 6. CATALOGUE MATÉRIEL --- */
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.hw-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}
.hw-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }

.hw-head { padding: 15px; text-align: center; color: white; font-weight: 700; font-size: 1.2em; }

.model-box {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-grow: 1;
}
.model-box:last-child { border-bottom: none; }

/* --- IMAGES (CORRECTIF TAILLE) --- */
.model-box img {
    width: 100%;
    height: 160px;       /* Hauteur fixe importante ! */
    object-fit: contain; /* L'image ne sera pas déformée */
    background: #fff;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.model-name { font-weight: 700; color: var(--primary); font-size: 1.1em; display: block; }
.model-desc { font-size: 0.9em; color: #666; margin: 5px 0 10px 0; font-style: italic; }
.model-price { display: block; margin-top: 10px; font-size: 1.2em; color: var(--accent); font-weight: 700; text-align: right; }

.specs-list {
    list-style: none; padding: 10px; margin: 0; font-size: 0.85em;
    background: #f8f9fa; border-radius: 8px; color: #555;
}
.specs-list li::before { content: "• "; color: var(--accent); font-weight: bold; }
.highlight-bg { background-color: #f0f8ff; border-left: 4px solid var(--accent); }

/* --- 7. FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    margin-top: 60px;
    background: var(--primary);
    color: white;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}
.cta-button {
    background: var(--accent);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}