@charset "utf-8";
@font-face{
 font-family: Montserrat, sans-serif;
 src: url(./fonts/Montserrat-Italic-VariableFont_wght.ttf);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0 auto;
    min-height: 100vh;
    background: #8b4513;
    color: #f5f5f5;;
    font-family: Montserrat, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #556b2f;
}
.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: #ffd700;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px;
}

.header-right nav li a:hover{
    background:linear-gradient(rgb(101, 107, 99), rgb(210, 212, 65));
    color: #f5f5f5;
}
.nav a:active/*apparence du lien actif*/
{ 
    background-color: #FFEB3B;

}
.nav a:visited/*apparence du lien visité*/
{ 
    color: #FF5722;
}
#caroussel{
     width: 100%;
    overflow: hidden;
    padding-top: 15px;
    padding-left: 4px;
    border-radius: 2px solid #333;
    white-space: nowrap; /* Empêche le saut à la ligne des images */
}
.images{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem; /* Espacement entre les images */
    animation: scrollImages 440s linear infinite;
    /* Animation plus rapide pour des écrans plus petits */
}
.images img{
   width: 10vw; /* Utilisation de vw pour rendre les images fluides */
   object-fit: cover;
   height: auto;
   border-radius: 5px;
}
/* Keyframes pour l'animation */
@keyframes scrollImages {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% * 22));
    }
}
h1{
    display: flex;
    justify-content: center;
   font-family: Montserrat, sans-serif;
   font-size:2.3rem; 
   font-weight: 800;
   color: #f5f5f5;
   text-shadow: 3px 3px 8px #00000042;
   margin-top: 15px;
   /*margin-bottom: 15px;*/
   text-align:center;   
   /*margin: 30px 0 35px;*/
}

.container{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-top: 20px;
    /*font-weight: normal;*/
}
/* style pour le titre principal*/

form{
    width: 900px;
    background-color:#556b2f;
    border: solid 5px rgb(210, 212, 65); border-radius: 10px;
}
form >*{
    margin: 10px;
    border-radius: 5px;
}
label, textarea{
    padding:5px;
    color:#f5f5f5;
    font-size: 1.2rem;
}
input{
    color: #000;;
}
textarea{height: 100px;
 resize: none; 
 color: #000;  
}

.choix{ padding: 0 30px; border: solid 3px rgb(210, 212, 65);}
.choix *{margin: 10px 0;}
fieldset.boutons{
    padding: 0;
    border: none;
}
input.effacer, input.envoyer{
    width: 40%;
    padding: 10px;
    margin: 0 20px 40px 0;
    background-color:#556b2f;
    color: #f5f5f5;
    border: solid 3px rgb(210, 212, 65);
}
label.nom{grid-area: txtnom;}
input.nom{grid-area: nom;}
label.prenom{grid-area: txtprenom;}
input.prenom{grid-area: prenom;}
label.tel{grid-area: txttel;}
input.tel{grid-area: tel;}
label.email{grid-area: txtemail;}
fieldset.choix{grid-area: choix;}
label.msg{grid-area: txtmsg;}
textarea.msg{grid-area: msg;}
fieldset.boutons{grid-area: boutons;}
form {
    display: grid; gap: 2%;
    grid: "txtnom nom choix"
          "txtprenom prenom choix"
          "txttel tel choix"
          "txtemail email choix"
          "txtmsg msg msg"
          ".boutons boutons"
          / 1fr 3fr 2fr;
    }
    label{align-self: center;}
    /* Footer */
.footer {
    background-color: #556b2f; /* Couleur attrayante */
    color: #ffffff;
    padding: 30px 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: #ffffff;
    transition: color 0.3s; 
    font-size: 1rem;
    margin-right: 10px; 
}
/* Style des titres */
.footer h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffd700; /* Couleur dorée */
}
.social-icons a {
    margin-right: 10px;
    font-size: 1.5rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

/* 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: #ffffff;
    transition: color 0.3s; 
    font-size: 1rem;

}
.footer-links a i {
    margin-right: 10px; /* Espace entre l'icône et le texte */
    font-size: 1.2rem; /* Taille des icônes */
    color: #ffd700; /* Couleur des icônes */
}
.footer-links a:hover {
    color: #ffd700; /* Couleur dorée au survol */
}
.footer-links a i:hover {
    color: #ffffff; /* Change la couleur de l'icône au survol */
}

/* Icônes des réseaux sociaux */
.social-icons a {
    margin-right: 10px;
    font-size: 1.5rem;
    color: #ffffff;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ffd700;
}

/* Bas de page */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #dddddd;
}
 /* 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;
    }
     h1 {
        font-size: 1.8em;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .container form .boutons {
        flex-direction: column;
    }

    .container form .boutons input {
        margin-bottom: 10px;
        width: 100%;
    }
    .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) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }

    header img#logo {
        max-width: 110px;
        height: auto;
        margin-bottom: 10px;
    }
    header nav ul {
        flex-direction: column;
        gap: 10px;
    }
    h1 {
        font-size: 1.5em;
    }
     /* Formulaire */
     .container {
        width: 95%;
        padding: 10px;
        margin: 0 auto;
    }
    .container form label {
        font-size: 0.9em; /* Réduire légèrement la taille des étiquettes */
    }

    .container form input,
    .container form textarea {
        font-size: 0.9em; /* Ajuster la taille du texte */
        padding: 8px; /* Réduire les paddings internes */
        width: 100%; /* Occuper toute la largeur disponible */
    }

    .container form fieldset {
        margin-bottom: 10px; /* Réduire l'espacement entre les sections */
    }
    .container form .boutons {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .container form .boutons input {
        padding: 10px;
        width: 100%;
        margin: 5px;
    
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
        }
        .footer-infos, 
        .footer-social, 
        .footer-links {
            flex: 1 1 100%;
            margin: 5px 0;
        }
    .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 */
    }
}   