/* ============================================
   SITE.CSS — Styles partagés (navbar, footer, boutons, reset)
   Utilisé par toutes les pages publiques via includes/header.php
============================================ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1F2937;
    line-height: 1.6;
    font-size: 16px;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* COULEURS
   Primaire (navy)  : #1B2A4A
   Accent (orange)  : #E8601C
   Accent hover     : #CF5318
   Gris fond        : #F4F6F8
   Gris texte       : #6B7280
   Succès (vert)    : #16A34A
*/

.text-green { color: #16A34A; }
.text-red   { color: #DC2626; }

/* ============================================
   NAVIGATION
============================================ */
.navbar {
    background: #1B2A4A;
    padding: 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand span { color: #E8601C; }
.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.navbar-links a {
    color: #CBD5E1;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.navbar-links a:hover { color: #fff; }

/* DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 0.3rem; }
.nav-dropdown > a .bi-chevron-down { font-size: 0.7rem; transition: transform 0.2s; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1B2A4A;
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    list-style: none;
    z-index: 1001;
    margin-top: 0.75rem;
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}
.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #1B2A4A;
}
.nav-dropdown-menu li a { display: block; padding: 0.5rem 1.25rem; white-space: nowrap; font-size: 0.85rem; }
.nav-dropdown-menu li a:hover { background: rgba(255,255,255,0.08); }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown:hover > a .bi-chevron-down { transform: rotate(180deg); }

/* MOBILE NAV TOGGLE */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   BOUTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: #E8601C; color: #fff; }
.btn-primary:hover { background: #CF5318; }
.btn-outline { background: transparent; color: #E8601C; border: 2px solid #E8601C; }
.btn-outline:hover { background: #E8601C; color: #fff; }
.btn-white { background: #fff; color: #1B2A4A; font-weight: 700; }
.btn-white:hover { background: #F4F6F8; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 8px; }

/* ============================================
   SECTIONS COMMUNES
============================================ */
.section { padding: 5rem 0; }
.section-gray { background: #F4F6F8; }
.section-dark { background: #1B2A4A; color: #fff; }
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #1B2A4A;
}
.section-dark .section-header h2 { color: #fff; }
.section-header p {
    font-size: 1.05rem;
    color: #6B7280;
}
.section-dark .section-header p { color: #94A3B8; }

/* ============================================
   FOOTER
============================================ */
.footer {
    background: #0F1D36;
    padding: 3rem 0 2rem;
    color: #94A3B8;
    font-size: 0.85rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.footer-brand { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.footer-brand span { color: #E8601C; }
.footer h4 {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #CBD5E1; margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a { color: #94A3B8; transition: color 0.2s; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   RESPONSIVE — COMMUN
============================================ */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .navbar-links { display: none; }
    .nav-toggle { display: block; }
    .navbar-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: #1B2A4A;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }
    .navbar-links.open .nav-dropdown-menu {
        position: static; transform: none; display: none;
        box-shadow: none; padding-left: 1rem;
    }
    .navbar-links.open .nav-dropdown-menu::before { display: none; }
    .navbar-links.open .nav-dropdown.open .nav-dropdown-menu { display: block; }

    .section { padding: 3rem 0; }
    .section-header h2 { font-size: 1.5rem; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
