/* ============================================
   CORRECTIONS RESPONSIVE MOBILE CRITIQUES
============================================ */

/* 1. TAILLES DE POLICE RÉDUITES POUR MOBILE */
@media(max-width: 768px) {
    /* Hero principal */
    .hero-content h1 {
        font-size: 2rem !important; /* au lieu de 2.5rem */
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1rem !important; /* au lieu de 1.1rem */
        line-height: 1.5;
        margin-bottom: 25px;
    }
    
    /* CTA Button */
    .cta-btn {
        font-size: 14px !important;
        padding: 15px 30px !important;
    }
    
    /* Tous les H2 des sections */
    .about-text h2,
    .expertise-header h2,
    .interventions-header h2,
    .stats-title,
    .section-testimonials h2,
    .director-header h2,
    .team-header h2,
    .experts-header h2,
    .org-header h2,
    .contact-header h2 {
        font-size: 24px !important; /* au lieu de 36px */
    }
    
    /* Paragraphes généraux */
    .about-text p,
    .director-text p,
    .engagement-content p,
    .expertise-card p,
    .pillar-content p {
        font-size: 14px !important;
        line-height: 1.6;
    }
}

/* 2. HEADER NAVIGATION MOBILE - CORRECTION MAJEURE */
@media(max-width: 992px) {
    /* Logo plus petit */
    .logo img {
        height: 50px !important;
    }
    
    /* Menu hamburger */
    .menu-toggle {
        font-size: 24px;
    }
    
    /* Navigation mobile */
    nav ul {
        width: 280px !important; /* au lieu de 320px */
        padding: 80px 20px 30px !important;
    }
    
    nav > ul > li > a {
        font-size: 14px !important;
        padding: 12px 0;
    }
    
    /* Dropdown mobile */
    nav ul li ul {
        margin-top: 8px;
        padding: 15px 0;
    }
    
    nav ul li ul li a {
        font-size: 13px !important;
        padding: 10px 20px;
    }
}

/* 3. SECTIONS HERO - HAUTEUR RÉDUITE */
@media(max-width: 768px) {
    .hero-video {
        height: 70vh !important;
    }
    
    .director-hero,
    .pole-hero,
    .identite-hero,
    .expertise-hero,
    .team-hero {
        height: 35vh !important;
        min-height: 300px !important;
    }
    
    .director-hero-content h1,
    .expertise-hero-content h1,
    .team-hero .hero-content h1 {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }
    
    .director-hero-content p,
    .expertise-hero-content p,
    .team-hero .hero-content p {
        font-size: 0.95rem !important;
        line-height: 1.4;
    }
}

