/* =============================================
   ALTERNATIV SOLUTIONS - SITE WEB FORMATIONS
   Palette inspirée du logo : vert forêt, vert clair, ocre brun, or
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --vert-fonce: #2d6a1f;
  --vert-moyen: #4a9e30;
  --vert-clair: #7dc95e;
  --vert-pastel: #c8e6b5;
  --ocre: #8b5e3c;
  --brun: #6b3f1c;
  --or: #d4a017;
  --or-clair: #f5d060;
  --beige: #fdf6ec;
  --blanc: #ffffff;
  --gris-clair: #f4f4f4;
  --texte: #2c2c2c;
  --texte-clair: #666666;
  --shadow: 0 8px 30px rgba(45, 106, 31, 0.15);
  --shadow-hover: 0 15px 50px rgba(45, 106, 31, 0.25);
  --radius: 20px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== RESET & BASE ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--texte);
  background: var(--blanc);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ===================== NAVIGATION ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(74, 158, 48, 0.15);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.navbar.scrolled {
  padding: 0.5rem 2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.navbar-brand .brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--vert-fonce);
  line-height: 1;
}

.navbar-brand .brand-sub {
  font-size: 0.7rem;
  color: var(--ocre);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.navbar-nav a {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--texte);
  transition: var(--transition);
  white-space: nowrap;
}

.navbar-nav a:hover {
  background: var(--vert-pastel);
  color: var(--vert-fonce);
  transform: translateY(-2px);
}

.navbar-nav .btn-inscription {
  background: linear-gradient(135deg, var(--vert-moyen), var(--vert-fonce));
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-weight: 700;
}

.navbar-nav .btn-inscription:hover {
  background: linear-gradient(135deg, var(--vert-clair), var(--vert-moyen));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 158, 48, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--vert-fonce);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================== HERO SECTION ===================== */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #e8f5e0 0%, #f0fae8 30%, #fff9ef 60%, #fef4dc 100%);
}

/* Background particules canvas */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Cercles décoratifs flottants */
.hero-deco-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}

.deco-circle-1 {
  width: 600px;
  height: 600px;
  background: var(--vert-moyen);
  top: -200px;
  right: -100px;
  animation: floatCircle 8s ease-in-out infinite;
}

.deco-circle-2 {
  width: 400px;
  height: 400px;
  background: var(--or);
  bottom: -100px;
  left: -80px;
  animation: floatCircle 10s ease-in-out infinite reverse;
}

.deco-circle-3 {
  width: 250px;
  height: 250px;
  background: var(--ocre);
  top: 30%;
  left: 20%;
  animation: floatCircle 12s ease-in-out infinite 2s;
}

@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* Feuilles décoratives */
.hero-leaves {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.leaf {
  position: absolute;
  font-size: 1.5rem;
  animation: floatLeaf 6s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
  50% { transform: translateY(-20px) rotate(15deg); opacity: 0.7; }
}

/* Étoiles scintillantes */
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--or);
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ---- Contenu hero ---- */
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(74, 158, 48, 0.12);
  border: 1px solid rgba(74, 158, 48, 0.3);
  color: var(--vert-fonce);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
  animation: fadeInDown 0.8s ease forwards;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vert-moyen);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--vert-fonce);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
  position: relative;
  color: var(--vert-moyen);
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--or), var(--or-clair));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 1s ease 1s forwards;
}

@keyframes lineGrow {
  to { transform: scaleX(1); }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--texte-clair);
  font-weight: 400;
  animation: fadeInUp 0.8s ease 0.4s both;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease 0.5s both;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 0.8rem 1.2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  min-width: 80px;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--vert-fonce);
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--texte-clair);
  text-align: center;
  font-weight: 600;
  margin-top: 2px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.6s both;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--vert-moyen), var(--vert-fonce));
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 6px 25px rgba(74, 158, 48, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.btn-primary:hover::before {
  transform: scale(1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(74, 158, 48, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--vert-fonce);
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--vert-pastel);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--vert-pastel);
  border-color: var(--vert-clair);
  transform: translateY(-3px);
}

/* ---- Mascotte zone ---- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease 0.3s both;
}

.mascotte-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 70px; /* espace pour la bulle au-dessus */
}

