
/* Variables CSS pour la cohérence thématique */
:root {
    --primary-green: #a6d388;
    --primary-blue: #457b9d;
    --accent-red: #e63946;
    --accent-gold: #ffd700;
    --text-dark: #2c3e50;
    --text-light: rgba(255, 255, 255, 0.9);
    --white-transparent: rgba(255, 255, 255, 0.95);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
}


/* Sections */
.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-light {
    background: white;
    color: var(--text-dark);
}
.section-light1 {
    background: var(--primary-green);
    color: var(--text-dark);
}

.section-white {
    background: #ffffff;
    color: var(--text-dark);
}

.section-dark {
    background: var(--text-dark);
    color: white;
}

/* Boutons personnalisés */
.btn-danger-custom {
    background: linear-gradient(45deg, var(--accent-red), #ff6b6b);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

.btn-danger-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.4);
    color: white;
}

/* Titres de section */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Cards de fonctionnalités */

.feature-card:nth-child(2) .feature-icon { background: linear-gradient(45deg, var(--accent-red), #ff6b6b); }
.feature-card:nth-child(3) .feature-icon { background: linear-gradient(45deg, var(--primary-blue), #74c0fc); }
.feature-card:nth-child(4) .feature-icon { background: linear-gradient(45deg, #51cf66, var(--primary-green)); }
.feature-card:nth-child(6) .feature-icon { background: linear-gradient(45deg, var(--text-dark), var(--primary-blue)); }

  .feature-icon {
    width: 100px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center; /* centre l'icône dans le cercle */
    margin: 0 auto 1rem auto; /* centre horizontalement */
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  /* Légère levée de la carte au survol */
  .feature-card {
    transition: transform 0.3s ease;
  }
  .feature-card:hover {
    transform: translateY(-5px);
  }.feature-icon i {
    font-size: 4rem; /* très grande icône */
}


/* Screenshots */
.screenshot-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.screenshot-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* Comment jouer - Étapes */
.step-card {
    background: var(--white-transparent);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-red), #ff6b6b);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.step-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.icon-start { color: #51cf66; }
.icon-cards { color: var(--accent-red); }
.icon-board { color: var(--primary-blue); }
.icon-win { color: var(--accent-gold); }

/* Témoignages */
.testimonial-card {
    background: var(--white-transparent);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.6;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-right: 1rem;
}

.avatar-teacher { background: linear-gradient(45deg, var(--accent-red), #ff6b6b); }
.avatar-parent { background: linear-gradient(45deg, #51cf66, var(--primary-green)); }
.avatar-student { background: linear-gradient(45deg, var(--accent-gold), #ff9f1c); }
.avatar-expert { background: linear-gradient(45deg, var(--primary-blue), #74c0fc); }

/* Awards */
.award-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.award-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.award-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.award-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
}

.award-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Made in Sénégal */
.senegal-card {
    background: var(--white-transparent);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.senegal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.senegal-flag {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.flag-stripe {
    width: 60px;
    height: 8px;
    margin: 0 2px;
}

.flag-green { background: #00853f; }
.flag-yellow { background: #fdef42; }
.flag-red { background: #e31b23; }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .feature-card,
    .award-item,
    .step-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
}

/* Amélioration des gaps et espacements */
.d-flex.gap-3 {
    gap: 1rem !important;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Ajustements pour les petits écrans */
@media (max-width: 576px) {
    .d-flex.gap-3 {
        justify-content: center;
    }
    
    .btn-danger-custom {
        width: 100%;
        margin-bottom: 1rem;
    }
}
.animated-text {
    font-size: 1rem;
    font-style: italic;
    font-weight: 600;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg,#007bff 20%,#000000 40%,#007bff 60%);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shine 10s linear infinite;
}

@keyframes shine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}


/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;

  /* Couleur de fond principale */
  background-color: var(--primary-green);

  /* Image de fond avec superposition */
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),url('../img/hero/zero_faute.webp');
                    
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Logo */
.logo-hero {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
  z-index: 2;
}

/* Texte */
.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-section h1 span {
  color: #f94144;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Bouton principal */
.btn-danger-custom {
  background-color: #a30d0d;
  color: #fff;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-danger-custom:hover {
  background-color: #f94144;
  transform: scale(1.05);
}

/* Animation du bouton */
.animate-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 65, 68, 0.5); }
  70% { box-shadow: 0 0 0 20px rgba(249, 65, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 65, 68, 0); }
}

/* Forme décorative en bas */
.hero-section svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 120px;
}
.logo-hero {
    width: 550px; /* augmente la largeur selon tes besoins */
    height: auto; /* pour garder les proportions */
    max-width: 90%; /* pour rester responsive sur mobile */
}

.section-white {
    background-color: #f8f9fa; /* Un fond légèrement gris pour contraster */
    padding: 80px 0;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}
.section-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 50px;
}
.step-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #0d6efd;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    margin-top: 20px;
}
.icon-start { color: #28a745; }
.icon-cards { color: #ffc107; }
.icon-board { color: #dc3545; }
.icon-win { color: #0d6efd; }

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #343a40;
}
.feature-description {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}
.section-light {
    padding: 80px 0;
    background-color: #f8f9fa;
}
.made-in-senegal-card, .fmg-card {
    border-radius: 15px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}
.made-in-senegal-card:hover, .fmg-card:hover {
    transform: translateY(-5px);
}
.made-in-senegal-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}
.senegal-flag {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    display: flex;
}
.flag-stripe { height: 100%; flex: 1; }
.flag-green { background-color: #00853f; }
.flag-yellow { background-color: #fdef42; }
.flag-red { background-color: #e31b23; }

.card-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}
.card-title {
    font-weight: 700;
    color: #2c3e50;
}
.card-description {
    color: #6c757d;
}
.address-box {
    background: #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
}
.address-box strong {
    color: #343a40;
}
.fmg-card .card-title {
    color: #00853f;
}
.fmg-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.fmg-icon {
    font-size: 1.2rem;
    color: #00853f;
    background-color: rgba(13, 110, 253, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}
.fmg-item h5 {
    font-weight: 600;
    color: #343a40;
}
.fmg-item p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}


/* =================================== */
/*  Section Plaquette de Présentation (utilisée dans la section combinée)  */
/* =================================== */
.document-cover {
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.4s ease;
}

.document-cover:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.document-tag {
    position: absolute;
    top: 20px;
    left: -10px;
    background-color: #00853f; 
    color: white;
    padding: 5px 15px 5px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 50px 50px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Assurez-vous que les styles pour .made-in-senegal-card et .fmg-card sont aussi dans votre CSS */
.footer-offset {
    margin-bottom: 200px !important;
}
