/* --- CSS Reset & Variables --- */
:root {
  --brand-teal: #00a8a8;
  --brand-teal-light: #e6f7f7;
  --brand-orange: #ff8a00;
  --brand-orange-dark: #ff8c2a;
  --brand-dark: #1a2b4b;
  --brand-gray: #6b7280;
  --gradient-main: linear-gradient(90deg, #00b4b4 0%, #ff7b00 100%);
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #a4a7ad;
  --gray-400: #858991;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --container-max-width: 1250px;
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--gray-900);
  background-color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
.hamburger {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--brand-dark);
  display: none; /* Masqué par défaut, affiché sur mobile via JS */
}

.main-header {
  position: fixed;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-100);
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content {
  display: flex; /* <- Passe en flex au lieu de grid */
  align-items: center;
  justify-content: space-between; /* Logo | Nav | Boutons */
  width: 100%;
  padding: 14px 24px;
}

.logo {
  position: relative;
  line-height: 0;
  max-width: 130px; /* plus besoin de display ici */
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
  width: max-content; /* prend juste ce qu'il faut */
  justify-self: center; /* centre la colonne du milieu dans le grid */
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--brand-teal);
}

.nav-link.active {
  color: var(--brand-teal);
  font-weight: 600;
  border-bottom: 2px solid var(--brand-teal);
  padding-bottom: 0.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-outline {
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--brand-teal);
  color: white;
  font-weight: 600;
  transition: var(--transition);
  display: none;
  width: max-content; /* prend juste ce qu'il faut */
  justify-self: center; /* centre la colonne du milieu dans le grid */
}

.btn-outline:hover {
  background-color: var(--brand-teal);
  color: var(--white);
}

.btn-primary {
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--brand-orange);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(242, 140, 40, 0.2);
  transition: var(--transition);
  width: max-content; /* prend juste ce qu'il faut */
  justify-self: center; /* centre la colonne du milieu dans le grid */
}

.btn-primary:hover {
  opacity: 0.9;
}

main {
  margin-top: 91px;
}

.accent-line {
  width: 64px;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--brand-teal) 0%,
    var(--brand-teal) 40%,
    var(--brand-orange) 60%,
    var(--brand-orange) 100%
  );
  border-radius: 9999px;
  margin-top: 1rem;
  display: block; /* important si c'est un span ou un div vide */
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray-500);
}

.dot.active {
  background-color: var(--brand-teal);
}

/* --- Features Section --- */
.features {
  padding: 0 0 3rem 0;
  margin-top: -5rem;
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  align-items: center;
  justify-items: center;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.border {
  border: 2px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* ombre très douce */
  border-radius: 1.5rem; /* optionnel: rend l'ombre plus jolie */
}

.feature {
  width: 100%; /* il faut une largeur */
  height: 100%;
  margin: 0 auto; /* auto à gauche et droite */
}

.feature-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
}

.feature-icon-wrapper .icon {
  width: 40px;
  height: 40px;
}

.feature-icon-wrapper.teal {
  background-color: #bce0d8;
  color: var(--brand-teal);
}

.feature-icon-wrapper.orange {
  background-color: #fad68f;
  color: var(--brand-orange);
}

.feature-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.65rem;
  color: var(--gray-800);
}

/* --- Stats Section --- */
.stats {
  padding: 1rem 0;
}

.stats-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background-color: #ceecec;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-item {
  display: flex;
  justify-content: center; /* centre horizontal */
  align-items: center; /* centre vertical */
  height: auto; /* il faut une hauteur au parent */
  gap: 1rem;
}

.stat-item:not(:first-child) {
  border-left: 2px solid #8cd3d3;
}

.stat-item .icon {
  width: 56px;
  height: 56px;
  color: var(--brand-teal);
}

.stat-content .stat-num {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.2;
}

.stat-content .stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* --- CTA Section --- */
.cta-banner {
  background: linear-gradient(
    90deg,
    var(--brand-teal) 0%,
    var(--brand-orange) 70%,
    var(--brand-orange) 100%
  );
  border-radius: 2.5rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--white);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.cta-banner:hover {
  transform: translateY(-5px);
}

.cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 20px 20px;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.cta-icon-box {
  width: 70px;
  height: 70px;
  background-color: #ffffff; /* cercle blanc */
  border-radius: 50%;
  display: flex;

  /* 2 calques de masque : Cercle + Nouvelle Icône */
  -webkit-mask:
    radial-gradient(circle, black 100%, transparent 100%),
    /* calque 1: cercle plein */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Cpath d='M11.7 2.805a.75.75 0 0 1 .6 0A60.7 60.7 0 0 1 22.83 8.72a.75.75 0 0 1-.231 1.337a50 50 0 0 0-9.902 3.912l-.003.002l-.34.18a.75.75 0 0 1-.707 0A51 51 0 0 0 7.5 12.173v-.224a.36.36 0 0 1 .172-.311a55 55 0 0 1 4.653-2.52a.75.75 0 0 0-.65-1.352a56 56 0 0 0-4.78 2.589a1.86 1.86 0 0 0-.859 1.228a50 50 0 0 0-4.634-1.527a.75.75 0 0 1-.231-1.337A60.7 60.7 0 0 1 11.7 2.805'/%3E%3Cpath d='M13.06 15.473a48.5 48.5 0 0 1 7.666-3.282q.202 2.122.255 4.284a.75.75 0 0 1-.46.711a48 48 0 0 0-8.105 4.342a.75.75 0 0 1-.832 0a48 48 0 0 0-8.104-4.342a.75.75 0 0 1-.461-.71q.053-2.163.255-4.286q1.382.456 2.726.99v1.27a1.5 1.5 0 0 0-.14 2.508c-.09.38-.222.753-.397 1.11q.678.32 1.346.66a6.7 6.7 0 0 0 .551-1.607a1.5 1.5 0 0 0 .14-2.67v-.645a49 49 0 0 1 3.44 1.667a2.25 2.25 0 0 0 2.12 0'/%3E%3Cpath d='M4.462 19.462c.42-.419.753-.89 1-1.395q.68.321 1.347.662a6.7 6.7 0 0 1-1.286 1.794a.75.75 0 0 1-1.06-1.06'/%3E%3C/g%3E%3C/svg%3E")
      no-repeat center; /* calque 2: nouvelle icône */

  mask:
    radial-gradient(circle, black 100%, transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Cpath d='M11.7 2.805a.75.75 0 0 1 .6 0A60.7 60.7 0 0 1 22.83 8.72a.75.75 0 0 1-.231 1.337a50 50 0 0 0-9.902 3.912l-.003.002l-.34.18a.75.75 0 0 1-.707 0A51 51 0 0 0 7.5 12.173v-.224a.36.36 0 0 1 .172-.311a55 55 0 0 1 4.653-2.52a.75.75 0 0 0-.65-1.352a56 56 0 0 0-4.78 2.589a1.86 1.86 0 0 0-.859 1.228a50 50 0 0 0-4.634-1.527a.75.75 0 0 1-.231-1.337A60.7 60.7 0 0 1 11.7 2.805'/%3E%3Cpath d='M13.06 15.473a48.5 48.5 0 0 1 7.666-3.282q.202 2.122.255 4.284a.75.75 0 0 1-.46.711a48 48 0 0 0-8.105 4.342a.75.75 0 0 1-.832 0a48 48 0 0 0-8.104-4.342a.75.75 0 0 1-.461-.71q.053-2.163.255-4.286q1.382.456 2.726.99v1.27a1.5 1.5 0 0 0-.14 2.508c-.09.38-.222.753-.397 1.11q.678.32 1.346.66a6.7 6.7 0 0 0 .551-1.607a1.5 1.5 0 0 0 .14-2.67v-.645a49 49 0 0 1 3.44 1.667a2.25 2.25 0 0 0 2.12 0'/%3E%3Cpath d='M4.462 19.462c.42-.419.753-.89 1-1.395q.68.321 1.347.662a6.7 6.7 0 0 1-1.286 1.794a.75.75 0 0 1-1.06-1.06'/%3E%3C/g%3E%3C/svg%3E")
      no-repeat center;

  -webkit-mask-size:
    100% 100%,
    50px 50px; /* cercle prend tout, icône 50px */
  mask-size:
    100% 100%,
    50px 50px;

  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.cta-text {
  flex: 1;
  max-width: 550px;
}

.cta-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-text p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.btn-cta {
  background-color: var(--white);
  color: var(--brand-dark);
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn-cta:hover {
  transform: translateX(10px);
}

/* --- Footer --- */
.footer {
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--brand-teal) 0%,
    var(--brand-orange) 70%,
    var(--brand-orange) 100%
  );
  color: var(--white);
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.footer .container {
  position: relative;
  width: 100%; /* prend toute la largeur */
  max-width: 100%; /* on annule la limite du site */
  margin: 0; /* on annule le margin auto et les 20px */
  padding: 0 1.5rem; /* on garde un peu de respiration sur les côtés. Mets 0 si tu veux collé bord à bord */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr); /* <- chaque colonne = largeur de son contenu */
  justify-content: space-between; /* optionnel: répartit l'espace restant entre les colonnes */
  margin-bottom: 1rem;
}

.footer-grid > *:nth-child(1),
.footer-grid > *:nth-child(3) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  padding: 0 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  margin: 1.5rem 0 2rem;
  font-size: 0.8rem;
}

