/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

/* VARIABLES */
:root {
  --color-bg: #1b3b36;        /* fond principal foncé mais moins saturé */
  --color-bg-alt: #265b54;    /* sections alternées légèrement plus claires */
  --color-text: #ffffff;       /* texte blanc */
  --color-primary: #00796b;    /* couleur principale verte */
  --color-primary-hover: #004d40;
  --color-btn-text: #ffffff;
  --color-footer: #263238;
  --color-menu-bg: #1b3b36;    /* navbar assortie au fond */
  --color-menu-text: #ffffff;
  --color-menu-hover: #a5d6a7;
  --color-menu-active: #00796b;
  --color-card-bg: #265b54;    /* cartes légèrement plus claires */
  --transition-speed: 0.3s;
}

/* GLOBAL */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text);
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Sections */
section {
  padding: 60px 0;
}

/* Sections alternées */
section:nth-child(even) {
  background-color: var(--color-bg-alt);
}

/* TITRES */
h1, h2, h3 {
  color: var(--color-btn-text);
}

h2 {
  margin-bottom: 30px;
}

/* NAVBAR */
.navbar {
  background-color: var(--color-menu-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link {
  color: var(--color-menu-text);
  font-weight: 600;
  transition: color var(--transition-speed), background var(--transition-speed);
}

.navbar-nav .nav-link:hover {
  color: var(--color-menu-hover);
}

.navbar-nav .nav-link.active {
  background-color: var(--color-menu-active);
  color: #fff;
  border-radius: 5px;
  padding: 5px 10px;
}
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}
.navbar .navbar-brand {
  color: #ffffff;
  font-weight: 700;
}

/* BOUTONS */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-btn-text);
  border: 2px solid #ffffff;
  padding: 12px 28px;
  font-size: 1.1rem;
  border-radius: 10px;
  transition: background var(--transition-speed), transform var(--transition-speed);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* Cartes */
.card {
  background-color: var(--color-card-bg);
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  padding: 25px;
  margin-bottom: 30px;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card a {
  color: var(--color-primary);
  text-decoration: none;
}

.card a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* FOOTER */
footer {
  background-color: var(--color-footer);
  color: #fff;
  text-align: center;
  padding: 25px 0;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 700px; /* même hauteur pour toutes les pages */
  padding: 0;
  margin: 0;
  overflow: hidden;
}
.hero-home {
  height: 1000px;
}
.hero-bg {
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplit proprement comme projet.html */
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.15) 70%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-weight: 1000;
  color: var(--color-btn-text);
}

.hero-content p {
  color: var(--color-btn-text);
  font-weight: 900;
}

/* TEXTE */
.lead {
  font-size: 1.1rem;
  line-height: 1.8;
}

.recit p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #ffffff;
}

.recit-img {
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* CARDS POUR PROJET */
.projet .card {
  background-color: var(--color-bg-alt);
  color: #ffffff;
  margin-bottom: 40px;
}

.projet .arrow-down {
  font-size: 2rem;
  color: var(--color-primary);
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ANIMATION AU SCROLL */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.animate__animated {
  opacity: 1;
  transform: translateY(0);
}

/* SECTION ACCEDER AU PROJET */
.acceder-projet {
  background-color: #ffffff; /* fond blanc */
  color: #000000;            /* texte noir */
  padding: 60px 0;
}

.acceder-projet h2 {
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-primary); /* texte vert */
}

.acceder-projet p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #000000; /* texte noir */
}

.acceder-projet .btn-success {
  background-color: var(--color-primary); /* vert principal */
  color: #ffffff; /* texte blanc */
  border: none;
}

.acceder-projet .btn-success:hover {
  background-color: var(--color-primary-hover);
}

/* CARDS ACCEDER AU PROJET */
.acceder-projet .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.acceder-projet .animate__animated {
  opacity: 1;
  transform: translateY(0);
}

.projet-img:hover {
  transform: scale(1.03);
}

/* OBJECTIFS */
.objectifs {
  background-color: var(--color-bg-alt);
}

.objectifs .card {
  background-color: var(--color-bg);
  color: white;
}

/* VALEURS */
.valeurs {
  background-color: var(--color-bg-alt);
  color: #000000;
}

.valeurs h5 {
  color: var(--color-primary);
  font-weight: 700;
}

/* RESEAU */
.reseau {
  background-color: var(--color-bg-alt);
}

/* SECTION FINALE */
.final-section {
  background-color: var(--color-bg);
  color: white;
}

.final-section h2 {
  font-weight: 700;
}
.projet-section {
  padding: 30px 0; /* moins de hauteur extérieure */
  background: #2f6b5f;
  display: flex;
  justify-content: center;
}

