/* ========================
    Navbar Styles
======================== */
  
@import url('https://fonts.googleapis.com/css?family=Work+Sans:300,600');

:root {
    --background: rgba(255, 255, 255, 0.85);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #222;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
}

.content {
    height: 200vh;
    background-image: url(//unsplash.it/1000/1000);
    background-color: rgb(90, 90, 90);
    background-blend-mode: multiply;
    background-size: cover;
    display: grid;
    place-items: center;
}

/* ⬇⬇⬇ navigation styles ⬇⬇⬇ */

header {
    background: var(--background);
    text-align: center;
    position: fixed;
    z-index: 999;
    width: calc(100% - 20px); /* Ajustement pour éviter un débordement */
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 5px auto; /* Centrer horizontalement */
    left: 50%; /* Correction pour le recentrage */
    transform: translateX(-50%); /* Recentrage parfait */
}

.nav-toggle {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

.nav-toggle:focus~.nav-toggle-label {
    outline: 3px solid rgba(lightblue, .75);
}

.nav-toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    margin-left: 1em;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: rgb(0, 31, 63);
    height: 2px;
    width: 2em;
    border-radius: 2px;
    position: fixed;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 7px;
}

.nav-toggle-label span::after {
    top: 7px;
}

nav {
    position: absolute;
    text-align: left;
    top: 100%;
    left: 0;
    background: var(--background);
    width: 100%;
    transform: scale(1, 0);
    transform-origin: top;
    transition: transform 400ms ease-in-out;
    border-radius: 10px; /* Arrondir les bords du menu */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optionnel : ajouter une ombre */
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav li {
    margin-bottom: 1em;
    margin-left: 1em;
}

nav a {
    color: rgb(0, 31, 63);
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 4px; /* Augmenter l'épaisseur */
    bottom: -2px;
    left: 0;
    background-color: orange; /* Changer la couleur en orange */
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

nav a:hover {
    color: rgb(0, 99, 198);
}

.nav-toggle:checked~nav {
    transform: scale(1, 1);
}

.nav-toggle:checked~nav a {
    opacity: 1;
    transition: opacity 250ms ease-in-out 250ms;
}

@media (min-width: 1024px) {
    header {
       display: flex;
       justify-content: space-between;
       align-items: center;
       padding: 0 20px;
    }

    .nav-toggle-label {
       display: none;
    }

    nav {
       position: static;
       transform: none;
       background: none;
       box-shadow: none;
       width: auto;
       display: flex;
       align-items: center;
    }

    nav ul {
       display: flex;
       gap: 20px;
    }

    nav li {
       margin: 0;
    }

    nav a {
       opacity: 1;
       transition: none;
    }

    .content {
       height: 100vh;
    }

    .hero-content {
       text-align: center;
    }

    .about-content {
       display: flex;
       align-items: center;
       gap: 20px;
    }

    .about-text, .about-image {
       flex: 1;
    }

    .service-list {
       display: flex;
       gap: 20px;
       flex-wrap: wrap;
    }

    .service-item {
       flex: 1 1 calc(33.333% - 20px);
       box-sizing: border-box;
    }

    .product-list {
       display: flex;
       gap: 20px;
       flex-wrap: wrap;
    }

    .product-item {
       flex: 1 1 calc(50% - 20px);
       box-sizing: border-box;
    }

    .reasons-list {
       display: flex;
       gap: 20px;
    }

    .reason-item {
       flex: 1;
       text-align: center;
    }

    .faq-list {
       display: flex;
       flex-direction: column;
       gap: 20px;
    }

    #rendezvous form {
       display: grid;
       grid-template-columns: 1fr 1fr;
       gap: 20px;
    }

    #rendezvous form > div {
       grid-column: span 2;
    }

    #rendezvous form button {
       grid-column: span 2;
    }
}