/* ============================================
   GROUPE LA METHODE SARL — Site Vitrine
   Palette extraite du logo : Bleu marine, Or/Ambre, Blanc
   ============================================ */

/* ---------- Variables & Reset ---------- */
:root {
  --primary: #0F2A44;
  --primary-light: #1B3F5C;
  --secondary: #D4A51A;
  --secondary-light: #F0C040;
  --accent: #E8A838;
  --green: #27AE60;
  --green-light: #2ECC71;
  --dark: #0A1929;
  --gray-900: #1A1A2E;
  --gray-800: #2D2D44;
  --gray-600: #6B7280;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 16px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(212, 165, 26, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 165, 26, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

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

.btn-dark {
  background: var(--primary);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(15, 42, 68, 0.3);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 16px 0;
}

.navbar.scrolled {
  background: rgba(15, 42, 68, 0.95);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.nav-logo span {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.nav-logo .highlight {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: hidden;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px !important;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--dark) !important;
  border-radius: 50px;
  font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  color: var(--dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 165, 26, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 26, 0.1), transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 174, 96, 0.08), transparent 70%);
  bottom: -100px;
  left: -50px;
  animation: float 6s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: min(420px, 80vw);
  height: min(420px, 80vw);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  border: 4px solid rgba(212, 165, 26, 0.3);
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  animation: floatCard 4s ease-in-out infinite;
}

.hero-floating-card:nth-child(2) {
  top: 20px;
  right: 0;
  animation-delay: 0.5s;
}

.hero-floating-card:nth-child(3) {
  bottom: 40px;
  left: 0;
  animation-delay: 1s;
}

.hero-floating-card:nth-child(4) {
  bottom: -10px;
  right: 20px;
  animation-delay: 1.5s;
}

.hero-floating-card i {
  color: var(--secondary);
  margin-right: 8px;
}

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

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(212, 165, 26, 0.3);
  border-radius: 50%;
  animation: rise linear infinite;
}

@keyframes rise {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--white);
  padding: 40px 0;
  margin-top: -60px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  background: var(--gray-100);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ---------- Services Overview (Home) ---------- */
.services-overview {
  padding: 100px 0;
  background: var(--gray-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-card-img .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 42, 68, 0.8), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.service-card:hover .service-card-img .overlay {
  opacity: 1;
}

.overlay .btn-sm {
  padding: 8px 20px;
  background: var(--secondary);
  color: var(--dark);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.service-card-body {
  padding: 28px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--secondary);
  font-size: 1.5rem;
}

.service-card-body h3 {
  margin-bottom: 12px;
}

.service-card-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.service-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212, 165, 26, 0.1);
  color: var(--secondary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 12px;
}

/* ---------- About Preview (Home) ---------- */
.about-preview {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-image .experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--dark);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.experience-badge .number {
  font-size: 2.5rem;
  display: block;
  line-height: 1;
}

.about-content .about-features {
  margin: 24px 0 32px;
}

.about-feature {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 165, 26, 0.1), rgba(232, 168, 56, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-feature h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.about-feature p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 26, 0.15), transparent 70%);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Services Page ---------- */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(212,165,26,0.1)"/></svg>') repeat;
  background-size: 80px 80px;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.breadcrumb a:hover { color: var(--secondary); }

.breadcrumb span {
  color: var(--secondary);
  font-size: 0.9rem;
}

/* Services Full Page */
.services-full {
  padding: 100px 0;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.service-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-block:nth-child(even) {
  direction: rtl;
}

.service-block:nth-child(even) > * {
  direction: ltr;
}

.service-block-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-block-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.service-block:hover .service-block-img img {
  transform: scale(1.05);
}

.service-block-img .badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

.service-block-content h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.service-block-content > p {
  color: var(--gray-600);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.service-list {
  margin-bottom: 28px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--gray-800);
}

.service-list li i {
  color: var(--green);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ---------- Formation Page ---------- */
.formation-section {
  padding: 100px 0;
}

.formation-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.formation-intro img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.parcours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.parcours-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.parcours-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.parcours-card.featured {
  border-color: var(--secondary);
  background: linear-gradient(135deg, rgba(212, 165, 26, 0.05), rgba(232, 168, 56, 0.05));
}

.parcours-card .badge-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--dark);
  padding: 6px 24px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
}

.parcours-card .duration {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(15, 42, 68, 0.08);
  border-radius: 50px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.parcours-card h3 {
  margin-bottom: 12px;
}

.parcours-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ---------- About Page ---------- */
.about-section {
  padding: 100px 0;
}

.about-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-full-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.value-card:hover {
  transform: translateY(-8px);
  border-top-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.value-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 165, 26, 0.1), rgba(232, 168, 56, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.value-card h3 {
  margin-bottom: 12px;
}

.value-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.objectives-section {
  padding: 80px 0;
  background: var(--gray-100);
}

.objectives-list {
  max-width: 800px;
  margin: 0 auto;
}

.objective-item {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.objective-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

.objective-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.objective-item h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.objective-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ---------- Contact Page ---------- */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-card {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 24px;
  background: var(--gray-100);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow);
  background: var(--white);
}

.contact-info-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  margin-bottom: 4px;
}

.contact-info-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--gray-100);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(212, 165, 26, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
  border-radius: 50%;
}

