/* ============================
   SINGLE PROJET — STRUCTURE
============================ */

/* Conteneur général */
.single-projet-main {
    margin-left: 150px !important;
    margin-right: 150px !important;
    margin-top:80px !important;
    margin-bottom:50px !important;
    box-sizing: border-box;
    font-family: "Inter Tight", sans-serif;
}

/* ============================
   1) BOUTON RETOUR (EN HAUT GAUCHE)
============================ */
.single-btn-retour {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
    margin-bottom: 40px;
    position: relative;
    color: #000;
}

/* Flèche avant le texte */
.single-btn-retour::before {
    content: '';
    display: inline-block;
    width: 14px; /* largeur de la flèche */
    height: 14px; /* hauteur de la flèche */
    background-image: url('../assets/icons/fleche2.svg'); /* mets le chemin exact vers ton SVG */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.single-btn-retour a{
    text-decoration: none;
    color: #000;
    font-family: "Inter Tight", sans-serif;
    font-size:14px;

}


/* ============================
   2) HEADER CENTER (expertises + titre + bouton voir)
============================ */
.single-header-center {
    text-align: center;
    margin-bottom: 50px;
}

.single-header-center p{
        font-size: 16px;
    margin-bottom:10px;
}

.single-expertises {
    font-size: 18px;
    font-weight: 500;
}

.single-header-center h1{
        font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-top:0px;
}

.single-btn-voir {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: 1px solid #000;
    border-radius: 50px;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
    font-family: "Inter Tight", sans-serif;
}

.single-btn-voir img {
    width: 10px;
    height: 10px;
    display: inline-block;
    vertical-align: middle;
}


/* ============================
   3) IMAGE COUVERTURE FULL WIDTH
============================ */
.single-img-couv img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 23px;
    display: block;
    margin-bottom: 50px;
}

/* ============================
   4) SECTION COLONNE GAUCHE + CONTEXTE (2 COLONNES)
============================ */
.single-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 120px;
}

/* Colonne gauche */
.col-gauche h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.col-gauche .liste-expertises {
    margin-bottom: 30px;
}

.col-gauche .date {
    font-size: 16px;
    margin-top: 10px;
}

/* Contexte */
.single-contexte h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.single-contexte p {
    font-size: 16px;
    line-height: 1.6;
}


.liste-expertises {
    font-size: 16px;       /* taille du texte */
    line-height: 1.4;      /* hauteur de ligne : 1.8 fois la taille du texte */
    margin: 0;             /* pour enlever les marges par défaut du <p> */
}

/* ============================
   5) CARROUSEL — 2 IMAGES + FLECHE AU CENTRE
============================ */
.single-carrousel {
    position: relative;              /* nécessaire pour la flèche absolue */
    display: grid;
    grid-template-columns: 1fr 1fr;  /* deux colonnes égales */
    gap: 40px;                       /* espace entre les colonnes */
    margin-bottom: 50px;
}

/* Les images de gauche et droite */
.single-carrousel .img1,
.single-carrousel .img2 {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 23px;
}

/* Flèche centrée au-dessus des deux colonnes */
.single-carrousel-fleche {
    position: absolute;
    top: 40%;         /* centre horizontalement dans le conteneur */
    transform: translateY(-50%);
    left: 50%;         /* centre horizontalement dans le conteneur */
    transform: translateX(-50%);
    width: 90px;       /* taille de ta flèche */
    height: auto;
    z-index: 2;        /* pour être au-dessus des images */
}


/* ============================
   6) CREATION + IMAGE DROITE EN 2 COLONNES
============================ */
.single-creation-img {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 120px;
}

/* Création */
.single-creation h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.single-creation p {
    font-size: 16px;
    line-height: 1.6;
}

/* Conteneur de l'image droite */
.col-img-droite {
    position: relative; /* nécessaire pour placer la flèche */
}
 
