/* Correctifs globaux : empêchent padding, bordures et contenus de dépasser. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
}

/*========================== ABOUT INTRO ==========================*/
.about-intro {
    width: min(88%, 1400px);
    margin: 80px auto;
    display: grid;
    /* Des fr au lieu de 20% + 80% : le gap reste inclus dans la largeur. */
    grid-template-columns: minmax(180px, 1fr) minmax(0, 4fr);
    gap: clamp(30px, 4vw, 55px);
    align-items: start;
}

.about-title,
.about-description {
    min-width: 0;
}

.about-title {
    align-self: start;
}

.about-title h1 {
    margin: 0;
    padding: 0;
    color: #114051;
    font-family: "Satoshi", sans-serif;
    font-size: clamp(38px, 4vw, 55px);
    font-weight: 400;
    line-height: 1;
    overflow-wrap: anywhere;
}

.about-description p {
    margin: 0;
    padding: 0;
    color: #45556c;
    font-size: 18px;
    line-height: 2;
    text-align: justify;
    overflow-wrap: anywhere;
}

/*========================== GALLERY ==========================*/
.about-gallery {
    padding: 20px 0;
    overflow: hidden;
    background: #fff;
}

.gallery-title {
    width: min(90%, 900px);
    margin: 0 auto 60px;
    text-align: center;
}

.gallery-title span {
    color: #5bbc82;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.gallery-title h2 {
    margin: 15px 0 0;
    color: #114051;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
}

.slider {
    width: 100%;
    overflow: hidden;
}

.slide-track {
    --slide-width: 320px;
    --slide-gap: 30px;
    display: flex;
    width: max-content;
    animation: scroll 35s linear infinite;
    will-change: transform;
}

.slide-track:hover {
    animation-play-state: paused;
}

.slide-track img {
    flex: 0 0 var(--slide-width);
    width: var(--slide-width);
    height: 220px;
    margin-right: var(--slide-gap);
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    transition: transform .4s;
}

.slide-track img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    to {
        transform: translateX(calc((var(--slide-width) + var(--slide-gap)) * -6));
    }
}

@media (prefers-reduced-motion: reduce) {
    .slide-track {
        animation: none;
    }
}

/*================ PARTNERS =================*/
.partners {
    padding: 10px 8%;
    overflow: hidden;
    background: #fff;
}

.partners-header {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-tag {
    display: inline-block;
    margin-bottom: 20px;
    padding: 4px 20px;
    border-radius: 50px;
    background: #5bbc82;
    color: #114051;
    font-size: 15px;
    font-weight: 600;
}

.partners-header h2 {
    margin: 0 0 15px;
    color: #114051;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
}

.partners-header p {
    margin: 0;
    color: #45556c;
    font-size: 18px;
    line-height: 1.8;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 50px);
    align-items: center;
}

.partner {
    display: flex;
    min-width: 0;
    padding: 10px;
    align-items: center;
    justify-content: center;
}

.partner img {
    width: min(100%, 160px);
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .7;
    transition: .3s;
}

.partner:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.08);
}

/*================================ WHY US ================================*/
.why-us {
    padding: 30px 0;
    overflow: hidden;
    background: #ebedf0;
}

