
/* Style pour le logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    line-height: 1.1;
}

.logo-text h3 span {
    color: #e2c20d;
}

.img-small {
    width: 150px;
    height: 150px;
}

.img-custom {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.img-large {
    width: 350px;
    height: auto;
}

.text-small {
    font-size: 12px;
}


/* Animation shake continue pour l'enveloppe */
@keyframes shake-continu {
0% { transform: translateX(0); }
10% { transform: translateX(-2px); }
20% { transform: translateX(2px); }
30% { transform: translateX(-2px); }
40% { transform: translateX(2px); }
50% { transform: translateX(0); }
100% { transform: translateX(0); }
}

.cart-icon .fa-envelope {
color: rgb(170, 100, 100);
font-size: 1.3rem;
animation: shake-continu 2s infinite ease-in-out;

transition: color 0.3s;
}

.cart-icon .fa-envelope:hover {
color: #d97706;
}





/* Reset et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0e4180;
    --secondary-color: #081231;
    --accent-color: #f59e0b;
    --text-color: #0d0730;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

/* Navigation DESKTOP */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-left: auto;
    margin-right: 0;
    font-size: 0.7rem;
}

/* Boutons */
.btn {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 100;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Animation rapide pour les boutons inscription/connexion */
.auth-buttons .btn-primary,
.auth-buttons .btn-secondary {
    animation: pulseFast 1.2s infinite ease-in-out;
}

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

.auth-buttons .btn-primary:hover,
.auth-buttons .btn-secondary:hover {
    animation: none;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-small {
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
}

.burger {
    display: block !important;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 8rem 5% 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    margin-top: 3rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    padding-top: 20px;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Statistiques */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 5%;
    background: var(--white);
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-color);
    font-size: 1.1rem;
}


/* Section Galerie */
.gallery-section {
    padding: 5rem 5%;
    background: var(--light-bg);
}

.gallery-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.gallery-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.gallery-caption {
    padding: 1.5rem;
    text-align: center;
}

.gallery-caption h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.gallery-caption p {
    color: #666;
    font-size: 0.9rem;
}





/* Formations populaires */
.featured-courses {
    padding: 5rem 5%;
    background: var(--light-bg);
}

.featured-courses h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.course-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.15);
}

.course-image img {
    width: 100%;
    height: 160px;
    object-fit: contain; /* Affiche 100% de la photo sans la couper */
background-color: #f3f4f6; /* Remplit les espaces vides si la photo n'est pas au bon format */;
}

.course-content {
    padding: 1rem;
}

.course-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.course-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.course-content p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.7rem;
    color: #888;
}

.course-meta i {
    margin-right: 0.2rem;
    color: var(--primary-color);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--light-bg);
}

.price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.course-footer .btn-small {
    padding: 0.2rem 0.8rem;
    font-size: 0.7rem;
}

/* Bouton suivre en ligne */
.course-footer-online {
    margin-top: 0.5rem;
    text-align: center;
}

.btn-online {
    display: block;
    width: 100%;
    text-align: center;
    background: #22c55e;
    color: white;
    border: none;
    transition: background 0.3s;
}

.btn-online:hover {
    background: #16a34a;
    color: white;
}





/* Avantages */
.benefits {
    padding: 5rem 5%;
    background: var(--white);
}

.benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 3rem;
}

.benefit-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-item h3 {
    margin-bottom: 0.5rem;
}

/* Témoignages */
.testimonials {
    padding: 5rem 5%;
    background: var(--light-bg);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.testimonial span {
    color: #666;
    font-size: 0.9rem;
}


.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border-radius: 8px 0 0 8px;  /* Coins arrondis à gauche */
}

.social-icon:hover {
    width: 55px;
    background: var(--accent-color);
}

