* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Bouton accueil*/
.styled {
  border: 0;
  line-height: 2.5;
  padding: 0 20px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  border-radius: 10px;
  background-color: rgba(0, 112, 241, 1);
  background-image: linear-gradient(
    to top left,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0)
    );
  box-shadow:
    inset 2px 2px 3px rgba(255, 255, 255, 0.6),
    inset -2px -2px 3px rgba(0, 0, 0, 0.6);
    position: absolute; /* Position absolue pour placer en haut à gauche */
    top: 15px;
    left: 15px; /* Aligné sur la gauche de la page */
}

.styled:hover {
  background-color: rgba(0, 83, 178, 1);
  
}

.styled:active {
  box-shadow:
    inset -2px -2px 3px rgba(255, 255, 255, 0.6),
    inset 2px 2px 3px rgba(0, 0, 0, 0.6);
}

/*Fin bouton accuei*/

.header {
    background-color: #8aabb2;
    color: black;
    text-align: center;
    padding: 10px;
    margin-top: 40px; /* Ajout d'espace pour le bouton au-dessus */
}

/*  Texte et vidéo container  */


h1 {
           text-align: center;
           color : #000000;
           font-family:lucida calligraphy, serif;
           display: block;
           font-size: clamp(1.2rem, 5vw, 2.5rem);  
           /*font-size: 4em;*/
           margin-top: 0.2em;
           margin-bottom: 0.2em;
           margin-left: 0;
           margin-right: 0;
            font-weight: bold;
}

 h2 {
           text-align: center;
           color : #000000;
           font-family:lucida calligraphy, serif;
           display: block;
           font-size: clamp(1.2rem, 4vw, 2rem);  
           /*font-size: 4em;*/
           margin-top: 0.2em;
           margin-bottom: 0.2em;
           margin-left: 0;
           margin-right: 0;
           font-weight: bold;
}

 h4 { 
          display: block;
          font-size: 1em;
          margin-top: 0.67em;
          margin-bottom: 0.67em;
          margin-left: 0;
          margin-right: 0;
          font-weight: normal;
}

@media only screen and (max-width: 320px) {
h4 {
font-size: 0.6em;
}
}


.row  {
	      font-family: sans-serif;
	      font-size: 1.2em;
	      color: #333;
  	      background-color: #8aabb2;
  	      text-align: justify;
  	      border-radius: 30px;
        display: flex;
        width: 87%;
      }
    
.col  {
        flex: 1; 
        padding: 1em;
      }

.video-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      width: 100%;
      max-width: 640px;
    }

    .video-wrapper {
      position: relative;
      width: 100%;
      padding-bottom: 54%; /* 640x360 aspect ratio = 2:1 = 50% */
      height: 0;
    }

    .video-wrapper iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
    }

 .container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Texte et vidéo container fin */

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    width: 90%;
    max-width: 1200px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.image-gallery img {
    width: 45%; /* Deux images par ligne */
    margin: 2.5%; /* Espacement entre les images */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Textes en colonnes */

.containertxt {
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    justify-content: space-between;
    padding: 20px;
}

.column {
    background-color: #8aabb2; /* Couleur des colonnes */
    padding: 15px;
    margin: 10px;
    flex: 1; /* Permet aux colonnes de prendre l'espace disponible */
    min-width: 200px; /* Largeur minimale des colonnes réduite */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre pour un effet de profondeur */
    word-wrap: break-word; /* S'assure que le texte s'enroule correctement */
}

p {
    font-size: 1em; /* Taille de police relative */
}

/* fin texte en colonnes */


.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px;
}

 
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Styles */
@media (max-width: 600px) {
    .image-gallery img {
        width: 90%; /* Une seule image par ligne */
        margin: 5%; /* Espacement entre les images */
    }
}

@media (max-width: 168px) {
    .containertxt {
        flex-direction: column; /* Colonne unique sur écrans étroits */
    }
}

       


 
