
body.modal-open header {
    display: none;
}



.hero {
    background-image: url('https://image.noelshack.com/fichiers/2025/15/1/1743977454-out-0-32-scaled.png'); /* Remplacez ceci par l'URL ou le chemin de votre image */
    background-size: cover; /* Pour que l'image couvre toute la section */
    background-position: center; /* Pour centrer l'image */
    background-repeat: no-repeat; /* Pour éviter la répétition de l'image */
    padding: 50px 0; /* Ajustez le padding pour la hauteur de votre hero */
    text-align: center;
    color: #fff; /* Changez la couleur du texte pour qu'il soit lisible sur l'image */
    opacity: 95%;
    background-attachment: fixed;
}

.hero .container {
    max-width: 960px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Ajouter une ombre au texte pour la lisibilité */
}

.hero-content p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Ajouter une ombre au texte pour la lisibilité */
    color: #eee;
}

/* Optionnel : Ajouter un overlay sombre pour améliorer la lisibilité du texte */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Couleur sombre semi-transparente */
    z-index: -1; /* Placer l'overlay derrière le contenu */
}

.hero {
    position: relative; /* Nécessaire pour positionner l'overlay */
}

/* Vous pouvez ajouter d'autres styles pour le hero ici, comme une image de fond, un bouton, etc. */

.carte-container {
    display: flex;
    gap: 40px;
    padding: 40px;
    justify-content: center;
    flex: 1 0 auto;
}

.carte {
    width: 250px;
    height: 350px;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carte h2 {
    margin-top: 0;
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
}

.car-logo {
    width: 150px;
    height: 130px;
    object-fit: contain;
}

.footer-liens {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 20px;
    font-size: 0.9em;
    text-align: center;
    flex-shrink: 0;
}

.footer-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-links-column {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.footer-links-column h3 {
    color: #f9f9f9;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: #fff;
}

.footer-links-column:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.google-stars {
    margin-bottom: 10px;
}

.google-stars a {
    color: gold;
    text-decoration: none;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.google-stars a:hover {
    color: #ffda6b;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ffffff;
    font-size: 0.85em;
}

.footer-links-column ul li ul.social-icons {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links-column ul li ul.social-icons li {
    margin: 0 8px;
    margin-bottom: 0;
}

.footer-links-column ul li ul.social-icons li a {
    display: block;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links-column ul li ul.social-icons li a:hover {
    opacity: 1;
}

.footer-links-column ul li ul.social-icons li a img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}



/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Noir avec une opacité de 90% */
}

.modal-content {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: 90%; /* Adjust as needed */
}

#modal-image {
    max-width: 100%;
    max-height: 90%; /* Adjust as needed */
    object-fit: contain;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev-button,
.next-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background: none;
    border: none;
    outline: none;
}

.next-button {
    right: 30px;
    border-radius: 3px 0 0 3px;
}

.prev-button {
    left: 30px;
    border-radius: 0 3px 3px 0;
}

.prev-button:hover,
.next-button:hover {
    background-color: rgba(0,0,0,0.8);
}









/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: 90%;
}

#modal-image {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
}

.prev-button,
.next-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    background: none;
    border: none;
    outline: none;
}

.next-button {
    right: 30px;
}

.prev-button {
    left: 30px;
}

.prev-button:hover,
.next-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* 1024px et moins - Tablettes / petits laptops */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .carte-container {
        gap: 20px;
        padding: 20px;
        flex-wrap: wrap;
    }

    .carte {
        width: 220px;
        height: 320px;
    }
}

/* 768px et moins - Tablettes portrait et gros smartphones */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
        background-attachment: scroll; /* Empêche le bug du background fixé */
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    .carte-container {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
        align-items: center;
    }

    .carte {
        width: 80%;
        height: auto;
    }

    .footer-links-container {
        flex-direction: column;
        padding: 10px;
        align-items: center;
    }

    .footer-links-column {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    .footer-links-column ul li ul.social-icons {
        justify-content: center;
    }
}

/* 480px et moins - Smartphones classiques */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2em;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1em;
    }

    .carte {
        width: 95%;
        max-width: 300px;
        margin-bottom: 15px;
    }

    .close-button {
        font-size: 30px;
        right: 20px;
    }

    .prev-button,
    .next-button {
        font-size: 24px;
        padding: 10px;
    }
}

/* 390px et moins - Petits smartphones type iPhone SE */
@media (max-width: 390px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    .carte {
        width: 90%;
    }

    .footer-links-column {
        padding: 0 5px;
    }

    .close-button {
        font-size: 25px;
        right: 15px;
    }
}

/* 360px et moins - Très petits smartphones */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 0.8em;
    }

    .carte {
        width: 95%;
    }

    .footer-links-column {
        padding: 0 3px;
    }

    .prev-button,
    .next-button {
        font-size: 20px;
    }
}