.projet-box {
  width: 90%;          /* plus large */
  max-width: 1300px;   /* grande largeur */
  background: #2f6b5f;
  border-radius: 15px;
  padding: 25px 40px;  /* moins haut, plus large */
}

.projet-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.projet-text h2 {
  font-size: 28px;     /* un peu plus compact */
  margin-bottom: 15px;
}

.projet-text p {
  font-size: 16px;
  line-height: 1.4;    /* moins de hauteur */
  margin-bottom: 10px;
}

/* IMAGE STYLE UNIFIÉ */
.projet-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}


.actualites-intro {
  background-color: var(--color-bg-alt);
  padding: 60px 0;
  text-align: center;
}

.actualites-intro .section-title {
  color: #ffffff;
}

.actualites-intro .container {
  max-width: 800px;
}
.actualites-cards {
  background-color: var(--color-bg-alt);
}

.actualites-cards .actualites-main-title {
  color: #ffffff;
  font-weight: 600;
}

.actualites-cards .actualites-card {
  background-color: #ffffff;
  border: none;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 28px 22px;
}

.actualites-cards .actualites-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.actualites-cards .actualites-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.actualites-cards .row {
  justify-content: center; /* centre horizontalement */
}

.actualites-card {
  max-width: 350px;
  margin: 0 auto;
}
.actualites-cards .actualites-card-title {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 18px;
}

.actualites-cards .actualites-card p {
  color: #000000;
  line-height: 1.8;
}

.actualites-cards .actualites-btn {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  text-decoration: none;
  display: inline-block;
}
.social-icons i {
  font-size: 40px;   /* taille plus grande */
  color: #ffffff;    /* blanc */
  margin: 0 15px;
  transition: 0.3s;
}

.social-icons i:hover {
  color: #dcdcdc; /* petit effet au hover */
}
.actualites-cards .actualites-btn:hover {
  background-color: var(--color-primary-hover);
  color: #ffffff;
  text-decoration: none;
}
/* OBJECTIFS STYLE = ACTUALITES */
.objectifs .card {
  background-color: #ffffff !important; /* fond blanc */
  color: #000000 !important; /* texte noir */
  border-radius: 18px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 25px;
}

/* TITRE des cartes */
.objectifs .card h5 {
  color: var(--color-primary) !important; /* vert */
  font-weight: 700;
  margin-bottom: 15px;
}

/* TEXTE */
.objectifs .card p {
  color: #000000 !important;
  line-height: 1.8;
}
/* ENSEIGNEMENTS = même style que objectifs */
.text-white-section .card {
  background-color: #ffffff !important; /* fond blanc */
  color: #000000 !important; /* texte noir */
  border-radius: 18px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 25px;
}

/* TITRES */
.text-white-section .card h5 {
  color: var(--color-primary) !important; /* vert */
  font-weight: 700;
}

/* TEXTE */
.text-white-section .card p {
  color: #000000 !important;
}
/* VALEURS = même style que objectifs */
.valeurs .card {
  background-color: #ffffff;
  color: #000000;
  border-radius: 18px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 25px;
}

/* TITRE */
.valeurs .card h5 {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 15px;
}

/* TEXTE */
.valeurs .card p {
  color: #000000;
  line-height: 1.8;
}

/* HOVER */
.valeurs .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}
.reseau {
  background-color: var(--color-bg-alt) !important;
}

.container {
  background-color: transparent !important;
}
.reseau .col-md-6 {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement */
}

.projet-img {
  max-height: 380px; /* ajuste ici si besoin */
}
.image-box {
  height: 420px;       /* ajuste ici si besoin */
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* coupe proprement */
  display: block;
}
.reseau-box {
  background-color: rgba(255, 255, 255, 0.05); /* fond légèrement plus clair */
  border-radius: 20px;
  padding: 30px 40px;
}
/* CADRE IDENTIQUE AU PROJET */
.content-box {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 15px;
}
.projet-image {
  width: 100%;
}

.projet-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
}

/* Pour IMG5 : remonter le cadrage sur les visages */
.projet-image-faces img {
  object-position: center 25%;
}

.reseau-box {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px 40px;
}
.text-white-section .card {
  max-width: 900px;   /* largeur limitée */
  margin: 0 auto;     /* centre horizontalement */
  border-radius: 20px;
  padding: 25px;
}
.deployer-video-box {
  max-width: 900px;
  margin: 0 auto 30px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  background: #000;
}

.deployer-video-box video {
  width: 100%;
  height: auto;
  display: block;
}