/* =====================================================================
   legal.css — style partagé des pages légales (Diamant Sécurité)
   Design sombre & premium, cohérent avec le reste du site.
   ===================================================================== */
:root {
    --bg: #0a0b0d;
    --bg-soft: #0f1115;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.09);
    --border-gold: rgba(212, 175, 55, 0.35);
    --gold: #d4af37;
    --gold-bright: #e7c873;
    --text: #eceef2;
    --muted: #9aa0ab;
    --radius: 18px;
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.75; color: var(--text); background: var(--bg);
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
    display: flex; flex-direction: column; min-height: 100vh;
}
h1, h2, h3, h4, .logo-main { font-family: 'Sora', system-ui, sans-serif; letter-spacing: -0.01em; }
a { color: var(--gold); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--gold);
    padding: 7px 16px; border: 1px solid var(--border-gold);
    border-radius: 100px; background: rgba(212, 175, 55, 0.06);
}

/* Accessibilité */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000; padding: 12px 20px; z-index: 2000; font-weight: 700; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* Header */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(10, 11, 13, 0.85);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-container { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; }
.logo-container { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { height: 52px; width: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--border), 0 8px 24px rgba(0,0,0,0.5); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-size: 1.2rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; }
.logo-sub { font-size: 0.58rem; color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; }
.desktop-nav ul { display: flex; align-items: center; list-style: none; gap: 32px; }
.desktop-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.25s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--text); }
.nav-cta { color: #000 !important; background: linear-gradient(135deg, var(--gold), var(--gold-bright)); padding: 10px 22px; border-radius: 100px; font-weight: 600 !important; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28); }

/* Menu mobile */
.mobile-menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 19px; background: transparent; border: none; cursor: pointer; padding: 0; }
.mobile-menu-toggle span { display: block; height: 2px; width: 100%; background: var(--gold); border-radius: 3px; transition: all 0.3s ease; }
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.mobile-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(82%, 340px); background: rgba(12, 13, 16, 0.98); backdrop-filter: blur(18px); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999; padding-top: 90px; }
.mobile-nav.active { transform: translateX(0); }
.mobile-nav ul { list-style: none; padding: 0 28px; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav a { color: var(--text); text-decoration: none; font-size: 1.1rem; font-weight: 500; display: block; padding: 18px 0; }
.mobile-nav a:hover { color: var(--gold); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s ease; z-index: 998; }
.overlay.active { opacity: 1; visibility: visible; }

/* Intro */
.page-head { position: relative; padding: 140px 0 40px; text-align: center; overflow: hidden; }
.page-head::after { content: ''; position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 700px; height: 420px; background: radial-gradient(circle, rgba(212,175,55,0.12), transparent 70%); filter: blur(50px); z-index: -1; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; color: #fff; margin: 18px 0 12px; }
.page-head p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.02rem; }
.page-head .updated { display: inline-block; margin-top: 14px; font-size: 0.82rem; color: #6b7079; }

/* Contenu légal */
.legal { flex: 1; padding: 24px 0 90px; }
.legal-card {
    max-width: 880px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: clamp(24px, 4vw, 56px);
}
.legal-section { margin-bottom: 38px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
    color: #fff; font-size: 1.3rem; margin-bottom: 14px;
    padding-left: 14px; border-left: 3px solid var(--gold);
}
.legal-section h3 { color: var(--gold-bright); font-size: 1.05rem; margin: 20px 0 8px; }
.legal-section p { color: var(--muted); margin-bottom: 12px; }
.legal-section ul { color: var(--muted); margin: 10px 0 12px; padding-left: 22px; }
.legal-section li { margin-bottom: 7px; }
.legal-section a { text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-section strong { color: var(--text); }

/* Encadré (responsable, CAI, info importante) */
.callout {
    background: rgba(212,175,55,0.07); border: 1px solid var(--border-gold);
    border-radius: 14px; padding: 22px 24px; margin: 18px 0;
}
.callout h3 { margin-top: 0; color: var(--gold); }
.callout p { color: var(--text); margin-bottom: 6px; }

/* Placeholder à compléter */
.todo {
    background: rgba(231, 76, 60, 0.12); border: 1px dashed rgba(231,76,60,0.55);
    color: #f5b6ae; border-radius: 6px; padding: 1px 8px; font-weight: 600; font-size: 0.92em;
}

/* Tableau (durées de conservation) */
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.94rem; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
.legal-table th { color: var(--text); font-weight: 600; }

/* Footer */
footer { background: #07080a; border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-brand { max-width: 340px; }
.footer-brand p { color: var(--muted); margin-top: 16px; font-size: 0.95rem; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bsp { color: #6b7079; font-size: 0.82rem; border-top: 1px solid var(--border); padding-top: 20px; margin-bottom: 14px; line-height: 1.6; }
.footer-bsp a { color: var(--gold); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #6b7079; font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 960px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
}
@media (max-width: 768px) {
    .page-head { padding: 116px 0 30px; }
}
@media (max-width: 400px) {
    .nav-container { padding: 12px 16px; }
    .logo-img { height: 44px; }
    .logo-main { font-size: 1rem; }
    .logo-sub { font-size: 0.52rem; letter-spacing: 0.12em; }
    .container { padding: 0 18px; }
    .legal-card { padding: 22px 18px; }
    .legal-table th, .legal-table td { padding: 9px 8px; font-size: 0.88rem; }
}