.mascotte-bg-circle {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 158, 48, 0.12) 0%, rgba(74, 158, 48, 0.04) 60%, transparent 80%);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.mascotte-img {
  width: 320px;
  max-width: 100%;
  position: relative;
  z-index: 2;
  animation: mascotteFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(45, 106, 31, 0.3));
}

@keyframes mascotteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.mascotte-speech-bubble {
  position: absolute;
  /* Bulle placée AU-DESSUS de la mascotte, ne la cachant pas */
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 20px;
  padding: 0.8rem 1.1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  max-width: 230px;
  width: max-content;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--vert-fonce);
  animation: bubbleFloat 4s ease-in-out infinite 1s;
  z-index: 10;
  line-height: 1.4;
  text-align: center;
  border: 2px solid rgba(74,158,48,0.15);
}

/* Petite flèche pointant vers le bas (vers la mascotte) */
.mascotte-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px 10px 0 10px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}
.mascotte-speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 13px 11px 0 11px;
  border-style: solid;
  border-color: rgba(74,158,48,0.15) transparent transparent transparent;
}

.mascotte-speech-bubble .bubble-emoji {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* Orbites décoratifs autour de la mascotte */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(74, 158, 48, 0.2);
  animation: rotate linear infinite;
}

.orbit-1 {
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 20s;
}

.orbit-2 {
  width: 520px;
  height: 520px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 30s;
  animation-direction: reverse;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Points sur les orbites */
.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--or);
  top: -6px;
  left: calc(50% - 6px);
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.5);
}

.orbit-dot-2 {
  background: var(--vert-clair);
  box-shadow: 0 0 10px rgba(125, 201, 94, 0.5);
}

/* ===================== SEARCH SECTION ===================== */
.search-section {
  position: relative;
  z-index: 5;
  padding: 0 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.search-card {
  background: white;
  border-radius: 25px;
  padding: 2rem 2.5rem;
  box-shadow: 0 10px 50px rgba(45, 106, 31, 0.12);
  border: 1px solid rgba(74, 158, 48, 0.1);
}

.search-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--vert-fonce);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-bar {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.search-input {
  flex: 1;
  padding: 0.9rem 1.5rem;
  border: 2px solid var(--vert-pastel);
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--texte);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--vert-moyen);
  box-shadow: 0 0 0 4px rgba(74, 158, 48, 0.1);
}

.search-btn {
  background: linear-gradient(135deg, var(--vert-moyen), var(--vert-fonce));
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 158, 48, 0.4);
}

.sector-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--texte-clair);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sector-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.sector-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--gris-clair);
  border: 2px solid transparent;
  border-radius: 25px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--texte);
  cursor: pointer;
  transition: var(--transition);
}

.sector-btn:hover, .sector-btn.active {
  background: var(--vert-pastel);
  border-color: var(--vert-moyen);
  color: var(--vert-fonce);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 158, 48, 0.2);
}

/* Résultats recherche */
.search-results {
  display: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--vert-pastel);
}

.search-results.visible {
  display: block;
  animation: fadeInDown 0.3s ease;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.result-card {
  background: var(--gris-clair);
  border-radius: 15px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.result-card .result-info {
  flex: 1;
  min-width: 0;
}

.result-card:hover {
  background: var(--vert-pastel);
  border-color: var(--vert-moyen);
  transform: translateX(5px);
}

.result-card .result-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.result-card .result-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--vert-fonce);
}

.result-card .result-info span {
  font-size: 0.75rem;
  color: var(--texte-clair);
}

/* Tags de centres dans les résultats de recherche */
.result-centres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.result-centre-tag {
  display: inline-block;
  background: rgba(74,158,48,0.12);
  color: var(--vert-fonce);
  border: 1px solid rgba(74,158,48,0.3);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.result-mayotte-badge {
  display: inline-block;
  background: rgba(30,105,210,0.12);
  color: #1e5fa8;
  border: 1px solid rgba(30,105,210,0.3);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ===================== SECTIONS COMMUNES ===================== */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background: var(--beige);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--vert-fonce);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--texte-clair);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--vert-moyen), var(--or));
  border-radius: 2px;
  margin: 0.8rem auto 1rem;
}

/* ===================== CENTRES CARDS ===================== */
.centres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.centre-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  display: block;
}

.centre-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--vert-clair);
}

