/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Button Styles */
.btn-primary, .cta-button {
    background-color: #A300B0;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.btn-primary:hover, .cta-button:hover {
    background-color: #8B008B;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #A300B0 30%, #00CFFF);
    color: #ffffff;
    text-align: center;
    padding: 6rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

/* Subtle Floating Background Elements */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.hero::before {
    width: 200px;
    height: 200px;
    top: 20%;
    left: -10%;
}

.hero::after {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: -15%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    z-index: 1;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    color: #f9f9ff;
    margin-bottom: 2rem;
    z-index: 1;
    line-height: 1.5;
}

/* Features Section */
.features, .extra-features, .services {
    padding: 4rem 1rem;
    text-align: center;
    background-color: #f9f9f9;
}

.features h2, .extra-features h2, .services h2 {
    font-size: 2.2rem;
    color: #A300B0;
    margin-bottom: 2rem;
    font-weight: bold;
}

.features-grid, .services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature-card, .service-item {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover, .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.feature-card img, .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    color: #00CFFF;
}

.feature-card h3, .service-item h3 {
    font-size: 1.2rem;
    color: #A300B0;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.feature-card p, .service-item p {
    font-size: 0.9rem;
    color: #555;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #e0f7fa, #f9f9fb);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.testimonials h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: bold;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.testimonial-item {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 200px;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-item p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.testimonial-item span {
    font-size: 1rem;
    color: #6a0dad;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials h2 {
        font-size: 2rem;
    }

    .testimonial-item p {
        font-size: 1rem;
    }
}



/* Courses List Section */
.courses-list-section {
    padding: 4rem 1rem;
    text-align: center;
    background-color: #ffffff;
}

