/* Styles globaux */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  background-color: #fff;
  line-height: 1.6;
}

/* Conteneur principal */
.wrapper {
  max-width: 1000px;
  margin: 10px auto;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Titre principal */
h1 {
  font-family: Georgia, Times, serif;
  font-size: 2em;
  text-align: center;
  margin-top: 20px;
}

h2 {
  font-family: Georgia, Times, serif;
  font-size: 1.6em;
  text-align: left;
  margin-top: 20px;
}

h3 {
  font-family: Georgia, Times, serif;
  font-size: 1.8em;
  text-align: center;
  margin-top: 20px;
}

/* Sous-titre */
.subtitle {
  font-family: Georgia, Times, serif;
  font-size: 1.4em;
  text-align: center;
  color: grey;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 20px;
}

a {
  color: black; /* Toujours noir */
  font-weight: bold; /* En gras */
  text-decoration: none; /* Optionnel : supprime le soulignement si vous souhaitez */
}

/* Navigation */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
nav ul li { margin: 0; }
nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
nav a:hover { color: #555; }





/* Galerie en grid, deux colonnes sur tout écran */
.photo-grid2x2 {
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 15px; 
}

.photo-grid2x2 img {
  width: 100%; /* l’image remplira son conteneur, restant fluide */
  height: auto;
  max-height: 250px;
  border: 1px solid black; /* bordure noire */
  display: block; /* pour éviter l’espace blanc en dessous */
}


/* Style général de la section blog */
.blog-section {
  max-width: 900px;          /* limite la largeur globale */
  margin: 20px auto;         /* centre horizontalement */
  padding: 0 10px;            /* padding intérieur */
  box-sizing: border-box;     /* pour respecter la largeur totale */
}

/* Date */
.blog-date {
  font-weight: bold;
  font-size: 17px;
  text-align: left;  /* reste à gauche, mais peut centrer si vous voulez */
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Texte */
.blog-text {
  font-size: 17px;
  text-align: justify;
}

/* Image */
.blog-image {
  display: block;
  max-width: 100%;       /* s’adapte à la largeur du conteneur */
  height: auto;          /* conserve les proportions */
  margin: 10px auto;     /* centre horizontalement */
  border: 1px solid #ccc; /* pour visibilité, optionnel */
}

/* Ajustements responsives pour petits écrans */
@media(max-width: 600px) {
  .blog-section {
    padding: 0 5px;
  }
    .blog-date {
    font-size: 15px; /* texte un peu plus petit sur mobile */
  }
  .blog-text {
    font-size: 14px; /* aussi réduire la taille du texte si nécessaire */
  }
  /* Si besoin, réduire la taille de l'image max-width */
  .blog-image {
    max-width: 100%; /* reste fluide, déjà défini, mais on peut le préciser ici si besoin */
  }
    h1 {
    font-size: 1.5em; /*reduite la taille des titres sur smartphone */
  } 
    h2 {
    font-size: 1.2em; /*reduite la taille des titres sur smartphone */
  }  
    h3 {
    font-size: 1.3em; /*reduite la taille des titres sur smartphone */
  }
  .subtitle {
    font-size: 1em;
  }
}


.responsive-photo {
  max-width: 650px; /* ou 100%, selon votre choix */
  width: 100%; 
  height: auto;
  display: block;
  margin: 0 auto; /* pour centrer */
}
.galerie-photo {
  display: flex;
  justify-content: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
	justify-content: center;
  }

  .photo-grid img {
    width: 100%;
    height: auto;
    max-height: 300px; /* limite la hauteur, adapte la résolution */
    object-fit: cover; /* facultatif: garde l’aspect esthétique */
    border: 1px solid #ccc;
  }

  /* Responsive pour petits écrans - la grille reste cohérente */
  @media(max-width: 768px) {
    .photo-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 images côte à côte */
    }
  }


  /* Container pour centrer le tableau */
  .table-container {
    width: 100%;
    overflow-x: auto; /* permet de faire défiler si le tableau est trop large */
    margin: 20px 0;
  }

  /* Style du tableau */
  table {
    width: 100%; /* occupe toute la largeur du container, s'adapte à l'écran */
    max-width: 800px; /* ou une autre valeur maximale souhaitée */
    border-collapse: collapse;
    margin: 0 auto; /* centrage horizontal */
  }

  th, td {
    border: 1px solid #000;
    padding: 8px;
    font-size: 14px;
    text-align: center;
  }

  th {
    background-color: #f2f2f2;
    font-weight: bold;
  }

  /* Ajustement pour les très petits écrans */
  @media(max-width: 600px) {
    table {
      font-size: 13px; /* réduit la taille de police pour petits écrans */
    }
    td, th {
      padding: 6px;
    }
  }

 
  
  /* Style pour le footer global */
.mon-footer {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
  /* autres styles si besoin */
}

/* Style pour le texte du footer */
.footer-text {
  color: #646464;
  font-size: 14px; /* ajustez la taille selon votre goût */
  margin-bottom: 10px;
}

/* Styles pour les icônes sociales (si besoin aussi) */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.social-icons img {
  width: 25px;
  height: auto;
}


  .galerie-fancybox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centre globalement la galerie */
    gap: 15px; /* espace entre chaque lien */
    margin-top: 20px;
  }
  
  .galerie-fancybox a {
    display: flex;
    flex-direction: column; /* pour que l'image et le texte soient en colonne */
    align-items: center;    /* centre horizontalement */
    justify-content: center; /* centre verticalement si besoin */
    text-align: center;      /* pour le texte éventuellement */
    flex: 1 1 calc(25% - 15px); /* 4 par ligne avec gap, ou 23% pour plus d'espace */
  }
  
  .galerie-fancybox a img {
    max-width: 100%;
    max-height: 200px;
	height: auto;
    display: block;
    border: 1px solid #333;
    cursor: pointer;
  }
  
  /* Pour les petits écrans, 2 en ligne */
  @media (max-width: 768px) {
    .galerie-fancybox a {
      flex: 1 1 calc(50% - 15px);
    }
  }



