/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #dd3333;
  --red-dark: #b82a2a;
  --dark: #131923;
  --dark-light: #1a2332;
  --text: #666666;
  --text-light: #999999;
  --title: #131923;
  --white: #ffffff;
  --gray-bg: #f5f5f5;
  --border: #e5e5e5;
  --font: 'Open Sans', sans-serif;
  --max-width: 1170px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

/* Accessibilité focus clavier */
a:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--title);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

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

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

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.section-title { text-align: center; margin-bottom: 50px; }
.section-title .subtitle {
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}
.section-title h2 { font-size: 2rem; margin-bottom: 15px; }
.section-title p { max-width: 700px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

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

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

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--dark);
  transition: all var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-top {
  background: rgba(255,255,255,0.05);
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.header-top a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}
.header-top a:hover { color: var(--white); }

.header-top .phone-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-top .phone-info i { color: var(--red); }

.header-main {
  padding: 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.header-logo img {
  height: 55px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

.header-nav a {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 0;
  position: relative;
}

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

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

.header-nav a:hover,
.header-nav a.active { color: var(--red); }

.header-cta .btn { padding: 10px 25px; font-size: 13px; }

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

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  transform-origin: center;
}

/* Header compact au scroll */
.header.scrolled .header-top { display: none; }
.header.scrolled .header-main .container { height: 60px; }
.header.scrolled .header-logo img { height: 42px; }
.header.scrolled { box-shadow: 0 4px 25px rgba(0,0,0,0.4); }

/* Hamburger -> X animation */
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO / BANNER ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  margin-top: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(19, 25, 35, 0.75);
}

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

.hero-content { max-width: 650px; }

.hero-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title span { color: var(--red); }

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
}

