:root {
  --black: #000000;
  --white: #ffffff;
  --blue-dark: #1c8995;
  --blue-light: #35daec;
  --blue: #3198cc;
  --font-title: 'ElevonTwoG', Arial, sans-serif;
  --font-subtitle: 'NasalizationRG-Regular', Arial, sans-serif;
  --font-body: 'GothamBook', Arial, sans-serif;
}

/* GENERAL */
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--blue-light);
  margin: 0;
  padding: 0;
}
.navbar {
  font-family: var(--font-subtitle);
  background: rgba(0,0,0,0.70)!important;
  z-index: 1002;
}
.logo { height: 100px; min-width: 100px; }

/* PARALLAX SECTION */
.section-video-parallax {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--black);
}
.parallax-img-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../img/Militaire_RA.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  will-change: transform;
  transition: transform 0.1s;
}
.parallax-title-container {
  position: relative;
  z-index: 2;
  height: 100vh;
  width: 55vw;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 4vw;
  background: linear-gradient(90deg, rgba(20,20,20,0.72) 85%, rgba(20,20,20,0.01) 100%);
}
.parallax-title {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 5vw;
  font-weight: bold;
  letter-spacing: 2px;
  line-height: 1.05;
  text-align: left;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
  margin: 0;
  width: 100%;
}
@media (max-width: 900px) {
  .parallax-title-container {
    width: 100vw;
    padding: 2vw 2vw 5vw 2vw;
    background: linear-gradient(180deg, rgba(20,20,20,0.65) 90%, rgba(20,20,20,0.05) 100%);
    height: 32vh;
    align-items: flex-end;
    justify-content: center;
  }
  .parallax-title {
    font-size: 2.2rem;
    text-align: center;
    width: 100%;
  }
  .section-video-parallax { align-items: flex-end;}
}

/* SECTION STATISTIQUES (GRILLE 12 COLS + MACHINE À ÉCRIRE) */
.section-stats {
  width: 100vw; padding: 5vw 0; background: var(--black);
  display: flex;
  justify-content: center;
  align-items: center;
}
.stats-row-12 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stats-offset-title {
  width: 66.6667%;      /* 8 colonnes sur 12 */
  margin-left: 16.6667%;  /* offset 2 colonnes à gauche */
  margin-right: 16.6667%; /* offset 2 colonnes à droite */
  text-align: center;
  margin-bottom: 2.5rem;
}

.stats-title-top {
  font-family: var(--font-title);
  color: var(--blue-light);
  font-size: 2.24vw; /* 20% de moins si besoin, ancienne taille du titre animé */
  font-weight: bold;
  line-height: 1.18;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
  text-transform: uppercase;
  text-align: center;
}
.static-title { color: var(--blue-dark); }
.typewriter {
  border-right: .12em solid var(--blue-light);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  min-width: 5em;
  vertical-align: baseline;
  font-size: 1em; /* hérite de .stats-col-left */
}