.centre-card-header {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.centre-card-header .card-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 20px 20px;
}

.centre-card-header .card-logo {
  height: 70px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: brightness(0) invert(1);
}

.centre-reunion { background: linear-gradient(135deg, var(--vert-fonce), var(--vert-moyen)); }
.centre-mayotte { background: linear-gradient(135deg, #6a3d9f, #9b59b6); }
.centre-abf { background: linear-gradient(135deg, #1a5276, #2e86c1); }
.centre-emf { background: linear-gradient(135deg, #1f618d, #148f77); }

.centre-card-body {
  padding: 1.5rem;
}

.centre-card-body h3 {
  font-size: 1.1rem;
  color: var(--vert-fonce);
  margin-bottom: 0.5rem;
}

.centre-card-body p {
  font-size: 0.9rem;
  color: var(--texte-clair);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.centre-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--vert-pastel);
  color: var(--vert-fonce);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-right: 0.3rem;
}

.centre-card-footer {
  padding: 1rem 1.5rem;
  background: var(--gris-clair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vert-fonce);
}

/* ===================== BULLES ANIMÉES ===================== */
.bubbles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  animation: bubbleRise linear infinite;
  opacity: 0;
}

@keyframes bubbleRise {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* ===================== AVANTAGES / INFOS ===================== */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.avantage-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.avantage-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--vert-moyen);
}

.avantage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.avantage-card h3 {
  font-size: 1rem;
  color: var(--vert-fonce);
  margin-bottom: 0.5rem;
}

.avantage-card p {
  font-size: 0.85rem;
  color: var(--texte-clair);
}

/* ===================== FINANCEMENT ===================== */
.financement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.financement-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.financement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.financement-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.financement-card h3 {
  font-size: 1.1rem;
  color: var(--vert-fonce);
  margin-bottom: 0.5rem;
}

.financement-card p {
  font-size: 0.85rem;
  color: var(--texte-clair);
}

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--vert-moyen) 50%, var(--vert-clair) 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 25px 25px;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: white;
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--vert-fonce);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  position: relative;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* ===================== FOOTER ===================== */
.footer {
  background: linear-gradient(180deg, #1a3a0d, #0f2208);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--vert-moyen);
  color: white;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--or-clair);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--vert-clair);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.qualiopi-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

/* ===================== PAGE CENTRE ===================== */
.page-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 0.5rem;
  position: relative;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  position: relative;
  max-width: 600px;
}

.page-hero .page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ===================== FORMATIONS LISTE ===================== */
.formations-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.formations-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--vert-pastel);
  background: white;
  border-radius: 25px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--texte);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--vert-fonce);
  border-color: var(--vert-fonce);
  color: white;
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.formation-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: block;
  color: inherit;
  text-decoration: none;
  border: 2px solid transparent;
}

.formation-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--vert-clair);
}

.formation-card-header {
  padding: 1.5rem;
  position: relative;
}

.formation-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  background: var(--vert-pastel);
  color: var(--vert-fonce);
}

.formation-card-header h3 {
  font-size: 1.05rem;
  color: var(--vert-fonce);
  line-height: 1.3;
}

.formation-card-body {
  padding: 0 1.5rem 1rem;
}

.formation-card-body p {
  font-size: 0.85rem;
  color: var(--texte-clair);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.formation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--texte-clair);
  font-weight: 600;
}

.formation-card-footer {
  padding: 1rem 1.5rem;
  background: var(--gris-clair);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-voir {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, var(--vert-moyen), var(--vert-fonce));
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-voir:hover {
  transform: translateX(3px);
}

/* ===================== PAGE FORMATION ===================== */
.formation-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--vert-moyen) 100%);
}

.formation-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}

.formation-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.formation-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: white;
  margin-bottom: 1rem;
}