.hero-badges {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.hero-badge i {
  font-size: 24px;
  color: var(--red);
}

/* ===== PAGE BANNER ===== */
.page-banner {
  background: var(--dark);
  padding: 140px 0 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  margin-top: 0;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, #1e2d42 100%);
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(221,51,51,0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(221,51,51,0.05) 0%, transparent 50%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

.page-banner h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

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

/* ===== PROMO BOXES ===== */
.promo-section { padding: 80px 0; }

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.promo-box {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 35px 25px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.promo-box::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.promo-box:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.promo-box:hover::before { transform: scaleX(1); }

.promo-box i {
  font-size: 48px;
  color: var(--red);
  margin-bottom: 20px;
  display: block;
}

.promo-box h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.promo-box p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.promo-box .promo-link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 1px;
}

.promo-box .promo-link:hover { color: var(--red-dark); }

/* ===== ABOUT SECTION ===== */
.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image { position: relative; }
.about-image img { border-radius: 5px; }

.about-content .subtitle {
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content h2 span { color: var(--red); }

/* ===== SERVICES / FORMATIONS GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card-img {
  height: 220px;
  overflow: hidden;
}

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

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

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

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

.service-card-body p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.service-card-body .read-more {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 25px;
}

.cta-section .btn-outline { border-color: var(--white); color: var(--white); }
.cta-section .btn-outline:hover { background: var(--white); color: var(--red); }

/* ===== STATS COUNTER ===== */
.stats-section {
  background: var(--dark);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  color: var(--white);
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border: 1px solid var(--border);
  position: relative;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.testimonial-card .stars {
  color: #f5a623;
  font-size: 14px;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-style: italic;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author strong {
  display: block;
  color: var(--title);
  font-size: 15px;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== CERTIFICATIONS ===== */
.certifications-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  align-items: center;
}

.certifications-grid img { max-height: 100px; }

/* ===== CONTACT INFO BOXES ===== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-info-box {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 30px;
  text-align: center;
  transition: all var(--transition);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-info-box:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.contact-info-box i {
  font-size: 36px;
  color: var(--red);
  margin-bottom: 15px;
  display: block;
}

.contact-info-box h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.contact-info-box p {
  font-size: 14px;
  margin-bottom: 5px;
}

/* ===== CONTACT FORM ===== */
.contact-form-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form-wrapper { max-width: 700px; margin: 0 auto; }

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 14px;
  color: var(--title);
  transition: border-color var(--transition);
  outline: none;
  background: var(--white);
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
}

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

/* ===== MAP SECTION ===== */
.map-section { line-height: 0; }
.map-section iframe { width: 100%; min-height: 400px; border: 0; }

/* ===== LEGAL CONTENT ===== */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 {
  font-size: 1.3rem;
  color: var(--red);
  margin-top: 35px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 14px; line-height: 1.8; }

/* ===== QUALITY PAGE ===== */
.quality-img { text-align: center; }
.quality-img img { max-width: 300px; margin: 0 auto; }

/* ===== FORMATION DETAIL ===== */
.formation-detail .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.formation-content h2 { font-size: 1.5rem; margin-bottom: 15px; color: var(--title); }
.formation-content h3 { font-size: 1.2rem; margin-bottom: 10px; margin-top: 25px; }

.formation-sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-widget {
  background: var(--gray-bg);
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h4 {
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}

.sidebar-widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-widget ul li:last-child { border-bottom: none; }

.sidebar-widget ul li a {
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget ul li a:hover { color: var(--red); }
.sidebar-widget ul li a i { color: var(--red); font-size: 10px; }

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.blog-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
}

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

.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body { padding: 20px; }

.blog-card-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
}

.blog-card-body h3 { font-size: 16px; margin-bottom: 10px; }
.blog-card-body h3 a { color: var(--title); }
.blog-card-body h3 a:hover { color: var(--red); }
.blog-card-body .read-more {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ===== BLOG ARTICLE ===== */
.blog-article h2 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}
.blog-article h2:first-of-type { margin-top: 0; }
.blog-article h3 {
  font-size: 1.2rem;
  margin-top: 25px;
  margin-bottom: 10px;
}
.blog-article p { font-size: 15px; line-height: 1.8; }
.blog-article img { border-radius: 5px; margin: 20px 0; }

/* ===== QUALITY PAGE ===== */
.quality-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.quality-block.reverse { direction: rtl; }
.quality-block.reverse > * { direction: ltr; }

.quality-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.pillar-box {
  text-align: center;
  padding: 25px 15px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pillar-box:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.pillar-box i {
  font-size: 32px;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}

.pillar-box h4 { font-size: 14px; margin-bottom: 8px; }
.pillar-box p { font-size: 13px; margin-bottom: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-widget h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--red);
}

.footer-about img { max-height: 50px; margin-bottom: 15px; }
.footer-widget .certifications-footer { display: flex; flex-direction: column; gap: 15px; align-items: flex-start; }
.footer-widget .certifications-footer img { max-height: 80px; width: auto; object-fit: contain; }
.footer-about p { font-size: 14px; line-height: 1.8; }

.footer-links li { margin-bottom: 10px; }
.footer-links li a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links li a:hover { color: var(--red); padding-left: 5px; }
.footer-links li a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--red); font-size: 12px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 14px;
}

.footer-contact li i { color: var(--red); margin-top: 4px; }
.footer-contact li a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-contact li a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a { color: var(--red); }

/* ===== CATEGORY GRID ===== */
.category-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.category-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px;
  transition: all var(--transition);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: var(--red);
}

.category-card i {
  font-size: 40px;
  color: var(--red);
  flex-shrink: 0;
}

.category-card h3 { font-size: 16px; margin-bottom: 8px; }
.category-card p { font-size: 14px; margin-bottom: 0; }

/* ===== FORMATION LIST ===== */
.formation-list { list-style: none; }

.formation-list li {
  padding: 15px 20px;
  border: 1px solid var(--border);
  margin-bottom: -1px;
  transition: all var(--transition);
}

.formation-list li:hover {
  background: var(--gray-bg);
  border-color: var(--red);
}

.formation-list li a {
  color: var(--title);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.formation-list li a:hover { color: var(--red); }
.formation-list li a i { color: var(--red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark);
    padding: 20px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  .header-nav.active a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 15px;
  }
  .header-nav.active a:last-child { border-bottom: none; }
  .mobile-toggle { display: flex; }
  .header-cta { display: none; }

  .hero { min-height: 80vh; }
  .hero-title { font-size: 2.2rem; }
  .hero-desc { font-size: 15px; }
  .hero-badges { flex-direction: column; gap: 15px; }
  .hero-content { padding: 0 5px; }

  .page-banner { padding: 120px 0 40px; }
  .page-banner h1 { font-size: 1.8rem; }
  .breadcrumb { font-size: 13px; flex-wrap: wrap; justify-content: center; }

  .form-row { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .about-section .container { grid-template-columns: 1fr; gap: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .contact-form-section .container { grid-template-columns: 1fr; }
  .quality-block { grid-template-columns: 1fr; gap: 30px; }
  .quality-block.reverse { direction: ltr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-widget h4::after { left: 50%; transform: translateX(-50%); }
  .footer-links li a { justify-content: center; }
  .footer-contact li { justify-content: center; text-align: left; }
  .footer-about { display: flex; flex-direction: column; align-items: center; }
  .footer-widget .certifications-footer { align-items: center; }
  .formation-detail .container { grid-template-columns: 1fr; }
  .formation-sidebar { position: static; }
  .category-list { grid-template-columns: 1fr; }
  .quality-pillars { grid-template-columns: 1fr; }

  .cta-section { padding: 40px 0; }
  .cta-section h2 { font-size: 1.5rem; margin-bottom: 20px; }

  .section-title { margin-bottom: 35px; }
  .section-title h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 70vh; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 13px; letter-spacing: 2px; }
  h2 { font-size: 1.6rem; }
  .section { padding: 50px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-item h3 { font-size: 2rem; }
  .container { padding: 0 12px; }
  .promo-box { padding: 25px 18px; }
  .btn { padding: 10px 22px; font-size: 13px; }
  .header-top { font-size: 11px; }
  .page-banner { padding: 110px 0 30px; }
  .page-banner h1 { font-size: 1.5rem; }
  .contact-form-wrapper { padding: 0; }
}
