/* ====== Base & Thème ====== */
:root {
  --gold: #c99a2e; /* doré du logo (titre/cta) */
  --teal: #205e63; /* bleu pétrole (header/footer) */
  --green: #3e7c3a; /* environnement */
  --orange: #d9842b; /* éducation */
  --brick: #8b2e2e; /* solidarité/culture */
  --beige: #fdf7ee; /* fond */
  --text: #2e2e2e;
  --muted: #5b6470;
  --card: #ffffff;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --red: #e74c3c; /* danger / alerte / erreurs */
  --pink: #ff69b4; /* accent / fun / générique */
  --purple: #7d3c98; /* rôle spécifique / creatif */
  --blue: #3498db; /* info / liens / boutons */
  --light-blue: #85c1e9; /* fond clair / hover */
  --yellow: #f1c40f; /* highlight / pill accent */
  --gold-light: #fff4d1; /* pill légère / fond clair */
  --grey: #bdc3c7; /* fond neutre / borders */
  --dark-grey: #2c3e50; /* titres secondaires / texte sombre */
  --success: #27ae60; /* succès / validation */
  --warning: #f39c12; /* attention / alert */
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial,
    sans-serif;
  background: var(--beige);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 20px;
}

/* ====== Header ====== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.1) blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.logo {
  height: 56px;
}
.logo:hover {
  transform: translateY(-1px);
  transition: ease-in-out 0.2s;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  position: relative;
  display: inline-block;
  font-weight: 600;
  padding: 10px 10px;
  border-radius: 12px;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0px; /* espace sous le texte */
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px gold;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
nav a:hover::after {
  color: var(--gold);
  width: 100%;
}

nav a:hover {
  color: var(--gold);
}

nav a.active {
  color: var(--gold);
}

/* Mobile menu */
.menu-btn {
  display: none;
  background: #0000;
  border: 1px solid #e0d7c6;
  padding: 12px 12px;
  border-radius: 14px;
  font-size: 20px;
}
@media (max-width: 860px) {
  .logo {
    margin-left: 1rem;
  }

  nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 80px; /* sous le header */
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px 0;
    gap: 12px;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
  }

  nav.open {
    display: flex;
  }

  nav a {
    color: #fff;
    font-size: 18px;
    padding: 10px 20px;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  nav a:hover {
    color: var(--gold);
  }

  .menu-btn {
    display: inline-flex; /* visible uniquement sur mobile */
    justify-content: center;
    align-items: center;
    width: 50px; /* taille carrée */
    height: 50px;
    margin-right: 1rem;
    background: rgba(255, 255, 255, 0.2); /* semi-transparent */
    border-radius: 20%; /* cercle */
    font-size: 24px; /* icone ou texte */
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* légère ombre */
  }
}

/* ====== Sections ====== */
section {
  padding: 64px 0;
}
.section-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  color: rgb(69, 148, 197);
  margin: 0 0 10px;
}
.section-lead {
  color: var(--muted);
  margin: 0 0 24px;
}

.maintenance-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: black;
  font-family: Verdana, Geneva, Tahoma, sans-serif, system-ui, -apple-system;
  gap: 10px;
  animation: texte infinite alternate;
}

@keyframes gradientAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ====== Hero ====== */
.hero {
  padding: 80px 0;
  color: #fff;
  background: linear-gradient(120deg, var(--teal), var(--gold));
  background-size: 600% 600%;
  animation: gradientAnim 10s ease infinite;
}

@keyframes gradientAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/*.hero {
  padding: 80px 0;
  color: #fff;
  background-image: url('img/logo2.png'); 
  background-size: cover;      
  background-position: center; 
  background-repeat: no-repeat;  
}*/
.hero h1 {
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 900;
}
.hero p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #f8fbff;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  background: #fff;
  color: var(--teal);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #ffffffcc;
}

/* ====== Cards / Grids ====== */
.grid {
  display: grid;
  gap: 18px;
  max-width: 1120px; /* limite la largeur totale du grid */
  margin: 0 auto; /* centre le grid horizontalement */
  padding: 0 20px; /* padding pour respirer sur les côtés */
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--card);
  border: 1px solid #eee5d4;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px) scale(0.5);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  border-color: #f5d88b;
}

