/* VARIABLES (CHARTE GRAPHIQUE) */
:root {
    --couleur-primaire-rouge: #FF383C;
    --couleur-primaire-bleu: #03022B;
    --couleur-secondaire-blanc: #F1F6FD;
    --couleur-secondaire-orange: #BA3411;
    --couleur-secondaire-noir: #000000;
    --font-display: 'ADLaM Display', cursive;
}

/* STYLES GLOBAUX */
* {
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

.back-to-top {
    position: fixed;  /* reste toujours visible à l'écran */
    bottom: 20px;     /* distance depuis le bas */
    left: 20px;       /* distance depuis la gauche */
    background-color: var(--couleur-secondaire-orange);
    color: var(--couleur-secondaire-noir);
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--couleur-primaire-bleu);
    color: var(--couleur-secondaire-blanc);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}
/* La classe .logo est maintenant sur le <a> parent */
.logo {
     font-family: var(--font-display);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/*Header*/
.site-header {
    background-image: url('../banniere.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 250px;
    padding: 0 5%;

    color: var(--couleur-secondaire-blanc);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid var(--couleur-secondaire-orange);
}
.site-header .logo {
    display: none;
}

/* Style pour l'image du logo dans le header */
.site-header .logo img {
    height: 40px; /* Ajuste la hauteur de ton logo */
    width: auto; /* Garde les proportions */
    display: block; /* Enlève les espaces bizarres sous l'image */
}

/* Burger */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 75px;
    height: 17px;
    background-color: var(--couleur-secondaire-blanc);
    border-radius: 2px;
}

.menu-toggle:hover .bar {
     background-color: var(--couleur-secondaire-orange);
}

/* MENU DE NAVIGATION */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    
    background-color: var(--couleur-primaire-bleu);
    border-left: 3px solid var(--couleur-secondaire-orange);
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    transform: translateX(100%); /* Caché par défaut */
    transition: transform 0.3s ease-in-out;
}

/* Affiche le menu quand il est ciblé */
.nav-menu:target {
    transform: translateX(0);
}

.nav-menu ul {
    text-align: center;
}

.nav-menu ul li {
    margin-bottom: 20px;
}

.nav-menu ul a {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--couleur-secondaire-blanc);
}

.nav-menu ul a:hover {
    color: var(--couleur-secondaire-orange);
}

/* Bouton "Fermer" (X) */
.menu-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    color: var(--couleur-secondaire-blanc);
}

.menu-close:hover {
    color: var(--couleur-primaire-rouge);
}

/* CONTENU ET FOOTER */
main {
    padding: 32px 5%;
    min-height: 500px;
    margin-left: 10%;
    margin-right: 10%;
    text-align: justify;
}

main h1 {
    color: var(--couleur-secondaire-blanc);
    font-size: 40px;
}
main p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 16px;
}

/* Footer */
.site-footer {
    background-color: var(--couleur-primaire-rouge);
    color: var(--couleur-secondaire-blanc);
    padding: 64px 5%;
    border-top: 5px solid var(--couleur-secondaire-orange);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 colonnes */
    gap: 40px;
}

/* Style pour l'image du logo dans le footer */
.footer-logo-img {
    width: 300px; /* Taille fixe pour le logo footer */
    height: 300px; /* Taille fixe */
    object-fit: contain; /* Assure que l'image rentre sans se déformer */
    margin-bottom: 16px;
    border-radius: 50%; /* Garde le cercle */
    border: 3px solid var(--couleur-primaire-rouge); /* Garde la bordure */
}

.footer-logo .copyright {
    font-size: 14px;
    color: var(--couleur-secondaire-blanc);
    margin-top: 8px;
}

/* Footer Liens */
.footer-links h3 {
    font-size: 22px;
    margin-bottom: 24px;
    text-decoration: underline;
}

.footer-links ul li {
    margin-bottom: 16px;
}

.footer-links ul a {
    font-family: var(--font-display);
    font-size: 16px;
}

.footer-links ul a:hover {
    color: var(--couleur-secondaire-noir);
}


/* */

h1 {
  font-size: 2.5rem;
  margin: 0;
}

.categorie {
  padding: 3rem 2rem;
}

.categorie h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Fiches */
.fiche {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1000px;
}

.fiche img {
  width: 300px;
  height: 530px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.texte {
  max-width: 400px;
  line-height: 1.5;
}

.fiche.inverse { /* inverse l’ordre visuel des items pour que ça soit texte puis image*/
  flex-direction: row-reverse;
}

em{
    font-style: italic;
    color: #FF383C;
}

h2, .agent{
    color: #FF383C;
}

li { /*Permet de ne pas afficher les points d'une liste*/
    list-style: none;
}

h1, h4{
    text-align: center;
}

h2:hover{
    color: #F1F6FD;
}

.agent_hover:hover{
    color: #FF383C;
}

/* RESPONSIVE Tablette */
@media (max-width: 1280px) {
    .site-header .logo { display: none; }
    .nav-menu { width: 100%; }
    .texte { width: 90%; max-width: 500px; }
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-logo-img { margin: 0 auto 16px auto; }
}