/* Image droite */
.col-img-droite img {
    border-radius: 23px;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Flèche en haut à droite, au-dessus de l'image */
.img-fleche-droite {
    position: absolute;
    top: 0px;          /* petit décalage depuis le haut */
    right: 80px;        /* petit décalage depuis la droite */
    width: 60px;        /* taille finale de la flèche, à ajuster */
    height: auto;       /* fixe aussi la hauteur pour éviter les déformations */
    z-index: 2;         /* au-dessus de l'image */
}


/* ============================
   SINGLE PROJET — RESPONSIVE
============================ */

/* ============================
   SINGLE PROJET — TABLETTE (iPad)
============================ */
@media (min-width: 600px) and (max-width: 1024px) {

    .single-projet-main {
        margin-left: 60px !important;
        margin-right: 60px !important;
        margin-top: 60px !important;
        margin-bottom: 50px !important;
        padding: 0;
    }

    /* Header center — version scaled down */
    .single-header-center h1 {
        font-size: 42px; /* juste un peu plus petit que l'ordi */
        line-height: 1.1;
    }

    .single-header-center p {
        font-size: 16px; /* pareil que l'ordi */
    }

    .single-btn-voir {
        padding: 10px 26px;
        font-size: 15px;
    }

    /* Image couverture */
    .single-img-couv img {
        max-height: 350px;
        border-radius: 23px;
        margin-bottom: 50px;
    }

    /* Deux colonnes — restent côte à côte */
    .single-two-cols,
    .single-creation-img,
    .single-carrousel {
        grid-template-columns: 1fr 1fr; /* pas de stacking */
        gap: 60px;
    }

    /* Textes colonnes */
    .col-gauche h2,
    .col-contexte h2,
    .col-creation h2 {
        font-size: 24px;
    }

    .col-gauche .liste-expertises,
    .col-gauche .date,
    .col-contexte p,
    .col-creation p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Carrousel images */
    .single-carrousel .img1,
    .single-carrousel .img2 {
        height: 300px;
        border-radius: 23px;
    }

    /* Flèche du carrousel — toujours visible */
    .single-carrousel-fleche {
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90px;
        display: block;
    }

    /* Image droite */
    .col-img-droite img {
        width: 100%;
        border-radius: 23px;
    }

    /* Supprimer flèche droite */
    .img-fleche-droite {
        display: none;
    }

    /* Bouton retour */
    .single-btn-retour {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .single-btn-retour::before {
        width: 12px;
        height: 12px;
    }
}

/* -------- Mobile (≤ 599px) -------- */
@media (max-width: 599px) {

    .single-projet-main {
        margin-left: 20px !important;
        margin-right: 20px !important;
        margin-top: 40px !important;
        margin-bottom: 30px !important;
        padding: 0;
    }
 
    /* Header center */
    .single-header-center h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .single-header-center p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .single-btn-voir {
        padding: 8px 20px;
        font-size: 13px;
    }

    /* Image couverture */
    .single-img-couv img {
        max-height: 200px;
        border-radius: 15px;
        margin-bottom: 30px;
    }

    /* 2 colonnes → 1 colonne */
    .single-two-cols,
    .single-creation-img,
    .single-carrousel {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .single-carrousel{
        margin-top:-50px;
    }

    /* Colonne gauche / contexte / création */
    .col-gauche h2,
    .col-contexte h2,
    .col-creation h2 {
        font-size: 20px;
    }

    .col-gauche .liste-expertises,
    .col-gauche .date,
    .col-contexte p,
    .col-creation p {
        font-size: 13px;
        line-height: 1.4;
    }

    /* Carrousel images */
    .single-carrousel .img1,
    .single-carrousel .img2 {
        height: 180px;
        border-radius: 15px;
    }

    /* Flèche du carrousel */
    .single-carrousel-fleche {
        display: none;
    }

    /* Image droite */
    .img-droite  {
        width: 100%;
        border-radius: 15px;
    } 

    .img-fleche-droite {
        position: absolute;
        top: 0;
        right: 0px;
        width: 40px;
    }

    /* Bouton retour */
    .single-btn-retour {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .single-btn-retour::before {
        width: 12px;
        height: 12px;
    }

}


/* ==== 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 delays */
.fade-in-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}
