/* ==========================================================================
   FLASHCOURS — Design System & Main Stylesheet (Identité Officielle)
   Couleurs officielles du logo : Rouge Électrique (#EE1C25), Noir Pur (#111827) & Vert WhatsApp (#25D366)
   Spécialiste de l'accompagnement des études en France (Sénégal & Afrique)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Palette Officielle issue du Logo FLASHCOURS */
  --primary: #111827;          /* Noir Pur / Dark Slate */
  --primary-light: #1F2937;    /* Charcoal Noir */
  --accent-red: #EE1C25;       /* Rouge Électrique Flashcours */
  --accent-red-hover: #C81018;
  --accent-orange: #EE1C25;    /* Accent Rouge Principal */
  --accent-gold: #F59E0B;      /* Or / Jaune d'Or */
  --accent-green: #25D366;     /* Vert WhatsApp Officiel */
  --accent-green-bg: #E8FADF;
  --accent-blue: #2563EB;      /* Bleu International */

  /* Nuances Neutres */
  --bg-body: #F9FAFB;
  --bg-card: #FFFFFF;
  --text-main: #111827;
  --text-muted: #4B5563;
  --text-light: #9CA3AF;
  --border-color: #E5E7EB;
  --border-focus: #EE1C25;

  /* Ombres & Effets Glassmorphism */
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 14px rgba(17, 24, 39, 0.09);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.14);
  --shadow-accent: 0 8px 24px rgba(238, 28, 37, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.4);

  /* Rayons & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

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

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

ul {
  list-style: none;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-red { color: var(--accent-red); }
.text-green { color: var(--accent-green); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: rgba(238, 28, 37, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(238, 28, 37, 0.25);
}

.badge-green {
  background: var(--accent-green-bg);
  color: #15803D;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

/* Boutons de Conversion WhatsApp Direct */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), #C81018);
  color: #FFFFFF;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #C81018, var(--accent-red));
  box-shadow: 0 12px 28px rgba(238, 28, 37, 0.4);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.btn-lg {
  padding: 1.15rem 2.25rem;
  font-size: 1.1rem;
}

/* Header & Navbar */
.top-bar {
  background: var(--primary);
  color: #E5E7EB;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 2px solid var(--accent-red);
}

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

.top-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Boutons d'Appel Direct Mobile & Desktop */
.btn-call-topbar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-red);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(238, 28, 37, 0.35);
  animation: pulse-call 2s infinite;
}

.btn-call-topbar:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
}

.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-call-mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-red);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(238, 28, 37, 0.3);
  text-decoration: none;
}

.btn-call-mobile:hover {
  background: var(--accent-red-hover);
}

@keyframes pulse-call {
  0% { box-shadow: 0 0 0 0 rgba(238, 28, 37, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(238, 28, 37, 0); }
  100% { box-shadow: 0 0 0 0 rgba(238, 28, 37, 0); }
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}

.logo-brand-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-red);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-red);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.9rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-toggle:hover {
  color: var(--accent-red);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4rem 0 5rem 0;
  background: radial-gradient(circle at top right, rgba(238, 28, 37, 0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(37, 211, 102, 0.06), transparent 50%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3.1rem;
  margin: 1.2rem 0;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.trust-item i {
  color: var(--accent-green);
  font-size: 1.2rem;
}

.hero-media {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #FFFFFF;
  background: #FFFFFF;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  background: #FFFFFF;
}

.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.floating-card-1 {
  bottom: 30px;
  left: -20px;
}

.floating-card-2 {
  top: 30px;
  right: -20px;
}

.floating-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #FFFFFF;
}

/* Mot du Directeur Général */
.director-section {
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  color: #FFFFFF;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--accent-red);
}

.director-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.director-photo-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 4px solid var(--accent-red);
}

.director-photo-wrapper img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
}

.director-badge-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.director-quote {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #E5E7EB;
  margin-bottom: 1.8rem;
  position: relative;
}

.director-quote::before {
  content: '“';
  font-family: 'Outfit', sans-serif;
  font-size: 5rem;
  color: rgba(238, 28, 37, 0.3);
  position: absolute;
  top: -40px;
  left: -20px;
}

.director-signature {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Carrousel Visas Réels */
.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #111827;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  background: #111827;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(17, 24, 39, 0.95));
  color: #FFFFFF;
  padding: 2.5rem 2rem 1.5rem 2rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--accent-red);
  color: #FFFFFF;
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--accent-red);
  width: 28px;
  border-radius: 12px;
}

/* Feature Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(238, 28, 37, 0.4);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(238, 28, 37, 0.08);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Section Header */
.section-header {
  margin-bottom: 3.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.3rem;
  letter-spacing: -0.02em;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0.75rem auto 0 auto;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--accent-red);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.3rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--accent-red);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* CTA #4: Floating WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  position: relative;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
  background: var(--primary);
  color: #FFFFFF;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  border-left: 3px solid #25D366;
}

/* Footer */
.footer {
  background: var(--primary);
  color: #9CA3AF;
  padding: 4rem 0 2rem 0;
  font-size: 0.9rem;
  border-top: 4px solid var(--accent-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin: 1rem 0;
  line-height: 1.6;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: var(--accent-red);
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.8rem;
  color: #D1D5DB;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Menu & Layout Breakpoints (Mobile Samsung Galaxy A03, iPhones & Tablets 100% Optimié) */
@media (max-width: 1024px) {
  .hero-grid, .director-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .carousel-slide img { height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    padding: 6rem 2rem 3rem 2rem;
    gap: 1.5rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    align-items: flex-start;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active { 
    left: 0; 
  }

  .nav-link {
    font-size: 1.2rem;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-toggle { 
    display: block; 
    z-index: 1001;
  }

  .nav-cta { 
    display: none; 
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.1rem; line-height: 1.25; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .carousel-slide img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .top-info span:last-child { display: none; }
  .whatsapp-widget { bottom: 20px; right: 15px; }
  .director-photo-wrapper img { height: 360px; }
  .director-signature { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .floating-card-1 { left: 5px; bottom: 15px; }
  .floating-card-2 { right: 5px; top: 15px; }
}

@media (max-width: 576px) {
  .top-bar .container {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
  .top-info {
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
  }
  .btn {
    width: 100%;
    white-space: normal;
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    text-align: center;
  }
  .btn-lg {
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .carousel-slide img { height: 270px; }
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
  .whatsapp-tooltip { display: none; }
  .whatsapp-btn {
    width: 54px;
    height: 54px;
    font-size: 1.8rem;
  }
}

/* Optimisation spécifique Mobile Samsung Galaxy A03 & petits smartphones (< 480px / 360px) */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  .container {
    padding: 0 0.85rem;
  }
  .section {
    padding: 3rem 0;
  }
  .hero-section {
    padding: 2.5rem 0 3.5rem 0;
  }
  .hero-title {
    font-size: 1.7rem;
    word-break: break-word;
    hyphens: auto;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .section-description {
    font-size: 0.95rem;
  }
  .floating-card {
    padding: 0.6rem 0.85rem;
    font-size: 0.78rem;
  }
  .floating-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .director-photo-wrapper img {
    height: 310px;
  }
  .director-badge-overlay {
    padding: 0.75rem;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
  .director-quote {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  .card {
    padding: 1.25rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.35rem;
  }
  .btn {
    font-size: 0.88rem;
    padding: 0.75rem 0.9rem;
  }
  .carousel-slide img {
    height: 240px;
  }
}
