:root {
  --bleu-sineo: rgb(23, 67, 140);
  --vert-sineo: rgb(195, 215, 20);
  --bleu-2: rgb(16, 49, 101);
  --bleu-3: rgba(16, 49, 101, 0.5);
  --jaune: rgb(255, 222, 89);
  --gris-test: #525252;
  --color-transparent: transparent;
  --blanc: white;
  --texte-intro: var(--bleu-sineo);
  --underline-intro: yellow;
}

/* ─── Reset & base ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;900&display=swap');


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Geneva, Verdana, sans-serif;
  font-size: 1rem;
}

/* ─── Header ────────────────────────────────────────────── */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bleu-sineo);
  color: var(--vert-sineo);
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  width: clamp(120px, 20vw, 250px);
  margin: 0.625rem 1.875rem;
}

.underline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.875rem);
  align-items: center;
}

.underline-nav a {
  position: relative;
  color: var(--blanc);
  text-decoration: none;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  padding: 0.625rem 0;
  transition: 0.5s ease;
}

.underline-nav a:hover {
  color: var(--vert-sineo);
}

.underline-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--vert-sineo);
  transition: width 0.3s ease;
}

.underline-nav a:hover::after {
  width: 100%;
}

/* ─── Section introduction ──────────────────────────────── */
section.introduction-entreprise {
  min-height: unset;
  height: auto;
  align-items: center;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  background-color: var(--bleu-2);
  background-size: cover;
  background-position: center;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
  padding: 0;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
}

/* Triangles décoratifs par-dessus la photo */
section.introduction-entreprise::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(16,49,101,0.88) 42%, transparent 42%),
    linear-gradient(135deg, transparent 55%, rgba(195,215,20,0.75) 55%, rgba(195,215,20,0.75) 68%, transparent 68%);
  z-index: 1;
  pointer-events: none;
}

/* Tout le contenu passe par-dessus les triangles */
section.introduction-entreprise > * {
  position: relative;
  z-index: 2;
}

.intro-content {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  min-height: 320px;
}

.center {
  text-align: center;
}
 
.hl {
  display: inline;
  font-size: 38px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.65;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 2px 10px;
  background: #0E1C4E;
  color: #ffffff;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.45);
}
 
.hl span {
  color: var(--vert-sineo);
}


.intro-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ─── Blocs 3 Colonnes Fix Propre ──────────────────────── */

section.notre-mission,
section.notre-expertise,
section.notre-engagement{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  min-height: 400px;
  position: relative;
  z-index: 1;
}

.texte-notre-mission,
.texte-notre-expertise,
.texte-notre-engagement {
  width: 50%;
  min-width: min(50%, 300px);
  text-align: left;
  margin: 0;
  padding: 2.5rem 1.25rem;
  color: var(--bleu-sineo);
  letter-spacing: 0.1em;
  font-size: clamp(1rem, 2vw, 1.5625rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* Effet de surlignage vert SINEO sous le titre */
.titre-section .surlignage {
  background: linear-gradient(0deg, var(--vert-sineo) 43%, var(--color-transparent) 40%);
  padding: 0 0.125rem;
}

.image-notre-mission,
.image-notre-expertise,
.image-notre-engagement {
  width: 50%;
  min-width: min(50%, 300px);
  margin: 0;
  display: flex;
  align-items: center;
}

.image-notre-mission img,
.image-notre-expertise img,
.image-notre-engagement img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}


/* ─── Section valeurs ───────────────────────────────── */
section.valeurs {
  background-color: var(--bleu-2);
  min-height: 20vh;
  padding: 2.5rem;
  margin: 0;
  display: block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

section.valeurs::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--bleu-sineo) 35%, transparent 35%),
    linear-gradient(225deg, var(--jaune) 25%, transparent 25%),
    linear-gradient(45deg, var(--vert-sineo) 25%, transparent 25%),
    linear-gradient(315deg, var(--bleu-2) 30%, transparent 30%);
  z-index: 0;
  pointer-events: none;
}

section.valeurs > * {
  position: relative;
  z-index: 2;
}

section.valeurs > * {
  position: relative;
  z-index: 1;
}

.hl-valeurs {
  display: inline;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.65;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 2px 5px;
  background: #0E1C4E;
  color: #ffffff;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.45);
}

.hl-valeurs span {
  color: var(--vert-sineo);
}

div.valeurs-content {
  margin-bottom: 1rem;
}

span.valeurs {
  background: linear-gradient(
    0deg,
    var(--bleu-sineo) 43%,
    var(--color-transparent) 40%
  );
  padding: 0 0.125rem;
}