.card h3 {
  margin: 6px 0 8px;
}

.card2 {
  background: #23215d67;
  backdrop-filter: blur(6px);
  border: 1px solid #eee5d4;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  color: #fff;
}

.card2:hover {
  transform: translateY(-3px) scale(0.5);
  transition: all 0.3s ease;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  border-color: #f58bf0;
}

.card2 h3 {
  margin: 6px 0 8px;
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* ====== Footer ====== */
footer {
  background: var(--teal);
  color: #fff;
  padding: 28px 0;
  margin-top: 40px;
}

.container footer-inner {
  text-decoration: none;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  text-decoration: none;
}
footer .small {
  opacity: 0.9;
  font-size: 14px;
}
footer nav a {
  color: #fff;
}
footer nav a:hover {
  text-decoration: none;
}

/* ====== Forms ====== */
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #d4af6a;
  background: white;
  overflow: hidden;
}
label {
  font-weight: 600;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 860px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sujet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sujet-options label {
  cursor: pointer;
}

.sujet-options input[type="radio"] {
  display: none; /* on cache le vrai radio */
}

.sujet-options span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

.sujet-options input[type="radio"]:checked + span {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

/* ====== Animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.hero .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: white;
  color: #205e63;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

.intro {
  padding: 40px;
  text-align: center;
}

footer {
  text-align: center;
  padding: 20px;
  background: var(--teal);
  color: white;
  text-decoration: none;
}

/* Loader full screen */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111; /* ou autre couleur */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Logo centré */
.loader-logo {
  width: 120px; /* ajuste selon ton logo */
  margin-bottom: 30px;
}

/* Barre de chargement */
.loader-bar {
  width: 300px;
  height: 12px;
  border-radius: 100px;
  background: #333; /* fond de la barre */
  overflow: hidden;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  animation: loadProgress 1.5s ease forwards;
  border-radius: 100px;
}

/* Pour le contenu */
#content {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Pour le loader (fade-out) */
#loader.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Animation de la barre */
@keyframes loadProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  font-size: 24px;
  border: none;
  border-radius: 12px; /* coins arrondis */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.1);
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 1000;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--gold);
  transform: scale(1.1);
}

.fullpage {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 80px 20px;
  scroll-snap-align: start;

  /* Fond */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff; /* pour que le texte ressorte */
  position: relative;
}

/* Optionnel : overlay sombre pour mieux voir le texte */
.fullpage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* ajuster l’opacité selon l’image */
  z-index: 0;
}

.container {
  position: relative; /* pour que le texte reste au-dessus de l’overlay */
  z-index: 1;
}

body,
html {
  margin: 0;
  padding: 0;
}

.fullpage {
  margin: 0; /* supprime les marges par défaut */
}

@media (max-width: 860px) {
  .fullpage {
    background-size: cover;
    background-position: center top; /* garde le haut de l’image visible */
  }

  .container h1 {
    font-size: 1.8rem;
  }
  .container p {
    font-size: 0.95rem;
  }
}

footer {
  margin: 0;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
}

.maintenance {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px; /* espace pour petits écrans */
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplit toute la section sans déformation */
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;
  color: #333;
  background: rgba(255, 255, 255, 0.3); /* overlay léger pour lisibilité */
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 90%; /* limite la largeur sur mobile */
}

/* Texte adaptatif pour mobile */
.content h1 {
  font-size: 2rem;
}
.content p {
  font-size: 1rem;
}

/* Ajustement pour tablettes et grands mobiles */
@media (min-width: 768px) {
  .content h1 {
    font-size: 3rem;
  }
  .content p {
    font-size: 1.2rem;
  }
}

