/* ===========================
   RESET & BASE
   =========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background: #f9fafb;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

p {
    margin-bottom: 0.75rem;
}

/* ===========================
   LAYOUT
   =========================== */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===========================
   HEADER & NAV
   =========================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(90deg, #245672 0%, #357d9e 60%, #245672 100%);
    backdrop-filter: blur(12px);
    color: #e5e7eb;
    border-bottom: 2px solid #e19d1b; /* liseré or */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    white-space: nowrap;
}

/* LOGO */

.logo-block {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo-title {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 0.78rem;
    color: #e5e7eb;
    opacity: 0.85;
}

/* NAVIGATION */

.nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
}

.nav-link {
    font-size: 0.85rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    color: #e5e7eb;
    transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(225, 157, 27, 0.18); /* or transparent */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: #e19d1b; /* or */
    color: #111827;
    font-weight: 600;
}

/* Bouton burger */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #e5e7eb;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HEADER — ÉCRANS MOYENS */

@media (max-width: 1150px) {
    .logo-subtitle {
        display: none; /* on gagne de la place pour le menu */
    }

    .logo-img {
        height: 40px;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .nav {
        gap: 0.45rem;
    }
}

/* ===========================
   HERO
   =========================== */

.hero {
    padding: 3.5rem 0 3rem;
    color: #f9fafb;
    background: radial-gradient(circle at top left, rgba(225, 157, 27, 0.4), transparent 55%),
        radial-gradient(circle at bottom right, rgba(53, 125, 158, 0.45), transparent 60%), #122333;
}

.homepage-hero {
    background: radial-gradient(circle at top left, rgba(225, 157, 27, 0.4), transparent 55%),
        radial-gradient(circle at bottom right, rgba(53, 125, 158, 0.5), transparent 60%),
        linear-gradient(135deg, #245672 0%, #357d9e 45%, #9e5616 100%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 0.98rem;
    color: #e5e7f0;
    max-width: 650px;
}

.hero-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
    text-decoration: none;
}

.btn-primary {
    background: #e19d1b; /* or du logo */
    color: #311809;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(225, 157, 27, 0.4);
}

.btn-primary:hover {
    background: #9e5616; /* orange foncé */
    color: #fefce8;
    box-shadow: 0 14px 30px rgba(158, 86, 22, 0.55);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #f9fafb;
    border-color: rgba(249, 250, 251, 0.8);
}

.btn-outline:hover {
    background: rgba(249, 250, 251, 0.12);
    border-color: #f9fafb;
}

.btn-small {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
}

/* ===========================
   SECTIONS
   =========================== */

.section {
    padding: 3rem 0;
}

.section.bg-light {
    background: #f3f4f6;
}

.section.bg-dark {
    background: #111827;
    color: #e5e7eb;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #245672; /* bleu foncé */
}

.section.bg-dark h2 {
    color: #e19d1b; /* or sur fond sombre */
}

.section-intro {
    max-width: 720px;
    font-size: 0.98rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* Petites utilitaires */

.text-white {
    color: #e5e7eb;
}

.bg-white {
    background: #ffffff;
}

/* ===========================
   GRID SYSTEM
   =========================== */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ===========================
   CARDS
   =========================== */

.card {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1.1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.03), 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.card h3 {
    margin-bottom: 0.6rem;
    font-size: 1rem;
    color: #9e5616; /* titre de carte en orange foncé */
}

.section.bg-dark .card {
    background: #111827;
    border-color: #1f2937;
    color: #e5e7eb;
}

/* listes dans les cartes */

.card ul {
    list-style: disc;
    margin-left: 1.1rem;
    font-size: 0.94rem;
}

/* ===========================
   TABLES
   =========================== */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
}

.table thead {
    background: #357d9e; /* bleu du logo */
    color: #f9fafb;
}

.table th,
.table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.small {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ===========================
   CONTACT / LISTES
   =========================== */

.contact-list {
    list-style: none;
    margin-top: 0.5rem;
    font-size: 0.94rem;
}

.contact-list li {
    margin-bottom: 0.25rem;
}

.contact-list a {
    color: #357d9e;
    text-decoration: underline;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
    background: #0b1120;
    color: #9ca3af;
    padding: 1rem 0;
    font-size: 0.85rem;
    border-top: 2px solid #e19d1b;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===========================
   RESPONSIVE (MOBILE)
   =========================== */

@media (max-width: 900px) {
    .header-container {
        align-items: center;
    }

    .nav {
        position: absolute;
        top: 3.1rem;
        right: 0.9rem;
        background: #122333;
        border-radius: 0.75rem;
        border: 1px solid rgba(148, 163, 184, 0.7);
        padding: 0.6rem 0.7rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        display: none;
        min-width: 220px;
        white-space: nowrap;
    }

    .nav.nav-open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .logo-title {
        font-size: 0.9rem;
    }

    .logo-img {
        height: 38px;
    }
}