.social-icon.facebook:hover { background: #1877f2; }
.social-icon.tiktok:hover { background: #000000; }
.social-icon.youtube:hover { background: #ff0000; }
.social-icon.email:hover { background: #ea4335; }

.desktop-only {
    display: block;
}



/* ========== SECTION QUI SOMMES-NOUS AMÉLIORÉE ========== */
.about-section {
    padding: 4rem 5%;
    background: var(--light-bg);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card.reverse {
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon i {
    font-size: 1.8rem;
    color: white;
}

.about-card h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin: 0;
}

.about-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-card .about-cta {
    margin: 1.5rem 0;
}

.about-image {
    margin-top: 1.5rem;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Section Mission et Vision */
.mission-section {
    padding: 4rem 5%;
    background: white;
}

.mission-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: var(--shadow);
}

.mission-card:hover {
    transform: translateY(-5px);
}

.mission-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.mission-icon i {
    font-size: 2rem;
    color: white;
}

.mission-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.mission-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.certif-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.certif-list li {
    margin-bottom: 0.5rem;
    color: #2e7d32;
    font-weight: 500;
}

.mission-footer {
    margin-top: 1.5rem;
}




/* ========== SECTION CERTIFICATION AMÉLIORÉE ========== */
.certif-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--light-bg);
    border-radius: 20px;
}

.certif-header {
    text-align: center;
    margin-bottom: 3rem;
}

.certif-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.certif-header h2 span {
    color: var(--accent-color);
}

.certif-intro {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.certif-card {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.certif-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certif-icon i {
    font-size: 1.8rem;
    color: white;
}

.certif-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.certif-content p {
    color: var(--text-color);
    line-height: 1.6;
}

.advantages-section h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.advantages-section h3 i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

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

.advantage-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
    padding-left: 3rem;
}

.advantage-card:hover {
    transform: translateY(-3px);
}

.advantage-number {
    position: absolute;
    left: -10px;
    top: 20px;
    width: 35px;
    height: 35px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.advantage-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.advantage-card p {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .certif-card {
        flex-direction: column;
        text-align: center;
    }
    
    .certif-icon {
        margin: 0 auto;
    }
    
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card {
        padding-left: 1.5rem;
    }
    
    .advantage-number {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 0.8rem;
        display: inline-flex;
    }

}






/* Footer */
footer {
    background: var(--text-color);
    color: var(--white);
    padding-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 5% 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}


/* ========== MENU DESKTOP ========== */
.nav-links-desktop {
    display: flex !important;
    list-style: none;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    font-size: 0.7rem;
    
   
}

.nav-links-desktop li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    transition: color 0.3s;
}

.nav-links-desktop li a:hover {
    color: var(--primary-color);
}

/* ========== BOUTONS SOCIAUX ========== */
.social-buttons {
    display: flex;
    gap: 2.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #0d6ad9;
    transform: translateY(-2px);
}

.btn-gmail {
    background: #ea4335;
    color: white;
}

.btn-gmail:hover {
    background: #d33426;
    transform: translateY(-2px);
}

/* ========== PHOTOS QUI TREMBLENT ========== */
.shaking-photos {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.shaking-photos img,
.shake {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: shake 0.9s infinite;
}





@keyframes shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2px, -2px) rotate(1deg); }
    50% { transform: translate(-2px, 2px) rotate(-1deg); }
    75% { transform: translate(1px, -1px) rotate(0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}


.shake-fast {
    animation: shake 0.3s infinite;
}

.shake-on-hover:hover {
    animation: shake 0.3s infinite;
}





/* Section texte à gauche / image à droite */
.custom-section {
    padding: 5rem 5%;
    background: var(--light-bg);
}

.custom-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.custom-text {
    flex: 1;
}

.custom-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.custom-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.custom-image {
    flex: 1;
}

.custom-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.shake-image {
    animation: shakeCustom 0.5s infinite;
}

@keyframes shakeCustom {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2px, -2px) rotate(1deg); }
    50% { transform: translate(-2px, 2px) rotate(-1deg); }
    75% { transform: translate(1px, -1px) rotate(0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Ligne zigzag fluide et continue */
.zigzag-line {
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(
        45deg,
        var(--primary-color),
        var(--primary-color) 10px,
        transparent 10px,
        transparent 20px
    );
    margin: 2rem 0;
    animation: zigzagFlow 2s infinite linear;
    background-size: 40px 100%;
}

@keyframes zigzagFlow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 0;
    }
}

/* Version avec deux couleurs en continu */
.zigzag-line-colors {
    height: 20px;
    background: repeating-linear-gradient(
        45deg,
        var(--primary-color),
        var(--primary-color) 10px,
        var(--accent-color) 10px,
        var(--accent-color) 20px
    );
    background-size: 40px 100%;
    animation: zigzagFlow 1.5s infinite linear;
}

/* Version fine */
.zigzag-line-thin {
    height: 10px;
    background: repeating-linear-gradient(
        45deg,
        var(--primary-color),
        var(--primary-color) 8px,
        transparent 8px,
        transparent 16px
    );
    background-size: 32px 100%;
    animation: zigzagFlow 1s infinite linear;
}



/* ========== TABLETTE (1024px) ========== */
@media screen and (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ========== MOBILE (UN SEUL BLOC) ========== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding-top: 65px;
    }
    
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem !important; }
    h3 { font-size: 1rem !important; }
    
    /* Cacher le menu desktop */
    .navbar {
        display: none !important;
    }
    
    /* Afficher la navbar mobile */
    .navbar-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--primary-color);
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .navbar-top .logo-img {
        height: 40px;
        width: auto;
    }
    
    .navbar-top .logo-text h1 {
        color: white;
        font-size: 1rem !important;
        margin: 0;
    }
    
    .navbar-top .logo-text h1 span {
        color: #ffd966;
    }
    
    /* BURGER */
    .burger {
        display: block !important;
        cursor: pointer;
        z-index: 1001;
        padding: 5px;
        border-radius: 8px;
    }
    
    .burger div {
        width: 22px;
        height: 2px;
        background-color: white;
        margin: 5px;
        transition: all 0.3s ease;
    }
    
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 5px);
    }
    .burger.active .line2 {
        opacity: 0;
    }
    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -5px);
    }
    
    /* MENU DÉROULANT */
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 75%;
        max-width: 280px;
        height: calc(100vh - 60px);
        background: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 1rem;
        padding-left: 1.5rem;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
        display: flex !important;
        list-style: none;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .nav-links a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1rem;
        text-decoration: none;
        color: white;
        font-weight: 500;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        color: #ffd966;
    }
    
    /* NAVBAR DU BAS */
    .navbar-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .auth-buttons {
        display: flex;
        gap: 0.8rem;
        align-items: center;
    }
    
    .auth-buttons .btn-primary {
        background: var(--primary-color);
        color: white;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .auth-buttons .btn-secondary {
        background: white;
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    /* Animation rapide des boutons */
    .auth-buttons .btn-primary,
    .auth-buttons .btn-secondary {
        animation: pulseFast 0.8s infinite ease-in-out;
    }
    
    /* Panier */
    .cart-icon {
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }
    
    .cart-icon i {
        font-size: 1.2rem;
        color: var(--text-color);
    
    }
    
    .cart-count {
        background: var(--primary-color);
        color: white;
        border-radius: 50%;
        padding: 2px 6px;
        font-size: 0.65rem;
        font-weight: bold;
        
    }
    
    /* GRILLES - 2 CARTES PAR LIGNE */
    .courses-grid,
    .archive-grid,
    .media-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 2.5rem;
        padding: 2rem;
        margin-bottom: 70px;
        margin: 0;
        justify-content: center;
        justify-items: center;
    }
    
    .course-card,
    .archive-card,
    .media-card {
        margin: 0;
        min-width: 0;
        border-radius: 10px;
        overflow: hidden;
    }

   
    
    .course-card img,
    .archive-card img,
    .media-card img {
        height: 110px;
        width: 100%;
        object-fit: cover;
    }
    
    .course-content,
    .archive-content,
    .media-card-content {
        padding: 0.5rem;
        text-align: center;
        
    }
    
    .course-content h3,
    .archive-content h3,
    .media-card-content h3 {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
        color: #e4952e;
    }
    
    .course-content p,
    .archive-content p,
    .media-card-content p {
        font-size: 0.65rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .course-tag {
        font-size: 0.55rem;
        padding: 0.1rem 0.4rem;
        margin-bottom: 0.3rem;
    }
    
    .course-meta {
        font-size: 0.55rem;
        gap: 0.5rem;
        margin: 0.2rem 0;
    }
    
    .price {
        font-size: 0.85rem;
    }
    
    .btn-small {
        padding: 0.2rem 0.5rem;
        font-size: 0.55rem;
    }
    
    /* HERO */
    .hero {
        padding: 4rem 1rem 3rem;
        margin-top: 0;
        margin-bottom: 60px;
    }
    
    .hero-content h1 {
        font-size: 1.3rem !important;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 80%;
        text-align: center;
    }
    
    /* STATS */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 2rem 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }

    .desktop-only{
        display: none !important;
    }

    /* ========== SECTION MOBILE AMÉLIORÉE ========== */
.mobile-certif-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 2rem 1rem;
    border-radius: 20px;
    margin: 1rem 0;
}