.hero.fullpage:first-of-type {
  position: relative;
  padding: 80px 20px;
  min-height: 100vh;
  color: #fff;
  background: linear-gradient(120deg, var(--teal), var(--gold));
  background-size: 600% 600%;
  animation: gradientAnim 15s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

/* Animation du dégradé */
@keyframes gradientAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero.fullpage .container {
  position: relative;
  z-index: 2;
  text-align: center; /* centre le texte horizontalement */
  display: flex;
  flex-direction: column; /* empile h1, p et boutons verticalement */
  justify-content: center; /* centre verticalement dans le container */
  align-items: center; /* centre horizontalement tous les enfants */
  gap: 16px; /* espace entre h1, p et boutons */
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center; /* centre les boutons horizontalement */
  margin-top: 20px;
}

/* Conteneur au-dessus des formes */
.container {
  position: relative;
  z-index: 2;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin: 8px;
  transition: all 0.3s ease;
  background: #ffb347;
  color: #fff;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 180, 71, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid #ffb347;
  color: #ffb347;
}

.btn-outline:hover {
  background: #ffb347;
  color: #fff;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center; /* <-- centre horizontalement */
  margin-top: 20px; /* optionnel, pour un petit espace au-dessus */
}

/* Formes stylées */
.shape {
  position: absolute;
  z-index: 1;
  opacity: 0.12;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}

/* Cercles */
.circle1 {
  width: 150px;
  height: 150px;
  top: 20%;
  left: 10%;
  animation: float 3s ease-in-out infinite alternate;
  overflow: hidden;
}
.circle2 {
  width: 200px;
  height: 200px;
  bottom: 15%;
  right: 15%;
  animation: float 5s ease-in-out infinite alternate;
  overflow: hidden;
}

/* Blobs */
.blob1 {
  width: 250px;
  height: 250px;
  top: 20%;
  right: 5%;
  border-radius: 50% 50% 40% 60%;
  animation: rotate 5s linear infinite;
  overflow: hidden;
}
.blob2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 15%;
  border-radius: 60% 40% 50% 50%;
  animation: rotate 7s linear infinite reverse;
  overflow: hidden;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-40px) rotate(20deg);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.shapeindex {
  position: absolute;
  z-index: 9;
  opacity: 0.85;
  border-radius: 50%;
  backdrop-filter: blur(29px);
  overflow: hidden;
}

.circleindex1 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 40%;
  background: #32adff70;
  z-index: 1;
  animation: float 3s ease-in-out infinite alternate;
  overflow: hidden;
}
.circleindex2 {
  width: 200px;
  height: 200px;
  bottom: 65%;
  right: 45%;
  background: #ee0979;
  animation: float 5s ease-in-out infinite alternate;
  overflow: hidden;
}

/* Blobs */
.blobindex1 {
  width: 250px;
  height: 250px;
  top: 37%;
  right: 15%;
  background: rgba(228, 201, 47, 0.384);
  border-radius: 50% 50% 40% 60%;
  animation: rotate 5s linear infinite;
  overflow: hidden;
}
.blobindex2 {
  width: 200px;
  height: 200px;
  bottom: 60%;
  left: 17%;
  background: #00bf6338;
  border-radius: 60% 40% 50% 50%;
  animation: rotate 7s linear infinite reverse;
  overflow: hidden;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-40px) rotate(20deg);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.handshake-glow {
  font-size: 60px; /* taille de l’emoji */
  display: inline-block;
  animation: glow 2s infinite alternate;
  filter: drop-shadow(0 0 15px rgba(234, 255, 76, 0.873));
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 10px rgba(250, 250, 0, 0.6));
    transform: scale(1);
  }
  to {
    filter: drop-shadow(0 0 25px rgb(218, 255, 85));
    transform: scale(1.3);
  }
}

/*.contact-glow {
  position: absolute;
  font-size: 100px; /* taille de l’emoji */ /*
  display: inline-block;
  animation: glow 2s infinite alternate;
  filter: drop-shadow(0 0 15px rgba(0, 85, 255, 0.8));
  right: 25%;
  bottom: 10%;
  transform: rotate(90) scale(1);
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 10px rgba(0, 255, 140, 0.6));
    transform: scale(1);
  }
  to {
    filter: drop-shadow(0 0 25px rgb(0, 255, 166));
    transform: scale(1.3);
  }
}

*/

