/*------------------ Généralité ------------------*/
html, body {
    height: 100%; /* On s'assure que le body prend toute la hauteur de la page */
    margin: 0; /* Réinitialisation des marges par défaut */
}

/* Pour le conteneur principal */
body {
    display: flex;
    flex-direction: column;
    height: 100%; /* Assure que le body prend toute la hauteur de la page */
}

/*------------------ NavBar Styles ------------------*/
/* Fond orange pour la barre de navigation */
nav {
    background-color:#F37427;
}

/* Style des liens dans le menu */
.nav-link {
    color: white !important;
    font-size: 20px;
    text-shadow: 2px 0 #000000, -2px 0 #000000, 0 2px #000000, 0 -2px #000000,
        1px 1px #000000, -1px -1px #000000, 1px -1px #000000, -1px 1px #000000;
}

/* Survol des liens */
.nav-link:hover {
    color: rgb(0, 0, 0) !important;
    text-shadow: 2px 0 #ffffff, -2px 0 #ffffff, 0 2px #ffffff, 0 -2px #ffffff,
        1px 1px #ffffff, -1px -1px #ffffff, 1px -1px #ffffff, -1px 1px #ffffff;
}

/*------------------ Layout Header/Footer  ------------------*/
/* Assurez-vous que le footer reste toujours au bas de la page */
.main-content {
    flex: 1; /* Contenu flexible qui prend tout l'espace restant entre header et footer */
    display: flex; /* Utilisation de flexbox pour centrer le formulaire */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
}

/*------------------ Footer Styles ------------------*/
/* On fixe le footer au bas de la page */
/* Footer Styles */
/* Footer Styles */
footer {
    background-color: #F37427;
    padding: 15px 0;
    width: 100%;
    text-align: center;
    position: relative;
    bottom: 0;
    margin-top: auto;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Conteneur principal du footer */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

/* Numéro, email et adresse */
.footer-container p {
    margin: 0 5px;
    white-space: nowrap; /* Empêche le retour à la ligne */
    font-size: 25px;
    color: #333;
}

/* Logos */
.footer-logos {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.footer-logos a img {
    width: 35px;
    height: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .footer-container p {
        font-size: 1rem;
        margin: 5px;
    }

    .footer-logos {
        order: -1; /* Affiche les logos en premier sur petits écrans */
    }
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-container p {
        display: block;
        text-align: center;
    }

    .footer-logos {
        margin-top: 10px;
    }
}

/* Styles pour le formulaire */
#form {
    background-color: grey;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère pour le formulaire */
    width: 100%; /* Par défaut, occupe toute la largeur */
    max-width: 1000px; /* Limite la largeur maximale sur les grands écrans */
    text-align: center;
    margin: 100px auto; /* Centre horizontalement avec un espacement vertical */
    box-sizing: border-box; /* Inclut les bordures et les paddings dans la largeur totale */

}

/* Champs de formulaire */
input[type="text"],
input[type="email"],
textarea {
    width: 100%; /* Prend toute la largeur du formulaire */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #f9f9f9;
}

textarea{
    height: 150px;
}

/* Bouton d'envoi */
button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

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

/* Responsive - Écrans plus petits */
@media (max-width: 768px) {
    #form {
        padding: 15px; /* Réduit le padding pour les petits écrans */
        max-width: 90%; /* Utilise 90% de la largeur de l'écran */
    }

    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 0.9rem; /* Réduit légèrement la taille de la police */
    }

    button[type="submit"] {
        padding: 10px; /* Réduit la taille du bouton */
        font-size: 1rem; /* Ajuste la taille de la police du bouton */
    }
}

/* Responsive - Très petits écrans (exemple smartphones) */
@media (max-width: 480px) {
    #form {
        padding: 10px; /* Réduit encore le padding */
    }

    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 0.8rem; /* Taille de texte plus petite */
    }

    button[type="submit"] {
        font-size: 0.9rem; /* Réduit encore la taille de la police */
        padding: 8px; /* Moins de padding pour le bouton */
    }
}


#titreform{
    color: white;

}

#textform{
    text-align: left;
    color: white;
}

/* Style page presentation */
h1 {
    text-align: center;
    color: #444;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px;
    gap: 20px;
}

.presentation-text, .horaires-table {
    flex: 1 1 300px; /* Prend au moins 300px et s'adapte */
    overflow-y: auto;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    box-sizing: border-box;
}

/* Style pour le tableau */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

table th, table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

