/* ===== VARIABLES ET RESET ===== */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
}

/* Reset unifié */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f9f9f9;
}

body.menu-open {
    overflow: hidden;
}

/* ===== COMPOSANTS RÉUTILISABLES ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
	text-transform: uppercase;
    letter-spacing: 1px;
	}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
}

.btn-accent:hover {
    background-color: #c0392b;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}

/* ===== HEADER ET NAVIGATION ===== */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
	}

a {
	text-decoration: none;
    color: inherit;
}

.nav-links a:hover {
    color: var(--secondary);
    background: rgba(52, 152, 219, 0.1);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary);
    z-index: 1001;
    padding: 0.5rem;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* ===== HERO SLIDER UNIFIÉ ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    }

.slide.active {
    opacity: 1;
}

.slide-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
/*    backdrop-filter: blur(10px);   */
}

.slide-content h2 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-content p {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: #dc3545; /* Rond rouge */
    border: 2px solid white; /* Bord blanc */
    transform: scale(1.4);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); /* Optionnel: ombre pour mieux voir le bord blanc */
}

.slider-dot:hover {
    background-color: var(--secondary);
	transform: scale(1.4);

}

/* ===== GRID SYSTEMS ===== */
.features-grid,
.courses-grid,
.testimonials-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.footer-grid {
    display: grid
;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.feature-card{
        background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);

    padding: 30px;
    text-align: center;
}
.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}
.testimonial-author
 {
    display: flex;
    align-items: center;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 15px;
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.course-card {
        background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);

    overflow: hidden;
}

.course-img {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.course-content {
    padding: 20px;
}

.course-category {
    display: inline-block;
    background-color: var(--light);
    color: var(--secondary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.course-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

/* ===== SECTIONS SPÉCIALES ===== */
.stats {
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.cta {
    background: linear-gradient(to right, var(--secondary), var(--primary));
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-hero,
.questionnaire-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.contact-info,
.contact-form,
.questionnaire-container {
        background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);

    padding: 40px;
}

/* ===== FORMULAIRES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

/* ===== FORMATIONS ===== */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2rem 0;
}

.filter-btn {
    background: white;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}
.back-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary);
    color: white;
}

.category-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.category-header {
    background: var(--primary);
    color: white;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 15px;
    flex-wrap: nowrap;
    min-height: 60px;
}

.category-title {
    flex: 1;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.category-count {
    flex-shrink: 0;
    background: var(--secondary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: max-content;
}

.training-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 1.5rem;
}

.training-card {
        background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);

    padding: 1.5rem;
    border-left: 4px solid var(--secondary);
    display: flex;
    flex-direction: column;
}

.training-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.training-link {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    text-align: center;
}

.training-link:hover {
    background: var(--primary);
}

        /* Page détail formation */
        .training-detail {
            max-width: 1000px;
            margin: 2rem auto;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }
        
        .training-detail-header {
            background: var(--primary);
            color: white;
            padding: 2rem;
            position: relative;
        }
        
        .training-detail-image {
            width: 100%;
            height: 300px;
            object-fit: cover;
        }
        
        .training-detail-title {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
            color: white;
            margin-top: 1rem;
        }
        
        .training-detail-category {
            display: inline-block;
            background: var(--secondary);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-bottom: 1rem;
            color: white;
        }
        
        .training-detail-content {
            padding: 2rem;
            color: #333;
        }
        
        .training-detail-section {
            margin-bottom: 2rem;
        }
        
        .training-detail-section h3 {
            color: var(--primary);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--light);
        }
        
        .training-detail-section p, 
        .training-detail-section li {
            color: #555;
            line-height: 1.6;
        }
        
        .training-detail-section ul {
            padding-left: 1.5rem;
        }
        
        .training-detail-section li {
            margin-bottom: 0.5rem;
        }


/* ===== PROGRAMME FORMATION ===== */
.program-title {
    font-weight: 600;
    color: var(--primary);
    padding: 12px;
    background: var(--light);
    border-radius: 4px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
    border-left: 4px solid var(--secondary);
    cursor: pointer;
}

.program-title:hover {
    background: #d6dbdf;
}

.program-detail {
    padding: 15px;
    background: #f8f9fa;
    border-left: 3px solid var(--warning);
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
}

        .program-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .program-item {
            background: var(--light);
            padding: 1rem;
            border-radius: 6px;
        }

.sub-chapters {
    padding-left: 20px;
    margin-top: 10px;
    list-style-type: disc;
}

.sub-chapters li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.4;
    list-style-type: disc;
    display: list-item;
}

/* ===== ALERTES ===== */
.alert-section {
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.alert-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== FOOTER ===== */
footer {
    background: #0f2942;
    color: white;
    text-align: center;
    padding: 2rem 0;
    
}

.footer-links li {
    margin-bottom: 10px;
	list-style: none;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero-slider {
        height: 70vh;
        min-height: 450px;
        max-height: 700px;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        gap: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin-bottom: 20px;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 0;
        display: block;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
		text-decoration: none;
		color: inherit;
		text-align: center;
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
}

    .nav-actions {
        display: none;
    }

    .mobile-overlay.active {
        display: block;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
        max-height: 600px;
    }
    
    .slide-content {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .slider-arrows {
        padding: 0 1rem;
    }
    
    .slider-arrow {
        width: 50px;
        height: 50px;
    }
    
    .contact-hero,
    .questionnaire-hero {
        padding: 80px 0;
    }
    
    .contact-grid {
        margin-top: -30px;
        gap: 30px;
    }
    
    .training-list {
        grid-template-columns: 1fr;
    }
    
    .program-detail {
        display: block !important;
    }
    
    .program-title {
        cursor: default;
        background: #e8f4f8;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 50vh;
        min-height: 350px;
        max-height: 500px;
    }
    
    .slide-content {
        padding: 1rem;
        max-width: 98%;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav {
        bottom: 1rem;
    }
    
    .contact-hero,
    .questionnaire-hero {
        padding: 60px 0;
    }
    
    .contact-info,
    .contact-form {
        padding: 20px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Support accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mode somme */
@media (prefers-color-scheme: dark) {
    .slide-content {
        background: rgba(0, 0, 0, 0.4);
    }
}