.formation-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.formation-chips {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.formation-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.formation-main {}

.section-box {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.section-box h2 {
  font-size: 1.2rem;
  color: var(--vert-fonce);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-box p {
  font-size: 0.95rem;
  color: var(--texte-clair);
  line-height: 1.7;
}

.section-box ul {
  list-style: none;
  padding: 0;
}

.section-box ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--texte-clair);
  line-height: 1.6;
}

.section-box ul li::before {
  content: '✅';
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

/* Accordéon programme */
.accordion-item {
  border: 1px solid var(--vert-pastel);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.accordion-header {
  padding: 1rem 1.2rem;
  background: var(--gris-clair);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--vert-fonce);
  transition: var(--transition);
  user-select: none;
}

.accordion-header:hover {
  background: var(--vert-pastel);
}

.accordion-header.open {
  background: var(--vert-pastel);
  border-bottom: 1px solid var(--vert-moyen);
}

/* Support .accordion-item.open (depuis formation.js) */
.accordion-item.open .accordion-header {
  background: var(--vert-pastel);
  border-bottom: 1px solid var(--vert-moyen);
}

.accordion-item.open .accordion-header .acc-icon {
  transform: rotate(180deg);
}

.accordion-header .acc-icon {
  transition: transform 0.3s ease;
}

.accordion-header.open .acc-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-body.open {
  max-height: 1000px;
}

/* Support .accordion-item.open (depuis formation.js) */
.accordion-item.open .accordion-body {
  max-height: 1500px;
}

.accordion-body-inner {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--texte-clair);
}

/* Sidebar formation */
.formation-sidebar {}

.sidebar-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.sidebar-card-header {
  background: linear-gradient(135deg, var(--vert-fonce), var(--vert-moyen));
  padding: 1.2rem 1.5rem;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-card-body {
  padding: 1.5rem;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gris-clair);
  font-size: 0.9rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .info-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-row .info-content {
  flex: 1;
}

.info-row .info-content strong {
  display: block;
  font-weight: 700;
  color: var(--texte);
  font-size: 0.85rem;
}

.info-row .info-content span {
  color: var(--texte-clair);
  font-size: 0.85rem;
}

.btn-inscription {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--or), var(--or-clair));
  color: var(--brun);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  transition: var(--transition);
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

.btn-inscription:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4);
}

.btn-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gris-clair);
  color: var(--vert-fonce);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  margin-top: 0.8rem;
  width: 100%;
  text-align: center;
  border: 2px solid var(--vert-pastel);
}

.btn-pdf:hover {
  background: var(--vert-pastel);
  border-color: var(--vert-moyen);
}

/* ===================== DEBOUCHES ===================== */
.debouches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.debouche-item {
  background: var(--vert-pastel);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vert-fonce);
}

.debouche-item span {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
  background: var(--gris-clair);
  padding: 0.8rem 2rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--vert-moyen);
  font-weight: 600;
  transition: var(--transition);
}

.breadcrumb a:hover { color: var(--vert-fonce); }
.breadcrumb .sep { color: var(--texte-clair); }
.breadcrumb .current { color: var(--texte-clair); font-weight: 400; }

/* ===================== QUALIFICATIONS ===================== */
.qualiopi-section {
  background: linear-gradient(135deg, #e8f5e0, #fff9ef);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--vert-moyen);
}

.qualiopi-section h3 {
  font-size: 1rem;
  color: var(--vert-fonce);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qualiopi-section p {
  font-size: 0.9rem;
  color: var(--texte-clair);
  line-height: 1.6;
}

/* ===================== ANIMATIONS ENTRÉE ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Support des deux classes (visible = JS formation.js, revealed = autre) */
.scroll-reveal.visible,
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibilité : si préférence de réduction des animations */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Sécurité : les section-box, sidebar-card, qualiopi-section sont toujours lisibles */
.section-box,
.sidebar-card,
.qualiopi-section {
  /* Sera géré par JS, mais fallback si JS lent */
  animation: none;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .formation-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--vert-pastel);
  }

  .navbar-nav.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .mascotte-img {
    width: 220px;
  }

  .mascotte-speech-bubble {
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 180px;
    font-size: 0.78rem;
  }

  .orbit-1, .orbit-2 {
    display: none;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .search-section {
    padding: 0 1rem 3rem;
  }

  .search-bar {
    flex-direction: column;
  }

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

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

  .formation-content {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 5rem 1.5rem 3rem;
  }

  .centres-grid {
    grid-template-columns: 1fr;
  }

  .formations-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   PAGES FORMATIONS – COMPOSANTS QUALIOPI
   ============================================= */

/* Liste de programme */
.prog-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.prog-list li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--texte-clair);
  line-height: 1.5;
}
.prog-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
}