.piliers {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.pilier {
    flex: 1 1 25%;
    max-width: 280px;
    min-width: 220px;
    padding: 2rem 1.5rem;
    background: rgba(23, 67, 140, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    border-top: 4px solid var(--vert-sineo);
    border-bottom: 1px solid rgba(195, 215, 20, 0.3);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pilier:hover {
    transform: translateY(-6px);
    background: rgba(23, 67, 140, 0.6);
    box-shadow: 5px 12px 0px rgba(0, 0, 0, 0.35);
}

.titre-pilier {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--vert-sineo);
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

span.titre-pilier {
    background: var(--vert-sineo);
    padding: 0 0.125rem;
    color: var(--bleu-sineo)
}

.texte-pilier p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.85rem, 1vw, 1rem);
    line-height: 1.7;
    letter-spacing: 0.03em;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .piliers {
        flex-direction: column;
    }
}

/* ─── Section équipe ───────────────────────────────── */
section.equipe {
  display: block;
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}

div.equipe-titre {
  min-width: min(50%, 300px);
  text-align: center;
  margin: 0;
  padding: 1.25rem;
  color: var(--bleu-sineo);
  letter-spacing: 0.1em;
  font-size: clamp(1rem, 2vw, 1.5625rem);
}

.equipe-titre p {
  text-align: left;
  margin: 2rem;
  line-height: 1.8; /* espace entre les lignes */
}

span.texte-equipe {
  background: linear-gradient(
    0deg,
    var(--vert-sineo) 43%,
    var(--color-transparent) 40%
  );
  padding: 0 0.125rem;
}

/* ─────────────────────────────
   SECTION ÉQUIPE
───────────────────────────── */

.equipe-grid{
    max-width:1400px;
    margin:3rem auto;
    padding:0 2rem;
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:2rem;
}

.membre {
  width: 260px; /* Force une largeur identique */
  height: 360px; /* Force une hauteur identique */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  transition: transform 0.2s ease; /* Remet l'animation au survol */
}

.membre:hover{
    transform:translateY(-8px);
}

.membre::before{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(16,49,101,.85);
}

.photo-membre {
  width: 220px;       /* Augmenté pour occuper la quasi-totalité des 260px de la carte */
  height: 220px;      /* Conserve un ratio carré parfait */
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--vert-sineo);
  position: relative;
  z-index: 2;
  margin-top: 10px;   /* Ajoute un léger espace avec le haut de la carte */
}

.infos-membre {
  position: relative;
  z-index: 2;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 120px; 
}

.membre h3 {
  margin: 15px 10px 5px;
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
}

.membre p {
  margin: 0;
  color: var(--vert-sineo);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.trombinoscope {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ─── Trombinoscope simple ───────────────────────── */

.trombinoscope {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.trombinoscope img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.trombinoscope img:hover {
  transform: scale(1.02);
}

/* Mobile */
@media (max-width: 768px) {
  .trombinoscope {
    padding: 0 1rem;
  }

  .trombinoscope img {
    max-width: 100%;
    border-radius: 6px;
  }
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  color: rgba(255, 255, 255, 0.5);
  padding: 3.75rem 0;
  text-align: center;
  background-color: rgb(23, 67, 140);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

footer a:hover {
  color: var(--vert-sineo);
}

/* ─── Media queries ─────────────────────────────────────── */

/* Tablettes (≤ 1024px) */
@media (max-width: 1024px) {
  section.entreprise {
    flex-direction: column;
  }

  div.texte-entreprise,
  div.image-entreprise{
    width: 100%;
    min-width: unset;
  }

  img.image-entreprise {
    height: 300px;
    object-fit: cover;
  }

  #lien-entreprise {
    margin-left: 1rem;
  }

  #map {
    height: clamp(250px, 35vh, 350px);
  }
}

/* ─── Media queries ─────────────────────────────────────── */

/* Tablettes (≤ 1024px) */
@media (max-width: 1024px) {
  section.notre-mission,
  section.notre-expertise,
  section.notre-engagement {
    flex-direction: column;
  }

  div.texte-notre-mission,
  div.image-notre-mission,
  div.texte-notre-expertise,
  div.image-notre-expertise,
  div.texte-notre-engagement,
  div.image-notre-engagement {
    width: 100%;
    min-width: unset;
  }

  img.image-notre-mission,
  img.image-notre-expertise,
  img.image-notre-engagement {
    height: 300px;
    object-fit: cover;
  }
}

/* ─── Tablette portrait (≤ 768px) ──────────────────────── */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
  }

  header img {
    margin: 0.5rem auto;
    width: clamp(100px, 40vw, 180px);
  }

  .underline-nav {
    justify-content: center;
    gap: 0.6rem;
    padding-bottom: 0.5rem;
  }

  .underline-nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0;
  }

  section.introduction-entreprise {
    flex-direction: column;
  }

  .intro-content {
    flex: none;
    width: 100%;
    padding: 2.5rem 1.25rem 2rem;
    min-height: unset;
  }

  .hl {
    font-size: clamp(22px, 5vw, 32px);
  }

  div.texte-notre-mission,
  div.texte-notre-expertise,
  div.texte-notre-engagement {
    padding: 1.5rem 1.25rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  img.image-notre-mission,
  img.image-notre-expertise,
  img.image-notre-engagement {
    height: 240px;
  }

  section.valeurs {
    padding: 2rem 1.25rem;
  }

  .hl-valeurs {
    font-size: clamp(18px, 4.5vw, 24px);
  }

  .piliers {
    flex-direction: column;
    align-items: center;
  }

  footer {
    padding: 2rem 1rem;
    font-size: 0.85rem;
    line-height: 2;
  }
}

/* ─── Mobiles (≤ 480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  .underline-nav {
    gap: 0.5rem 0.75rem;
  }

  .underline-nav a {
    font-size: 0.75rem;
  }

  .hl {
    font-size: clamp(18px, 5.5vw, 26px);
    padding: 2px 6px;
  }

  .hl-valeurs {
    font-size: clamp(15px, 4.5vw, 20px);
  }

  div.texte-notre-mission,
  div.texte-notre-expertise,
  div.texte-notre-engagement {
    padding: 1.25rem 1rem;
  }

  div.texte-notre-mission h2,
  div.texte-notre-expertise h2,
  div.texte-notre-engagement h2 {
    font-size: 1.2rem;
  }

  div.texte-notre-mission p,
  div.texte-notre-expertise p,
  div.texte-notre-engagement p {
    font-size: 0.9rem;
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
  }

  footer a {
    display: inline-block;
    margin: 0.15rem 0;
  }
}