/* ── Variables ── */
:root {
  --green: #7ebb40;
  --red: #e8321f;
  --blue: #1aaeee;
  --dark: #0d1b2a;
  --dark2: #122333;
  --white: #ffffff;
  --grey: #f4f7f5;
  --grey2: #e8edf0;
  --text: #2c3e50;
  --text2: #5a6a7a;
  --nav-h: 75px;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  padding-top: var(--nav-h);
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
}

/* ── Container ── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition:
    background 0.3s,
    transform 0.2s,
    box-shadow 0.3s;
  box-shadow: 0 4px 18px rgba(126, 187, 64, 0.35);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #6ba533;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(126, 187, 64, 0.45);
  color: var(--white);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
  cursor: pointer;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
  color: var(--white);
}

/* ── Section headers ── */
.section-tag {
  display: inline-block;
  background: rgba(126, 187, 64, 0.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-tag.light {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 4px;
  margin: 0 auto;
}

/* ── Flash notifications ── */
.flash {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.4s ease;
}
.flash--error {
  background: #fff0ef;
  color: var(--red);
  border-left: 4px solid var(--red);
}
.flash--info {
  background: #eef8ff;
  color: var(--blue);
  border-left: 4px solid var(--blue);
}
.flash button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  margin-left: auto;
}

@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ═══════════════════════════════════════
   INFO TICKER
═══════════════════════════════════════ */
.info-ticker {
  background: var(--dark2);
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
  border-bottom: 2px solid var(--green);
}

.ticker-label {
  flex-shrink: 0;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  padding-left: 40px;
  animation: ticker 30s linear infinite;
}

.ticker-title {
  color: var(--green);
  margin-right: 4px;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-h));
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slides */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1s ease,
    transform 6s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.82) 0%,
    rgba(13, 27, 42, 0.55) 50%,
    rgba(13, 27, 42, 0.72) 100%
  );
  z-index: 1;
}

/* Cross médical décoratif */
.hero-overlay::after {
  content: "+";
  position: absolute;
  right: 8%;
  top: 15%;
  font-size: clamp(120px, 20vw, 260px);
  font-weight: 900;
  color: rgba(126, 187, 64, 0.06);
  line-height: 1;
  pointer-events: none;
  font-family: "Playfair Display", serif;
}

/* Contenu */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
  animation: heroFadeUp 1s ease 0.2s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(126, 187, 64, 0.2);
  border: 1px solid rgba(126, 187, 64, 0.4);
  color: #a5d46a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5.5vw, 68px);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-accent {
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Navigation flèches */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.hero-nav.prev {
  left: 24px;
}
.hero-nav.next {
  right: 24px;
}
.hero-nav:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-50%) scale(1.08);
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active {
  background: var(--green);
  width: 28px;
  border-radius: 4px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  right: 32px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ═══════════════════════════════════════
   SERVICES SECTION
═══════════════════════════════════════ */
.services-section {
  padding: 100px 0;
  background: var(--grey);
  position: relative;
}

/* DNA décoratif */
.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--green), var(--blue));
}

/* Animation titre */
.animated-letters .letter {
  display: inline-block;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Service card */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c, var(--green)) 8%, transparent);
  transition: transform 0.5s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before {
  transform: scale(1.4);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c, var(--green)) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--c, var(--green));
}

.service-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--dark);
}

.service-card p {
  color: var(--text2);
  font-size: 14.5px;
  line-height: 1.7;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c, var(--green));
  font-weight: 700;
  font-size: 14px;
  transition: gap 0.2s;
}
.service-link:hover {
  gap: 10px;
}

.service-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c, var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover .service-bar {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════
   FORMATION SECTION
═══════════════════════════════════════ */
.formation-section {
  padding: 100px 0;
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

.formation-bg {
  position: absolute;
  inset: 0;
  background: url("../Images/etude4.jpg");
  background-size: cover;
  opacity: 0.4;
}

/* Croix médicales décoratives */
.formation-bg::before,
.formation-bg::after {
  content: "+";
  position: absolute;
  font-size: 200px;
  font-weight: 900;
  opacity: 0.03;
  color: var(--green);
  font-family: "Playfair Display", serif;
  line-height: 1;
}
.formation-bg::before {
  top: -40px;
  left: -20px;
}
.formation-bg::after {
  bottom: -60px;
  right: 5%;
  font-size: 280px;
  color: var(--blue);
}

.formation-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.formation-text h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.formation-text h2 span {
  color: var(--white);
}
.formation-text h2 .accent-red {
  color: var(--red);
}

.formation-text .section-line {
  margin: 0 0 24px;
}

.formation-text p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.formation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.formation-tags span {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.formation-tags i {
  color: var(--green);
}

/* Cards flottantes visuelles */
.formation-visual {
  position: relative;
  height: 360px;
}

.formation-card-1,
.formation-card-2,
.formation-card-3 {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  animation: floatCard 5s ease-in-out infinite;
}

.formation-card-1 {
  top: 20px;
  left: 0;
  animation-delay: 0s;
}
.formation-card-2 {
  top: 140px;
  right: 0;
  animation-delay: 1.5s;
}
.formation-card-3 {
  bottom: 20px;
  left: 40px;
  animation-delay: 3s;
}

.formation-card-1 i {
  color: var(--green);
  font-size: 28px;
}
.formation-card-2 i {
  color: var(--blue);
  font-size: 28px;
}
.formation-card-3 i {
  color: var(--red);
  font-size: 28px;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ═══════════════════════════════════════
   STATS SECTION
═══════════════════════════════════════ */
.stats-section {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--dark) 0%, #1a3048 100%);
  border-top: 3px solid rgba(126, 187, 64, 0.3);
  border-bottom: 3px solid rgba(26, 174, 238, 0.3);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 20px 40px;
}

.stat-icon {
  font-size: 36px;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: inline-block;
}

.stat-plus {
  display: inline-block;
  font-size: 32px;
  font-weight: 900;
  color: var(--green);
  vertical-align: top;
  margin-top: 8px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   EQUIPMENT SECTION
═══════════════════════════════════════ */
.equipment-section {
  padding: 100px 0;
  background: var(--grey);
}

.equipment-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.equipment-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.equipment-img img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.equipment-img:hover img {
  transform: scale(1.04);
}

.equipment-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--green);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(126, 187, 64, 0.4);
}

.equipment-text h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 40px);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}
.equipment-text h2 span {
  color: var(--green);
}