.mobile-hero-photo {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-hero-photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.mobile-certif-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-certif-header h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mobile-certif-header h2 span {
    color: var(--accent-color);
}

.mobile-certif-header p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

/* Carte certification */
.mobile-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mobile-card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-card-icon i {
    font-size: 1.5rem;
    color: white;
}

.mobile-card-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.mobile-card-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
}

/* Avantages */
.mobile-advantages h3 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.mobile-advantages h3 i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.mobile-advantage-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.mobile-advantage-num {
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.mobile-advantage-text h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.mobile-advantage-text p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}



   
}




    /* BENEFITS */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .benefit-item {
        padding: 1rem;
    }
    
    .benefit-item i {
        font-size: 5rem;
    }
    
    .benefit-item h3 {
        font-size: 1.5rem;
    }
    
    .benefit-item p {
        font-size: 0.9rem;
    }
    
    /* TESTIMONIALS */
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial {
        padding: 1rem;
    }
    
    .testimonial img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius:50%;
    }
    
    /* FOOTER */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    footer {
        padding-top: 1.5rem;
        margin-bottom: 55px;
    }
    
    /* BOUTONS */
    .btn, button {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }
    
    /* AUTH MOBILE */
    .auth-buttons-mobile-top {
        display: flex;
        gap: 0.2rem;
        align-items:center;
        margin-left: auto;
        margin-right: 0.2rem;
    }
    
    .auth-buttons-mobile-top .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
        background: white;
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
    }


        /* Animation pour les boutons auth sur mobile */
    .auth-buttons-mobile-top .btn-primary,
    .auth-buttons-mobile-top .btn-secondary {
        animation: bounceLight 1s ease-in-out infinite;
        transition: all 0.3s ease;
    }
    
    /* Animation de rebond léger */
    @keyframes bounceLight {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-3px);
        }
    }
    


    
    .mobile-certif-content h2 {
        font-size: 1.4rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .mobile-certif-content h3 {
        font-size: 1.2rem;
        color: var(--secondary-color);
        margin: 1.5rem 0 1rem;
    }
    
    .mobile-certif-content h4 {
        font-size: 1rem;
        color: var(--accent-color);
        margin: 1rem 0 0.5rem;
    }
    
    .mobile-certif-content p {
        font-size: 0.85rem;
        line-height: 1.5;
        color: var(--text-color);
        margin-bottom: 1rem;
    }
    
    .advantage-item {
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    /* BOUTONS SOCIAUX SUR MOBILE */
    .social-buttons {
        display: flex !important;
    }
    
    /* ANIMATIONS */
    .stats,
    .featured-courses,
    .benefits,
    .testimonials,
    .mobile-certif-section {
        opacity: 1;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .stats.visible,
    .featured-courses.visible,
    .benefits.visible,
    .testimonials.visible,
    .mobile-certif-section.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .course-card,
    .benefit-item,
    .testimonial,
    .advantage-item {
        opacity: 1;
        transform: translateX(-20px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }
    
    .course-card.visible,
    .benefit-item.visible,
    .testimonial.visible,
    .advantage-item.visible {
        opacity: 1;
        transform: translateX(0);
    }


    /* Version mobile : empiler les éléments */

    .custom-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .custom-text {
        order: 2;
    }
    
    .custom-image {
        order: 1;
    }



        footer {
        background: var(--primary-color);
        color: white;
        padding: 2rem 1rem 1rem;
        margin-top: 2rem;
        margin-bottom: 60px;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        color: #ffd966;
    }
    
    .footer-section p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0.3rem 0;
    }
    
    .footer-section ul {
        list-style: none;
        padding: 0;
    }
    
    .footer-section ul li {
        margin: 0.3rem 0;
    }
    
    .footer-section a {
        color: white;
        text-decoration: none;
        font-size: 0.8rem;
        opacity: 0.8;
    }
    
    .footer-section a:hover {
        opacity: 1;
        text-decoration: underline;
    }
    
    .footer-section i {
        margin-right: 0.3rem;
        color: #ffd966;
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
        font-size: 0.7rem;
    }


/* ========== PROTECTION DESKTOP (cacher mobile sur desktop) ========== */
@media (min-width: 769px) {
    .navbar-top,
    .navbar-bottom,
    .burger {
        display: none !important;
    }

    .mobile-certif-section{
        display: none;
    }
    
    .navbar {
        display: flex !important;
    }

}

