/* ===== RESET STRICT POUR ÉVITER LES ESPACES BLANCS ===== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;        /* Supprime tout débordement horizontal */
  touch-action: pan-y;       /* Bloque le scroll horizontal sur mobile */
}

/* ATTENTION : main ne doit PAS avoir de padding */
main {
  margin: 0;
  padding: 0;
}

/* ===== HERO IMAGE ===== */
.hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;                 /* Supprime les espaces fantômes */
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7); /* arrière-plan noir légèrement sombre */
}

.hero img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  object-fit: cover;               /* remplit le conteneur sur PC */
  filter: brightness(0.85);        /* rend l'image légèrement plus sombre */
  max-height: 500px;               /* optimisation taille pour ne pas être trop grande */
}

/* ===== MOBILE OPTIMISATION ===== */
@media (max-width: 900px) {
  .hero img {
    width: 100%;
    height: auto;
    object-fit: contain;            /* affiche toute l'image sans couper sur mobile */
    max-height: 300px;              /* réduit un peu la hauteur sur mobile */
  }
}



/* ===== PRESENTATION BLOCK ===== */
.presentation-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000; /* fond noir */
    padding: 40px 60px;
    box-sizing: border-box;
    width: 100%;
    gap: 40px;
}

/* IMAGE A GAUCHE */
.image-wrapper {
    flex: 1 1 50%;
    max-width: 600px;
    min-width: 300px;
    position: relative;
}
.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.85); /* assombrit légèrement l'image */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(187, 187, 187, 0.3);
}

/* LOGO + TEXTE A DROITE */
.text-wrapper {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center; /* centre le logo et le texte horizontalement */
    color: #BBBBBB;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    line-height: 1.6;
    text-align: center;
}

.text-wrapper .company-logo {
    width: 150px;       /* taille correcte du logo */
    height: auto;
    margin-bottom: 20px; /* espace entre logo et texte */
}

.text-wrapper p {
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    .presentation-block {
        flex-direction: column;
        padding: 20px 20px;
    }
    .image-wrapper, .text-wrapper {
        width: 100%;
        max-width: 100%;
    }
    .text-wrapper {
        text-align: center;
        margin-top: 20px;
    }
    .text-wrapper .company-logo {
        width: 120px;
        margin-bottom: 15px;
    }
}
@media screen and (max-width: 768px) {
    .text-wrapper .company-logo {
        width: 100px;
        margin-bottom: 10px;
    }
    .presentation-block {
        padding: 15px 15px;
        gap: 20px;
    }
}



/* ===== SECTOR ACTIVITY ===== */
.sector-activity {
  background-color: #000; /* fond noir */
  padding: 60px 20px;
  text-align: center;
}

.sector-activity h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 32px;
  color: #BBBBBB;
  margin-bottom: 40px;
}

/* Grille des 4 encadrements */
.sector-grid {
  display: flex;
  justify-content: center; /* recentrage propre */
  flex-wrap: wrap;
  gap: 14px; /* ESPACEMENT RÉDUIT */
}

/* Chaque carte */
.sector-card {
  background-color: #111;
  border-radius: 8px;
  flex: 1 1 calc(25% - 14px);
  max-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px; /* légèrement réduit */
  box-sizing: border-box;
}

/* Image de chaque secteur */
.sector-card img {
  width: 100%;
  height: 160px; /* HAUTEUR FIXE POUR TOUTES */
  object-fit: cover;
  border-radius: 5px;
  filter: brightness(0.85);
  margin-bottom: 12px;
}

/* Bloc info sous l'image */
.sector-info {
  width: 100%;
  background-color: #222;
  padding: 12px 10px;
  border-radius: 5px;
  box-sizing: border-box;
  min-height: 120px; /* HAUTEUR UNIFORME */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Titre en majuscules */
.sector-title {
  color: #BBBBBB;
  font-weight: bold;
  font-size: 14px;
  margin: 6px 0;
  text-transform: uppercase;
}

/* Sous-titre */
.sector-subtitle {
  color: #BBBBBB;
  font-size: 12px;
  margin: 4px 0 10px 0;
}

/* Bouton */
.sector-btn {
  background-color: #BBBBBB;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  align-self: center;
}

.sector-btn:hover {
  background-color: #999;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
  .sector-card {
    flex: 1 1 calc(50% - 14px);
    max-width: 45%;
  }
}

@media screen and (max-width: 768px) {
  .sector-grid {
    flex-direction: column;
    align-items: center;
  }

  .sector-card {
    flex: 1 1 100%;
    max-width: 90%;
    margin-bottom: 16px;
  }
}



/* ===== HEAD OFFICE ROLE & MISSION ===== */
.head-office-role {
  background-color: #000;
  padding: 80px 20px;
  box-sizing: border-box;
}

.head-office-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.head-office-container h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: #BBBBBB;
  margin-bottom: 40px;
}

/* Liste des missions */
.mission-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.mission-list li {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #BBBBBB;
  margin-bottom: 15px;
  letter-spacing: 0.3px;
}

/* Phrase de conclusion */
.mission-conclusion {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #999999;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
  .head-office-container h2 {
    font-size: 26px;
  }

  .mission-list li {
    font-size: 15px;
  }

  .mission-conclusion {
    font-size: 13px;
  }
}