.equipment-text .section-line {
  margin: 0 0 24px;
}

.equipment-text p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.equipment-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}
.equipment-list i {
  color: var(--green);
  font-size: 16px;
}

/* ═══════════════════════════════════════
   PARTNERS SECTION
═══════════════════════════════════════ */
.partners-section {
  padding: 80px 0;
  background: var(--white);
  overflow: hidden;
}

.partners-track-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.partners-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scrollPartners 30s linear infinite;
}
.partners-track:hover {
  animation-play-state: paused;
}

@keyframes scrollPartners {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.partner-item {
  flex-shrink: 0;
  width: 140px;
  height: 80px;
  background: var(--grey);
  border: 1px solid var(--grey2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.partner-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.partner-item img {
  max-height: 54px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(0.3);
  transition: filter 0.3s;
}
.partner-item:hover img {
  filter: grayscale(0);
}

/* ═══════════════════════════════════════
   BOUTON FLOTTANT INSCRIPTION
═══════════════════════════════════════ */
.inscription-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 800;
}
.inscription-trigger button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(232, 50, 31, 0.4);
  transition:
    background 0.3s,
    transform 0.3s;
  font-family: "Nunito", sans-serif;
}
.inscription-trigger button:hover {
  background: #c4291a;
  transform: scale(1.05);
}

/* ═══════════════════════════════════════
   MODAL INSCRIPTION
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--grey2);
  background: #7ebb40;
}
.modal-header h3 {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.modal-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}
.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  overflow-y: auto;
  padding: 24px 28px;
  flex: 1;
}

/* ─ Form styles ─ */
.inscription-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
}
.form-group label span {
  color: var(--red);
}

.form-group input,
.form-group select {
  border: 2px solid var(--grey2);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: var(--white);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(126, 187, 64, 0.15);
}

/* File upload */
.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.file-upload input[type="file"] {
  display: none;
}
.file-label {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--dark);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}
.file-label:hover {
  background: #1a3048;
}
.file-name {
  color: var(--text2);
  font-size: 12px;
  font-style: italic;
}

/* Password toggle */
.input-icon {
  position: relative;
}
.input-icon input {
  padding-right: 44px;
}
.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  font-size: 15px;
  transition: color 0.2s;
}
.toggle-pass:hover {
  color: var(--green);
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
  border-radius: 4px;
}
.form-check a {
  color: var(--green);
  font-weight: 700;
}

/* Submit */
.btn-submit {
  background: linear-gradient(135deg, var(--green), #6ba533);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    opacity 0.3s,
    transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Nunito", sans-serif;
  box-shadow: 0 4px 16px rgba(126, 187, 64, 0.35);
}
.btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.form-support {
  text-align: center;
  color: var(--text2);
  font-size: 13px;
}
.form-support strong {
  color: var(--red);
}

.form-error-msg {
  background: #fff0ef;
  border-left: 3px solid var(--red);
  color: var(--red);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: var(--dark2);
  position: relative;
}

.footer-wave {
  position: relative;
  line-height: 0;
  margin-bottom: -2px;
}
.footer-wave svg {
  width: 100%;
  height: 50px;
  display: block;
}

.footer-body {
  padding: 20px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .footer-logo {
  height: 55px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(1.1);
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.2s;
}
.footer-socials a:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(126, 187, 64, 0.3);
  display: inline-block;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 600;
  transition:
    color 0.2s,
    gap 0.2s;
}
.footer-col nav a:hover {
  color: var(--green);
  gap: 12px;
}
.footer-col nav a i {
  font-size: 11px;
  color: var(--green);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-contact-item i {
  color: var(--green);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact-item p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-newsletter h4 {
  margin-top: 20px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 4px;
}
.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 14px;
  color: var(--white);
  font-size: 13px;
  font-family: "Nunito", sans-serif;
  outline: none;
}
.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.newsletter-form input:focus {
  border-color: var(--green);
}

.newsletter-form button {
  background: var(--green);
  border: none;
  padding: 0 16px;
  border-radius: 0 8px 8px 0;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
}
.newsletter-form button:hover {
  background: #6ba533;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}
.footer-bottom p {
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

/* Tablette */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .formation-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .formation-visual {
    height: 220px;
  }
  .equipment-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .equipment-img img {
    height: 320px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    flex-direction: column;
    gap: 0;
  }
  .stat-divider {
    width: 80px;
    height: 1px;
  }
  .stat-item {
    padding: 24px 20px;
  }
  .hero-nav {
    display: none;
  }
  .hero-content {
    padding: 0 16px;
  }
  .hero-title {
    font-size: clamp(26px, 8vw, 44px);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .formation-visual {
    display: none;
  }
  .inscription-trigger {
    bottom: 20px;
    right: 16px;
  }
  .equipment-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-header {
    padding: 18px 16px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .section-header {
    margin-bottom: 36px;
  }
}
