/* EPI Niger - Styles */
:root {
  --primary-bordeaux: #99242d;
  --primary-dark: #7a1c24;
  --accent-gold: #d4af37;
  --light-gray: #faf9f7;
  --text-gray: #64748b;
  --dark: #1a1a1a;
  --transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--dark); background-color: var(--light-gray); }

/* Nav */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(153,36,45,0.1); z-index: 1000; border-bottom: 3px solid var(--primary-bordeaux); }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0.5rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.logo-img { height: 70px; width: auto; transition: var(--transition); }
.logo:hover .logo-img { transform: scale(1.05); }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-weight: 800; font-size: 1.4rem; color: var(--primary-bordeaux); line-height: 1.2; }
.logo-subtitle { font-size: 0.75rem; color: var(--accent-gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.95rem; transition: var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary-bordeaux); transition: var(--transition); }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary-bordeaux); }
.nav-links a.active { color: var(--primary-bordeaux); }
.nav-cta { background: var(--primary-bordeaux); color: white !important; padding: 0.75rem 1.5rem; border-radius: 6px; font-weight: 600; box-shadow: 0 4px 15px rgba(153,36,45,0.3); }
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-bordeaux); }

/* Hero */
.hero { margin-top: 86px; min-height: calc(100vh - 86px); background: linear-gradient(135deg, var(--primary-bordeaux) 0%, var(--primary-dark) 100%); display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-container { max-width: 1280px; margin: 0 auto; padding: 4rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-content h1 { font-size: 3.5rem; font-weight: 800; color: white; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-content h1 span { color: var(--accent-gold); }
.hero-subtitle { font-size: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 2rem; line-height: 1.6; }
.hero-stats { display: flex; gap: 3rem; margin-bottom: 2.5rem; }
.stat-item h3 { font-size: 2.5rem; color: var(--accent-gold); font-weight: 700; }
.stat-item p { color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image img { width: 100%; border-radius: 20px; box-shadow: 0 25px 50px rgba(0,0,0,0.3); }

/* Page hero (sous-pages) */
.page-hero { margin-top: 86px; padding: 4rem 2rem; background: linear-gradient(135deg, var(--primary-bordeaux) 0%, var(--primary-dark) 100%); text-align: center; color: white; }
.page-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.9; font-size: 1.1rem; }

/* Buttons */
.btn { padding: 1rem 2rem; border-radius: 8px; font-weight: 600; text-decoration: none; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; border: none; }
.btn-primary { background: var(--accent-gold); color: var(--dark); box-shadow: 0 4px 15px rgba(212,175,55,0.3); }
.btn-primary:hover { background: #f4e8c1; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* Sections */
section { padding: 6rem 2rem; }
.container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; color: var(--primary-bordeaux); margin-bottom: 1rem; position: relative; display: inline-block; }
.section-header h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--accent-gold); border-radius: 2px; }
.section-header p { color: var(--text-gray); font-size: 1.1rem; max-width: 600px; margin: 1.5rem auto 0; }

/* About */
.about { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: 16px; box-shadow: 0 20px 40px rgba(153,36,45,0.15); }
.experience-badge { position: absolute; bottom: -20px; right: -20px; background: var(--primary-bordeaux); color: white; padding: 1.5rem 2rem; border-radius: 16px; text-align: center; box-shadow: 0 10px 25px rgba(153,36,45,0.3); border: 3px solid var(--accent-gold); }
.experience-badge h3 { font-size: 2rem; font-weight: 800; color: var(--accent-gold); margin: 0; }
.about-content h3 { font-size: 1.75rem; margin-bottom: 1.5rem; color: var(--primary-bordeaux); }
.about-content p { color: var(--text-gray); margin-bottom: 1.5rem; line-height: 1.8; }
.features-list { list-style: none; margin-top: 2rem; }
.features-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; color: var(--dark); }
.features-list i { color: var(--primary-bordeaux); font-size: 1.2rem; }

