/* main.css */

/* Réinitialisation de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Gotu', sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.4;
}

/* Conteneur principal */
.sg-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
}

/* ----------------------------------
   SECTION 1 : Bandeau avec logo
---------------------------------- */
.sg-logo-banner {
  text-align: center;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-logo {
  width: 300px; 
  height: 60px;
  background: url("../images/sg-img-logo.png") no-repeat center/contain;
}

/* ----------------------------------
   SECTION 2 : Grand titre
---------------------------------- */
.sg-main-title {
  text-align: center;
  padding: 24px;
  margin-bottom: 24px;
}

.sg-title-text {
  display: inline-block;
  font-size: 1.8rem;
  max-width: 900px;
}

/* ----------------------------------
   SECTION 3 : Trois paragraphes
---------------------------------- */
.sg-intro-texts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 24px;
  margin-bottom: 24px;
}

.sg-intro-text {
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
  font-size: 1rem;
}

/* ----------------------------------
   SECTION 4 : Vidéo de marque
---------------------------------- */
.sg-video-section {
  text-align: center;
  margin-bottom: 48px;
  max-width: 100%;
  overflow: hidden;
}

.sg-video-player {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  border: none;
}

/* ----------------------------------
   SECTIONS 5, 6, 7, 8 : Paires (image + texte)
---------------------------------- */
.sg-block-image-text-1,
.sg-block-text-image-2,
.sg-mission-section,
.sg-distinction-section {
  display: flex;
  flex-wrap: wrap;
  min-height: 400px;
}

/* SECTION 5 : Bloc texte + image */
.sg-block-image-1 {
  flex: 1 1 300px;
  min-height: 300px;
  background-position: center;
  background-size: cover;
  background-image: url("../images/sg-img-1.png");
}

.sg-block-text-1 {
  flex: 1 1 300px;
     
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sg-block-text-content-1 {
  font-size: 1rem;
  text-align: left;
  line-height: 1.4;
}

/* SECTION 6 : Bloc texte + image */
.sg-block-text-2 {
  flex: 1 1 300px;
  min-height: 300px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sg-block-text-content-2 {
  font-size: 1rem;
  text-align: left;
  line-height: 1.4;
}

.sg-block-image-2 {
  flex: 1 1 300px;
  min-height: 300px;
  background-position: center;
  background-size: cover;
  background-image: url("../images/sg-img-2.png");
}

/* SECTION 7 : Bloc image + texte (Notre mission) */
.sg-mission-image {
  flex: 1 1 300px;
  min-height: 300px;
  background-position: center;
  background-size: cover;
  background-image: url("../images/sg-img-3.png");
}

.sg-mission-text {
  flex: 1 1 300px;
  min-height: 300px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sg-mission-text-content {
  font-size: 1rem;
  text-align: left;
  line-height: 1.4;
}

/* SECTION 8 : Bloc texte + image (Distinction) */
.sg-distinction-text {
  flex: 1 1 300px;
  min-height: 300px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sg-distinction-text-content {
  font-size: 1rem;
  text-align: left;
  line-height: 1.4;
}

.sg-distinction-image {
  flex: 1 1 300px;
  min-height: 300px;
  background-position: center;
  background-size: cover;
  background-image: url("../images/sg-img-4.png");
}

/* ----------------------------------
   Media Queries (Responsivité)
---------------------------------- */
@media (max-width: 992px) {
  .sg-title-text {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  /* Conteneur passe à 24px de padding */
  .sg-container {
    padding: 24px;
  }
  
  /* Blocs d'intro : garder 24px de padding et margin-bottom */
  .sg-intro-texts {
    flex-direction: column;
    align-items: center;
    padding: 24px;
    margin-bottom: 24px;
    gap: 24px;
  }
  .sg-intro-text {
    flex: 1 1 auto;
    max-width: 100%;
    font-size: 0.9rem;
  }
  
  /* Pour tous les blocs image/texte, réduire l'espacement et placer l'image en premier */
  .sg-block-image-text-1,
  .sg-block-text-image-2,
  .sg-mission-section,
  .sg-distinction-section {
    flex-direction: column;
    gap: 24px;
  }
  /* Inverser l'ordre pour les sections "texte + image" */
  .sg-block-text-image-2 {
    flex-direction: column-reverse;
  }
  .sg-distinction-section {
    flex-direction: column-reverse;
  }
  
  .sg-block-image-1, 
  .sg-block-text-2, 
  .sg-mission-image, 
  .sg-distinction-text,
  .sg-block-text-1, 
  .sg-block-image-2, 
  .sg-mission-text, 
  .sg-distinction-image {
    flex: 1 1 100%;
  }
  
  /* Réduction légère de la taille du titre */
  .sg-title-text {
    font-size: 1.3rem;
  }
  
  /* Réduction des tailles de textes sur mobile */
  .sg-intro-text,
  .sg-mission-text-content,
  .sg-distinction-text-content,
  .sg-block-text-content-1,
  .sg-block-text-content-2 {
    font-size: 0.9rem;
  }
  
  .sg-block-image-text-1,
  .sg-block-text-image-2,
  .sg-mission-text,
  .sg-distinction-text {
    margin-bottom: 48px;
  }

.sg-logo-banner {
  margin-bottom: 0px;
}

  .sg-main-title {
    margin-bottom: 0px;
  }

  .sg-video-section {
    margin-bottom: 48px;
  }

  .sg-block-text-1, .sg-block-text-2, .sg-mission-text, .sg-distinction-text {
    padding: 0px;
    min-height: auto;
  }
 
}
