/* Fichier : styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #F4F4F9;
    color: #2A4D69;
    line-height: 1.6;
}

.header {
    background-color: #2A4D69;
    color: white;
    padding: 2.5rem;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
}

.header p {
    font-size: 1.3rem;
}

.main-section {
    margin: 3rem auto;
    text-align: center;
}

.container {
    width: 50%;
    margin: auto;
    background-color: #A7C7E7;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #FF6F61;
    font-size: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #2A4D69;
}

input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    font-size: 1.1rem;
    border: 2px solid #2A4D69;
    border-radius: 8px;
    transition: all 0.3s ease;
}
#placesRestants {
    margin-top: 20px;
    font-weight: bold;
    color: #dc3545; /* Couleur rouge pour les places restantes */
}

input:focus {
    outline: none;
    border-color: #FF6F61;
}

button {
    padding: 0.75rem 2rem;
    background-color: #FF6F61;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #FF8A80;
}

.message {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: red;
}

.lots-section {
    background-color: #F4F4F9;
    padding: 2rem;
    text-align: center;
}

.lots-section h3 {
    color: #2A4D69;
    font-size: 2rem;
}

.gifts {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
}

.gift-item {
    text-align: center;
}

.gift-item img {
    max-width: 150px;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

footer {
    background-color: #2A4D69;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

.footer-icons a {
    margin: 0 0.5rem;
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-icons a:hover {
    color: #FF6F61;
}

/* Styles Responsives */

/* Large tablettes et petits ordinateurs (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        width: 70%;
        padding: 2rem;
    }

    .gifts {
        flex-direction: column;
        align-items: center;
    }

    .gift-item {
        margin-bottom: 1rem;
    }
}

/* Smartphones et tablettes (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        width: 85%;
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    input {
        font-size: 1rem;
    }

    button {
        font-size: 1.1rem;
    }

    .gifts {
        flex-direction: column;
    }

    .gift-item img {
        max-width: 120px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1.1rem;
    }
}

/* Petits smartphones (max-width: 480px) */
@media (max-width: 480px) {
    .header {
        padding: 2rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 1rem;
    }

    .container {
        width: 90%;
        padding: 1rem;
    }

    input {
        font-size: 0.9rem;
    }

    button {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .gifts {
        flex-direction: column;
    }

    .gift-item img {
        max-width: 100px;
    }

    .lots-section h3 {
        font-size: 1.8rem;
    }
}

/* Bannières de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2A4D69;
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    z-index: 100;
}

.cookie-banner button {
    background-color: #FF6F61;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.cookie-banner button:hover {
    background-color: #FF8A80;
}

/* Style de la fenêtre modale */
.modal {
    display: none; /* Masqué par défaut */
    position: fixed;
    z-index: 1000; /* Au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond sombre transparent */
    justify-content: center;
    align-items: center;
}

/* Contenu de la modale */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    border-radius: 8px;
    text-align: center;
}

/* Style du bouton de fermeture */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
