:root {
    --color-red: #EA051C;
    --color-red-dark: #D00015;
    --color-pink: #F26977;
    --color-orange: #FEA30C;
    --color-header: #FFF6E7;
    --color-cream: #FFE3B6;
    --color-peach: #FFDA9E;
    --color-footer: #FDE6E8;
    --color-text: #000000;
    --color-text-light: #000000;
    --font-main: 'Poppins', 'Helvetica Neue', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    padding: 0 2rem 3rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    margin: 0 auto;
    padding: 3.5rem 6rem;
}

@media (max-width: 1023px) {
    .container {
        flex-wrap: wrap;
        padding: 16px;
    }

    .reverse {
        flex-wrap: wrap-reverse;
    }
}

.container img {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
}

.site-header__inner {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    padding: 1rem 0;
}

.site-header__inner .logo__img {
    height: 5.6rem;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.main-nav__link {
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    transition: background-color 0.2s;
}

.main-nav__link:hover {
    background-color: var(--color-cream);
}

.main-nav__link.is-active {
    background-color: var(--color-cream);
}

/* ---------- Boutons ---------- */
.btn {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.btn-white {
    background-color: #fff;
    color: #000;
    font-weight: bold;
}

.btn-cream {
    background-color: var(--color-cream);
    color: var(--color-text);
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 0.5rem 1.3rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-pink   { background: var(--color-pink) }
.badge-red    { background: var(--color-red); }
.badge-orange { background: var(--color-orange); }

/* ---------- Flash messages ---------- */
.flash-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--color-footer);
    margin-top: 5.5rem;
    border-radius: 16px;
}

.site-footer__inner {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.site-footer__brand .logo__img {
    max-width: 100%;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.site-footer__col h4 {
    font-size: 1rem;
    font-weight: bold;
}

.site-footer__col a {
    font-size: 1rem;
    text-decoration: underline;
}

.site-footer__col .social-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-footer__col .social-link__icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.site-footer__col a:hover {
    color: var(--color-red);
}

/* ---------- Pages simples (Contact / Qui sommes-nous) ---------- */
.simple-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .site-header {
        grid-template-columns: 1fr 8fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 8px;
    }

    .site-header {
        display: block;
        position: relative;
    }

    .site-header__inner {
        flex-direction: column;
        gap: 1rem;
    }
    .site-footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .site-footer__col .social-link {
        justify-content: center;
    }
}

/* ---------- Burger button (caché en desktop) ---------- */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 20;
}

.burger__bar {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animation en croix quand ouvert */
.burger.is-open .burger__bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.burger.is-open .burger__bar:nth-child(2) {
    opacity: 0;
}

.burger.is-open .burger__bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.main-nav__chevron {
    display: none;
    width: 24px;
    height: 24px;
}

/* ---------- Responsive : mobile ---------- */
@media (max-width: 768px) {
    .site-header__inner {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        justify-items: center;
        background-color: var(--color-header);
        z-index: 4;
        border-radius: 16px 16px 0 0;
    }

    .burger {
        display: flex;
    }

    .main-nav__chevron {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: -100%;
        left: 0;
        width: 100%;
        visibility: hidden;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        padding: 16px;
        transition: top 0.5s ease-in, visibility 0s 0.37s;
        z-index: 3;
    }

    .main-nav.is-open {
        top: 100%;
        visibility: visible;
        transition: top 0.5s ease-out, visibility 0s 0.12s;
    }

    .main-nav__link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 16px;
        text-decoration: underline;
    }

    .main-nav__link.is-active {
        background-color: unset;
    }

    .site-footer {
        border-radius: 16px;
        margin: 0 24px;
    }

    .site-footer__inner {
        padding: 16px;
        justify-content: center;
    }

    .container div {
        width: 100%;
        padding: 24px;
    }
}