/* 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; }

/* 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; }
.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.5rem 0; }

@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; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .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; }
}
