* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
img {
    display: block;
    pointer-events: none;
    user-select: none;
}
body {
    color: #434343;
    font-family: "Open sans", sans-serif;
    background: linear-gradient(to right, #384c9d, #1c8fca);
}
.legacy-wrapper {
    max-width: calc(1200px + 4rem);
    margin: 2rem auto;
}
.wrapper-box {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    background: #fff;
    border-radius: 1.5rem 1.5rem 0 0;
    padding-block: 2rem;
    margin-inline: 1rem;
}
.cards,
.header,
.intro,
.key-figures,
.mention {
    padding-inline: 1rem;
}
.header {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}
.header__logo {
    height: 60px;
    width: auto;
}
.header__stamp {
    height: 80px;
    width: auto;
}
.header__logo,
.header__stamp {
    max-height: 15svw;
}
.intro {
    text-align: center;
    font-size: clamp(1rem, 0.85rem + 0.6vw, 1.375rem);
}
.intro p:not(:first-of-type) {
    margin-top: clamp(1rem, 0.6rem + 1.6vw, 2rem);
}
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.cards a {
    color: inherit;
    text-decoration: none;
}
.cards a:hover {
    text-decoration: underline;
}
.cards .card {
    width: 100%;
    border: 2px solid #384c9d;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.1);
    min-height: 100px;
}
.cards .card::before {
    content: "";
    height: 2.25rem;
    width: 2.25rem;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("images/icons/news.svg") no-repeat center/contain;
}
.cards .card:first-child::before {
    background-image: url("images/icons/news.svg");
}
.cards .card:nth-child(2)::before {
    background-image: url("images/icons/website.svg");
}
.cards .card:last-child::before {
    background-image: url("images/icons/book.svg");
}
.cards .card__infos {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Centre le formulaire dans la page */
.cards {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh; /* Assure un bon centrage vertical */
}

/* Style du formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px; /* Largeur max sur desktop */
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style des champs */
.contact-form label {
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #384c9d;
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* Style du bouton */
.contact-form button {
    background: #384c9d;
    color: white;
    padding: 0.75rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #1c8fca;
}

/* RESPONSIVE : Pleine largeur en mobile */
@media (max-width: 768px) {
    .contact-form {
        max-width: 100%; /* Prend toute la largeur sur mobile */
        border-radius: 0; /* Suppression des bords arrondis */
        padding: 1.5rem; /* Réduction du padding */
    }
}



@media (min-width: 768px) {
    .cards,
    .header,
    .intro,
    .key-figures,
    .mention {
        padding-inline: 2rem;
    }
    .cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    .cards .card {
        padding: 2rem;
        flex-direction: column;
        align-items: center;
        min-height: 240px;
        justify-content: center;
        gap: 2rem;
    }
    .cards .card::before {
        width: 3rem;
        height: 3rem;
    }
    .cards .card__infos {
        align-items: center;
        text-align: center;
    }
}
.cards .card__infos__links {
    display: flex;
    margin-top: 0.5rem;
}
.cards .card__infos__links a {
    padding-inline: 1rem;
    border-left: 1px solid #434343;
    border-right: 1px solid #434343;
}
.cards .card__infos__links a:first-of-type {
    padding-left: 0;
    border: none;
}
.cards .card__infos__links a:last-of-type {
    padding-right: 0;
    border: none;
}
.key-figures {
    position: relative;
    color: #fff;
    border-radius: 0 0 1.5rem 1.5rem;
    padding-top: 3rem;
}
.key-figures__title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}
.key-figures__wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-inline: 1rem;
}
.key-figures__wrapper .item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.key-figures__wrapper .item::before {
    content: "";
    display: block;
    height: 3.5rem;
    width: 3.5rem;
    flex: none;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    background: #fff;
}
.key-figures__wrapper .item__figures__line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}
.key-figures__wrapper .item__figures__line strong {
    font-size: 1.5rem;
}
.key-figures__wrapper .item:nth-child(3) .item__figures__line span {
    transform: translateY(2px);
}
.key-figures__wrapper .item:first-child::before {
    mask-image: url("images/icons/projects.svg");
}
.key-figures__wrapper .item:nth-child(2)::before {
    mask-image: url("images/icons/outputs.svg");
}
.key-figures__wrapper .item:nth-child(3)::before {
    mask-image: url("images/icons/coins.svg");
}
.key-figures__wrapper .item:nth-child(4)::before {
    mask-image: url("images/icons/partners.svg");
}
.key-figures__wrapper .item:nth-child(5)::before {
    mask-image: url("images/icons/hand-shake.svg");
}
.key-figures__wrapper .item:nth-child(6)::before {
    mask-image: url("images/icons/anchor.svg");
}
.key-figures__wrapper .item:nth-child(7)::before {
    mask-image: url("images/icons/bag.svg");
}
.key-figures__map {
    width: 100%;
    height: auto;
    margin-top: 2rem;
    border-bottom-right-radius: 1.5rem;
}
.mention {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    color: #fff;
    margin-top: 1rem;
    text-align: right;
}
.mention img {
    height: 2rem;
    width: auto;
    aspect-ratio: 3/2;
}
@media (min-width: 1200px) {
    .legacy-wrapper {
        margin: 8rem auto;
    }
    .wrapper-box {
        padding-block: 2rem 4rem;
        margin-inline: 0;
    }
    .cards,
    .header,
    .intro,
    .key-figures,
    .mention {
        padding-inline: 4rem;
    }
    .header__logo {
        height: 80px;
    }
    .header__stamp {
        height: 110px;
    }
    .cards {
        gap: 4rem;
    }
    .key-figures {
        background: linear-gradient(to top, #384c9d, #1c8fca);
        padding-block: 3rem;
    }
    .key-figures__title {
        max-width: 390px;
    }
    .key-figures__wrapper {
        padding-inline: 0;
        max-width: 390px;
    }
    .key-figures__map {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        object-fit: contain;
        object-position: right;
        margin: 0;
    }
    .mention {
        padding-inline: 0;
    }
    .mention img {
        height: 24px;
    }
}
