/* ——————————————
   Box-sizing global pour éviter tout débordement
   —————————————— */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ——————————————
   Styles globaux
   —————————————— */
body {
  font-family: sans-serif;
  margin: 0 auto;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  max-width: 1200px;
}

header {
  background-color: #333;
  color: #fff;
  padding: 1em 0;
  text-align: center;
}

nav {
  background-color: #444;
  color: #fff;
  padding: 0.5em 0;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 1em;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

main {
  padding: 20px;
}

section {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* H2 généraux des autres sections */
section h2 {
  color: #333;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

/* ——————————————
   Section “Hero” full-width & centré
   —————————————— */
section#hero {
  /* Full-bleed centering technique */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;

  /* Image de fond */
  background-image: url('images/consultant-geo.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  /* Ratio 16:9 pour conserver le paysage */
  aspect-ratio: 16 / 9;

  /* Centrage du contenu textuel */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;

  /* Espacements et style */
  padding: 50px 20px;
  border-radius: 0;      /* En full-bleed, on retire les coins arrondis si besoin */
  margin-bottom: 20px;
}

/* Titres dans le Hero : blanc et taille équivalente */
section#hero h1,
section#hero h2 {
  font-size: 2.5em;
  border-bottom: none;   /* supprime la bordure inférieure */
  padding-bottom: 0;      /* remet à zéro tout padding éventuel */
  margin: 0.5em 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #fff;
}

/* ——————————————
   Section “Qui”
   —————————————— */
section#qui img {
  max-width: 150px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1em;
}

section#qui p,
section#qui h3 {
  text-align: center;
}

/* ——————————————
   Section “Activité”
   —————————————— */
section#activite ul {
  list-style-type: disc;
  margin-left: 20px;
}

/* ——————————————
   Section “Galerie”
   —————————————— */
section#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

section#gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ——————————————
   Section “Contact”
   —————————————— */
section#contact p {
  margin-bottom: 1em;
}

section#contact a {
  color: #0000FF;
  text-decoration: none;
}

section#contact a:hover {
  text-decoration: underline;
}

/* ——————————————
   Pied de page
   —————————————— */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1em 0;
  position: sticky;
  bottom: 0;
  width: 100%;
}

/* ——————————————
   Ajustements responsive
   —————————————— */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.5em 0;
  }

  section#gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  /* Conserver le ratio 16/9 sur mobile */
  section#hero {
    aspect-ratio: 16 / 9;
  }
}
.contact-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
    margin-top: 2em;
    margin-bottom: 2em;
    flex-direction: row-reverse; /* image à droite sur desktop */
}

.contact-block img {
    width: 140px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.contact-text {
    flex: 1 1 220px;
    min-width: 220px;
}

/* Responsive : image au-dessus en mobile */
@media (max-width: 900px) {
    .contact-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-block img {
        margin-bottom: 1em;
        width: 80vw;
        max-width: 220px;
    }
    .contact-text {
        min-width: 0;
    }
}
/* ——————————————
   Styles pour les tableaux d’abréviations IA générative
   —————————————— */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 40px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th, td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
}

th {
  background-color: #3498db;
  color: white;
}

caption {
  caption-side: top;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #34495e;
}

/* Responsive : police et marges ajustées pour mobile */
@media screen and (max-width: 600px) {
  table {
    font-size: 14px;
  }

  th, td {
    padding: 8px;
  }

  body {
    margin: 10px;
  }
}