/* ============================================== */
/* AMÉLIORATIONS RESPONSIVE - FONDATION MOSUNGI */
/* ============================================== */

/* ============================================== */
/* BREAKPOINTS GLOBAUX */
/* ============================================== */
/* 
  Mobile: < 480px
  Mobile Large: 480px - 600px
  Tablet: 600px - 768px
  Tablet Large: 768px - 1024px
  Desktop: 1024px - 1440px
  Desktop Large: > 1440px
*/

/* ============================================== */
/* CORRECTIONS GÉNÉRALES */
/* ============================================== */

/* Correction du viewport et overflow */
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Correction pour les images responsives */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================== */
/* HEADER & NAVIGATION - AMÉLIORATIONS */
/* ============================================== */

/* Desktop Large (1440px+) */
@media (min-width: 1440px) {
    .nav-container {
        padding: 6px 5%;
        height: 55px;
        min-height: 55px;
        max-height: 55px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    section {
        max-width: 1400px;
    }
}

/* Desktop (1024px - 1440px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .nav-container {
        padding: 6px 3%;
        height: 55px;
        min-height: 55px;
        max-height: 55px;
    }
}

/* Tablet Large (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-container {
        padding: 6px 20px;
        height: 55px;
        min-height: 55px;
        max-height: 55px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 0.7em;
        padding: 4px 8px;
    }
    
    .nav-logo .logo-img {
        height: 38px;
    }
    
    .btn-contact {
        padding: 5px 12px;
        font-size: 0.75em;
    }
}

/* Tablet (600px - 768px) */
@media (min-width: 600px) and (max-width: 767px) {
    .nav-container {
        padding: 6px 15px;
        height: 55px;
        min-height: 55px;
        max-height: 55px;
    }
    
    .nav-logo .logo-img {
        height: 35px;
    }
    
    /* Sur tablette, masquer les nav-links et afficher le menu toggle */
    .nav-links {
        display: none !important;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 1002 !important;
        position: relative;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
    }
    
    .btn-contact {
        display: none !important;
    }
}

/* Mobile Large (480px - 600px) */
@media (min-width: 480px) and (max-width: 599px) {
    .nav-container {
        padding: 6px 10px;
        height: 55px;
        min-height: 55px;
        max-height: 55px;
    }
    
    .nav-logo .logo-text {
        font-size: 0.85em;
    }
    
    /* Sur mobile large, masquer les nav-links et afficher le menu toggle */
    .nav-links {
        display: none !important;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 1002 !important;
        position: relative;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
    }
    
    .btn-contact {
        display: none !important;
    }
}

/* Mobile (< 480px) */
@media (max-width: 479px) {
    .nav-container {
        padding: 6px 10px;
        height: 55px;
        min-height: 55px;
        max-height: 55px;
    }
    
    .nav-logo .logo-text {
        font-size: 0.8em;
    }
    
    .menu-toggle {
        font-size: 1.3em;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Sur mobile, masquer les nav-links et afficher le menu toggle */
    .nav-links {
        display: none !important;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .btn-contact {
        display: none !important;
    }
}

/* ============================================== */
/* HERO SECTION - AMÉLIORATIONS */
/* ============================================== */

/* Desktop Large */
@media (min-width: 1440px) {
    .hero-second-section {
        padding: 50px 10%;
    }
    
    .hero-second-content h1.titre-anime {
        font-size: 3.5em !important; /* Taille d'origine */
        color: white !important; /* Couleur d'origine */
    }
    
    .hero-second-content p {
        font-size: 1.4rem;
    }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-second-section {
        padding: 40px 8%;
    }
}

/* Tablet Large */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-second-section {
        padding: 60px 5%;
        min-height: 60vh;
    }
    
    .hero-second-content h1.titre-anime {
        font-size: 3.5em !important; /* Taille d'origine */
        color: white !important; /* Couleur d'origine */
    }
    
    .hero-second-content p {
        font-size: 1.2rem;
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 767px) {
    .hero-second-section {
        padding: 50px 4%;
        min-height: 50vh;
    }
    
    .hero-second-content h1.titre-anime {
        font-size: 3.5em !important; /* Taille d'origine */
        color: white !important; /* Couleur d'origine */
    }
    
    .hero-second-content p {
        font-size: 1.1rem;
    }
}

/* Mobile Large */
@media (min-width: 480px) and (max-width: 599px) {
    .hero-second-section {
        padding: 40px 3%;
        min-height: 45vh;
    }
    
    .hero-second-content h1.titre-anime {
        font-size: 3.5em !important; /* Taille d'origine */
        color: white !important; /* Couleur d'origine */
    }
    
    .hero-second-content p {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 479px) {
    .hero-second-section {
        padding: 30px 15px;
        min-height: 40vh;
        height: auto;
    }
    
    .hero-second-content {
        width: 100%;
    }
    
    .hero-second-content h1.titre-anime {
        font-size: 3.5em !important; /* Taille d'origine */
        color: white !important; /* Couleur d'origine */
        line-height: 1.3;
    }
    
    .hero-second-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* ============================================== */
/* SECTIONS CONTENU - AMÉLIORATIONS */
/* ============================================== */

/* Desktop Large */
@media (min-width: 1440px) {
    section {
        padding: 100px 5%;
    }
    
    .about-section,
    .mission-vision-section,
    .conflict-victims-section,
    .governance-section {
        padding: 80px 5%;
    }
    
    .blog-section {
        padding: 120px 5%;
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1439px) {
    section {
        padding: 80px 4%;
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Tablet Large */
@media (min-width: 768px) and (max-width: 1023px) {
    section {
        padding: 60px 3%;
    }
    
    .about-content,
    .mission-vision-content,
    .conflict-victims-content,
    .governance-content {
        gap: 40px;
    }
    
    h2 {
        font-size: 2.2em;
    }
    
    h3 {
        font-size: 1.4em;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .blog-section-title {
        font-size: 2.5rem;
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 767px) {
    section {
        padding: 50px 2%;
    }
    
    h2 {
        font-size: 2em;
    }
    
    h3 {
        font-size: 1.3em;
    }
}

/* Mobile Large */
@media (min-width: 480px) and (max-width: 599px) {
    section {
        padding: 40px 15px;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    h3 {
        font-size: 1.2em;
    }
}

/* Mobile */
@media (max-width: 479px) {
    section {
        padding: 30px 10px;
    }
    
    h2 {
        font-size: 1.5em;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    p {
        font-size: 0.95em;
        line-height: 1.6;
    }
}

/* ============================================== */
/* SECTIONS ABOUT/MISSION/GOVERNANCE */
/* ============================================== */

/* Tablet Large */
@media (min-width: 768px) and (max-width: 1023px) {
    .about-content .image-block img,
    .mission-vision-content .image-block img,
    .conflict-victims-content .image-block img,
    .governance-content .image-block img {
        max-width: 100%;
        height: auto;
    }
}

/* Tablet et Mobile */
@media (max-width: 767px) {
    .about-content,
    .mission-vision-content,
    .conflict-victims-content,
    .governance-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .about-content .text-block,
    .mission-vision-content .text-block,
    .conflict-victims-content .text-block,
    .governance-content .text-block {
        width: 100%;
        text-align: center;
    }
    
    .about-content .image-block,
    .mission-vision-content .image-block,
    .conflict-victims-content .image-block,
    .governance-content .image-block {
        width: 100%;
        max-width: 100%;
    }
    
    .about-content img,
    .mission-vision-content img,
    .conflict-victims-content img,
    .governance-content img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* ============================================== */
/* SECTION IMPACT - AMÉLIORATIONS */
/* ============================================== */

/* Desktop Large */
@media (min-width: 1440px) {
    .impact-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1439px) {
    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}

/* Tablet Large */
@media (min-width: 768px) and (max-width: 1023px) {
    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .impact-number {
        font-size: 3em;
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 767px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .impact-number {
        font-size: 2.8em;
    }
    
    .impact-icon {
        font-size: 2.2em;
    }
}

/* Mobile Large */
@media (min-width: 480px) and (max-width: 599px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .impact-card {
        padding: 20px 15px;
        min-height: 150px;
    }
    
    .impact-number {
        font-size: 2.5em;
    }
    
    .impact-icon {
        font-size: 2em;
    }
    
    .impact-card p {
        font-size: 0.85em;
    }
}

/* Mobile */
@media (max-width: 479px) {
    .impact-section {
        padding: 30px 10px;
    }
    
    .impact-section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .impact-card {
        padding: 20px 15px;
        min-height: 140px;
    }
    
    .impact-number {
        font-size: 2.2em;
    }
    
    .impact-icon {
        font-size: 1.8em;
    }
    
    .impact-card p {
        font-size: 0.8em;
        line-height: 1.4;
    }
}

/* ============================================== */
/* SECTION SERVICES - AMÉLIORATIONS */
/* ============================================== */

/* Tablet et Mobile */
@media (max-width: 1023px) {
    .services-wrapper {
        padding: 35px 4%;
    }
    
    .services-header {
        margin-bottom: 30px;
    }
    
    .services-section h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .services-section h2 i {
        font-size: 1.3rem;
    }
    
    .services-subtitle {
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 100%;
    }
    
    .service-box {
        padding: 22px 18px;
        min-height: 200px;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .service-box h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }
    
    .service-box p {
        font-size: 0.85em;
        margin-bottom: 18px;
    }
}

/* Mobile */
@media (max-width: 479px) {
    .services-wrapper {
        padding: 30px 3%;
    }
    
    .services-header {
        margin-bottom: 25px;
    }
    
    .services-section h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .services-section h2 i {
        font-size: 1.2rem;
    }
    
    .services-subtitle {
        font-size: 0.9rem;
    }
    
    .services-grid {
        gap: 15px;
    }
    
    .service-box {
        padding: 20px 15px;
        min-height: 180px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .service-box h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }
    
    .service-box p {
        font-size: 0.85em;
        margin-bottom: 15px;
        line-height: 1.5;
    }
    
    .service-box .learn-more {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ============================================== */
/* SECTION VALEURS - AMÉLIORATIONS */
/* ============================================== */

/* Tablet Large */
@media (min-width: 768px) and (max-width: 1023px) {
    .values-grid {
        gap: 12px;
    }
    
    .value-tag {
        padding: 10px 18px;
        font-size: 0.9em;
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 767px) {
    .values-grid {
        gap: 10px;
    }
    
    .value-tag {
        padding: 8px 16px;
        font-size: 0.85em;
    }
    
    .value-description {
        width: 200px;
        font-size: 0.85em;
    }
}

/* Mobile */
@media (max-width: 599px) {
    .values-section {
        padding: 40px 15px;
    }
    
    .values-section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .values-grid {
        gap: 8px;
        max-width: 100%;
    }
    
    .value-tag {
        padding: 8px 14px;
        font-size: 0.8em;
    }
    
    .value-description {
        width: 180px;
        font-size: 0.8em;
        padding: 12px;
    }
}

/* Mobile Small */
@media (max-width: 479px) {
    .values-grid {
        gap: 6px;
    }
    
    .value-tag {
        padding: 6px 12px;
        font-size: 0.75em;
    }
    
    .value-description {
        width: 160px;
        font-size: 0.75em;
        padding: 10px;
    }
}

/* ============================================== */
/* SECTION BLOG - AMÉLIORATIONS */
/* ============================================== */

/* Desktop Large */
@media (min-width: 1440px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1439px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Tablet Large */
@media (min-width: 768px) and (max-width: 1023px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablet et Mobile */
@media (max-width: 767px) {
    .blog-section {
        padding: 60px 3%;
    }
    
    .blog-section-header {
        margin-bottom: 40px;
    }
    
    .blog-section-title {
        font-size: 2.5rem;
    }
    
    .blog-section-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-section-badge {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
    
    .btn-view-all {
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-post-image-wrapper {
        height: 220px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.1rem;
        min-height: auto;
    }
}

/* Mobile */
@media (max-width: 479px) {
    .blog-section {
        padding: 40px 2%;
    }
    
    .blog-section-title {
        font-size: 2rem;
    }
    
    .blog-section-subtitle {
        font-size: 1rem;
    }
    
    .blog-section-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    
    .btn-view-all {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .blog-post-image-wrapper {
        height: 200px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1rem;
    }
    
    .post-excerpt {
        font-size: 0.9rem;
    }
    
    .post-meta {
        font-size: 0.8rem;
        gap: 10px;
    }
}

/* ============================================== */
/* SECTION CONTACT - AMÉLIORATIONS */
/* ============================================== */

/* Tablet Large */
@media (min-width: 768px) and (max-width: 1023px) {
    .contact-container {
        gap: 30px;
    }
    
    .contact-info-block h3 {
        font-size: 2.2em;
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 767px) {
    .contact-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .contact-info-block,
    .contact-form-block {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 599px) {
    .contact-section {
        padding: 40px 15px;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-info-block h3 {
        font-size: 1.8em;
    }
    
    .contact-info-block h4 {
        font-size: 1em;
    }
    
    .contact-info-block p {
        font-size: 0.95em;
    }
    
    .contact-form-block {
        padding: 20px;
    }
    
    .form-title {
        font-size: 1em;
    }
    
    #email-input {
        padding: 10px;
        font-size: 0.95em;
    }
    
    .btn-send {
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* Mobile Small */
@media (max-width: 479px) {
    .contact-section {
        padding: 30px 10px;
    }
    
    .contact-info-block h3 {
        font-size: 1.6em;
    }
    
    .contact-form-block {
        padding: 15px;
    }
}

/* ============================================== */
/* FOOTER - AMÉLIORATIONS */
/* ============================================== */

/* Desktop Large */
@media (min-width: 1440px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1439px) {
    .footer-grid {
        gap: 35px;
    }
}

/* Tablet Large */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 767px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Mobile */
@media (max-width: 599px) {
    footer {
        padding: 40px 20px 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-logo-social img {
        height: 50px;
        margin: 0 auto 15px;
    }
    
    .footer-links h3,
    .footer-official-info h3 {
        font-size: 1.2em;
    }
    
    .footer-links ul li {
        margin-bottom: 8px;
    }
    
    .footer-official-info p {
        font-size: 0.9em;
    }
}

/* Mobile Small */
@media (max-width: 479px) {
    footer {
        padding: 30px 15px 10px;
    }
    
    .footer-logo-social img {
        height: 45px;
    }
    
    .footer-whatsapp {
        font-size: 0.9em;
        padding: 6px 12px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icons a {
        font-size: 1.3em;
    }
}

/* ============================================== */
/* CARROUSEL PARTENAIRES - AMÉLIORATIONS */
/* ============================================== */

/* Tablet */
@media (min-width: 600px) and (max-width: 1023px) {
    .logo-carousel-section {
        padding: 50px 0;
    }
    
    .logo-circle-wrapper {
        width: 100px;
        height: 100px;
    }
}

/* Mobile */
@media (max-width: 599px) {
    .logo-carousel-section {
        padding: 40px 0;
    }
    
    .logo-carousel-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .logo-circle-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .logo-carousel-track-top,
    .logo-carousel-track-bottom {
        gap: 40px;
    }
}

/* Mobile Small */
@media (max-width: 479px) {
    .logo-carousel-section h2 {
        font-size: 1.6em;
    }
    
    .logo-circle-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .logo-carousel-track-top,
    .logo-carousel-track-bottom {
        gap: 30px;
    }
}

/* ============================================== */
/* SECTIONS SPÉCIFIQUES - AMÉLIORATIONS */
/* ============================================== */

/* Section Kimia */
@media (max-width: 767px) {
    .kimia-section {
        padding: 40px 15px;
    }
    
    .kimia-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .kimia-content .text-block {
        width: 100%;
        text-align: center;
    }
    
    .kimia-content img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .btn-kimia {
        width: 100%;
        text-align: center;
    }
}

/* Section Humanitaire */
@media (max-width: 767px) {
    .humanitarian-section {
        padding: 40px 15px;
    }
    
    .humanitarian-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .humanitarian-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* Section Bien-être */
@media (max-width: 767px) {
    .wellbeing-section {
        padding: 40px 15px;
    }
    
    .wellbeing-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .wellbeing-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .wellbeing-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-wellbeing-main,
    .btn-wellbeing-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Section Bannière Reconstruction */
@media (max-width: 767px) {
    .banner-reconstruction-section {
        padding: 25px 0;
    }
    
    .banner-reconstruction-content {
        padding: 0 3%;
    }
    
    .banner-reconstruction-content h2 {
        font-size: 2em;
        line-height: 1.3;
    }
}

@media (max-width: 479px) {
    .banner-reconstruction-section {
        padding: 20px 0;
    }
    
    .banner-reconstruction-content {
        padding: 0 2%;
    }
    
    .banner-reconstruction-content h2 {
        font-size: 1.6em;
    }
}

/* Section Message Président */
@media (max-width: 767px) {
    .president-message-section {
        padding: 40px 15px;
    }
    
    .president-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .president-quote {
        border-left: none;
        border-top: 3px solid var(--accent-green);
        padding-left: 0;
        padding-top: 15px;
    }
    
    .text-block h2 {
        font-size: 1.8em;
        text-align: center;
    }
}

/* Section Axes */
@media (max-width: 767px) {
    .axes-title-section {
        padding: 40px 15px 0;
    }
    
    .section-main-title {
        font-size: 2em;
    }
}

@media (max-width: 479px) {
    .section-main-title {
        font-size: 1.6em;
    }
}

/* ============================================== */
/* DIALOG MODAL - AMÉLIORATIONS */
/* ============================================== */

@media (max-width: 767px) {
    dialog {
        width: 95%;
        max-width: 95%;
        margin: 10% auto;
    }
    
    .dialog-content {
        padding: 15px;
    }
    
    .dialog-title {
        font-size: 1.8em;
    }
    
    .dialog-image {
        max-height: 250px;
    }
}

@media (max-width: 479px) {
    dialog {
        width: 98%;
        max-width: 98%;
        margin: 5% auto;
        padding: 0;
    }
    
    .dialog-content {
        padding: 10px;
    }
    
    .dialog-title {
        font-size: 1.5em;
    }
    
    .dialog-image {
        max-height: 200px;
    }
    
    .dialog-full-content {
        font-size: 0.9em;
    }
    
    #close-dialog-btn {
        font-size: 1.5rem;
        top: 5px;
        right: 5px;
    }
}

/* ============================================== */
/* CORRECTIONS SPÉCIFIQUES */
/* ============================================== */

/* Correction pour éviter le débordement horizontal */
* {
    box-sizing: border-box;
}

/* Amélioration du menu toggle pour mobile - Garantir la visibilité et la cliquabilité */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 1002 !important;
        position: relative !important;
        cursor: pointer !important;
        min-width: 44px !important;
        min-height: 44px !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3) !important;
        touch-action: manipulation !important;
    }
    
    .menu-toggle:active {
        transform: scale(0.95);
    }
    
    /* S'assurer que le menu toggle n'est pas masqué */
    .nav-container {
        position: relative;
        z-index: 1001;
    }
}

/* Correction pour les tableaux si présents */
table {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Correction pour les iframes */
iframe {
    max-width: 100%;
    height: auto;
}

/* Amélioration du scroll smooth sur mobile */
@media (max-width: 767px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

/* Correction pour les boutons sur mobile */
@media (max-width: 479px) {
    .btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    
    .btn-contact {
        padding: 8px 15px;
        font-size: 0.85em;
    }
}

/* ============================================== */
/* ORIENTATION PAYSAGE MOBILE */
/* ============================================== */

@media (max-width: 767px) and (orientation: landscape) {
    .hero-second-section {
        min-height: 50vh;
        height: auto;
        padding: 30px 5%;
    }
    
    .hero-second-content h1.titre-anime {
        font-size: 2rem;
    }
    
    .hero-second-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 40px 3%;
    }
}

/* ============================================== */
/* PRINT STYLES (Bonus) */
/* ============================================== */

@media print {
    header,
    footer,
    .btn,
    .menu-toggle,
    .logo-carousel-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    section {
        page-break-inside: avoid;
    }
}