.footer-brand p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--secondary);
  color: var(--dark);
  transform: translateY(-3px);
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 10px;
}

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

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 8px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom .highlight {
  color: var(--secondary);
  font-weight: 600;
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.6); }
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: 0.8s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
  .hero-content p { margin: 0 auto 36px; max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .hero-image-wrapper { width: min(320px, 70vw); height: min(320px, 70vw); }

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

  .about-grid,
  .about-full-grid,
  .formation-intro,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .service-block {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .service-block:nth-child(even) { direction: ltr; }

  .service-block-img img { height: 300px; }

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

  .services-overview,
  .about-preview,
  .about-section,
  .formation-section,
  .contact-section,
  .services-full,
  .objectives-section { padding: 60px 0; }

  .cta-section { padding: 60px 0; }

  .section-header { margin-bottom: 40px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 75vw);
    height: 100vh;
    height: 100dvh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px 24px;
    transition: var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger { display: flex; }

  .hero {
    padding: 100px 0 50px;
  }

  .hero-grid { gap: 30px; }
  .hero-content h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-content p { font-size: 1rem; }
  .hero-image-wrapper { width: min(260px, 65vw); height: min(260px, 65vw); }
  .hero-floating-card { display: none; }

  .stats-bar { margin-top: -30px; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
    gap: 16px;
  }
  .stat-item { padding: 12px; }
  .stat-number { font-size: 2rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card-img { height: 200px; }

  .service-block { margin-bottom: 60px; }
  .service-block-img img { height: 250px; }
  .service-block-content h3 { font-size: 1.4rem; }

  .page-hero { padding: 120px 0 50px; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }

  .about-image .experience-badge {
    bottom: -10px;
    right: -10px;
    padding: 16px;
  }
  .experience-badge .number { font-size: 1.8rem; }

  .parcours-grid { grid-template-columns: 1fr; }
  .parcours-card { padding: 30px 20px; }

  .values-grid { grid-template-columns: 1fr; }
  .value-card { padding: 24px; }

  .objective-item { flex-direction: column; gap: 16px; padding: 20px; }

  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer { padding: 50px 0 0; }

  .cta-content h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .cta-content p { font-size: 1rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; justify-content: center; }

  .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px; }
  .back-to-top { bottom: 80px; right: 20px; width: 40px; height: 40px; }

  .section-header h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .section-header p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .container { width: 92%; }

  .hero { padding: 90px 0 40px; }
  .hero-content h1 { font-size: 1.5rem; }
  .hero-content p { font-size: 0.9rem; margin-bottom: 24px; }
  .hero-image-wrapper { width: min(220px, 60vw); height: min(220px, 60vw); }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; justify-content: center; padding: 12px 20px; font-size: 0.9rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; padding: 16px; gap: 12px; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.8rem; }

  .service-card-body { padding: 20px; }
  .service-card-body h3 { font-size: 1.1rem; }
  .service-icon { width: 44px; height: 44px; font-size: 1.2rem; }

  .service-block-img img { height: 200px; }
  .service-block-content h3 { font-size: 1.2rem; }
  .service-block-content > p { font-size: 0.9rem; }
  .service-list li { font-size: 0.9rem; }

  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .btn-primary, .btn-dark, .btn-outline { width: 100%; justify-content: center; }

  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: 1.4rem; }
  .page-hero p { font-size: 0.9rem; }

  .about-feature { flex-direction: column; gap: 10px; }
  .about-feature-icon { width: 40px; height: 40px; }

  .parcours-card h3 { font-size: 1.1rem; }
  .value-card h3 { font-size: 1.1rem; }

  .formation-intro img { height: 250px; }

  .contact-info-card { flex-direction: column; gap: 12px; padding: 16px; }
  .contact-form { padding: 20px; }
  .contact-form h3 { font-size: 1.2rem; }

  .footer-brand p { font-size: 0.85rem; }
  .footer h4 { font-size: 1rem; }
  .footer-links a { font-size: 0.85rem; }
  .footer-contact li { font-size: 0.85rem; }
  .footer-bottom { padding: 16px 0; font-size: 0.8rem; }

  .nav-logo img { height: 36px; width: 36px; }
  .nav-logo span { font-size: 1rem; }
}

/* ---------- Page transition ---------- */
.page-transition {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary);
  color: var(--dark);
  transform: translateY(-3px);
}

/* ---------- Loading screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(212, 165, 26, 0.2);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px 50px;
  width: 100%;
  height: 100%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 100000;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  margin-top: -25px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 100000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-caption {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 0.9rem;
  max-width: 80vw;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  z-index: 100000;
}

.service-block-img {
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .lightbox-content {
    padding: 50px 50px 45px;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-top: -18px;
  }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { top: 8px; right: 8px; font-size: 1.8rem; width: 40px; height: 40px; }
  .lightbox-caption { font-size: 0.8rem; bottom: 10px; padding: 6px 14px; }
}

@media (max-width: 480px) {
  .lightbox-content {
    padding: 50px 16px 40px;
  }
}

/* ---------- Mobile overlay ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
