@media screen and (max-width: 980px) {    
    .section-title > h2 {
        font-size: 2rem;
    }
    #about .about-text {
        padding: 0rem;
    }
    #about .about-item {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
}
@media screen and (max-width: 768px) {  
    .section-title > h2 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 736px) {

    #header > a {
        left: 1rem;
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

}

@media screen and (max-width: 1100px) {
    #header nav > ul {
        gap: 0.6rem;
    }

    #header nav > ul > li > a {
        font-size: 0.72em;
    }
}

@media screen and (max-width: 1000px) {
    #header nav {
        right: 6rem;
    }

    #header nav > ul {
        gap: 0.4rem;
    }

    #header nav > ul > li > a {
        padding: 0 0.6em;
        font-size: 0.68em;
    }
}

@media screen and (max-width: 750px) {
    #header {
        display: none;
    }
}

@media screen and (max-width: 750px) {
    .navPanelToggle {
        display: flex;
    }
}

@media (max-width: 1280px) {
    #portfolio .inner {
        padding: 0 2rem;
    }
}

@media (max-width: 1024px) {
    .grid-sizer,
    .grid-item { width: 32%; }  /* 3 colonnes */
}

@media (max-width: 768px) {
    #portfolio {
        padding: 3rem 0;
    }

    .portfolio-tabs {
        display: none;
        gap: 0.5rem;
    }

    #portfolio .grid {
        display: block;
        opacity: 1;
        margin-bottom: 1.5rem;
    }

    .grid-sizer,
    .gutter-sizer {
        display: none;
    }

    .grid-item {
        display: none;
        float: none;
        width: 100%;
        margin-bottom: 0;
    }

    .grid-item.mobile-featured .portfolio-title {
        font-size: 0 !important;
    }

    .grid-item.mobile-featured .portfolio-title::before {
        content: var(--section-name);
        font-size: 1rem;
        display: block;
        color: white;
        letter-spacing: 0.1em;
    }

    .grid-item.mobile-featured {
        display: block;
    }
    
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 24px;
        height: 24px;
    }

    .portfolio-overlay {
        opacity: 1;
    }
}

@media screen and (max-width: 980px) {
    .about-item,
    .about-item.alt {
        grid-template-columns: 1fr;
    }

    .about-item.alt .about-photo,
    .about-item.alt .about-text {
        order: initial;
    }

    .about-photo {
        min-height: 260px;
        max-height: 260px;
    }

    .about-text {
        padding: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: center;
    }
}

@media screen and (max-width: 900px) {
    .organigramme-bureau .membre {
        flex: 0 0 calc((100% - 2.5rem) / 2);
        max-width: calc((100% - 2.5rem) / 2);
    }
    
    .organigramme-title {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
    }
    
    .organigramme-year {
        font-size: 0.85rem;
        margin-left: 0.5rem;
    }
}

@media screen and (max-width: 600px) {
    #organigramme {
        padding: 3rem 1rem;
    }
    
    .organigramme-header {
        margin-bottom: 3rem;
        padding-bottom: 1.5rem;
    }
    
    .organigramme-title {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }
    
    .organigramme-year {
        font-size: 0.75rem;
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .organigramme-bureau {
        gap: 2rem;
    }
    
    .organigramme-bureau .membre {
        flex: 0 0 calc((100% - 2rem) / 2);
        max-width: calc((100% - 2rem) / 2);
    }
    
    .organigramme-membres {
        gap: 1.5rem;
    }
   
    .membre-photo {
        width: 75px;
        height: 75px;
    }
    
    .bureau-principal .membre-photo {
        width: 90px;
        height: 90px;
    }
    
    .membre-nom {
        font-size: 0.75rem;
    }
    
    .membre-role {
        font-size: 0.55rem;
    }
    
    .membre-responsabilites {
        font-size: 0.6rem;
    }
}

@media (max-width: 1024px) {
    
    #about .spotlight {
        grid-template-columns: 1fr;
    }
    
    #about .spotlight .image {
        min-height: 50vh;
    }
}

@media (max-width: 768px) {
    #banner .logo {
    margin-bottom: 3.2rem;
  }

    #banner h2 {
        margin-top: 1rem;
    }
    
    #banner {
        background-attachment: scroll;
    }
    
    #banner > .inner > ul {
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        align-items: stretch;
        flex-wrap: wrap;
        position: relative;
        z-index: 12;
        list-style: none; 
        padding: 0;      
    }

    #banner > .inner > ul > li {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        max-width: 420px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    #banner .button {
        width: 100%;
        text-align: center;
    }
    
    #about .spotlight .image {
        min-height: 40vh;
    }
    
    #footer .copyright {
        flex-direction: column;
        text-align: center;
    }

    #banner > .inner > .button.primary {
        width: 50%;
        max-width: 300px;
        padding: 0.85rem 1.5rem;
        font-size: 0.8rem;
        letter-spacing: 0.2em;
        margin-top: 1.5rem;
    }
    
    /* Input garde sa largeur */
    #extinput {
        min-width: 0;
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    /* Bouton Valider - plus petit et mieux proportionné */
    #extaction {
        width: auto;
        min-width: 120px;
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
        margin-left: 0;
        margin-top: 0.5rem;
        justify-content: center;
        display: none;
    }
    
    /* Cache le bouton "Voir nos réalisations" et la flèche sur mobile */
    #banner .more {
        display: none;
    }
}