/* 4. SECTION ABOUT - CORRECTION LAYOUT */
@media(max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .about-logo {
        padding: 30px !important;
        max-width: 100%;
    }
    
    .about-text h2 {
        font-size: 22px !important;
    }
    
    .about-paragraph {
        max-height: 150px !important;
    }
    
    .read-more-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* 5. SECTION DIRECTRICE - LAYOUT MOBILE */
@media(max-width: 768px) {
    .section-directrice {
        grid-template-columns: 1fr !important;
        padding: 30px 20px !important;
        gap: 30px;
    }
    
    .section-directrice h2 {
        font-size: 22px !important;
        margin-bottom: 20px;
    }
    
    .section-directrice p {
        font-size: 14px !important;
        line-height: 1.6;
    }
    
    .section-directrice img {
        border-width: 5px !important;
    }
}

/* 6. DIRECTOR SECTION - CORRECTION */
@media(max-width: 768px) {
    .director-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .director-photo {
        padding: 20px !important;
        order: 1;
    }
    
    .director-text {
        order: 2;
    }
    
    .director-title {
        font-size: 22px !important;
    }
    
    .highlight-item {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 12px;
    }
    
    .highlight-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .highlight-content h3 {
        font-size: 18px !important;
    }
}

/* 7. EXPERTISE CARDS - RESPONSIVE */
@media(max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .expertise-card {
        padding: 30px 20px !important;
    }
    
    .expertise-card h3 {
        font-size: 18px !important;
    }
    
    .expertise-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* 8. EXPERTISE PILLARS - CORRECTION */
@media(max-width: 768px) {
    .expertise-pillars {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .pillar-card {
        padding: 30px 20px !important;
    }
    
    .pillar-header {
        flex-direction: row !important;
        gap: 15px;
    }
    
    .pillar-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .pillar-header h3 {
        font-size: 18px !important;
    }
}

/* 9. INTERVENTIONS CARDS - CORRECTION */
@media(max-width: 768px) {
    .interventions-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .intervention-card {
        height: 280px !important;
    }
    
    .overlay-content h3 {
        font-size: 1.2rem !important;
    }
    
    .view-details-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* Modal mobile */
    .modal-content {
        width: 95% !important;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 25px 20px !important;
    }
    
    .modal-header h3 {
        font-size: 22px !important;
    }
    
    .modal-body {
        padding: 25px 20px !important;
    }
}

/* 10. STATISTIQUES SECTION */
@media(max-width: 768px) {
    .section-stats-dotted {
        padding: 60px 0 !important;
    }
    
    .stats-dotted-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .stat-dotted-item {
        padding: 30px 20px !important;
    }
    
    .stat-dotted-number {
        font-size: 48px !important;
    }
    
    .stat-dotted-item p {
        font-size: 13px !important;
    }
}

/* 11. TÉMOIGNAGES */
@media(max-width: 768px) {
    .section-testimonials {
        padding: 80px 0 !important;
    }
    
    .quote {
        font-size: 16px !important;
        padding: 30px 40px !important;
    }
    
    .author {
        font-size: 16px !important;
    }
    
    .quote-mark {
        font-size: 100px !important;
        top: -25px;
    }
}

/* 12. IDENTITY TABS - CORRECTION MAJEURE */
@media(max-width: 768px) {
    .identity-tabs {
        padding: 50px 0 !important;
    }
    
    .tabs-navigation {
        grid-template-columns: 1fr !important;
        gap: 10px;
        padding: 10px;
    }
    
    .tab-btn {
        flex-direction: row !important;
        justify-content: flex-start;
        padding: 12px 15px !important;
        min-height: auto !important;
        gap: 12px;
    }
    
    .tab-btn i {
        font-size: 20px;
    }
    
    .tab-btn span {
        font-size: 13px;
        text-align: left;
    }
    
    .content-card {
        padding: 20px 15px !important;
    }
    
    .content-card h3 {
        font-size: 20px !important;
    }
    
    .value-item,
    .commitment-item {
        flex-direction: column !important;
        padding: 15px !important;
        gap: 12px;
    }
}

/* 13. CTA PARALLAX SECTION */
@media(max-width: 768px) {
    .section-cta-parallax,
    .cta-parallax-section {
        height: 50vh !important;
        min-height: 400px !important;
    }
    
    .cta-parallax-bg {
        background-attachment: scroll !important;
    }
    
    .cta-parallax-content h2 {
        font-size: 1.8rem !important;
        margin-bottom: 20px;
    }
    
    .cta-parallax-content p {
        font-size: 1rem !important;
        margin-bottom: 30px;
    }
    
    .btn-rdv-large {
        padding: 16px 35px !important;
        font-size: 14px !important;
    }
}

/* 14. TEAM & ORGANISATION */
@media(max-width: 768px) {
    .team-section,
    .experts-section,
    .organisation-section {
        padding: 60px 0 !important;
    }
    
    .team-stats {
        gap: 20px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .stat-card {
        min-width: auto !important;
        padding: 20px;
    }
    
    .stat-number {
        font-size: 36px !important;
    }
    
    .team-description {
        padding: 30px 20px !important;
    }
    
    .experts-grid {
        grid-template-columns: 1fr !important;
    }
    
    .expert-card {
        padding: 25px 20px !important;
    }
    
    .org-content {
        grid-template-columns: 1fr !important;
    }
    
    .org-visual {
        padding: 25px 20px !important;
    }
}

/* 15. CONTACT SECTION */
@media(max-width: 768px) {
    .contact-section {
        padding: 60px 0 !important;
    }
    
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .contact-info,
    .contact-form {
        padding: 25px 20px !important;
    }
    
    .contact-info h3,
    .contact-form h3 {
        font-size: 22px !important;
    }
    
    .info-item {
        gap: 15px;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 30px;
    }
}

/* 16. FOOTER - CORRECTION */
@media(max-width: 768px) {
    .footer-newsletter {
        padding: 30px 0 !important;
    }
    
    .newsletter-text h3 {
        font-size: 1.3rem !important;
    }
    
    .newsletter-text p {
        font-size: 0.9rem !important;
    }
    
    .input-group {
        flex-direction: column !important;
        border-radius: 15px !important;
    }
    
    .input-group input[type="email"] {
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 15px 15px 0 0 !important;
    }
    
    .newsletter-btn {
        padding: 14px 25px;
        font-size: 14px;
        border-radius: 0 0 15px 15px !important;
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }
    
    footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 17. CORRECTIONS SUPPLÉMENTAIRES PETITS ÉCRANS */
@media(max-width: 480px) {
    /* Padding général réduit */
    .about-us,
    .director-section,
    .expertise-section,
    .engagement-section,
    .section-interventions,
    .pillars-section,
    .philosophy-section {
        padding: 50px 0 !important;
    }
    
    /* Containers */
    .about-container,
    .director-container,
    .expertise-container,
    .engagement-container,
    .interventions-container,
    .pillars-container,
    .philosophy-container,
    .team-container,
    .experts-container,
    .org-container,
    .contact-container {
        width: 95% !important;
    }
    
    /* Hero height encore plus petit */
    .hero-video {
        height: 60vh !important;
    }
    
    .hero-content h1 {
        font-size: 1.6rem !important;
    }
    
    .hero-content p {
        font-size: 0.9rem !important;
    }
    
    /* Tous les cards */
    .expertise-card,
    .pillar-card,
    .intervention-card,
    .expert-card,
    .stat-card,
    .content-card {
        border-radius: 15px !important;
    }
    
    /* Buttons */
    .cta-btn,
    .read-more-btn,
    .btn-rdv-large,
    .submit-btn {
        font-size: 13px !important;
        padding: 12px 25px !important;
    }
}

/* 18. SCROLL TO TOP - MOBILE */
@media(max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* 19. WHATSAPP BUTTON - MOBILE */
@media(max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* 20. FIX OVERFLOW GÉNÉRAL */
body {
    overflow-x: hidden !important;
}

* {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* 21. HEADER TOP BAR MOBILE */
@media(max-width: 768px) {
    .header-top {
        padding: 10px 0;
        font-size: 11px;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-top .left {
        flex-direction: column;
        gap: 8px;
        font-size: 11px;
    }
    
    .header-top .right a {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* 22. ENGAGEMENT SECTION MOBILE */
@media(max-width: 768px) {
    .engagement-section {
        padding: 60px 0 !important;
    }
    
    .engagement-content {
        padding: 25px 20px !important;
        border-left-width: 4px;
    }
    
    .engagement-highlight {
        padding: 20px;
        margin-top: 25px;
    }
    
    .engagement-highlight p {
        font-size: 15px !important;
    }
}