/* Prérequis grille */
.prereq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.prereq-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--gris-clair);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.prereq-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.prereq-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--vert-fonce);
  margin-bottom: 0.3rem;
}
.prereq-item p {
  font-size: 0.82rem;
  color: var(--texte-clair);
  line-height: 1.4;
  margin: 0;
}

/* Modalités pédagogiques */
.modalites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.modalite-card {
  background: linear-gradient(135deg, rgba(74,158,48,0.07), rgba(74,158,48,0.02));
  border: 1px solid rgba(74,158,48,0.18);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1rem;
  text-align: center;
  transition: var(--transition);
}
.modalite-card:hover {
  transform: translateY(-3px);
  border-color: var(--vert-moyen);
  box-shadow: var(--shadow);
}
.modalite-card i {
  font-size: 1.8rem;
  color: var(--vert-moyen);
  margin-bottom: 0.5rem;
  display: block;
}
.modalite-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--vert-fonce);
  margin-bottom: 0.4rem;
}
.modalite-card p {
  font-size: 0.8rem;
  color: var(--texte-clair);
  line-height: 1.4;
  margin: 0;
}

/* Timeline évaluation */
.eval-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
  position: relative;
  padding-left: 2rem;
}
.eval-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, #3b82f6, var(--vert-moyen), var(--or), var(--or), #ef4444);
}
.eval-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.eval-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  position: absolute;
  left: -1.65rem;
  top: 3px;
  border: 3px solid white;
  box-shadow: 0 0 0 2px currentColor;
}
.eval-dot.eval-blue { background: #3b82f6; color: #3b82f6; }
.eval-dot.eval-green { background: var(--vert-moyen); color: var(--vert-moyen); }
.eval-dot.eval-orange { background: var(--or); color: var(--or); }
.eval-dot.eval-red { background: #ef4444; color: #ef4444; }
.eval-content {
  background: var(--gris-clair);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  flex: 1;
}
.eval-content strong {
  display: block;
  font-size: 0.92rem;
  color: var(--vert-fonce);
  margin-bottom: 0.4rem;
}
.eval-content p {
  font-size: 0.84rem;
  color: var(--texte-clair);
  line-height: 1.5;
  margin: 0;
}
.eval-list {
  list-style: none;
  padding: 0;
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.eval-list li {
  font-size: 0.83rem;
  color: var(--texte-clair);
  padding-left: 1rem;
  position: relative;
}
.eval-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--vert-moyen);
}

/* Documents officiels */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.doc-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(239,68,68,0.05), rgba(239,68,68,0.01));
  border: 1.5px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  text-decoration: none;
  transition: var(--transition);
  color: var(--texte);
}
.doc-card:hover {
  border-color: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239,68,68,0.12);
}
.doc-card i {
  font-size: 2rem;
  color: #ef4444;
  flex-shrink: 0;
}
.doc-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--vert-fonce);
  margin-bottom: 0.2rem;
}
.doc-card span {
  font-size: 0.78rem;
  color: var(--texte-clair);
}

/* Sidebar methods list */
.sidebar-methods {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sidebar-methods li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--texte-clair);
  line-height: 1.4;
}
.sidebar-methods li i {
  color: var(--vert-moyen);
  margin-top: 2px;
  flex-shrink: 0;
}

/* =============================================
   CORRECTIFS AFFICHAGE – SÉCURITÉ
   ============================================= */

/* Carte centre – logo amélioré */
.card-logo {
  max-width: 85%;
  max-height: 85px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.centre-card:hover .card-logo {
  transform: scale(1.06);
}

/* Breadcrumb */
.breadcrumb {
  padding: 0.75rem 2rem;
  font-size: 0.85rem;
  color: var(--texte-clair);
  background: var(--gris-clair);
  border-bottom: 1px solid rgba(74,158,48,0.12);
}
.breadcrumb a {
  color: var(--vert-moyen);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--texte-clair); opacity: 0.5; }
.breadcrumb .current { color: var(--texte); font-weight: 700; }

/* Correctif : scroll-reveal sur hero de formation – toujours visible */
.formation-hero-content {
  opacity: 1 !important;
  transform: none !important;
}

/* Chip dans les pages de formation – sécurité */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.22);
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* =============================================
   QUIZ – "QUELLE FORMATION EST FAITE POUR MOI ?"
   ============================================= */

