/* ===================================================================
   GLOBAL STYLES
=================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    color: #333;
}

main {
    padding-top: 6em;
    min-height: 40em;
}

/* ===================================================================
   CONTAINER & LAYOUT
=================================================================== */


/* ===================================================================
   HEADINGS & TYPOGRAPHIE
=================================================================== */
h1 {
    margin-top: 20px;
    font-size: 70px;
    padding: 0;
    text-align: center;
}

/* ===================================================================
   CONTACT SECTIONS
=================================================================== */
.contact-section {
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s;
}

.contact-section p {
    padding: 0 12em;
    font-size: 1.1em;
    text-align: center;
}

/* ===================================================================
   FORMULAIRES
=================================================================== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 70%;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 10px 20px;
    border: 1px solid transparent;
    background-color: #f8f8f8;
    border-radius: 25px;
    font-size: 1em;
}

.form-group textarea {
    resize: none;
    font-family: Arial, sans-serif;;
}

button[type="submit"] {
    max-width: fit-content;
    text-align: left;
    margin-top: 20px;
    padding: 15px 30px;
    border: none;
    background-color: #fdeef4;
    font-size: 1em;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #ffd8e7;
}

.nom {
    gap: 20px;
    display: flex;
}
/* ===================================================================
   CHOICE BUTTONS (OPTIONS de contact)
=================================================================== */
.choiceBtns {
    font-size: 17px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 3em 0;
}

.choiceBtn {
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid var(--bleu);
    background-color: transparent;
    border-radius: 20px;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

.choiceBtn:hover  {
    background: var(--bleu);
    color: #fff;
}

.active {
    background: var(--bleu);
    color: #fff;
}

/* ===================================================================
   NOTIFICATION
=================================================================== */
.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--lightpink);
    padding: 15px 30px;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.notification.show {
    bottom: 20px;
    opacity: 1;
}

/* ===================================================================
   LIENS & AUTRES STYLES
=================================================================== */
a {
    transition: 0.2s ease-in-out;
}


/* Styles spécifiques pour les images dans la section téléphone et email */
#telephone {
    text-align: center;
}

#telephone img {
    width: 15em;
}

#adresse-mail img {
    width: 1px; /* Selon l'intention, cette image reste minimale */
}

/* ===================================================================
   ANIMATION KEYFRAMES
=================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================================================
   MEDIA QUERIES – RESPONSIVE (max-width: 600px)
=================================================================== */
@media (max-width: 600px) {
    .container {
        max-width: 90%;
        margin: 0 auto;
        padding: 10px 10px;
    }

    h1 {
        font-size: 40px;
        padding: 0;
    }

    .contact-section p {
        padding: 0;
        text-align: center;
        font-size: 1em;
    }

    .nom {
        flex-direction: column;
    }
    /* Formulaire */
    form {
        max-width: 90%;
        padding: 0 10px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9em;
    }

    button[type="submit"] {
        width: 30%;
        font-size: 0.9em;
        padding: 8px;
    }

    /* Options de contact : boutons en colonne */
    .choiceBtns {
        padding : 0 4em;
        flex-direction: column;
        gap: 10px;
    }

    .choiceBtn {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    /* Adaptation des images pour téléphone */
    #telephone img {
        width: 100%;
        max-width: 12em;
    }

    /* Notification ajustée */
    .notification {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}



.bg-dynamic.morning {
    background-color: white;
}

.bg-dynamic.afternoon {
    background-color: white;

}

.bg-dynamic.evening {
    background-color: white;

}

.bg-dynamic.night {
    background-color: white;

}

@media (max-width: 768px) {
    .bg-dynamic.morning,
    .bg-dynamic.afternoon,
    .bg-dynamic.evening,
    .bg-dynamic.night {
        background-attachment: scroll;
        background-position: center top;
    }
}

/* Pour les écrans très petits (téléphones en portrait) */
@media (max-width: 480px) {
    .bg-dynamic.morning,
    .bg-dynamic.afternoon,
    .bg-dynamic.evening,
    .bg-dynamic.night {
        background-attachment: scroll; /* Toujours désactiver le parallax */
        background-position: center center; /* Centrer l'image pour éviter les marges */
    }
}

@media (max-width: 600px) {
    .container {
        max-width: 90%;
        margin: 0 auto;
        padding: 10px;
    }
}

.bleu {
    color: var(--bleu);
}
