/* ==========================================================================
   Variables Globales & Thème (Sécurité / Technologie)
   ========================================================================== */
:root {
    --primary: #090d16;       /* Noir profond sécurité */
    --secondary: #1e293b;     /* Ardoise sombre */
    --accent: #f97316;        /* Orange alerte / haute visibilité */
    --text-main: #334155;     /* Gris texte lisible */
    --text-muted: #64748b;    /* Gris secondaire */
    --bg-light: #f8fafc;      /* Fond clair moderne */
    --white: #ffffff;
    --border: #e2e8f0;
}

/* ==========================================================================
   Reset & Styles de Base
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   En-tête de Marque & Navigation
   ========================================================================== */
header {
    background-color: var(--primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo {
    color: var(--white);
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Section Hero
   ========================================================================== */
.hero {
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.15), transparent 45%),
                radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.9), var(--primary));
    color: var(--white);
    padding: 120px 0 100px 0;
    text-align: center;
    border-bottom: 4px solid var(--accent);
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

/* Boutons */
.btn {
    background-color: var(--accent);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

/* ==========================================================================
   Structure du Contenu & Titres
   ========================================================================== */
.main-content {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.3rem;
    color: var(--primary);
    font-weight: 800;
}

/* ==========================================================================
   Grille des Univers (Cartes 3 Colonnes)
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
}

/* ==========================================================================
   Blocs Éditoriaux (SEO / Contenu long)
   ========================================================================== */
.editorial-block {
    background-color: var(--white);
    border-radius: 16px;
    padding: 60px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.editorial-block h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 800;
}

.editorial-block p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.editorial-block h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.editorial-block ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.editorial-block ul li {
    margin-bottom: 8px;
}

/* ==========================================================================
   Tableau Comparatif
   ========================================================================== */
.comparison-wrapper {
    background-color: var(--white);
    border-radius: 16px;
    padding: 50px 40px;
    border: 1px solid var(--border);
    margin-bottom: 80px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    overflow-x: auto;
}

.comparison-wrapper h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 800;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}

th, td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: var(--bg-light);
    color: var(--primary);
    font-weight: 700;
}

tr:hover td {
    background-color: #f8fafc;
}

/* ==========================================================================
   Section FAQ
   ========================================================================== */
.faq-section {
    margin-top: 80px;
    margin-bottom: 40px;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.faq-item h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   Pied de Page (Footer)
   ========================================================================== */
footer {
    background-color: var(--primary);
    color: #64748b;
    padding: 60px 0 30px 0;
    font-size: 0.95rem;
    border-top: 5px solid var(--accent);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h5 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 0.85rem;
}

/* ==========================================================================
   Media Queries - Media Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .editorial-block,
    .comparison-wrapper {
        padding: 30px 20px;
    }
}
