@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%);
    }
}
 h1{
    font-family: Montserrat, sans-serif;
    font-size:2.3rem; 
    font-weight: 800;
    color:var(--color-text);
    text-shadow: 3px 3px 8px #00000042;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align:center;   
    margin: 30px 0 35px;
}
/* Style général pour la grille */
.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
    gap: 20px; /* Espacement entre les éléments */
    padding: 20px;
    max-width: 1200px;
    margin: auto; /* Centrer la grille */
  }
  
  /* Style pour chaque item de la grille */
  .link-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }
  
  /* Image à l'intérieur de chaque item */
  .link-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
  }
  
  /* Liens dans chaque item */
  .link-item a {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
  }
  
  .link-item a:hover {
    color: #0056b3;
  }
  
  /* Description sous chaque lien */
  .link-item p {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
  }
  
  /* Animation au survol */
  .link-item:hover {
    transform: scale(1.05); /* Effet de zoom au survol */
  }
  .up_page{
    display: flex;
    align-items: end;
    justify-content: end;
    margin-right: 20px;
    
}
.up_page i{
    font-size: 2.5rem;
    color: var(--color-text);
}
 /* 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;
}
/* 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: 1rem;
    }
    .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.5rem;
    }

    .welcome-section h2 {
        font-size: 1rem;
    }
    .welcome-section p {
        font-size: 0.7rem;
    
    }
    .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.85rem; /* Réduit davantage la taille du texte */
    }

    .footer-links a i {
        font-size: 0.9rem; /* Réduit davantage la taille des icônes */
    }
}

@media (max-width: 480px) {
    .welcome-section h1 {
        font-size: 1.8rem;
    }

    .welcome-section h2 {
        font-size: 1.3rem;
    }

    .welcome-section p {
        font-size: 0.9rem;
    }
    .footer-links a {
        font-size: 0.8rem; /* Réduit encore la taille du texte */
    }

    .footer-links a i {
        font-size: 0.8rem; /* Réduit encore la taille des icônes */
    }
} 