/* Variables */
:root {
    --primary-color: #26408B;
    --secondary-color: #C2E7D9;
    --accent-color: #39A2AE;
    --light-color: #FFFFFF;
    --dark-color: #0F084B;
    --text-color: var(--light-color);
    --button-bg-color: var(--dark-color);
    --hover-color: var(--light-color);
    --hover-bg-color: var(--dark-color);
    --light-background-color: var(--secondary-color);
    --card-text-color: var(--light-color);
    --card-bg-color: var(--accent-color);
    --toggle-bg-color: var(--primary-color);
    --toggle-active-bg: var(--secondary-color);
    --font-family: 'Segoe Ui', sans-serif;
    --border-radius: 10px;
    --container-max-width: 1200px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input,
textarea,
select,
button {
    -webkit-appearance: none; /* Désactive les styles spécifiques de Safari */
    appearance: none;
    border-radius: 0; /* Supprime les arrondis par défaut */
}

/* Global Styles */
html {
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

section {
    width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--primary-color);
}

h1 {
    margin-bottom: 1rem;
}

h1, h2 {
    font-size: 2rem;
}

h2 {
    text-align: center;
    margin: 6rem 0 2rem 0;
}

h3 {
    font-size: 1.5rem;
    font-weight: normal;
}

a {
    text-decoration: none;
    color: var(--light-color);
}

p {
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.justify {
    text-align: justify;
}

ul {
    list-style: none;
    color: var(--primary-color);
}

.assistance-image img, .assistance-image-responsive img, .siteWeb-image img {
    aspect-ratio: 1.75 / 1;
}

/* Header Navigation */
header {
    background-color: var(--primary-color);
    width: 100%;
    margin-bottom: 6rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 1rem;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo-img {
    width: auto;
    height: 60px;
}

/* Menu de navigation pour desktop */
.header__menu {
    display: flex;
    gap: 2rem;
}

.header__nav-link {
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    overflow: hidden;
}

.header__contact-btn {
    background-color: var(--button-bg-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header__contact-btn:hover {
    background-color: var(--accent-color);
}

/* Cacher le menu mobile sur desktop */
.mobile-menu {
    display: none;
}

.active {
    color: var(--accent-color);
}

.btn {
    background-color: var(--button-bg-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    margin: 1rem 0;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* Styles spécifiques au menu mobile */
@media (max-width: 768px) {
    /* Cacher le menu desktop et le bouton de contact */
    .header__menu,
    .header__contact-btn {
        display: none;
    }

    header {
        margin-bottom: 0;
    }

    h2 {
        text-align: center;
        margin: 4rem 0 2rem 0;
        margin-bottom: 2rem;
    }

    /* Afficher le menu mobile */
    .mobile-menu {
        display: block;
    }

    #menuToggle {
        display: block;
        position: relative;
        z-index: 1;
        -webkit-user-select: none;
        user-select: none;
    }

    #menuToggle input {
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: -17px;
        left: -13px;
        cursor: pointer;
        opacity: 0;
        z-index: 2;
        -webkit-touch-callout: none;
        padding: 1.8rem;
    }

    #menuToggle span {
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background: var(--light-color);
        border-radius: 3px;
        z-index: 1;
        transform-origin: 4px 0px;
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        opacity 0.55s ease;
    }

    #menuToggle span:first-child {
        transform-origin: 0% 0%;
    }

    #menuToggle span:nth-last-child(2) {
        transform-origin: 0% 100%;
    }

    /* Transformation de l'icône hamburger en croix */
    #menuToggle input:checked ~ span {
        opacity: 1;
        transform: rotate(45deg) translate(-2px, -1px);
        background: var(--text-color);
    }

    #menuToggle input:checked ~ span:nth-last-child(3) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menuToggle input:checked ~ span:nth-last-child(2) {
        transform: rotate(-45deg) translate(0, -1px);
    }

    /* Styles du menu mobile */
    #menu {
        position: absolute;
        margin: 10px 0;
        padding: 100px 0;
        background: var(--primary-color);
        list-style-type: none;
        transform-origin: 0% 0%;
        transform: translate(100%, 0);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), width 0.5s ease; /* Transition pour transform ET width */
        z-index: 1;
        right: -16px;
        height: 100vh;
        width: 0;
    }

    /* Afficher le menu lorsque le checkbox est coché */
    #menuToggle input:checked ~ #menu {
        transform: none;
        width: 100vw; /* Expansion de la largeur */
    }


    #menu li {
        padding: 10px 0;
        font-size: 1.5rem;
        text-align: center;
    }

    #menu li a {
        text-decoration: none;
        display: none;
        animation: fadeIn 2s ease;
    }

    /* Afficher le menu lorsque le checkbox est coché */
    #menuToggle input:checked ~ #menu {
        transform: none;
        width: 100vw;
    }

    #menuToggle input:checked ~ #menu li a {
        animation: fadeOut 2s;
        display: block;
    }

}

/* Footer */
.footer {
    margin-top: 8rem;
    background-color: var(--primary-color); /* Couleur de fond (par ex: bleu foncé) */
    color: var(--text-color); /* Couleur du texte (par ex: blanc) */
    padding: 1.5rem 1rem; /* Ajout d'un padding pour aérer le contenu */
    text-align: center; /* Centrer le texte */
    font-size: 0.875rem; /* Taille du texte */
    width: 100%; /* S'assurer que le footer prend toute la largeur */
}

.footer__container {
    max-width: 1200px; /* Limite la largeur maximale */
    margin: 0 auto; /* Centre le contenu horizontalement */
}

footer p, footer a {
    color: var(--light-color);
}

.footer a {
    color: var(--text-color); /* Lien avec la même couleur que le texte */
    text-decoration: none; /* Retirer le soulignement des liens */
    padding: 0 0.5rem; /* Espace entre les liens */
    transition: color 0.3s ease; /* Transition fluide pour le changement de couleur */
}

.footer a:hover {
    color: var(--accent-color); /* Couleur différente au survol */
}

.footer p {
    margin: 0.5rem 0; /* Espace entre les paragraphes */
    text-align: center;
}

.footer p a {
    font-weight: bold; /* Rendre les liens dans le footer plus visibles */
}

.footer p a:hover {
    color: var(--accent-color);
}

@media (max-width: 767px) {
    /* Styles pour les écrans de mobiles */
    h1 {
        margin: 2rem 0;
        font-size: 1.9rem;
        text-align: center;
    }

    .footer {
        margin-top: 2rem;
    }

    .btn {
        display: block;
        text-align: center;
        margin: 2rem 0;
    }

}

@media (min-width: 768px) and (max-width: 1259px) {
    /* Styles pour les écrans de tablettes */
    section {
        width: 80%;
    }
}

@media (min-width: 1260px) {
    /* Styles pour les écrans de bureau */
}