.contact-glow {
  position: absolute;
  font-size: 100px;
  right: 30%;
  display: inline-block;
  transform: rotate(35deg); /* rotation initiale */
  filter: drop-shadow(0 0 15px rgba(0, 85, 255, 0.8));
  animation: glow-rotate 2s infinite alternate;
}

@keyframes glow-rotate {
  0% {
    filter: drop-shadow(0 0 10px rgba(0, 85, 255, 0.8));
    transform: rotate(35deg);
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(0, 85, 255, 1));
    transform: rotate(9deg);
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(0, 85, 255, 0.8));
    transform: rotate(20deg);
  }
}

/*.team {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
}

.team-member.left { flex-direction: row; }
.team-member.right { flex-direction: row-reverse; }

.member-photo {
  position: relative;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 15px;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}*/

.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ff6a00, #ee0979, #ff6a00);
  background-size: 400% 400%;
  animation: bgMove 10s linear infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes bgMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.member-info h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
}

.member-info p {
  margin: 5px 0 0 0;
  color: #ccc;
}

.team-bubbles {
  position: relative;
  width: 100%;
  height: 600px; /* ajustable */
  overflow: hidden;
}

/* Bulles blob avec dégradé teal → gold */
.bubble {
  position: absolute;
  width: 220px;
  height: 220px;
  background-color: rgba(0, 128, 128, 0.3); /* teal transparent */
  backdrop-filter: blur(6px); /* flou derrière */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50% 60% 40% 55% / 55% 40% 60% 50%; /* forme blob */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s,
    border 0.3s;
  animation: float 5s ease-in-out infinite;
}

/* Hover style glassmorphism */
.bubble:hover {
  transform: scale(1.15); /* légèrement plus grande */
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.5); /* halo lumineux */
  background-color: rgba(0, 128, 128, 0.5); /* plus opaque */
  border: 1px solid rgba(255, 255, 255, 0.4); /* contour plus visible */
}
.bubble img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-bottom: 10px;
}

.bubble .info h3 {
  margin: 0;
  font-size: 1rem;
}
.bubble .info p {
  margin: 0;
  font-size: 0.8rem;
}

/* Flottement vertical léger */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .bubble {
    width: 160px;
    height: 160px;
  }
  .bubble img {
    width: 60px;
    height: 60px;
  }
  @media (max-width: 600px) {
    .bubble {
      width: 160px;
      height: 160px;
    }
    .bubble img {
      width: 60px;
      height: 60px;
    }
    .bubble .info h3 {
      font-size: 1rem;
    }
    .bubble .info p {
      font-size: 0.8rem;
    }
  }
}
.team-bubbles {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: url("img/pexels-blaque-x-264516-932638.jpg") no-repeat center
    center;
  background-size: cover;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.team-bubbles::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("img/pexels-blaque-x-264516-932638.jpg") no-repeat center
    center;
  background-size: cover;
  z-index: 0; /* doit être inférieur à celui des bulles */
}

.member.fullpage {
  width: 99vw;
  height: 100vh;
  background: url("img/pexels-jplenio-1103970.jpg") no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

.member.fullpage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0
  ); /* 0.3 = léger assombrissement, on peut ajuster */
  z-index: 0;
}

.member-content {
  display: flex;
  width: 90%;
  max-width: 1400px;
  height: 100%; /* plein conteneur */
  align-items: stretch; /* étire les enfants verticalement */
  justify-content: space-between;
}

.member-text {
  color: #ffffff;
  max-width: 60%; /* un peu plus large si besoin */
}

.member-text h1 {
  font-size: 6rem; /* titre beaucoup plus grand */
  margin: 0 0 30px 0;
}

.member-text h3 {
  font-size: 3rem; /* rôle plus visible */
  margin: 0 0 20px 0;
}

.member-text p {
  font-size: 1.5rem; /* description plus lisible */
  line-height: 1.5;
}

