/* ============================================================
   AEGIS PREVENTION - Feuille de style partagee (chrome commun)
   Variables, base, header, navigation, boutons, menu mobile, pied de page.
   Chargee sur toutes les pages de contenu ; le CSS specifique a chaque
   page reste inline dans la page. Source de verite unique du "chrome".
   ============================================================ */

:root {
    --primary-color: #0f2d52;
    --primary-light: #1a4d8c;
    --primary-dark: #091b33;
    --accent-color: #c41e3a;
    --accent-light: #e63950;
    --gold: #d4a853;
    --text-dark: #1a1a1a;
    --text-medium: #5a5a5a;
    --text-light: #ffffff;
    --bg-light: #f8fafc;
    --bg-warm: #fafaf8;
    --border-radius: 8px;
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 40px rgba(15,45,82,0.12);
    --focus-outline: 3px solid #ffcc00;
}

/* Base & typographie */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text-dark); line-height: 1.7; background: #fff; font-size: 16px; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:focus-visible, button:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }

/* Header & navigation */
header {
    background-color: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed; width: 100%; z-index: 1000; top: 0; height: 80px;
    display: flex; align-items: center;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 60px; width: auto; object-fit: contain; }
.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-link { font-weight: 500; font-size: 0.95rem; color: var(--text-dark); }
.nav-link:hover { color: var(--primary-light); }
.nav-link.active { color: var(--primary-light); font-weight: 600; }

/* Boutons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    border: none; cursor: pointer; transition: all 0.3s ease;
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(15,45,82,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,45,82,0.35); }
.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white; box-shadow: 0 4px 15px rgba(196,30,58,0.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196,30,58,0.4); }
.btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: white; }

/* Menu mobile */
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; color: var(--primary-color); background: none; border: none; padding: 10px; }

/* Pied de page */
footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 40px 0 25px; text-align: center; }
footer p { font-size: 0.9rem; margin-bottom: 10px; }
footer a { color: rgba(255,255,255,0.8); }
footer a:hover { color: white; }

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed; left: -100%; top: 80px;
        flex-direction: column; background-color: white;
        width: 100%; padding: 30px; transition: 0.4s ease;
        box-shadow: 0 15px 40px rgba(15,45,82,0.12); gap: 20px;
    }
    .nav-menu.active { left: 0; }
}
