/* VARIABLE */

:root {
    --pink: #FDC0E8;
    --pink-darker: #FF6CD5;
    --purple: #700058;
    --green: #B7C193;
    --green-light: #DAE0C4;
    --white: #F5F5F5;
    --grey: #F1F0F1;
    --black: #2E2E2E;
    --font-playfair-display: "Playfair Display", serif;
    --font-roboto: "Roboto", sans-serif;
}


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

html {
    scroll-behavior: smooth;
    font-size: 10px;
}

body {
    font-family: var(--font-roboto);
    font-size: 1.6rem;
    background-color: var(--white);
    color: var(--black);
}

/* Supprimer les styles par défaut des titres et paragraphes */
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

/* Supprimer la décoration des liens */
a {
    text-decoration: none;
    color: inherit;
}

/* Réinitialisation des listes */
ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Rendre les images et les médias responsifs */
img {
    max-width: 100%;

    display: block;
}

p {
    line-height: 150%;
}

p > a {
    text-decoration: underline;
    text-decoration-color: var(--purple);
    text-underline-offset: 25%;
}

/* Réinitialisation des boutons */
button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

/* OCSS */

.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 2rem;
    border-radius: 50px;
}

.btn-primary {
    color: var(--black);
    background-color: var(--pink);
}

/* All */

h1, h2, h3 {
    font-family: var(--font-playfair-display);
    font-weight: 600;
}

h1 {
    font-size: 5rem;
    color: var(--purple);
}

h2 {
    font-size: 4rem;
    color: var(--purple);
}

h3 {
    font-size: 2.5rem; /* 25px */
    color: var(--purple);
}

li {
    padding-bottom: 7px;
}

/* HEADER */

.header {
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    padding: 24px 0;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__burger > button {
    display: none;
}

.header__nav, .header__nav-light {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 64px;
}

.header__nav > ul, .header__nav-light > ul {
    display: flex;
    gap: 1.6rem
}

.header__nav > ul li {
    font-size: 1.8rem;
}

.header__nav-light > ul li {
    font-size: 1.8rem;
    color: var(--white);
}

/* FOOTER */
.footer {
    padding: 6.4rem 2rem;
    background-color: var(--grey);
}

.footer__wrapper {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-flow: column;
}

.footer__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
}

.footer__logos {
    display: flex;
    flex-flow: column;
}

.footer__logos-2 {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.footer__content {
    display: flex;
    gap: 6rem;
    flex-wrap: wrap;
}

.footer__section {
    min-width: 200px;
}

.footer__title {
    font-family: var(--font-playfair-display);
    font-weight: 600;
    color: var(--purple);
    font-size: 2.2rem;
    padding-bottom: 2.4rem;
}

.footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.footer__contact {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.footer__icon {
    width: 24px;
    height: 24px;
}

.footer__separator {
    width: 100%;
    margin: 3.2rem 0;
    height: 1px;
    background-color: var(--purple);
}

.footer__legal {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.footer__realisation a img {
    display: inline-block;
    height: 16px;
}

.erreur-404 {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms {
    padding-top: 140px;
}

.terms__wrapper {
    width: 70%;
    max-width: 1100px;
    margin: 0 auto;
}

.terms__wrapper > h2 {
    padding-bottom: 16px;
    padding-top: 24px;
}

.terms__wrapper > p {
    padding-bottom: 7px;
}

/* responsive */

@media (max-width: 1024px) {
    .header {
        padding: 0 32px;
    }

    .burger-icon,
    .close-icon {
        font-size: 4rem;
        color: var(--white);
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .burger-icon-dark,
    .close-icon-dark {
        font-size: 4rem;
        color: var(--dark);
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    /* Afficher burger par défaut */
    .burger-icon {
        display: inline;
    }

    .close-icon {
        display: none;
    }

    /* Quand le bouton a la classe is-active, on inverse */
    .header__burger.is-active .burger-icon {
        display: none;
    }

    .header__burger.is-active .close-icon {
        display: inline;
    }

    .header__burger > button {
        display: block;
    }

    .header__nav, .header__nav-light {
        display: none;
        flex-direction: column;
        align-items: end;
        gap: 16px;
        background-color: var(--white);
        padding: 2rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .header__nav > ul, .header__nav-light > ul {
        flex-flow: column;
    }

    .header__nav > ul li, .header__nav-light > ul li {
        color: var(--black);
    }

    .header__nav--open {
        display: flex;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }

    p {
        font-size: 1.6rem;
    }
}


@media (max-width: 640px) {
    .footer__legal {
        flex-flow: column;
        gap: 1.6rem;
    }
}