.typewriter-group > div {
  margin-bottom: 1.1em;
  display: flex;
  align-items: baseline;
}
.typewriter-group > div:last-child {
  margin-bottom: 0;
}
.stats-subtitle-under {
  font-family: var(--font-title);
  color: var(--blue);
  font-size: 1.68vw;
  font-weight: 700;
  margin: 1.1rem auto 0.5rem auto;
  text-align: center;
  line-height: 1.15;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.stats-columns {
  width: 100%;
  max-width: 90%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  
  margin: 0 auto;
}
.stats-col-left {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* aligné à gauche */
  text-align: left;            /* texte aligné à gauche */
  font-size: 1.8vw;
  margin-left: 1rem;           /* marge légère à gauche */
}
.typewriter-group {
  width: 100%;
}
.stats-subtitle-big {
  font-family: var(--font-subtitle);
  font-size: 2.4rem;
  color: var(--blue-dark);
  line-height: 1.22;
  font-weight: 700;
  text-align: right;
}
.stats-col-right {
  flex: 0 0 35%;
  max-width: 35%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 280px;
  margin-right: 5%;
}

/* IMAGES */
.images-profondeur {
  position: relative;
  width: 100%;
  min-height: 260px;
  aspect-ratio: 16/9;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.images-profondeur .img-bg {
  width: 95%; height: 100%; object-fit: cover; border-radius: 24px;
  box-shadow: 0 10px 40px #3198cc55, 0 2px 18px #0007;
  position: absolute; left: 0; top: 0; z-index: 1;
}
.images-profondeur .img-top {
  position: absolute;
  right: 38%;
  bottom: 0;
  width: 65%; max-width: 420px; object-fit: cover; border-radius: 24px;
  box-shadow: 0 22px 48px #1c899577, 0 4px 30px #000b;
  z-index: 2;
  border: 4px solid var(--blue-light);
  background: var(--black);
  transform: rotateY(150deg) scale(0.96) skewY(2deg);
  transform-origin: right bottom;
}

@media (max-width: 1100px) {
  .parallax-title, .stats-title-top { font-size: 2.3rem; }
  .stats-subtitle-under { font-size: 1.2rem; }
  .stats-subtitle-big { font-size: 1.3rem; }
}
@media (max-width: 900px) {
  .stats-offset-title {
    width: 88%; margin-left: 6%; margin-right: 6%;
  }
  .stats-columns { flex-direction: column; gap: 2.5rem;}
  .stats-col-left, .stats-col-right {
    max-width: 100%; flex: 1 1 100%; justify-content: center; align-items: center; text-align: center;
  }
  .stats-subtitle-big { font-size: 1rem; }
  .stats-title-top { font-size: 1rem; }
  .stats-subtitle-under { font-size: .8rem; }
  .images-profondeur { min-height: 130px; }
  .images-profondeur .img-bg, .images-profondeur .img-top { border-radius: 13px; }
}

/* ACCROCHE SECTION, GRILLES, ÉQUIPE, ETC. */
.section {
  min-height: 80vh;
  position: relative;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.section-title {
  font-family: var(--font-title); color: var(--blue-dark); font-size: 2.3rem; margin-bottom: 1.5rem;
}
.title { font-family: var(--font-title); font-size: 2.5rem; }
.subtitle { font-family: var(--font-subtitle); color: var(--blue); font-size: 1.5rem;}
.images-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; width: 100%;}
.pillars { display: flex; gap: 2rem; justify-content: center; width: 90%; margin-top: 2rem; flex-wrap: wrap;}
.pillar { flex: 1 1 250px; background: var(--blue); color: #fff; border-radius: 18px; padding: 2rem 1rem; font-family: var(--font-title); text-align: center; font-size: 1.4rem; margin: 0.5rem; box-shadow: 0 4px 10px #0002;}
.team { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; margin: 2rem 0;}
.member { display: flex; flex-direction: column; align-items: center; max-width: 220px; text-align: center;}
.avatar { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 3px solid var(--blue-dark); margin-bottom: 1rem;}
@media (max-width:700px) {
  .section { padding: 60px 0 40px 0; }
  .section-title, .title { font-size: 2rem; }
  .subtitle { font-size: 1.1rem; }
  .team { flex-direction: column; gap: 1.4rem; }
  .pillars { flex-direction: column; }
}

.section-solutions {
  width: 100vw;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.solutions-title-container {
  width: 60%;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}
.solutions-title {
  font-family: var(--font-title);
  color: var(--blue-dark);
  font-size: 2.6vw;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}
.solutions-row {
  display: flex;
  flex-direction: row;
  width: 60%;
  margin: 0 auto;
  gap: 3vw;
  align-items: flex-start;
  justify-content: center;
}
.solutions-col-left {
  flex: 0 0 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-helmet-img {
  max-width: 100%;
  min-height: 250px;
  border-radius: 18px;
  box-shadow: 0 8px 32px #0b3a504a;
  background: var(--black);
}

@media (max-width:1000px) {
  .solutions-title-container, .solutions-row { width: 95%; }
  .solutions-title { font-size: 1.3rem; }
  .solutions-list { font-size: 1rem; }
  .solution-helmet-img { max-height: 130px; }
  .solutions-row { flex-direction: column; gap: 1.5rem; }
  .solutions-col-left, .solutions-col-right { width: 100%; }
}

.solutions-title-container {
  width: 80%;
  margin: 0 auto 2rem auto;
  text-align: center;
}
.solutions-title {
  font-family: var(--font-title);
  color: var(--blue-dark);
  font-size: 2.6vw;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0; 
}
.solutions-img-container {
  width: 60%;
  margin: 1.5rem auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.solution-helmet-img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 8px 32px #0b3a504a;
  background: var(--black);
}
@media (max-width: 900px) {
  .solutions-title-container, .solutions-img-container { width: 98%; }
  .solutions-title { font-size: 1.3rem; }
  .solution-helmet-img { max-height: 150px; }
}

.section-solutions-cards {
  width: 100vw;
  background: var(--black);
  padding: 3vw 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cards-row {
  width: 80%;
  margin-top: -20%;
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}
.solution-card {
  background: rgba(28,137,149,0.14);
  border: 2px solid var(--blue-dark);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  flex: 1 1 0;
  min-width: 220px;
  color: var(--blue-light);
  box-shadow: 0 6px 24px #0004;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.solution-card h3 {
  color: var(--blue-dark);
  font-family: var(--font-title);
  font-size: 2.1rem;
  margin-top: 0;
  margin-bottom: .7rem;
}
.solution-card p {
  font-family: var(--font-body);
  font-size: 1.65rem;
  margin: 0;
}
@media (max-width: 900px) {
  .cards-row { flex-direction: column; gap: 1.6rem; width: 98%; }
  .solution-card { align-items: center; text-align: center; }
}

.card-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.card-number {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--blue-dark);
  font-weight: bold;
  background: rgba(255,255,255,0.11);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  margin-left: .5rem;
}

.section-solutions.side-by-side .solutions-title-container {
  width: 100%;
  text-align: center;
  margin-bottom: 2.2rem;
  margin-top: -20%;
}
.solutions-side-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 3vw;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.solutions-side-img {
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-side-img {
  width: 100%;
  max-width: 350px;
  border-radius: 18px;
  box-shadow: 0 8px 32px #0b3a504a;
  background: var(--black);
}
.solutions-side-cards {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}
.solution-side-card {
  background: rgba(28,137,149,0.14);
  border: 2px solid var(--blue-dark);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  color: var(--blue-light);
  box-shadow: 0 6px 24px #0004;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Les styles texte et header restent comme dans vos cards précédentes */
}
.solution-side-card h3 {
  color: var(--blue-dark);
  font-family: var(--font-title);
  font-size: 2.1rem;
  margin-top: 0;
  margin-bottom: .7rem;
}
.solution-side-card p {
  font-family: var(--font-body);
  font-size: 1.65rem;
  margin: 0;
}
.card-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}
.card-number {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--blue-dark);
  font-weight: bold;
  background: rgba(255,255,255,0.11);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  margin-left: .5rem;
}

@media (max-width: 900px) {
  .solutions-side-row { flex-direction: column; gap: 1.5rem; }
  .solutions-side-img, .solutions-side-cards { flex: 1 1 100%; max-width: 100%; }
  .solution-side-img { max-width: 100%; }
  .solution-side-card h3 { font-size: 1.3rem; }
  .solution-side-card p { font-size: 1.0rem; }
}

.solutions-side-row.split {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3vw;
}
.solutions-side-img {
  flex: 0 0 60%;
  max-width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-side-img {
  max-width: 95%; /* Pour conserver un peu de marge */
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 8px 32px #0b3a504a;
  background: var(--black);
}
.solutions-side-cards {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}
/* Responsive : passe en colonne sur mobile */
@media (max-width: 900px) {
  .solutions-side-row.split {
    flex-direction: column;
    gap: 1.5rem;
  }
  .solutions-side-img, .solutions-side-cards {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Pour cibler uniquement les cards de la dernière section side-by-side */
.solutions-side-row.split .solution-side-card {
  background: linear-gradient(135deg, var(--complementary-blue-2) 0%, var(--blue-dark) 100%);
  border: none;
  color: #fff;
  box-shadow: 0 6px 32px #1c899599;
  border-radius: 28px;
  padding: 2.5rem 1.8rem;
  transition: transform .18s, box-shadow .18s;
  position: relative;
  overflow: hidden;
}

.solutions-side-row.split .solution-side-card:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 12px 46px #1c899588;
}

.solutions-side-row.split .solution-side-card h3 {
  color: var(--complementary-yellow);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 2.0rem;
  margin-bottom: 1rem;
}

.solutions-side-row.split .solution-side-card p {
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.6;
}

.solutions-side-row.split .solution-side-card .card-header {
  margin-bottom: 1rem;
}

.solutions-side-row.split .solution-side-card .card-number {
  background: var(--complementary-yellow);
  color: var(--blue-dark);
  font-size: 1.2rem;
  font-weight: bold;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #444a;
}

.solutions-side-row.split .solution-side-card .card-icon {
  width: 2.2rem;
  height: 2.2rem;
  filter: brightness(1.7) drop-shadow(0 0 10px var(--complementary-yellow));
  margin-left: .6rem;
}


.team.team-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}

.team-card {
  background: rgba(28,137,149,0.14);
  border: 2px solid var(--blue-dark);
  border-radius: 18px;
  color: var(--blue-light);
  box-shadow: 0 6px 24px #0004;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  max-width: 290px;
  flex: 1 1 220px;
  padding: 1.5rem 1rem 2rem 1rem;
  transition: transform 0.18s, box-shadow 0.18s;
  text-align: center;
}
.team-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 38px #1c899566;
}
.team-card .avatar {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--blue-dark);
  margin-bottom: 1rem;
  margin-top: -2.5rem;
  background: #fff;
}
.team-card h3 {
  color: var(--blue-dark);
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: .4rem;
}
.team-card .position {
  font-family: var(--font-subtitle);
  color: var(--blue);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}
.team-card .specialty {
  background: rgba(255,255,255,0.07);
  border-radius: 11px;
  padding: 9px 6px;
  margin-bottom: 0.4rem;
  font-size: 0.97rem;
  color: var(--blue-light);
}
.team-card .details {
  margin-top: 9px;
  font-style: italic;
  color: #9ecadd;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Responsive cards */
@media (max-width: 900px) {
  .team.team-cards {
    flex-direction: column;
    gap: 1.4rem;
    align-items: center;
  }
  .team-card {
    max-width: 95vw;
    width: 98vw;
  }
}

team-title-container {
  width: 60%;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}
.team-title {
  font-family: var(--font-title);
  color: var(--blue-dark);
  font-size: 2.6vw;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}