.footer-brand .logo img {
  width: 85%;
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-link {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
}

.footer-col {
  font-size: 0.8rem;
  padding: 0 1rem;
}

.footer-links li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.newsletter {
  padding: 0;
}

.input-group {
  position: relative;
  margin-top: 1rem;
}

.input-group input {
  width: 100%;
  background-color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  color: var(--white);
  font-size: 0.875rem;
  outline: none;
}

.input-group input::placeholder {
  color: var(--gray-500);
}

.input-group button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  background-color: var(--brand-orange);
  color: var(--white);
  border-radius: 0.5rem;
  padding: 0 1rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: grid;
  grid-template-columns: 0.7fr repeat(2, 1fr);
}

.footer-legal a {
  padding: 0 1rem;
}

.footer-legal > *:nth-child(1),
.footer-legal > *:nth-child(2) {
  border-right: 2px solid rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
  color: var(--white);
}

/* --- Icons SVGs --- */
.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.icon-sm {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.stroke-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 2. HERO + SECTIONS GENERALES */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== GRILLES RESPONSIVES ===== */

/* --- FEATURES --- */
.features {
  margin-top: 0;
  padding: 3rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr; /* MOBILE: 1 colonne */
  gap: 0;
}

.feature {
  padding: 1.5rem 1rem;
  border-left: none;
}

/* --- STATS --- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr; /* MOBILE: 1 colonne */
  gap: 0;
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-item:not(:first-child) {
  border-left: none;
  border-top: 2px solid #8cd3d3;
}

.stat-item .icon {
  width: 40px;
  height: 40px;
}

/* 4. SCROLL HORIZONTAL MOBILE */
.projects-scroll,
.testimonials-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.project-card,
.testimonial-card {
  scroll-snap-align: start;
}

/* 5. CTA ET FOOTER */
.cta-banner {
  flex-direction: row;
}

.end-quote {
  padding: 0 0 3rem;
  text-align: center;
}

.end-quote p {
  margin: 0;

  color: var(--gray-500);

  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
}

.footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-grid > *:nth-child(1),
.footer-grid > *:nth-child(3) {
  border-right: none;
}

.footer-bottom {
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.footer-legal {
  grid-template-columns: 1fr;
}

.footer-legal > * {
  border-right: none !important;
  padding: 0.25rem 0;
}

/* =========================================
   MODAL — NOUS REJOINDRE
========================================= */

.join-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 1rem;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.join-modal.active {
  visibility: visible;

  opacity: 1;
}

/* =========================================
   OVERLAY
========================================= */

.join-modal-overlay {
  position: absolute;

  inset: 0;

  background: rgba(15, 23, 42, 0.58);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =========================================
   DIALOGUE
========================================= */

.join-dialog {
  position: relative;

  width: min(1000px, 100%);

  height: auto;

  padding: 2rem 2rem;

  overflow: hidden;

  background: var(--white);

  border: 1px solid rgba(148, 163, 184, 0.2);

  border-radius: 2rem;

  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.28);

  transform: translateY(30px) scale(0.96);

  transition: transform 0.4s ease;
}

.join-modal.active .join-dialog {
  transform: translateY(0) scale(1);
}

/* =========================================
   FERMETURE
========================================= */

.join-close {
  position: absolute;

  top: 1.25rem;
  right: 1.25rem;

  z-index: 50;

  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: none;

  border-radius: 50%;

  background: var(--gray-100);

  color: var(--gray-700);

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.join-close:hover {
  background: var(--brand-teal);

  color: white;

  transform: rotate(90deg);
}

/* =========================================
   HEADER
========================================= */

.join-header {
  position: relative;

  z-index: 20;

  max-width: 650px;

  margin: 0 auto;

  text-align: center;
}

.join-header .section-label {
  display: inline-block;

  margin-bottom: 0.8rem;

  color: var(--brand-orange);

  font-size: 0.7rem;

  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.join-header h2 {
  margin: 0 0 0.3rem;
  color: var(--gray-900);
  font-size: clamp(1.8rem, 4vw, 2rem);

  font-weight: 800;

  line-height: 1.1;
}

.join-header h2 span {
  background: linear-gradient(135deg, #00a8a8, #ff8a00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.join-header p {
  margin: 0;

  color: var(--gray-600);

  font-size: 0.85rem;

  line-height: 1.6;
}

/* =========================================
   JOIN CAROUSEL
========================================= */

.join-carousel {
  position: relative;

  width: 100%;
  height: 390px;

  perspective: 1200px;
}

/* =========================================
   CARTE
========================================= */

.join-card {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 260px;
  height: 330px;

  padding: 2rem 1.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 1.7rem;

  color: white;
  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transform-origin: center center;

  transition:
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.5s ease,
    filter 0.5s ease,
    box-shadow 0.5s ease;

  will-change: transform;

  /*
   * Très important :
   * aucune rotation de la carte elle-même.
   */
  rotate: none;
}

/* =========================================
   POSITION GAUCHE
   ================================ */

.join-card[data-position="left"] {
  transform: translate3d(calc(-50% - 235px), calc(-50% + 45px), -100px)
    scale(0.78);

  z-index: 10;

  opacity: 0.72;

  filter: brightness(0.92);
}

/* =========================================
   POSITION CENTRALE
========================================= */

.join-card[data-position="center"] {
  transform: translate3d(-50%, calc(-50% + 10px), 0) scale(0.9);

  z-index: 30;

  opacity: 1;

  filter: none;

  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.18);
}

/* =========================================
   POSITION DROITE
========================================= */

.join-card[data-position="right"] {
  transform: translate3d(calc(-50% + 235px), calc(-50% + 45px), -100px)
    scale(0.78);

  z-index: 10;

  opacity: 0.72;

  filter: brightness(0.92);
}

/* =========================================
   CARTE CENTRALE ACTIVE
   Premier clic
========================================= */

.join-card[data-position="center"].is-selected {
  transform: translate3d(-50%, -50%, 100px) scale(1.08);

  z-index: 50;

  box-shadow: 0 35px 75px rgba(15, 23, 42, 0.28);
}

/*
 * Petit halo lorsqu'elle est sélectionnée.
 */

.join-card[data-position="center"].is-selected::after {
  content: "";

  position: absolute;

  inset: -8px;

  border-radius: inherit;

  border: 2px solid rgba(255, 255, 255, 0.35);

  pointer-events: none;

  animation: joinSelectedPulse 1.8s ease-in-out infinite;
}

@keyframes joinSelectedPulse {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

/* =========================================
   COULEURS
========================================= */

.join-card-partner {
  background: linear-gradient(145deg, #00a8a8, #007d7d);
}

.join-card-member {
  background: linear-gradient(145deg, #f28c28, #dc6f0b);
}

.join-card-collaborator {
  background: linear-gradient(145deg, #6878dc, #4658bd);
}

/* =========================================
   CONTENU
========================================= */

.join-card-icon {
  width: 72px;
  height: 72px;

  margin-bottom: 1.3rem;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 1.3rem;

  background: rgba(255, 255, 255, 0.16);

  border: 1px solid rgba(255, 255, 255, 0.22);
}

.join-card-icon .material-symbols-rounded {
  font-size: 34px;
}

.join-card-number {
  display: block;

  margin-bottom: 0.5rem;

  font-size: 0.65rem;

  font-weight: 800;

  letter-spacing: 0.15em;

  opacity: 0.7;
}

.join-card h3 {
  margin: 0 0 0.7rem;

  font-size: 1.05rem;

  font-weight: 800;

  line-height: 1.25;
}

.join-card p {
  max-width: 205px;

  margin: 0;

  font-size: 0.76rem;

  line-height: 1.6;

  opacity: 0.88;
}

.join-arrow {
  position: absolute;

  right: 1.2rem;
  bottom: 1.2rem;

  font-size: 20px;

  opacity: 0.7;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.join-card[data-position="center"]:hover .join-arrow {
  opacity: 1;

  transform: translateX(5px);
}

/* =========================================
   INDICATION
========================================= */

.join-hint {
  position: absolute;

  bottom: 1.3rem;

  left: 50%;

  transform: translateX(-50%);

  width: 100%;

  margin: 0;

  color: var(--gray-500);

  font-size: 0.68rem;

  text-align: center;
}

/* =========================================
   TABLETTE
========================================= */

@media (min-width: 640px) and (max-width: 1200px) {
  .join-carousel {
    height: 340px;
  }

  .join-card {
    width: 220px;
    height: 280px;
  }

  .join-card[data-position="left"] {
    transform: translate3d(calc(-50% - 180px), calc(-50% + 35px), -80px)
      scale(0.76);
  }

  .join-card[data-position="right"] {
    transform: translate3d(calc(-50% + 180px), calc(-50% + 35px), -80px)
      scale(0.76);
  }

  .join-card[data-position="center"] {
    transform: translate3d(-50%, calc(-50% + 5px), 0) scale(0.9);
  }

  .join-card[data-position="center"].is-selected {
    transform: translate3d(-50%, -50%, 80px) scale(1.04);
  }

  .join-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 639px) {
  .join-carousel {
    height: 300px;

    perspective: 900px;
  }

  .join-card {
    width: 180px;
    height: 245px;

    padding: 1rem;
  }

  .join-card[data-position="left"] {
    transform: translate3d(calc(-50% - 115px), calc(-50% + 25px), -60px)
      scale(0.72);
  }

  .join-card[data-position="right"] {
    transform: translate3d(calc(-50% + 115px), calc(-50% + 25px), -60px)
      scale(0.72);
  }

  .join-card[data-position="center"] {
    transform: translate3d(-50%, calc(-50% + 5px), 0) scale(0.84);
  }

  .join-card[data-position="center"].is-selected {
    transform: translate3d(-50%, -50%, 60px) scale(1);
  }

  .join-card-icon {
    width: 52px;
    height: 52px;

    margin-bottom: 0.8rem;
  }

  .join-card-icon .material-symbols-rounded {
    font-size: 26px;
  }

  .join-card h3 {
    font-size: 0.85rem;
  }

  .join-card p {
    max-width: 145px;

    font-size: 0.65rem;
  }
}

/* =========================================
   TRÈS PETITS ÉCRANS
========================================= */

@media (max-width: 380px) {
  .join-carousel {
    height: 280px;
  }

  .join-card {
    width: 165px;
    height: 225px;
  }

  .join-card[data-position="left"] {
    transform: translate3d(calc(-50% - 100px), calc(-50% + 20px), -50px)
      scale(0.7);
  }

  .join-card[data-position="right"] {
    transform: translate3d(calc(-50% + 100px), calc(-50% + 20px), -50px)
      scale(0.7);
  }

  .join-card h3 {
    font-size: 0.75rem;
    margin: 0 0 0.1rem;
  }

  .join-arrow {
    right: 1rem;
    bottom: 0.7rem;
  }
}

/* =========================================================
   RESPONSIVE — REGROUPEMENT DES BREAKPOINTS
   ========================================================= */

@media (max-width: 1024px) {
  .nav-wrapper {
    display: none;
  }

  .nav-wrapper.active {
    display: flex;
    position: fixed;
    width: 50%;
    background: #fff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    justify-self: anchor-center;
    top: 20%;
    right: -50%;
    height: calc(93vh - 70px);
    overflow-y: auto; /* scroll vertical */
    overflow-x: hidden;
    z-index: 999;
  }

  .nav-wrapper.active .nav-desktop,
  .nav-wrapper.active .header-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== RESPONSIVE FIXES ===== */
/* 1. HEADER RESPONSIVE */

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
  .btn-outline {
    display: block;
  }
  .hamburger {
    display: none;
  }

  .features {
    margin-top: -5rem;
  }

  .features-grid {
    grid-template-columns: repeat(5, 1fr); /* DESKTOP: 5 colonnes */
  }

  .feature:not(:first-child) {
    border-left: 2px solid var(--gray-200); /* séparation verticale desktop */
    border-top: none;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr); /* DESKTOP: 4 colonnes */
  }

  .stat-item:not(:first-child) {
    border-left: 2px solid #8cd3d3;
    border-top: none;
  }

  .footer-grid > *:nth-child(1),
  .footer-grid > *:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 1023px) {
  .header-content {
    grid-template-columns: 1fr auto 1fr; /* logo | burger | vide */
    margin: 12px 20px;
  }
  .logo {
    justify-self: start;
  }
  .logo img {
    max-width: 140px;
  }
  .hamburger {
    display: block;
    justify-self: end;
  }
  .nav-desktop,
  .header-actions {
    display: none;
  }

  /* Menu mobile qui s'ouvre au clic */
  .nav-desktop.nav-mobile {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
  }
  .nav-desktop.nav-mobile .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-btns,
  .social-proof {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  } /* image au dessus sur mobile */
  .features {
    margin-top: 0;
  } /* enlève le chevauchement sur mobile */
}

@media (min-width: 640px) and (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr); /* TABLETTE: 2 colonnes */
  }

  /* 1. FEATURES */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature {
    border-top: none; /* pas de bordure en bas */
    border-left: none; /* reset */
    padding: 1.5rem 1rem;
  }

  .feature:not(:first-child) {
    border-top: none;
  }

  /* Toutes les cases SAUF 1ère colonne : 2,3,5,6,8,9... */
  .feature:not(:nth-child(3n + 1)) {
    border-left: 2px solid var(--gray-200);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr); /* TABLETTE: 2 colonnes */
  }

  /* sur tablette 2 colonnes : on remet la border à gauche pour la 2ème et 4ème */
  .stat-item:nth-child(2n),
  .stat-item:nth-child(4n) {
    border-left: 2px solid #8cd3d3;
  }
  .stat-item:not(:first-child) {
    border-top: none;
  }
}

@media (max-width: 639px) {
  .feature:nth-child(n + 3) {
    border-top: 2px solid var(--gray-200);
  }

  .feature:nth-child(2) {
    border-left: none;
  }

  .end-quote p {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .stat-item .icon {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 768px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .cta-content {
    flex-direction: column;
  }
}

/* 6. PETITS FIX MOBILE */

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }
  .section-padding {
    padding: 3rem 0;
  }
  .btn-outline,
  .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  .feature-card h3 {
    font-size: 1rem;
  }
  .feature-card p {
    font-size: 0.875rem;
  }
}

/* ===== HEADER BURGER A PARTIR DE 1200px ===== */

@media (min-width: 1201px) {
  .header-content {
    grid-template-columns: auto 1fr auto;
  }
  .nav-wrapper {
    display: contents; /* garde le layout grid sur desktop */
  }
  .nav-desktop {
    display: flex;
  }
  .btn-outline {
    display: block;
  }
  .hamburger {
    display: none;
  }
}

@media (max-width: 1200px) {
  .header-content {
    grid-template-columns: 1fr auto; /* logo | burger */
    margin: 12px 20px;
  }

  .logo {
    justify-self: start;
  }

  .hamburger {
    display: block;
    justify-self: end;
  }

  .hamburger .close-icon {
    display: none;
  }

  .hamburger.active .menu-icon {
    display: none;
  }

  .hamburger.active .close-icon {
    display: block;
  }

  .nav-wrapper {
    display: none; /* caché par défaut */
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1.5rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
    z-index: 99;
  }

  /* Quand on clique sur burger */
  .nav-wrapper.nav-mobile {
    display: flex;
  }

  .nav-desktop {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-link {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
  }
  .nav-link.active {
    border-bottom: 2px solid var(--brand-teal);
  }

  .header-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding-top: 0.5rem;
  }

  .btn-outline,
  .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
  }

  main {
    margin-top: 112px;
  }

  .join-arrow{
    width: 24px;
    height: 24px;
  }
}