.member-photo {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.member-photo img {
  height: 128%; /* prend toute la hauteur du conteneur */
  width: auto; /* garde les proportions */
  max-height: 128%; /* jamais plus grande que la section */
  object-fit: cover;
  border-radius: 20px;
}

.member-content.left-text {
  flex-direction: row; /* texte à gauche, photo à droite */
}

.member-content.right-text {
  flex-direction: row-reverse; /* texte à droite, photo à gauche */
}

.member-content.right-text .member-photo {
  justify-content: flex-start; /* photo à gauche */
  align-items: center; /* centre verticalement */
  padding-left: 0px; /* décale légèrement vers la gauche */
  margin-left: -100px;
}

.member-content.right-text .member-text {
  margin-left: 40px; /* décale le texte vers la droite */
}

.halfpage {
  height: 50vh; /* moitié de la hauteur de la fenêtre */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px 20px; /* moins de padding que fullpage */
  scroll-snap-align: start;
  overflow: hidden;

  /* Fond */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff; /* pour que le texte ressorte */
  position: relative;
}

/* Optionnel : overlay sombre pour mieux voir le texte */
.halfpage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* léger assombrissement */
  z-index: 0;
}

.halfpage .container {
  position: relative; /* pour que le texte reste au-dessus de l’overlay */
  z-index: 1;
}

@media (max-width: 860px) {
  .halfpage {
    background-size: cover;
    background-position: center top; /* garde le haut de l’image visible */
  }

  .halfpage .container h1 {
    font-size: 1.8rem;
  }
  .halfpage .container p {
    font-size: 0.95rem;
  }
}

.halfpage2 {
  height: 50vh; /* moitié de la hauteur de la fenêtre */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  animation: gradientAnim 2s ease;
  padding: 40px 20px; /* moins de padding que fullpage */
  scroll-snap-align: start;
  overflow: hidden;

  /* Fond */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff; /* pour que le texte ressorte */
  position: relative;
}

.halfpage2 h1 {
  color: #ffffff;
  text-shadow: 1 0px #111;
}

.halfpage2 p {
  color: #ffffff;
  text-shadow: 1 0px #111;
}

/* Optionnel : overlay sombre pour mieux voir le texte */

.halfpage2 .container {
  position: relative; /* pour que le texte reste au-dessus de l’overlay */
  z-index: 1;
}

@keyframes gradientAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 860px) {
  .halfpage2 {
    background-size: cover;
    background-position: center top; /* garde le haut de l’image visible */
  }

  .halfpage2 .container h1 {
    font-size: 1.8rem;
  }
  .halfpage2 .container p {
    font-size: 0.95rem;
  }
}

html {
  scroll-behavior: smooth;
}

/* Conteneur du formulaire */
/* Fond derrière le formulaire 
.newsletter-section {
  background-color: #205E63;
  padding: 20px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px;
  background: #205E63;
  border-radius: 12px;
  max-width: 600px;
  margin: 40px auto;
}

.newsletter-form p {
  color: white;
  text-shadow: #111;
}

/* Champ input 
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease;
}

.newsletter-form input[type="email"]:focus {
  border: 1px solid #ff6a00;
}

/* Bouton 
.newsletter-form button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, gold, teal);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(238, 9, 121, 0.4);
}

/* Responsive 
@media (max-width: 600px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }
}
*/

.details {
  position: relative;
  overflow: hidden;
  height: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: height 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
  padding: 0 15px;
  border-radius: 8px;
  color: #fff;
}

/* La bande noire en pseudo-élément */
.details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  transition: width 0.6s ease;
  z-index: 0;
}

/* Quand ouvert, la bande recouvre tout */
.details.show::before {
  width: 100%;
}

/* Le texte par-dessus */
.details p {
  position: relative;
  z-index: 1;
  margin: 15px 0;
}

.details.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.details.show {
  opacity: 1;
  transform: translateY(0);
  height: auto; /* le JS ajuste dynamiquement */
}

.details.hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.projects-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes sur desktop */
  width: 99vw;
  height: 60vh;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.titress {
  margin: auto;
  margin-top: 20px;
  gap: 10px;
}

.project-card {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  color: white;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 0px #111;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 24px 24px 24px 24px;
  overflow: hidden;
  width: 85%;
  height: 50%; /* occupe toute la largeur de la colonne */
}