/* Programs */
.programs { background: var(--light-gray); }
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.program-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 6px rgba(153,36,45,0.05); transition: var(--transition); border: 1px solid rgba(153,36,45,0.1); }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(153,36,45,0.15); }
.program-image { height: 200px; background: linear-gradient(135deg, var(--primary-bordeaux), #b8323a); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; overflow: hidden; }
.program-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.program-content { padding: 2rem; }
.program-content h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--primary-bordeaux); }
.program-content p { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 1.5rem; }
.program-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid rgba(153,36,45,0.1); }
.program-link { color: var(--primary-bordeaux); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 0.25rem; }
.program-link:hover { color: var(--accent-gold); }

/* Tables */
.table-wrapper { margin-bottom: 2.5rem; }
.table-title { font-size: 1.25rem; color: var(--primary-bordeaux); margin-bottom: 1rem; }
.table-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(153,36,45,0.1); background: white; }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.pricing-table thead th { background: var(--primary-bordeaux); color: white; padding: 0.9rem; text-align: left; font-size: 0.95rem; }
.pricing-table tbody td { padding: 0.9rem; border-top: 1px solid rgba(153,36,45,0.08); color: var(--dark); font-size: 0.95rem; vertical-align: top; }
.pricing-table tbody tr:nth-child(even) { background: rgba(153,36,45,0.03); }
.table-note { color: var(--text-gray); font-size: 0.95rem; margin-top: 0.75rem; }

