:root {
    --blue: #0C2A4D;
    --blue-light: #D9E6F2;
    --orange: #F28C28;
    --grey-light: #F5F5F5;
    --grey: #D0D0D0;
    --grey-dark: #555555;
    --white: #FFFFFF;

    --font-title: "Merriweather", Georgia, serif;
    --font-body: "Inter", Arial, sans-serif;
}

/* ==============================
   RESET
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--blue);
    background: var(--white);
    line-height: 1.6;
}

/* ==============================
   ACCESSIBILITÉ
============================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(242, 140, 40, 0.35);
    outline-offset: 3px;
}

/* ==============================
   HEADER / NAVIGATION
============================== */

.header {
    width: 100%;
    background: var(--white);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--grey-light);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

.nav-desktop {
    display: flex;
    align-items: center;
}

.nav-desktop a {
    margin-left: 25px;
    text-decoration: none;
    font-weight: 600;
    color: var(--blue);
    font-size: 15px;
}

.nav-desktop a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-cta,
.nav-desktop .btn-primary {
    margin-left: 30px;
}

.burger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--blue);
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.25s ease-in-out;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 78px;
    right: 0;
    width: 78%;
    max-width: 360px;
    height: calc(100% - 78px);
    background: var(--white);
    padding: 20px;
    border-left: 2px solid var(--grey-light);
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.06);
    overflow-y: auto;
}

.nav-mobile a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--grey-light);
    text-decoration: none;
    color: var(--blue);
    font-weight: 600;
}

.nav-mobile .btn-primary {
    color: var(--white);
    text-align: center;
    margin-top: 14px;
    border-bottom: none;
}

.nav-mobile-active {
    display: block;
}

.burger-active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.burger-active span:nth-child(2) {
    opacity: 0;
}

.burger-active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ==============================
   HERO
============================== */

.hero {
    position: relative;
    padding: 200px 40px 140px;
    background: linear-gradient(rgba(12, 42, 77, 0.75), rgba(12, 42, 77, 0.75)),
                url("../assets/hero-avoris.jpg") center/cover no-repeat;
    text-align: center;
    color: var(--white);
}

.small-hero {
    padding: 160px 40px 80px;
    background: var(--blue-light);
    color: var(--blue);
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--white);
}

.small-hero h1 {
    color: var(--blue);
}

.subtitle {
    max-width: 780px;
    margin: 0 auto 30px;
    font-size: 19px;
    color: var(--white);
}

.small-hero .subtitle {
    color: var(--blue);
}

.hero .btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==============================
   BOUTONS / CTA
============================== */

.cta-row {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-row a {
    min-width: 200px;
    text-align: center;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease-in-out;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    border: 2px solid var(--blue);
    color: var(--blue);
}

.btn-secondary:hover {
    background: var(--grey-light);
}

/* ==============================
   SECTIONS GÉNÉRALES
============================== */

.section {
    padding: 100px 40px;
    text-align: center;
}

.section.alt {
    background: var(--grey-light);
}

.section h2 {
    font-family: var(--font-title);
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 25px;
}

.section p {
    font-size: 18px;
    margin-bottom: 18px;
}

.chute {
    font-weight: 700;
    margin-top: 10px;
}

.highlight {
    font-weight: 700;
    color: var(--blue);
    margin-top: 20px;
}

.legal {
    font-size: 16px;
    color: var(--grey-dark);
}

/* ==============================
   CARTES / BLOCS
============================== */

.grid-3 {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.card {
    background: var(--white);
    border: 1px solid var(--grey);
    padding: 30px;
    width: calc(33.333% - 20px);
    min-width: 260px;
    border-radius: 8px;
    transition: 0.25s ease-in-out;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.card h3 {
    font-family: var(--font-title);
    margin-bottom: 15px;
    font-size: 22px;
}

.card p {
    margin-bottom: 0;
}

/* ==============================
   LISTES
============================== */

.list {
    list-style: none;
    padding: 0;
    font-size: 18px;
    max-width: 850px;
    margin: 0 auto;
}

.list li {
    margin: 10px 0;
}

/* ==============================
   SCHÉMA
============================== */

.schema {
    font-size: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px auto;
    max-width: 900px;
}

.arrow {
    font-weight: 700;
    font-size: 24px;
}

/* ==============================
   FORMULAIRES / CONTACT
============================== */

.contact-form {
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 16px;
    padding: 12px 14px;
    border: 1px solid var(--grey);
    border-radius: 6px;
    color: var(--blue);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.15);
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.form-actions .btn-primary {
    border: none;
    cursor: pointer;
}

.contact-card {
    max-width: 760px;
    margin: 0 auto;
}

.contact-card p {
    margin-bottom: 10px;
}

.contact-card a,
.section a {
    color: var(--blue);
}

.contact-card a:hover,
.section a:hover {
    color: var(--orange);
}

/* ==============================
   BLOCS JURIDIQUES
============================== */

.legal-section {
    text-align: center;
}

.legal-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--grey);
    border-radius: 8px;
    padding: 28px;
}

.legal-card p + p {
    margin-top: 10px;
}

.legal-list {
    max-width: none;
    margin: 16px 0 0 0;
    padding-left: 20px;
    text-align: left;
    font-size: 18px;
}

.legal-list li {
    margin: 8px 0;
}

.legal-card a,
.legal-section a {
    color: var(--blue);
}

.legal-card a:hover,
.legal-section a:hover {
    color: var(--orange);
}

/* ==============================
   FOOTER
============================== */

.footer {
    background: var(--blue);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.footer-links {
    max-width: 1100px;
    margin: 0 auto 20px auto;
}

.footer-links a {
    color: var(--white);
    margin: 0 12px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-links a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==============================
   ANIMATIONS
============================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.9s ease forwards;
}

.appear {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 992px) {
    .nav-desktop {
        display: none;
    }

    .burger {
        display: block;
    }

    .grid-3 {
        flex-direction: column;
        width: 100%;
    }

    .card {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 18px 20px;
    }

    .hero {
        padding: 150px 20px 90px;
    }

    .small-hero {
        padding: 145px 20px 70px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section {
        padding: 70px 20px;
    }

    .section h2 {
        font-size: 26px;
    }

    .section p,
    .list,
    .legal-list {
        font-size: 17px;
    }

    .logo {
        font-size: 22px;
    }

    .schema {
        gap: 6px;
        font-size: 18px;
    }

    .legal-card {
        padding: 22px 18px;
    }
}