.quiz-container {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #fff 0%, #f0faf0 100%);
  border: 2px solid var(--vert-pastel);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  box-shadow: 0 8px 32px rgba(45,106,31,0.10);
  position: relative;
  overflow: hidden;
}
.quiz-container::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,201,94,0.18), transparent 70%);
  pointer-events: none;
}
.quiz-header { text-align: center; padding-bottom: 1.5rem; }
.quiz-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d4a017, #f5d060);
  color: #6b3f1c;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}
.quiz-header h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--vert-fonce);
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.quiz-header p {
  font-size: 0.92rem;
  color: var(--texte-clair);
  max-width: 600px;
  margin: 0 auto 1.2rem;
  line-height: 1.6;
}
.quiz-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--vert-fonce), var(--vert-moyen));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(45,106,31,0.25);
  font-family: 'Poppins', sans-serif;
}
.quiz-start-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45,106,31,0.35);
}
.quiz-progress-bar {
  height: 8px;
  background: var(--vert-pastel);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vert-fonce), var(--vert-moyen), #d4a017);
  border-radius: 50px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}
.quiz-progress-label {
  font-size: 0.8rem;
  color: var(--texte-clair);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: right;
}
.quiz-question { animation: quizFadeIn 0.4s ease; }
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.quiz-q-emoji { font-size: 2.5rem; text-align: center; margin-bottom: 0.5rem; }
.quiz-question h4 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--vert-fonce);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
.quiz-choices { display: flex; flex-direction: column; gap: 0.7rem; }
.quiz-choice {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: white;
  border: 2px solid var(--vert-pastel);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-size: 0.92rem;
  color: var(--texte);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  width: 100%;
}
.quiz-choice:hover {
  border-color: var(--vert-moyen);
  background: rgba(74,158,48,0.05);
  transform: translateX(4px);
}
.quiz-choice.selected {
  border-color: var(--vert-moyen);
  background: linear-gradient(135deg, rgba(74,158,48,0.1), rgba(125,201,94,0.05));
  color: var(--vert-fonce);
}
.quiz-choice-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--vert-pastel);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
  font-size: 0.7rem;
  color: transparent;
}
.quiz-choice.selected .quiz-choice-check {
  background: var(--vert-moyen);
  border-color: var(--vert-moyen);
  color: white;
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}
.quiz-prev-btn, .quiz-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}
.quiz-prev-btn { background: var(--gris-clair); color: var(--texte-clair); }
.quiz-prev-btn:hover { background: var(--vert-pastel); color: var(--vert-fonce); }
.quiz-next-btn {
  background: linear-gradient(135deg, var(--vert-fonce), var(--vert-moyen));
  color: white;
  box-shadow: 0 4px 14px rgba(45,106,31,0.22);
  margin-left: auto;
}
.quiz-next-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,106,31,0.3); }
.quiz-next-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.quiz-finish-btn { background: linear-gradient(135deg, #d4a017, #f5d060) !important; color: #6b3f1c !important; }
.quiz-results { animation: quizFadeIn 0.5s ease; }
.quiz-results-header { text-align: center; margin-bottom: 1.5rem; }
.quiz-results-emoji {
  display: block;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: bounceIn 0.6s ease;
}
@keyframes bounceIn {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.quiz-results-header h3 { font-size: 1.3rem; color: var(--vert-fonce); font-weight: 800; margin-bottom: 0.5rem; }
.quiz-results-header p { font-size: 0.9rem; color: var(--texte-clair); }
.quiz-results-cards { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.quiz-result-card {
  border: 2px solid rgba(45,106,31,0.15);
  border-left: 5px solid var(--card-color, var(--vert-moyen));
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  background: white;
  animation: quizFadeIn 0.5s ease both;
  transition: transform 0.2s ease;
}
.quiz-result-card:hover { transform: translateX(4px); }
.quiz-result-rank { font-size: 0.78rem; font-weight: 700; color: var(--texte-clair); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.5px; }
.quiz-result-sector { font-size: 1rem; font-weight: 800; color: var(--vert-fonce); margin-bottom: 0.8rem; }
.quiz-result-formations { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-result-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--gris-clair);
  border-radius: 10px;
  text-decoration: none;
  color: var(--texte);
  transition: all 0.2s ease;
}
.quiz-result-link:hover { background: var(--vert-pastel); color: var(--vert-fonce); }
.quiz-result-link i:first-child { color: var(--vert-moyen); font-size: 1rem; flex-shrink: 0; }
.quiz-result-link strong { display: block; font-size: 0.88rem; font-weight: 700; }
.quiz-result-link span { display: block; font-size: 0.78rem; color: var(--texte-clair); }
.quiz-arrow { margin-left: auto; color: var(--vert-moyen); font-size: 0.8rem; }
.quiz-restart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gris-clair);
  color: var(--texte-clair);
  border: 2px solid var(--vert-pastel);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  margin: 0 auto;
}
.quiz-restart-btn:hover { background: var(--vert-pastel); color: var(--vert-fonce); border-color: var(--vert-moyen); }

/* =============================================
   SECTION PARTENAIRES
   ============================================= */

.partenaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.partenaire-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.partenaire-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.partenaire-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}
.partenaire-abn {
  background: linear-gradient(135deg, #f0faf5, #e8f8ee);
  border-bottom: 3px solid rgba(57,194,74,0.3);
}
.partenaire-espace-alu {
  background: linear-gradient(135deg, #f0f7fa, #e8f4f8);
  border-bottom: 3px solid rgba(15,76,92,0.25);
}
.partenaire-logo {
  max-height: 110px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}
.partenaire-card:hover .partenaire-logo { transform: scale(1.06); }
.partenaire-body { padding: 1.8rem 2rem; flex: 1; }
.partenaire-badge {
  display: inline-block;
  background: rgba(45,106,31,0.08);
  color: var(--vert-fonce);
  border: 1px solid rgba(45,106,31,0.2);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}
.partenaire-body h3 { font-size: 1.2rem; color: var(--vert-fonce); font-weight: 800; margin-bottom: 0.8rem; font-family: 'Poppins', sans-serif; }
.partenaire-body p { font-size: 0.9rem; color: var(--texte-clair); line-height: 1.7; margin-bottom: 1.2rem; }
.partenaire-points { list-style: none; padding: 0; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.partenaire-points li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--texte-clair); }
.partenaire-points li i { color: var(--vert-moyen); margin-top: 2px; flex-shrink: 0; }
.partenaire-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--vert-fonce), var(--vert-moyen));
  color: white;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(45,106,31,0.2);
}
.partenaire-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,106,31,0.3); color: white; }