/* Tabs (frais) */
.tabs-nav { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.tab-btn { background: #eef2f7; border: 1px solid rgba(153,36,45,0.12); color: var(--dark); padding: 0.6rem 1.2rem; border-radius: 10px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.tab-btn:hover { background: #f7f4ef; color: var(--primary-bordeaux); }
.tab-btn.active { background: var(--primary-bordeaux); color: white; box-shadow: 0 8px 20px rgba(153,36,45,0.2); border-color: var(--primary-bordeaux); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* News */
.news { background: white; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.news-card { background: white; border-radius: 16px; overflow: hidden; transition: var(--transition); border: 1px solid rgba(153,36,45,0.1); }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(153,36,45,0.12); }
.news-image { height: 220px; position: relative; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.news-card:hover .news-image img { transform: scale(1.1); }
.news-date { position: absolute; top: 1rem; left: 1rem; background: var(--primary-bordeaux); color: white; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.875rem; border: 2px solid var(--accent-gold); }
.news-content { padding: 1.5rem; }
.news-category { color: var(--primary-bordeaux); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; margin-bottom: 0.5rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery-item { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: var(--transition); }
.gallery-item:hover { transform: scale(1.02); box-shadow: 0 15px 35px rgba(153,36,45,0.2); }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; display: block; }

/* Partenaires – bandeau type “Nos Partenaires”, logos à taille strictement identique */
.partners-section {
  background: #f8f9fa;
  padding: 3rem 0 3.5rem;
}
#partenaires .container { max-width: 1100px; }
.partners-section-sub { margin-bottom: 1.75rem; }
.partners-section-sub .section-header p { color: var(--text-gray); margin-top: 0.25rem; }

.partners-carousel {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  min-height: 160px;
}
.partners-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin: auto 0;
  border: none;
  border-radius: 10px;
  background: #495057;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  font-size: 1.1rem;
}
.partners-arrow:hover {
  background: var(--primary-bordeaux);
  color: #fff;
  transform: scale(1.08);
}
.partners-arrow:focus { outline: none; box-shadow: 0 0 0 2px var(--primary-bordeaux); }

.partners-wrap {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: #adb5bd #e9ecef;
  scroll-behavior: smooth;
}
.partners-wrap::-webkit-scrollbar { height: 8px; }
.partners-wrap::-webkit-scrollbar-track { background: #e9ecef; border-radius: 4px; }
.partners-wrap::-webkit-scrollbar-thumb { background: #adb5bd; border-radius: 4px; }
.partners-wrap::-webkit-scrollbar-thumb:hover { background: #868e96; }

.partners-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0 0.5rem;
  min-width: min-content;
}

/* Carte fixe : même taille pour tous les partenaires, logo contraint à une zone fixe */
.partner-item {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  overflow: hidden;
}
.partner-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: rgba(153,36,45,0.2);
}
.partner-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
/* Zone fixe pour le logo : tous les logos ont exactement la même taille d’affichage */
.partner-item .partner-logo-wrap {
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.partner-item img {
  max-width: 128px;
  max-height: 128px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}
/* Si pas de .partner-logo-wrap (ancien HTML), cibler img directement */
.partner-item > img,
.partner-item > a > img {
  max-width: 128px;
  max-height: 128px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.partners-grid.is-empty {
  width: 100%;
  justify-content: center;
  padding: 2rem;
}
.partners-grid.is-empty .partner-item { display: none; }
.partners-grid.is-empty p { margin: 0; font-size: 1rem; }
.partners-loading { text-align: center; color: var(--text-gray); padding: 2rem; margin: 0; }

@media (max-width: 768px) {
  .partners-arrow { width: 42px; height: 42px; font-size: 1rem; }
  .partner-item { width: 140px; height: 140px; padding: 12px; }
  .partner-item .partner-logo-wrap { width: 116px; height: 116px; }
  .partner-item img,
  .partner-item > img,
  .partner-item > a > img { max-width: 116px; max-height: 116px; }
}

/* Testimonials */
.testimonials { background: var(--primary-bordeaux); color: white; }
.testimonials .section-header h2 { color: white; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.testimonial-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 2rem; border-radius: 16px; border: 1px solid rgba(212,175,55,0.3); position: relative; }
.testimonial-card::before { content: '"'; position: absolute; top: 1rem; right: 1.5rem; font-size: 4rem; color: var(--accent-gold); opacity: 0.3; font-family: Georgia, serif; }
.testimonial-content { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; position: relative; z-index: 1; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--accent-gold); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--dark); margin-right: 1rem; border: 2px solid white; }
.testimonial-author { display: flex; align-items: center; }

/* Contact */
.contact { background: white; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h3 { font-size: 1.75rem; margin-bottom: 1.5rem; color: var(--primary-bordeaux); }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item i { font-size: 1.25rem; color: var(--primary-bordeaux); margin-top: 0.25rem; }
.contact-form { background: var(--light-gray); padding: 2.5rem; border-radius: 16px; box-shadow: 0 10px 30px rgba(153,36,45,0.1); border: 1px solid rgba(153,36,45,0.1); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--primary-bordeaux); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 1rem; border: 2px solid rgba(153,36,45,0.1); border-radius: 8px; font-family: inherit; background: white; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-bordeaux); box-shadow: 0 0 0 3px rgba(153,36,45,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit { width: 100%; padding: 1rem; background: var(--primary-bordeaux); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 1rem; }
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(153,36,45,0.3); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map-wrapper { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(153,36,45,0.1); border: 1px solid rgba(153,36,45,0.1); }
.map-iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Footer */
footer { background: var(--dark); color: white; padding: 4rem 2rem 2rem; border-top: 4px solid var(--accent-gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-brand img { height: 100px; width: auto; margin-bottom: 1rem; background: white; padding: 10px; border-radius: 12px; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(153,36,45,0.8); display: flex; align-items: center; justify-content: center; color: white; transition: var(--transition); text-decoration: none; }
.social-links a:hover { background: var(--primary-bordeaux); transform: translateY(-3px); color: var(--accent-gold); border: 2px solid var(--accent-gold); }
.footer-links h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--accent-gold); position: relative; padding-bottom: 0.5rem; }
.footer-links h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--primary-bordeaux); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); display: flex; align-items: center; gap: 0.5rem; }
.footer-links a::before { content: '>'; color: var(--primary-bordeaux); font-weight: bold; font-size: 1.2rem; }
.footer-links a:hover { color: var(--accent-gold); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; color: rgba(255,255,255,0.5); }

/* Footer (homepage layout) */
.footer { background: var(--dark); color: white; padding: 4rem 2rem 2rem; border-top: 4px solid var(--accent-gold); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer .footer-section h3 { font-size: 1.4rem; color: white; margin-bottom: 0.75rem; }
.footer .footer-section h4 { font-size: 1.1rem; color: var(--accent-gold); margin-bottom: 1.25rem; position: relative; padding-bottom: 0.5rem; }
.footer .footer-section h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--primary-bordeaux); }
.footer .footer-section p { color: rgba(255,255,255,0.7); }
.footer .footer-links { list-style: none; padding: 0; margin: 0; }
.footer .footer-links li { margin-bottom: 0.75rem; color: rgba(255,255,255,0.7); }
.footer .footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); }
.footer .footer-links a:hover { color: var(--accent-gold); }
.footer .social-links svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 1024px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* Mobile menu */
.mobile-menu { position: fixed; top: 86px; left: 0; right: 0; background: white; padding: 2rem; box-shadow: 0 10px 25px rgba(0,0,0,0.1); transform: translateY(-150%); transition: var(--transition); z-index: 999; max-height: calc(100vh - 86px); overflow-y: auto; }
.mobile-menu.active { transform: translateY(0); }
.mobile-menu ul { list-style: none; }
.mobile-menu a { text-decoration: none; color: var(--dark); font-weight: 600; display: block; padding: 0.75rem 0; border-bottom: 1px solid rgba(153,36,45,0.08); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .nav-cta { background: var(--primary-bordeaux); color: white !important; text-align: center; border-radius: 8px; margin-top: 0.5rem; padding: 0.85rem 1rem; }

@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-image { display: none; }
  .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
  .section-header h2 { font-size: 2.1rem; }
  .news-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .about-image { text-align: center; }
  .experience-badge { position: relative; bottom: auto; right: auto; margin: 1rem auto 0; display: inline-block; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-container { padding: 0.5rem 1.25rem; }
  .hero-content h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .logo-img { height: 50px; }
  section { padding: 4rem 1.5rem; }
  .hero-container { padding: 3rem 1.5rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .programs-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .gallery-item img { height: 220px; }
  .contact-form { padding: 2rem; }
  .tabs-nav { gap: 0.5rem; }
  .tab-btn { padding: 0.55rem 1rem; }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 600px) {
  .hero { min-height: auto; }
  .hero-stats { gap: 1rem; }
  .stat-item h3 { font-size: 2rem; }
  .news-grid { grid-template-columns: 1fr; }
  .testimonial-content { font-size: 1rem; }
  .program-image { height: 170px; }
  .news-image { height: 200px; }
  .gallery-item img { height: 200px; }
  .contact-form { padding: 1.5rem; }
  .table-scroll { border-radius: 10px; }
  .map-iframe { height: 300px; }
  .pricing-table thead th, .pricing-table tbody td { padding: 0.65rem 0.5rem; font-size: 0.85rem; }
  .pricing-table { min-width: 600px; }
  .container { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0.5rem 1rem; }
  .logo-title { font-size: 1.1rem; }
  .logo-subtitle { font-size: 0.65rem; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .page-hero { padding: 3rem 1rem; }
  section { padding: 3.5rem 1rem; }
  .program-content { padding: 1.5rem; }
  .news-content { padding: 1.25rem; }
  .tabs-nav { flex-direction: column; align-items: stretch; }
  .tab-btn { width: 100%; text-align: center; }
  .program-image { height: 160px; }
  .news-image { height: 180px; }
  .gallery-item img { height: 180px; }
  .contact-item { gap: 0.75rem; }
  .features-list { font-size: 0.95rem; }
  .features-list li { margin-bottom: 0.75rem; }
  .program-content h3 { font-size: 1.1rem; }
  .contact-info h3 { font-size: 1.4rem; }
  .mobile-menu { padding: 1.5rem 1rem; }
  .experience-badge { padding: 1rem 1.5rem; }
  .experience-badge h3 { font-size: 1.5rem; }
}

@media (max-width: 360px) {
  .hero-content h1 { font-size: 1.55rem; }
  .section-header h2 { font-size: 1.7rem; }
  .btn { padding: 0.85rem 1.25rem; }
  .programs-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .pricing-table { min-width: 520px; }
  .pricing-table thead th, .pricing-table tbody td { font-size: 0.8rem; padding: 0.5rem 0.4rem; }
}

/* Tablette paysage */
@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}