.project-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.project-card h2 {
  padding: 10px 20px;
  border-radius: 10px;
  text-shadow: #111;
}

/* Responsive : tablette et mobile */
@media screen and (max-width: 1024px) {
  .projects-section {
    grid-template-columns: repeat(1, 1fr); /* 2 colonnes */
    height: auto;
  }

  .project-card {
    height: 50vh;
    font-size: 1.5em;
  }
}

@media screen and (max-width: 768px) {
  .projects-section {
    grid-template-columns: 1fr; /* 1 colonne */
    width: 50%;
  }

  .project-card {
    height: 40vh;
    width: 100%;
    font-size: 1.3em;
    border-radius: 0;
  }
}

/* Fond derrière le modal */
#modal-overlay {
  display: none; /* caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* semi-transparent */
  z-index: 999;
}

/* Modal */
#project-modal {
  display: none; /* caché par défaut */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  max-width: 600px;
  width: 90%;
}

/* Titres et texte */
#project-modal h2 {
  margin-top: 0;
  font-size: 1.8em;
}

#project-modal p {
  margin: 10px 0;
}

/* Bouton fermer */
#modal-close {
  margin-top: 15px;
  padding: 10px 16px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* Animation d’apparition */
#project-modal.show {
  animation: modal-slide 0.3s ease forwards;
}

@keyframes modal-slide {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.btn-login {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  background: var(--gold);
  color: white;
  box-shadow: var(--shadow);
  margin-top: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.btn-login:hover {
  transform: translateY(-2px) scale(1.02);
  transition: ease-in-out;
  background-color: rgb(234, 210, 78);
}

.btn-login-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #ffffffcc;
}

/* ====== Cards / Grids ====== */
.login-grid {
  display: grid;
  gap: 18px;
  max-width: 520px; /* limite la largeur totale du grid */
  margin: 0 auto; /* centre le grid horizontalement */
  padding: 0 20px; /* padding pour respirer sur les côtés */
  margin-bottom: 1rem;
  text-align: center;
}

.label {
  margin: 10px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--card);
  border: 1px solid #eee5d4;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  border-color: #f5d88b;
}

.card {
  background: var(--card);
  border: 1px solid #eee5d4;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card h3 {
  margin: 6px 0 8px;
}
.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.login-card {
  background: var(--card);
  border: 1px solid #eee5d4;
  border-radius: 18px;
  padding: 18px;
  width: 520px;
  margin: auto;
  margin-top: 5%;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
}

.login-card:hover {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  border-color: #f5d88b;
}

.login-card h3 {
  margin: 6px 0 8px;
}

@media (max-width: 860px) {
  .login-card {
    width: 320px;
    margin: auto;
  }
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.insijem {
  color: var(--gold);
}

.alert {
  display: none;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: bold;
}

.alert.error {
  background-color: #ff6d4c;
  color: #fff;
}

.alert.success {
  background-color: #00bf62;
  color: #fff;
}

.redlist {
  background-color: var(--gold);
  color: black;
  width: 300px;
  margin: auto;
  text-align: center;
  border-radius: 6px;
}

.equipe {
  background: var(--gold);
}

.equipe {
  background: #f9ebcb;
  background-size: 600% 600%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

.maintien {
  background: rgba(255, 255, 255, 0.1); /* léger blanc transparent */
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(7px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3); /* bordure subtile */
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.39); /* glow léger */
  padding: 0.5rem;
  color: white;
}

.btn3 {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  background: #ffffff4a;
  backdrop-filter: blur(22px);
  color: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
}

.btn3:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(228, 219, 204, 0.4);
  transition: ease-in-out 0.3s;
}

.btn3-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #ffffffcc;
  z-index: 999;
}

.btn3-outline:hover {
  transform: scale(1);
  background: #c8c8c8;
  color: #fff;
  transition: ease;
}

.btn-delete {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  background: var(--red);
  color: white;
  box-shadow: var(--red);
  margin-top: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.btn-add-project {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: #fff;
  font-size: 24px;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: background-color 0.2s;
}

.btn-add-project:hover {
  background-color: #0056b3;
}