.why-container {
    width: min(90%, 1200px);
    margin: 4px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.why-content,
.why-image {
    min-width: 0;
}

.why-content h2 {
    margin: 0 0 20px;
    color: #114051;
    font-size: clamp(30px, 3vw, 36px);
    font-weight: 400;
    line-height: 1.2;
}

.why-content > p {
    margin: 0 0 15px;
    color: #45556c;
    font-size: 14px;
    line-height: 1.7;
}

.why-list {
    display: flex;
    margin-bottom: 20px;
    flex-direction: column;
    gap: 14px;
}

.why-item {
    display: flex;
    min-width: 0;
    gap: 18px;
    align-items: flex-start;
}

.why-item i {
    display: flex;
    width: 55px;
    height: 55px;
    margin-top: 10px;
    flex: 0 0 55px;
    align-items: center;
    justify-content: center;
    border: 2px solid #5bbc82;
    border-radius: 50%;
    background: #fff;
    color: #114051;
    font-size: 22px;
}

.why-item > div {
    min-width: 0;
}

.why-item h3 {
    margin: 0 0 8px;
    color: #114051;
    font-size: 22px;
    font-weight: 400;
}

.why-item p {
    margin: 0;
    color: #45556c;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.why-btn {
    display: inline-flex;
    max-width: 100%;
    padding: 18px 34px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 2px solid #114051;
    border-radius: 50px;
    background: #fff;
    color: #114051;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: .35s;
}

.why-btn:hover {
    background: #114051;
    color: #fff;
    transform: translateY(-4px);
}

.why-image {
    display: flex;
    justify-content: center;
}

.why-image img {
    width: min(100%, 400px);
    height: auto;
    border-radius: 25px;
    object-fit: cover;
    box-shadow: 0 25px 60px rgba(17, 64, 81, .15);
}

/*================================ CTA ================================*/
.cta-section{
    margin-bottom:0;
    padding:120px 8%;
    overflow:hidden;
    background:#EBEDF0;
}

.cta-container {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.cta-tag {
    display: inline-block;
    margin-bottom: 25px;
    padding: 8px 18px;
    border-radius: 30px;
    background: #5bbc82;
    color: #114051;
    font-size: 15px;
    font-weight: 600;
}

.cta-container h2 {
    margin: 0 0 25px;
    color: #114051;
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.cta-container p {
    max-width: 760px;
    margin: 0 auto 45px;
    color: #45556c;
    font-size: 19px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    display: inline-flex;
    max-width: 100%;
    padding: 18px 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    transition: .35s;
}

.cta-primary {
    background: #114051;
    color: #fff;
}

.cta-primary:hover {
    background: #0b2d39;
    transform: translateY(-4px);
}

.cta-secondary {
    border: 2px solid #114051;
    background: #fff;
    color: #114051;
}

.cta-secondary:hover {
    background: #114051;
    color: #fff;
}


.footer-divider{
    width:90%;
    max-width:1300px;
    height:1px;

    margin:0 auto;

    background:#000000;
}


/*================ TABLETTE =================*/
@media (max-width: 992px) {
    .about-intro {
        width: 90%;
        margin: 60px auto;
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .about-description p {
        font-size: 16px;
        text-align: left;
    }

    .slide-track {
        --slide-width: 260px;
        --slide-gap: 30px;
    }

    .slide-track img {
        height: 180px;
    }

    .partners-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .why-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .why-content {
        order: 2;
    }

    .why-image {
        order: 1;
    }

    .why-item {
        text-align: left;
    }

    .cta-section {
        padding: 80px 6%;
    }
}

/*================ MOBILE =================*/
@media (max-width: 768px) {
    .about-intro {
        margin: 50px auto;
    }

    .about-title h1 {
        font-size: 34px;
    }

    .about-description p {
        font-size: 15px;
        line-height: 1.8;
    }

    .gallery-title {
        margin-bottom: 35px;
    }

    .gallery-title span {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .slide-track {
        --slide-width: 220px;
        --slide-gap: 20px;
    }

    .slide-track img {
        height: 150px;
    }

    .partners {
        padding: 50px 20px;
    }

/*==================================================
        PARTENAIRES - MOBILE HORIZONTAL
==================================================*/



    .partners{

        padding:40px 12px;

    }


    .partners-header{

        margin-bottom:30px;

    }


    .partners-header p{

        font-size:15px;

    }


    /* Tous les partenaires sur une seule ligne */

    .partners-grid{

        display:flex;

        flex-direction:row;

        flex-wrap:nowrap;

        align-items:center;

        justify-content:space-between;

        width:100%;

        gap:8px;

    }


    .partner{

        flex:1 1 0;

        min-width:0;

        padding:3px;

        display:flex;

        justify-content:center;

        align-items:center;

    }


    .partner img{

        width:100%;

        max-width:85px;

        height:50px;

        object-fit:contain;

    }



    .partners-header p {
        font-size: 15px;
    }

    .why-us {
        padding: 60px 20px;
    }

    .why-container {
        width: 100%;
        gap: 35px;
    }

    .why-content > p {
        font-size: 15px;
    }

    .why-item {
        gap: 12px;
    }

    .why-item i {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
        font-size: 18px;
    }

    .why-item h3 {
        font-size: 19px;
    }

    .why-item p {
        font-size: 14px;
    }

    .why-btn {
        width: 100%;
        padding: 15px 20px;
    }

    .why-image img {
        width: min(100%, 320px);
    }

    .cta-section {
        padding: 60px 20px;
    }

    .cta-tag {
        font-size: 13px;
    }

    .cta-container h2 {
        line-height: 1.3;
    }

    .cta-container p {
        margin-bottom: 30px;
        font-size: 15px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        padding: 15px 20px;
    }
}

/*================ PETITS MOBILES =================*/
@media (max-width: 400px) {
    .about-title h1 {
        font-size: 28px;
    }

    .about-description p {
        font-size: 14px;
    }

    .slide-track {
        --slide-width: 190px;
        --slide-gap: 16px;
    }

    .slide-track img {
        height: 130px;
    }



    .partners{

        padding-left:8px;

        padding-right:8px;

    }


    .partners-grid{

        display:flex;

        flex-direction:row;

        flex-wrap:nowrap;

        justify-content:space-between;

        align-items:center;

        gap:3px;

    }


    .partner{

        flex:1 1 0;

        min-width:0;

        padding:2px;

    }


    .partner img{

        width:100%;

        max-width:60px;

        height:38px;

        object-fit:contain;

    }



    .why-content h2 {
        font-size: 26px;
    }

    .why-item i {
        margin-top: 4px;
    }

    .cta-container h2 {
        font-size: 25px;
    }
}
