@charset "utf-8";
@font-face{
 font-family:Montserrat, sans-serif;
 src: url(./fonts/Montserrat-Italic-VariableFont_wght.ttf);
}
:root {
    --color-primary: #556b2f;
    --color-secondary: #8b4513;
    --color-accent: #ffd700;
    --color-text: #f5f5f5;
    --color-hover: #333;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--color-secondary);
    color: var(--color-text);
    font-family: Montserrat, sans-serif;
}

header {
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--color-primary);
}
.header-left img {
    width: 290px;
    height: 195px;
    padding: 15px 0;
    border-radius: 7px;
}

.header-right{
    display: flex;
    justify-content: space-between;
    align-items: right;
    
}
/*menu de navigation*/
.header-right nav{
    display:flex;
    justify-content: space-between;
    list-style: none;
    padding:0;
    /*background:#556b2f ;*/
}
/*details pour le menu de navigation*/
 .header-right nav ul{
   display:flex;
   justify-content: space-between;
   align-items: center;
   list-style: none;
   padding: 0 5px;

   }

   
.header-right nav ul li{
        margin-right: 20px;
}
.header-right nav li a{
    color: var(--color-accent);
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px;
}

.header-right nav li a:hover{
    color: var(--color-hover);
}
.nav a:active/*apparence du lien actif*/
{ 
    background-color: var(--color-accent) ;

}
.nav a:visited/*apparence du lien visité*/
{ 
    color: var(--color-secondary);
}
#caroussel {
    overflow: hidden;
    padding: 0;
    white-space: nowrap;
    margin: 1rem auto;
}

.images {
    display: flex;
    gap: 1rem;
    animation: scrollImages 60s linear infinite;
}

.images img {
    width: 10%;
    border-radius: 5px;
}

@keyframes scrollImages {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
main {
    flex: 1; /* Le contenu principal prend l'espace disponible */
    padding: 60px;
    text-align: justify;
}
/* Section d'accueil */
.welcome-section {
    background-color: var(--color-text);
    border-radius: 5px;
    color: #000;
    padding: 40px 20px;
    text-align: center;
}

.welcome-container {
    max-width: 1200px;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.welcome-section h1 {
    font-size: 2.5em;
    font-family: Montserrat, sans-serif;
    text-align: center;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.welcome-section h2 {
    font-size: 1.8em;
    color: var(--color-secondary);
    margin-top: 30px;
    margin-bottom: 10px;
}
h2 i {
    font-size: 1.5em;
    color: var(--color-secondary); /* Même couleur que le titre */
    margin-right: 10px; /* Espace entre l'icône et le texte */
    vertical-align: middle; /* Aligne l'icône avec le texte */
}
.welcome-section p {
    font-size: 1em;
    font-family: Montserrat, sans-serif;
    line-height: 1.6;
    margin-bottom: 15px;
}

.welcome-section .link-highlight {
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: underline;
}

.welcome-section .link-highlight:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Footer */
.footer {
    background-color: var(--color-primary); /* Couleur attrayante */
    color: var(--color-text);
    padding: 20px 0;
    margin-top: auto; /* Place le footer en bas de la page */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap; /* Rendre le footer responsive */
    max-width: 1200px;
   margin: auto;
    padding: 0 20px;
}

/* Sections du footer */
.footer-infos, .footer-social, .footer-links {
    flex: 1 1 300px; /* Adapte la taille des colonnes */
    margin: 20 20px;
    padding:10px;
}
.footer-infos a{
    text-decoration: none;
    color:  var(--color-text);
    transition: color 0.3s; 
    font-size: 1em;
    margin-right: 10px; 
}
.footer-infos a:hover{
    color: var(--color-accent);
}
/* Style des titres */
.footer h5 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--color-accent); /* Couleur dorée */
}

/* Liens du footer */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px; display: flex;
    align-items: center; /* Aligne le texte et l'icône sur la même ligne */

}

.footer-links a {
    text-decoration: none;
    color:var(--color-text);
    transition: color 0.3s; 
    font-size: 1em;

}
.footer-links a i {
    margin-right: 10px; /* Espace entre l'icône et le texte */
    font-size: 1.2em; /* Taille des icônes */
    color:var(--color-accent); /* Couleur des icônes */
}
.footer-links a:hover {
    color:var(--color-accent); /* Couleur dorée au survol */
}
.footer-links a i:hover {
    color: var(--color-text); /* Change la couleur de l'icône au survol */
}

/* Icônes des réseaux sociaux */
.social-icons a {
    margin-right: 10px;
    font-size: 1.5em;
    color:var(--color-text);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--color-accent);
}

/* Bas de page */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #dddddd;
}
/* Styles de la fenêtre modale */
.modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    padding: 1rem;
    background: var(--color-text);
    color: var(--color-secondary);
    border-radius: 10px 10px 0 0;
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.modal-content {
    background-color:var(--color-text);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.modal h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.modal p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #333;
}

.modal{
    display: flex;
    justify-content: space-between;
}

.modal buttons button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0.5rem;
}

#acceptBtn {
    background-color:#008000;
    color:var(--color-text);
    width: 150px;
}

 #refuseBtn {
    background-color: #ff0000;
    color:var(--color-text);
    width:150px;
}
/* Responsivité */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    header img {
        width: 150px;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        padding: 5px;
        font-size: 1em;
    }
    .images img {
        width: 15vw; /* Images un peu plus grandes sur tablette */
    }
    #caroussel {
        padding-left: 0; /* Ajustement du padding sur mobiles */
    }
    main {
        padding: 10px;
    }
    .welcome-section h1 {
        font-size: 1.5em;
    }

    .welcome-section h2 {
        font-size: 1em;
    }
    .welcome-section p {
        font-size: 0.7em;
    
    }
    .footer-links {
        text-align: center; /* Centre les liens pour les petits écrans */
    }

    .footer-links li {
        justify-content: center; /* Centre chaque lien */
    }

    .footer-links a {
        font-size: 0.85em; /* Réduit davantage la taille du texte */
    }

    .footer-links a i {
        font-size: 0.9em; /* Réduit davantage la taille des icônes */
    }
}

@media (max-width: 480px) {
    .welcome-section h1 {
        font-size: 1.8em;
    }

    .welcome-section h2 {
        font-size: 1.3em;
    }

    .welcome-section p {
        font-size: 0.9em;
    }
    .footer-links a {
        font-size: 0.8em; /* Réduit encore la taille du texte */
    }

    .footer-links a i {
        font-size: 0.8em; /* Réduit encore la taille des icônes */
    }
}