.courses-list-section h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: bold;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.course-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.course-card h3 {
    font-size: 1.2rem;
    color: #A300B0;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.course-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}


/* Info Section */
.info-section {
    padding: 4rem 1rem;
    text-align: center;
    background-color: #ffffff;
}

.info-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.info-card {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 1.5rem;
    width: 260px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.icon {
    font-size: 2.5rem;
    color: #A300B0;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* CTA Button */
.cta-button-container {
    text-align: center;
}

.cta-button {
    background-color: #A300B0;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #8B008B;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}


/* Navbar */
.navbar {
    background: linear-gradient(135deg, #ffffff, #f3f4f7);
    padding: 1rem 2rem;
    border-bottom: 3px solid #e0e0e0;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar Container */
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.navbar-logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar-logo img:hover {
    transform: scale(1.1);
}

/* Base Styles (Desktop by default) */
.nav-links {
    display: flex;
    flex-direction: row; /* Horizontal sur grand ��cran */
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    position: relative; /* N��cessaire pour le positionnement */
    z-index: 1000; /* Priorit�� sur d'autres ��l��ments */
    opacity: 1; /* Par d��faut visible sur desktop */
    pointer-events: auto; /* Actif par d��faut */
    transform: translateY(0); /* Aucun d��calage */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Transition fluide */
}

.nav-links a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #fff;
    background-color: #6a0dad;
    box-shadow: 0 4px 8px rgba(106, 13, 173, 0.3);
}

/* Bouton menu (menu-toggle) */
.menu-toggle {
    display: none; /* Cach�� par d��faut sur desktop */
    font-size: 1.8rem;
    color: #333;
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0.5rem;
    border-radius: 50%;
    z-index: 1100; /* Priorit�� sur le menu */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(106, 13, 173, 0.1);
    transform: scale(1.2);
}

/* Responsive for Tablets and Phones */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block; /* Affiche le bouton menu */
    }

    .nav-links {
        display: flex;
        flex-direction: column; /* Vertical */
        align-items: flex-start;
        background-color: #fff; /* Fond blanc */
        position: absolute;
        top: 100%; /* Positionn�� sous la barre de navigation */
        left: 0;
        width: 100%;
        gap: 1rem; /* Espacement entre les liens */
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        opacity: 0; /* Cach�� par d��faut */
        pointer-events: none; /* Non interactif par d��faut */
        transform: translateY(-10px); /* L��g��rement d��cal�� */
        z-index: 9999; /* Priorit�� suffisante pour mobile */
        transition: opacity 0.3s ease, transform 0.3s ease; /* Transition fluide */
    }

    .nav-links.active {
        opacity: 1; /* Visible lorsqu'actif */
        pointer-events: auto; /* Interactif */
        transform: translateY(0); /* Aucun d��calage */
    }

    .nav-links a {
        width: 100%; /* Chaque lien prend toute la largeur */
        text-align: center; /* Centr�� */
        padding: 1rem;
    }

    .nav-links a:hover {
        background-color: #6a0dad;
        color: #fff;
    }
}

/* Responsive for Phones */
@media (max-width: 768px) {
    .nav-links {
        font-size: 0.9rem; /* Taille r��duite pour mobile */
    }

    .menu-toggle {
        font-size: 1.6rem; /* Ajustement de la taille */
    }
}

/* Responsive for Laptops */
@media (max-width: 1440px) {
    .nav-links {
        font-size: 1rem; /* Taille l��g��rement r��duite pour laptops */
    }

    .menu-toggle {
        font-size: 1.8rem;
    }
}



/* Variables */
:root {
    --primary-color: #A300B0;
    --secondary-color: #00CFFF;
    --text-color: #333;
    --background-color: #f9f9fb;
}

/* Corps */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar .nav-link:hover {
    color: var(--secondary-color);
}

/* Boutons */
.btn-primary, .cta-button {
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover, .cta-button:hover {
    background-color: #8B008B;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

/* Messages utilisateur */
.messages .alert {
    margin-bottom: 1rem;
    border-radius: 5px;
    padding: 1rem;
    font-size: 1rem;
}

/* Pied de page */
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}


body {
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Edge */
    user-select: none; /* Standard */
}
.sensitive-content {
    background: black;
    color: black;
    opacity: 0;
}


/* =========================================================
   Stats Section – chiffres marquants
   ========================================================= */
   .stats-section {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-color) 100%);
    text-align: center;
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .stat-item {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: transform .3s, box-shadow .3s;
  }
  
  .stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  }
  
  .stat-number {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: .5rem;
    line-height: 1;
  }
  
  /* Texte descriptif sous le chiffre */
  .stat-item p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
  }
  
  /* Animation “compteur” simple */
  @keyframes count-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  .stat-number {
    animation: count-up .8s ease-out both;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .stat-number {
      font-size: 2.5rem;
    }
    .stat-item {
      padding: 1.5rem .5rem;
    }
  }

  
/* Call-to-action section */
.call-to-action {
    padding: 3rem 1rem;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    margin: 2rem 0;
    border-radius: 12px;
  }
  
  .call-to-action .cta-text {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  .call-to-action .cta-text strong {
    font-weight: 800;
  }
  
  .call-to-action .cta-text em {
    font-style: italic;
    display: block;
    margin-top: 0.5rem;
  }
  
  .call-to-action .btn-primary {
    background: #fff;
    color: var(--primary-color);
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
  }
  
  .call-to-action .btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
  }

/* =========================================================
   Auto-carousel infini
   ========================================================= */
   .auto-carousel {
    overflow: hidden;
    background: var(--bg-color);
    padding: 1rem 0;
  }
  
  .auto-carousel__track {
    display: flex;
    gap: 1rem;
    /* on double la longueur du conteneur en contenu */
    width: max-content;
    animation: scroll-left 20s linear infinite;
  }
  
  /* Tag styles (si pas déjà présents) */
  .auto-carousel .tag {
    flex: 0 0 auto;
    background: #fff;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    white-space: nowrap;
    font-weight: 600;
  }
  
  /* Animation : translateX de 0 → -50% (moitié du track dupliqué) */
  @keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
    

/* =========================================================
   Download Banner – Téléchargement App & mode hors-ligne
   ========================================================= */
.download-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 4rem 1rem;
  overflow: hidden;
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.banner-image img {
  max-width: 300px;
  width: 100%;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.banner-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.banner-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.download-buttons {
  display: flex;
  gap: 1rem;
}

.download-buttons a img {
  height: 50px;
  transition: transform .3s, filter .3s;
}

.download-buttons a:hover img {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .banner-content {
    flex-direction: column;
    text-align: center;
  }
  .banner-image img {
    max-width: 200px;
  }
  .banner-text h2 {
    font-size: 1.75rem;
  }
  .banner-text p {
    font-size: 1rem;
  }
}


/* Full-width banner, version épurée */
.download-banner {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
  }
  
  .banner-inner {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .banner-inner h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }
  
  .banner-inner p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .playstore-btn img {
    height: 50px;
    transition: transform .2s ease;
  }
  
  .playstore-btn:hover img {
    transform: translateY(-3px);
  }
  
  /* Cacher le <br> sur petits écrans */
  .sm-hidden {
    display: inline;
  }
  @media (max-width: 600px) {
    .sm-hidden {
      display: none;
    }
    .download-banner {
      padding: 2rem .5rem;
    }
    .banner-inner h2 {
      font-size: 1.5rem;
    }
    .banner-inner p {
      font-size: 0.95rem;
    }
    .playstore-btn img {
      height: 40px;
    }
  }
  