/* ═══════════════════════════════════════════════════════
   Claims Master — Layout CSS commun (navbar, footer, base)
   Fichier : public/css/app.css
═══════════════════════════════════════════════════════ */

/* ── Reset & Variables ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #dbeafe;
    --green: #059669;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #fff;
    color: var(--slate-800);
}

/* ── NAVBAR ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-200);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-brand .logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.navbar-brand .logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--slate-900);
}
.navbar-brand .logo-text span {
    color: var(--blue);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--slate-800);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-links a {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-700);
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.2s;
}

.navbar-links a:hover {
    background: var(--slate-100);
    color: var(--blue);
}

.navbar-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-outline {
    padding: 8px 18px;
    border-radius: 10px;
    border: 1.5px solid var(--slate-200);
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
}

.btn-primary {
    padding: 8px 20px;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s,
        transform 0.2s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

/* ── SECTIONS COMMUNES ── */
section {
    padding: 90px 7%;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

h2.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.2;
    margin-bottom: 14px;
}

p.section-sub {
    font-size: 17px;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 600px;
}

.text-center {
    text-align: center;
}
.text-center p.section-sub {
    margin: 0 auto;
}

/* ── ANIMATION FADE-IN ── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s 0.1s,
        transform 0.7s 0.1s;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── FOOTER ── */
footer {
    background: var(--slate-900);
    padding: 60px 7% 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.footer-brand .logo-text span {
    color: #60a5fa;
}

.footer-col h5 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #60a5fa;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.2s;
}

.footer-socials a:hover {
    background: var(--blue);
    color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 68px; /* Hauteur de la navbar */
        left: -100%;
        width: 100%;
        height: calc(100vh - 68px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 30px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 40px 20px;
        overflow-y: auto;
        border-top: 1px solid var(--slate-200);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .navbar-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    
    .navbar-links a {
        font-size: 18px;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    .navbar-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 15px;
        margin-top: 10px;
    }
    
    .navbar-cta a {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    section {
        padding: 60px 5%;
    }
}

/* ── HERO DES PAGES INTÉRIEURES ── */
.page-hero {
    background: linear-gradient(135deg, var(--slate-900) 0%, #1e3a8a 100%);
    padding: 80px 7% 90px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .15);
    top: -180px;
    right: -100px;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.page-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .2);
}

.page-hero-content h1 span { color: #60a5fa; }

.page-hero-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.7;
    max-width: 560px;
}

/* ── LIEN ACTIF NAVBAR ── */
.navbar-links a.active {
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 700;
}
