/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 150px 0 100px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .service-detail,
    .team-member,
    .partner-card,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-detail.reverse {
        direction: ltr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 30px 0;
        gap: 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-menu li a {
        font-size: 1.2rem;
    }
    
    .nav-menu li:last-child {
        margin-top: 30px;
    }
    
    .hero {
        margin-top: 70px;
        padding: 120px 0 80px;
    }
    
    .hero-logo img {
        max-width: 200px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .key-figures {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .figure {
        min-width: 100%;
    }
    
    .values-grid,
    .services-mini-grid,
    .process-steps,
    .features-grid,
    .certificates-grid,
    .partners-stats,
    .national-partners-grid,
    .topics-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .training-details {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .quick-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .service-card,
    .training-program,
    .team-member,
    .partner-card,
    .contact-form {
        padding: 25px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .logo span {
        display: none;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}



@media (max-width: 480px) {
    .team-member {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .member-info h4 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .member-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .photo-placeholder {
        max-width: 250px;
    }
    
    .photo-placeholder img {
        max-width: 100%;
    }
    
    .member-features {
        margin-top: 15px;
    }
    
    .feature-check {
        margin-bottom: 10px;
        font-size: 13px;
    }
    
    .feature-check i {
        font-size: 1.1rem;
        min-width: 20px;
    }
    
    .team-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .team-section {
        margin: 30px 0;
    }
    
    .member-info p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}



/* Correction pour la partie Partenaires sur mobile */
@media (max-width: 768px) {
    .partner-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .partner-logo {
        order: -1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .logo-placeholder {
        height: 150px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .logo-placeholder img {
        max-width: 80%;
        max-height: 120px;
        object-fit: contain;
    }
    
    .partner-info {
        text-align: center;
    }
    
    .partner-type {
        text-align: center;
    }
    
    .partner-features {
        justify-content: center;
    }
    
    .feature-check {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .partner-card {
        padding: 20px;
    }
    
    .logo-placeholder {
        height: 120px;
    }
    
    .logo-placeholder img {
        max-width: 70%;
        max-height: 100px;
    }
    
    .partner-info h3 {
        font-size: 1.4rem;
    }
    
    .partner-type {
        font-size: 1rem;
    }
    
    .feature-check {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}




/* Partenaires nationaux sur mobile */
@media (max-width: 768px) {
    .national-partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .national-partner {
        padding: 15px;
    }
    
    .partner-logo-small {
        height: 60px;
        margin-bottom: 15px;
    }
    
    .partner-logo-small img {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .national-partners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .national-partner {
        padding: 15px 10px;
    }
    
    .partner-logo-small {
        height: 50px;
        margin-bottom: 10px;
    }
    
    .partner-logo-small img {
        max-height: 40px;
    }
    
    .national-partner h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .national-partner p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}