/* Logo Espace Aluminium dans la carte centre EMF */
.card-logo-emf {
  filter: none !important;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  padding: 5px 10px;
  max-height: 55px !important;
}

/* Responsive */
@media (max-width: 900px) {
  .partenaires-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .quiz-container { padding: 1.5rem 1.2rem; }
  .quiz-choice { font-size: 0.85rem; padding: 0.75rem 1rem; }
  .quiz-nav { flex-wrap: wrap; }
  .partenaire-logo-wrap { padding: 1.5rem; min-height: 130px; }
  .partenaire-body { padding: 1.2rem 1.5rem; }
}

/* =============================================
   FOOTER ENRICHI – Pages de formation
   ============================================= */
.footer-formation-inner {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  padding: 0 1rem;
}
.footer-formation-brand {
  flex: 0 0 220px;
}
.footer-formation-brand img {
  max-height: 80px;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  margin-bottom: 0.8rem;
  display: block;
}
.footer-formation-brand p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-formation-links {
  flex: 1;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .footer-formation-inner { flex-direction: column; gap: 1.5rem; }
  .footer-formation-brand { flex: none; }
  .footer-formation-links { gap: 1.2rem; }
}

/* =============================================
   BANDEAU PARTENAIRES – PAGES FORMATION MAYOTTE
   ============================================= */
.bandeau-mayotte-wrapper {
  background: #fff;
  border-top: 3px solid #1a5276;
  border-bottom: 3px solid #1a5276;
  padding: 1rem 1.5rem;
  text-align: center;
  margin: 0;
}
.bandeau-mayotte-img {
  max-width: 860px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  /* Le fond blanc de l'image se fond avec le fond blanc du wrapper */
  mix-blend-mode: multiply;
}
@media (max-width: 600px) {
  .bandeau-mayotte-wrapper { padding: 0.8rem 1rem; }
}