table th {
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

table td {
    font-size: 0.9rem;
}

/* Moyens de paiement */
.payment-methods {
    width: 100%;
    min-height: 150px; /* Augmentation de la hauteur minimale */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.payment-container {
    display: flex;
    gap: 20px; /* Espace entre les icônes */
    animation: scrollPayments 10s linear infinite;
}

.payment-methods img {
    width: auto;
    height: 70px;
    flex-shrink: 0;
}

.presentation-text p {
    font-size: 1.2rem; /* Augmente la taille du texte */
    line-height: 1.6; /* Améliore la lisibilité */
    text-align: justify;
}



/* Animation de défilement infini */
@keyframes scrollPayments {
    0% {
        transform: translateX(150%);
    }
    100% {
        transform: translateX(-200%);
    }
}

/* Responsiveness spécifique */
@media (max-width: 768px) {
    .presentation-text, .horaires-table {
        flex: 1 1 100%; /* Prend toute la largeur */
    }

    .payment-container {
        animation-duration: 15s; /* Ralentit l'animation */
    }

    .payment-methods img {
        width: 60px; /* Réduit la taille des icônes */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .payment-methods {
        min-height: 200px; /* Augmentation supplémentaire en mode téléphone */
    }

    .payment-container {
        animation-duration: 20s; /* Animation plus lente */
    }

    .payment-methods img {
        width: 50px; /* Réduit encore les icônes */
    }
}



/*------------------ Accueil Styles ------------------*/
/* Conteneur principal avec animation */
.accueil-container {
    position: relative;
    width: 100%;
    height: 80vh; /* Réduire la hauteur affichée des images */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    background-size: cover; /* Assurer une taille uniforme des images */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    transition: background-image 1s ease-in-out;
}

/* Animation de changement de fond */
@keyframes bgChange {
    0% { background-image: url('../images/magazin/equipe.jpeg'); }
    8.33% { background-image: url('../images/magazin/librairie1.jpg'); }
    16.66% { background-image: url('../images/magazin/librairie2.jpg'); }
    25% { background-image: url('../images/magazin/librairie3.jpg'); }
    33.33% { background-image: url('../images/magazin/magazin1.jpg'); }
    41.66% { background-image: url('../images/magazin/magazin2.jpg'); }
    50% { background-image: url('../images/magazin/magazin3.jpg'); }
    58.33% { background-image: url('../images/magazin/magazin4.jpg'); }
    66.66% { background-image: url('../images/magazin/magazin5.jpg'); }
    75% { background-image: url('../images/magazin/magazin6.jpg'); }
    83.33% { background-image: url('../images/magazin/magazin7.jpg'); }
    91.66% { background-image: url('../images/magazin/magazin8.jpg'); }
    100% { background-image: url('../images/magazin/magazin9.jpg'); }
}

.accueil-container {
    animation: bgChange 180s infinite; /* 12 images x 15s chacune */
}

/* Pour les petits écrans, on ajuste le background-position à gauche */
@media (max-width: 768px) {
    .accueil-container {
        background-position: left; /* Le fond part de la gauche */
    }
}


/* Logo à gauche */
.accueil-logo {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.accueil-logo img {
    width: 150px;
    height: auto;
    max-width: 100%;
    object-fit: contain; /* Ajuste sans déformation */
}

/* Contenu dynamique à droite */
.accueil-content {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: left;
    max-width: 40%;
}

/* Titre & Texte */
.accueil-title {
    font-size: 24px;
    font-weight: bold;
}

.accueil-text {
    font-size: 18px;
    margin-top: 10px;
}

/* 💡 RESPONSIVE DESIGN */

/* Tablettes */
@media (max-width: 1024px) {
    .accueil-content {
        max-width: 50%;
    }

    .accueil-logo img {
        width: 120px;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .accueil-container {
        background-attachment: scroll; /* Désactiver l'effet parallax sur mobile */
        height: 70vh; /* Réduire encore la hauteur des images sur mobile */
    }

    .accueil-logo {
        left: 2%;
    }

    .accueil-logo img {
        width: 100px;
    }

    .accueil-content {
        right: 5%;
        max-width: 60%;
        padding: 15px;
    }

    .accueil-title {
        font-size: 20px;
    }

    .accueil-text {
        font-size: 16px;
    }
}

/* Très petits écrans (téléphones < 480px) */
@media (max-width: 480px) {
    .accueil-container {
        height: 70vh; /* Encore plus petit sur très petits écrans */
    }

    .accueil-logo img {
        width: 80px;
    }

    .accueil-content {
        max-width: 70%;
        padding: 10px;
    }

    .accueil-title {
        font-size: 18px;
    }

    .accueil-text {
        font-size: 14px;
    }
}
/* Style actualités */
/* Conteneur principal des posts */
.posts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Style de chaque post */
.post {
    width: 550px; /* Largeur fixe sur écran large */
    max-width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
}

/* Effet au survol */
.post:hover {
    transform: scale(1.02);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

/* Iframe responsive */
.post iframe {
    width: 100%;
    min-height: 450px; /* Hauteur minimale pour éviter la coupure */
    height: 100%; /* Permet d'afficher tout le texte */
    border: none;
    border-radius: 5px;
}

/* ---------------------- */
/* 📌 RESPONSIVE DESIGN 📌 */
/* ---------------------- */

/* Tablettes et écrans moyens */
@media screen and (max-width: 1024px) {
    .posts-container {
        justify-content: space-around;
    }
    .post {
        width: 45%;
    }
}

/* Mobiles et petits écrans */
@media screen and (max-width: 768px) {
    .posts-container {
        flex-direction: column;
        align-items: center;
    }
    .post {
        width: 90%;
    }
    .post iframe {
        min-height: 450px; /* Ajustement de la hauteur sur mobile */
    }
}

/* Grands écrans */
@media screen and (min-width: 1200px) {
    .post iframe {
        min-height: 600px; /* Augmentation de la hauteur sur les grands écrans */
    }
}


/* Style page ajoutcoupdecoeur */
.file-upload {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 350px;
    align-items: center;
}

.file-upload h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.file-upload label {
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
    text-align: left;
}

.file-upload input[type="file"] {
    margin-top: 10px;
    padding: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
}

.file-upload input[type="submit"] {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.file-upload input[type="submit"]:hover {
    background-color: #555;
}

.file-upload .category {
    text-align: left;
    margin-top: 20px;
}

.file-upload .category label {
    margin-bottom: 10px;
    cursor: pointer;
}

