
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-image: url('../img/background-image.png'); 
    background-size:cover;
    background-position: center;
    color: #243886;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    width: 100%;
    position: absolute;
    top: 0;
}

header nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-transform: uppercase;
}

header nav ul li {
    flex: 1;
    text-align: center;
}

header nav ul li.logo img {
    height: 100%;
    width: 40%;
}

header nav ul li a {
    color: #243886;
    text-decoration: none;
    font-size: 20px;
}

.cs-text {
    width: 1000px;
}

/* Main content */
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

main h1 {
    font-size: 4em;
    letter-spacing: 5px;
    margin: 0;
}

main p {
    font-size: 30px;
    margin-top: 10px;
    font-weight: 200;
}

.notify-btn {
    display: inline-block;
    padding: 10px 38px;
    background-color: #243886;
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 1.2em;
}

/* Styles pour la modal */
.modal {
    display: none; /* Cache la modal par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Superposition au-dessus des autres éléments */
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 500px;
    max-height: 80vh; /* Limite la hauteur à 80% de la hauteur de l'écran */
    overflow-y: auto; /* Ajoute une barre de défilement si le contenu dépasse */
    line-height: 1.8;
    text-align: center;
}

/* Bouton pour fermer la modal */
.close-btn {
    background-color: #e9592c;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 5px;
}

.close-btn:hover {
    background-color: #e9592c;
}

/* Pour fermer le modal en cliquant à l'extérieur du contenu */
.modal[open] {
    display: flex;
}

.newsletter-form {
    display: flex;
    align-items: center;
    padding-bottom: 10px; /* Espace en bas */
    width: 100%;
    max-width: 500px;
    margin: 0 auto; /* Centrer horizontalement */
}

/* Style pour l'input email */
.newsletter-input {
    border: none;
    border-bottom: 2px solid #243886; /* Bordure inférieure seulement */
    padding: 10px 0;
    padding-left: 0; /* Pas de padding à gauche */
    flex: 1; /* Occuper tout l'espace disponible */
    font-size: 16px;
    outline: none; /* Supprime la bordure du focus */
}

input::placeholder {
    color: #243886;
}

/* Style pour le bouton de validation */
.newsletter-btn {
    padding: 10px 20px;
    background-color: #e9592c;
    color: white;
    border: none;
    cursor: pointer;
    margin-left: 10px; /* Espace entre l'input et le bouton */
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #e9592c;
}

/* Responsive adjustments */

@media screen and (min-width:768px) and (max-width:1024px) {

    header nav ul li.logo img {
        height: 100%;
        width: 60%;
    }

    .cs-text {
        width: 95% !important;
     }

    main p {
        font-size: 25px;
    }
}

@media (max-width: 767px) {
    main h1 {
        font-size: 3em;
    }

    main p {
        font-size: 1.2em;
        width: 350px;
    }

    header nav ul li a {
        font-size: 16px;
    }

    .notify-btn {
        font-size: 1em;
        padding: 10px 20px;
    }

    .cs-text {
       width: 90% !important;
    }

    header nav ul li.logo img {
        height: 100%;
        width: 80%;
    }

    .modal-content p {
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    main h1 {
        font-size: 2em;
    }

    .notify-btn {
        font-size: 0.9em;
        padding: 8px 15px;
    }

    .modal-content p {
        font-size: 14px;
        line-height: 1.5;
    }

}

@media (max-width:330px){

    .newsletter-input {
        font-size: 10px;
    }
    .newsletter-btn {
        font-size: 10px;
    }
}



