/* ===== Container global ===== */
.apropos-main {
    width: 100%;
    padding: 80px 100px;
    box-sizing: border-box;
    font-family: "Inter Tight", sans-serif;
}

/* ===== Wrapper section principale ===== */
.apropos-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

/* ===== Colonne gauche section principale ===== */
.apropos-left {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    text-align: left;
    margin-left: 50px;
    margin-right: -250px;
    z-index: 2;
    background: transparent;
}

/* Titre principal */
.titre-apropos {
    font-size: 64px;
    font-weight: 800;
    line-height: 95%;
    margin: 0;
    font-family: "Inter Tight", sans-serif;
}

/* Texte */
.apropos-text {
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    font-family: "Inter Tight", sans-serif;
}

/* Bouton avec flèche SVG */
.apropos-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    border: 1px solid #000;
    background-color: transparent;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    cursor: pointer;
    font-family: "Inter Tight", sans-serif;
}

.apropos-btn-fleche {
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
}

.apropos-btn:hover .apropos-btn-fleche {
    transform: translateX(4px);
}

/* Colonne droite section principale */
.apropos-right {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.apropos-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: cover;
    display: block;
}




/* ===================================================
        RESPONSIVE — SECTION PRINCIPALE “À PROPOS”
   =================================================== */


/* -------- iPad Pro (1025px–1200px) -------- */
@media (min-width: 1024px) and (max-width: 1050px) {
    .apropos-main {
        padding: 80px 80px;
    }

    .apropos-wrapper {
        flex-direction: row;
        gap: 40px;
        justify-content: center;
        align-items: flex-start;
    }

    .apropos-left {
        margin-left: 20px;
        margin-right: -150px;
    }

    .titre-apropos {
        font-size: 48px;
    }

    .apropos-text {
        font-size: 14px;
        max-width: 300px;
    }

    .apropos-btn {
        padding: 12px 28px;
        font-size: 15px;
    }

    .apropos-img {
        max-width: 520px;
        width: 100%;
        display: block; /* photo visible sur iPad Pro */
    }
}

/* -------- iPad Air + iPad Mini (600px–1024px) -------- */
@media (min-width: 600px) and (max-width: 1023px) {
    .apropos-main {
        padding: 70px 50px;
    }

    .apropos-wrapper {
        flex-direction: row; /* deux colonnes comme iPad Pro */
        gap: 30px;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
    }

    .apropos-left {
        margin-left: 10px;
        margin-right: -100px;
    }

    .titre-apropos {
        font-size: 46px;
        max-width: 600px;
    }

    .apropos-text {
        font-size: 15px;
        max-width: 400px;
    }

    .apropos-btn {
        padding: 10px 28px;
        font-size: 15px;
    }

    .apropos-img {
        display: none; /* photo cachée sur iPad Air et Mini */
    }
}

/* -------- Petites tablettes (600px–767px) -------- */
@media (min-width: 600px) and (max-width: 767px) {
    .apropos-main {
        padding: 50px 40px;
    }

    .apropos-wrapper {
        flex-direction: column; /* une colonne pour petites tablettes */
        gap: 30px;
        text-align: center;
        align-items: center;
    }

    .apropos-left {
        margin: 0;
        text-align: center;
        align-items: center;
    }

    .titre-apropos {
        font-size: 38px;
    }

    .apropos-text {
        font-size: 15px;
        max-width: 350px;
        margin-bottom: 0;
    }

    .apropos-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .apropos-img {
        display: none;
    }
}

/* -------- Mobile (≤ 599px) -------- */
@media (max-width: 599px) {
    .apropos-main {
        padding: 40px 20px;
    }

    .apropos-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }

    .apropos-left {
        margin: 0;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .titre-apropos {
        font-size: 32px;
        line-height: 110%;
    }

    .apropos-text {
        font-size: 14px;
        line-height: 1.5;
        max-width: 320px;
        margin-bottom: 0;
    }

    .apropos-btn {
        padding: 10px 22px;
        font-size: 14px;
    }

    .apropos-img {
        display: none;
    }
}




/* ============================
   RÉALISATIONS — GRID PROJETS
============================ */

/* Conteneur principal */
.realisations-main {
    width: 100%;
    padding: 80px 100px; /* 100px de chaque côté */
    box-sizing: border-box;  /* essentiel pour ne pas dépasser */
    font-family: "Inter Tight", sans-serif;
    margin: 0 auto; /* centre le conteneur */
    background-color: white;
    border-radius: 23px;
}

/* Titre principal de la section */
.realisations-main h1 {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
}

/* Grid projets */
.realisations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes */
    gap: 50px;
    justify-content: center; /* centre la grid dans le conteneur */
    align-items: start;
    margin-left:150px;
    margin-right:150px;
    padding-top:80px;
    padding-bottom:80px;
}

/* Chaque projet */
.projet-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #000;
    transition: transform 0.3s;
}


/* Image du projet */
.projet-img {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 20px;
}

.projet-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.3s;
}

/* Titre du projet */
.projet-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: -10px;
    margin-top:-5px;
}

/* Expertises */
.projet-expertises {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    line-height: 1.4;
}

/* ===================================================
        RESPONSIVE — SECTION RÉALISATIONS
   =================================================== */

/* -------- iPad Pro (1025px–1200px) -------- */
@media (min-width: 1025px) and (max-width: 1200px) {
    .realisations-main {
        padding: 60px 60px;
    }

    .realisations-grid {
        margin-left: 80px;
        margin-right: 80px;
        gap: 40px;
    }

    .projet-img img {
        height: 280px; 
    }

    .realisations-main h1 {
        font-size: 42px;
    }

    .projet-title {
        font-size: 22px;
    }

    .projet-expertises {
        font-size: 15px;
    }
}

/* -------- iPad Air + iPad Mini (600px–1024px) -------- */
@media (min-width: 600px) and (max-width: 1024px) {
    .realisations-main {
        padding: 50px 40px;
    }

    .realisations-grid {
        grid-template-columns: 1fr 1fr; /* 2 colonnes */
        margin-left: 40px;
        margin-right: 40px;
        gap: 30px;
    }

    .projet-img img {
        height: 250px;
    }

    .realisations-main h1 {
        font-size: 36px;
    }

    .projet-title {
        font-size: 20px;
    }

    .projet-expertises {
        font-size: 14px;
    }
}

/* -------- Mobile (≤ 599px) -------- */
@media (max-width: 599px) {
    .realisations-main {
        padding: 30px 20px;
    }

    .apropos-left{
        margin-bottom:-650px;
        max-height: 500px;;

    }

    

    .realisations-grid {
        grid-template-columns: 1fr;
        margin-left: 20px;
        margin-right: 20px;
        gap: 25px;

        position: relative;   /* permet de gérer le z-index */
        z-index: 10;          /* au-dessus de la section précédente */
    }
    .projet-img img {
        height: 200px;
    }

    .realisations-main h1 {
        font-size: 28px;
    }

    .projet-title {
        font-size: 18px;
    }

    .projet-expertises {
        font-size: 14px;
        text-align: center;
    }

    .projet-item {
        align-items: center;
    }


}




/* ==== Fade-in général ==== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-in pour items avec délai */
.fade-in-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Lorsqu'ils deviennent visibles */
.fade-in-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}
