:root {
    --blue: #17458f;
    --dark-blue: #092b60;
    --yellow: #f7a81b;
    --light: #f5f7fa;
    --text: #333;
    --muted: #687385;
    --white: #fff;
    --border: #e5e8ed;
    --shadow: 0 8px 25px rgba(0,0,0,.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.65;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1150px, 92%);
    margin: auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.brand-title {
    color: var(--blue);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
}

.brand-subtitle {
    display: block;
    color: #555;
    font-size: 12px;
    margin-top: 3px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 12px 14px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: var(--blue);
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--blue);
    color: #fff;
    font-size: 22px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* HERO */

.hero {
    min-height: 490px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(rgba(9,43,96,.68),rgba(9,43,96,.68)),
        url("../images/accueil.jpg") center/cover no-repeat;
}

.hero-content {
    width: min(900px,92%);
    margin: auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(40px,6vw,68px);
    line-height: 1.05;
    margin-bottom: 15px;
}

.hero h1 span {
    color: var(--yellow);
}

.hero p {
    font-size: 25px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: var(--yellow);
    color: #17365f;
    padding: 13px 25px;
    border-radius: 4px;
    font-weight: 700;
    transition: .2s;
}

.btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* SECTIONS */

.section {
    padding: 75px 0;
}

.section-light {
    background: var(--light);
}

.section-title {
    text-align: center;
    color: var(--blue);
    font-size: 35px;
    margin-bottom: 45px;
}

.section-title:after {
    content: "";
    display: block;
    width: 55px;
    height: 4px;
    background: var(--yellow);
    margin: 14px auto 0;
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px;
}

.card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .25s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 250px;
    background: #ddd;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 22px;
}

.card h3 {
    color: var(--blue);
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    font-size: 14px;
}

/* PAGE HERO */

.page-header {
    background:
        linear-gradient(rgba(23,69,143,.9),rgba(9,43,96,.9));
    color: white;
    padding: 70px 0;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(35px,5vw,55px);
    margin-bottom: 10px;
}

.page-header p {
    opacity: .9;
}

/* PRESENTATION */

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.two-columns h2 {
    color: var(--blue);
    font-size: 34px;
    margin-bottom: 20px;
}

.two-columns p {
    margin-bottom: 15px;
}

.image-rounded {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-rounded img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* MEMBRES */

.member-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
}

.member {
    background: #fff;
    text-align: center;
    padding-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.member-photo {
    height: 230px;
    background: #e8ebef;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member h3 {
    color: var(--blue);
    font-size: 17px;
    margin-top: 15px;
}

.member p {
    color: var(--muted);
    font-size: 13px;
}

/* HISTORIQUE */

.timeline {
    max-width: 850px;
    margin: auto;
    border-left: 3px solid var(--yellow);
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 28px;
}

.timeline-item strong {
    color: var(--blue);
    font-size: 18px;
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}

.contact-box {
    background: var(--light);
    padding: 30px;
    border-radius: 6px;
}

.contact-box h2 {
    color: var(--blue);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #d5dae2;
    border-radius: 4px;
    padding: 12px;
    font: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* CTA */

.cta {
    background: var(--blue);
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: 35px;
    margin-bottom: 10px;
}

.cta p {
    margin-bottom: 25px;
}

/* FOOTER */

.site-footer {
    background: #092650;
    color: #fff;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 40px;
}

.site-footer h3 {
    color: var(--yellow);
    margin-bottom: 15px;
}

.site-footer p,
.site-footer li {
    color: #d8e0eb;
    font-size: 14px;
}

.site-footer ul {
    list-style: none;
}

.site-footer li {
    margin-bottom: 8px;
}

.site-footer a:hover {
    color: var(--yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 20px;
    text-align: center;
    color: #b9c5d4;
    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 88px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px;
    }

    .main-nav li,
    .main-nav a {
        width: 100%;
    }

    .main-nav a {
        text-align: center;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .member-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 550px) {

    .brand-title {
        font-size: 15px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .hero {
        min-height: 410px;
    }

    .section {
        padding: 55px 0;
    }

    .member-grid {
        grid-template-columns: 1fr;
    }
}

