/************************************
            FRONT PAGE
************************************/

.main-accueil {
    position: relative;
    padding: 50px;
}

/* === Ligne du haut : Titre + Image droite === */
.main-accueil__titre {
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 100px;
    font-weight: bold;
    top:-5px;
    line-height: 0.9;
    margin: 0;
    max-width:812px;
    position: relative;
    z-index: 3;
}

/* Image droite */
.main-accueil__img-droite {
    position: absolute;
    top: 50px;
    right: 50px;
    z-index: 1;
}

.main-accueil__img-droite img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* === Ligne du bas : Image gauche + Rond + Texte === */
.main-accueil__bottom {
    position: relative;
    margin-top: 35px;
    display: flex;
}

.main-accueil__img-gauche {
    position: relative;
    width: 500px;
    z-index: 1;
}

.main-accueil__img-gauche img {
    width: 100%;
    height: auto;
    display: block;
}

.main-accueil__rond {
    position: absolute;
    top: 20%;
    right: 825px;
    width: 180px;
    z-index: 3;
}

.main-accueil__rond img {
    width: 100%;
    height: auto;
}

.main-accueil__texte {
    font-family: "Inter Tight", sans-serif;
    position: absolute;
    bottom: 60px;
    right: 550px;
    max-width: 174px;
    font-size: 17px;
    z-index: 2;
    text-align: right;
}

/************************************
            RESPONSIVE
************************************/
@media (max-width: 900px) {

    .main-accueil {
        padding: 20px;
    }

    .main-accueil__titre,
    .main-accueil__img-droite,
    .main-accueil__rond,
    .main-accueil__img-gauche,
    .main-accueil__texte {
        position: static;
        width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }

    .main-accueil__bottom {
        display: block;
    }
}


.main-accueil {
    position: relative;
    padding: 50px;
}

/* === Ligne du haut : Titre + Image droite === */
.main-accueil__titre {
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 100px;
    font-weight: bold;
    top:-5px;
    line-height: 0.9;
    margin: 0;
    max-width:812px;
    position: relative;
    z-index: 3;
}

/* Image droite */
.main-accueil__img-droite {
    position: absolute;
    top: 50px;
    right: 50px;
    z-index: 1;
}

.main-accueil__img-droite img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* === Ligne du bas : Image gauche + Rond + Texte === */
.main-accueil__bottom {
    position: relative;
    margin-top: 35px;
    display: flex;
}

.main-accueil__img-gauche {
    position: relative;
    width: 500px;
    z-index: 1;
}

.main-accueil__img-gauche img {
    width: 100%;
    height: auto;
    display: block;
}

.main-accueil__rond {
    position: absolute;
    top: 20%;
    right: 825px;
    width: 180px;
    z-index: 3;
}

.main-accueil__rond img {
    width: 100%;
    height: auto;
}

.main-accueil__texte {
    font-family: "Inter Tight", sans-serif;
    position: absolute;
    bottom: 60px;
    right: 550px;
    max-width: 174px;
    font-size: 17px;
    z-index: 2;
    text-align: right;
}



/************************************
        RESPONSIVE MAIN ACCUEIL
************************************/

/* Très grands écrans / ultra-large */
@media (min-width: 1600px) {

    .main-accueil__titre {
        font-size: 120px;        
        max-width: 1200px;
        line-height: 1;
        margin-top: 30px;
    }

    .main-accueil__img-droite {
        top: 60px;
        right: 60px;
        width: 70%;
        max-width: 550px;
    }

    .main-accueil__rond {
        right: 800px;
        width: 220px;
    }

    .main-accueil__texte {
        right: 450px;
        font-size: 18px;
        max-width: 250px;
    }
}

/* iPad portrait & landscape */
@media (min-width: 768px) and (max-width: 1024px) {

    .main-accueil__titre {
        align-items: center;
        justify-content: center;
        font-size: 75px;         /* titre adapté iPad */
        max-width: 90%;
        line-height: 1.05;
        margin-top: 20px;
        margin-left:60px;
        text-align: center;
    }

    .main-accueil__texte {
        position: static;        
        max-width: 500px;         /* limite pour forcer deux lignes */
        text-align: center;
        font-size: 15px;
        margin: 0 auto 15px auto; /* centrage horizontal */
        word-wrap: break-word;    /* permet le retour à la ligne si nécessaire */
        white-space: normal;      /* assure que le texte peut se casser en lignes */
    }

    .main-accueil__img-droite {
        display: none;           
    }

    .main-accueil__bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: -120px;
    }

    .main-accueil__img-gauche {
        width: 50%;
        margin: 0 auto 20px auto;
        position: relative;
    }

    .main-accueil__rond {
        width: 80%;
        margin: -30px auto 20px auto;
        position: relative;
    }
}

/* Tablette / grand écran réduit */
@media (max-width: 1200px) {

    .main-accueil__titre {
        font-size: 85px;   
        max-width: 90%;
        line-height: 1;
        margin-top: 20px;
    }

    .main-accueil__img-droite {
        top: 40px;
        right: 30px;
        width: 60%;
        max-width: 400px;
    }

    .main-accueil__rond {
        right: 600px;
        width: 150px;
    }

    .main-accueil__texte {
        right: 350px;
        font-size: 15px;
    }
}

/* Mobile / petit écran */
@media (max-width: 900px) {

    .main-accueil {
        padding: 20px;
        text-align: center;
    }

    .main-accueil__top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .main-accueil__titre {
        font-size: 70px;    
        max-width: 100%;
        margin: 0;
    }

    .main-accueil__texte {
        position: static;
        max-width: 90%;
        text-align: center;
        font-size: 15px;
        order: 1;
        margin-bottom: 15px;
    }

    .main-accueil__img-droite {
        display: none;
    }

    .main-accueil__bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: -100px;
    }

    .main-accueil__img-gauche {
        position: relative;
        width: 80%;
        margin: 0 auto 20px auto;
    }

    .main-accueil__rond {
        position: relative;
        width: 80%;
        margin: -30px auto 20px auto;
    }
}

/* Très petit écran / smartphone */
@media (max-width: 600px) {

    .main-accueil__titre {
        font-size: 48px;   
        margin-top: 20px;
    }

    .main-accueil__texte {
        font-size: 14px;
        max-width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .main-accueil__rond {
        width: 100px;
        margin-top: -20px;
    }

    .main-accueil__img-gauche {
        width: 90%;
        margin: 0 auto 15px auto;
    }
}


/************************************
          A PROPOS ACCUEIL
************************************/

.a-propos-accueil {
    margin-left:50px;
    margin-right:50px;
    margin-bottom:80px;
    display: flex;
    flex-direction: column;
}

.apropos-grid-row1 {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 35px;
    align-items: center;
    margin-bottom:35px;
}

.apropos-grid-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 35px;
    align-items: center;
}

.apropos-grid-item {
    display: flex;
    justify-content: center;
}

.apropos-titre {
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size:48px;
    font-weight:800;
}

/* --- Conteneur des cartes --- */
.apropos-solution,
.apropos-visibilite,
.apropos-accompagnement,
.apropos-txt-pres {
    position: relative;
}

/* --- Background images --- */
.apropos-solution img,
.apropos-visibilite img,
.apropos-accompagnement img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

/* --- Conteneur pour numéro + texte centré --- */
.apropos-solution .content,
.apropos-visibilite .content,
.apropos-accompagnement .content {
    position: absolute;   /* sur l'image */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column; /* numéro au-dessus, texte en dessous */
    align-items: center;
    text-align: center;
    z-index: 2;
}

/* --- Numéro en bold --- */
.apropos-solution .content span,
.apropos-visibilite .content span,
.apropos-accompagnement .content span {
    font-size: 64px;
    font-weight: 800;
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: #fff;
    margin-bottom: 0; /* plus d'espace entre numéro et texte */
    display: block;
}

/* --- Texte en regular juste en dessous --- */
.apropos-solution .content p,
.apropos-visibilite .content p {
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: 126%;
    max-width: 180px;
    display: block;
    margin-top: 0; /* plus d'espace au-dessus du texte */
}

/* --- Texte du groupe accompagnement sur une seule ligne --- */
.apropos-accompagnement .content p {
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: 126%;
    max-width: none;        /* pas de limite de largeur */
    display: block;
    margin-top: 0;
    white-space: nowrap;     /* force sur une seule ligne */
    overflow: hidden;        /* coupe le texte si trop long */
    text-overflow: ellipsis; /* "..." si texte trop long */
}

/* --- Flèche --- */
.apropos-solution .fleche,
.apropos-visibilite .fleche,
.apropos-accompagnement .fleche {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.apropos-solution:hover .fleche,
.apropos-visibilite:hover .fleche,
.apropos-accompagnement:hover .fleche {
    transform: translateX(5px);
}

/************************************
✅ 1ère CARTE DE LA 2ᵉ LIGNE : TXT PRES
   numéro + texte centrés sur background
************************************/
.apropos-txt-pres {
    position: relative;               
    height: 195px;
    width: 200px;
    border-radius: 20px;
    text-align: center;

    background-color: #ADC8D7;  /* background */
    padding: 40px;
    padding-right:85px;
    padding-left:85px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Texte et numéro au-dessus du background */
.apropos-txt-pres span,
.apropos-txt-pres p {
    position: relative;
    z-index: 2;
    margin: 0; /* plus de marge */
    max-width: 90%;
}

/* Numéro en bold */
.apropos-txt-pres span {
    font-size: 34px;
    font-weight: 800; /* bold */
    color: #000;
}

/* Texte en regular juste en dessous */
.apropos-txt-pres p {
    font-size: 16px;
    font-weight: 400; /* regular */
    color: #000;
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 126%;
    max-width: 217px;
}



/* Mobile / petit écran : <768px */
@media (max-width: 767px) {
    .a-propos-accueil {
        margin-left: 15px;
        margin-right: 15px;
    }

    /* Tout passe en une seule colonne */
    .apropos-grid-row1,
    .apropos-grid-row2 {
        display: flex;
        flex-direction: column; /* une seule colonne */
        align-items: center;
        gap: 20px;
    }

    /* Uniformisation largeur + limitation des images */
    .apropos-solution,
    .apropos-visibilite,
    .apropos-accompagnement,
    .apropos-txt-pres,
    .apropos-img-milieu,
    .apropos-img-basdroite {
        width: 95%;        /* largeur uniforme */
    }

    .apropos-txt-pres{
        padding:10px;
        max-width:325px;
    }

    /* Images internes : s’adaptent à la largeur du container */
    .apropos-solution img,
    .apropos-visibilite img,
    .apropos-accompagnement img,
    .apropos-img-milieu img,
    .apropos-img-basdroite img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Texte centré et taille adaptée */
    .apropos-titre {
        font-size: 36px;
        text-align: center;
        margin-bottom: 20px;
    }

    .apropos-solution .content,
    .apropos-visibilite .content,
    .apropos-accompagnement .content,
    .apropos-txt-pres span,
    .apropos-txt-pres p {
        font-size: 14px; /* réduit un peu pour tenir sur mobile */
        max-width: 90%;
        text-align: center;
    }
}


/* iPad portrait & landscape : 768px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Conteneur principal */
    .a-propos-accueil {
        margin-left: 30px;
        margin-right: 30px;
    }

    /* Titre aligné à gauche */
    .apropos-titre {
        font-size: 42px;
        text-align: left;
        margin-bottom: 25px;
    }

    /* Grid en trois colonnes */
    .apropos-grid-row1,
    .apropos-grid-row2 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        align-items: center;
        justify-items: center;
    }

    /* Uniformisation largeur des blocs */
    .apropos-solution,
    .apropos-visibilite,
    .apropos-accompagnement,
    .apropos-txt-pres,
    .apropos-img-milieu,
    .apropos-img-basdroite {
        width: 100%;
        max-width: 280px;
        min-width: 280px;
        box-sizing: border-box;
        position: relative;
    }

    /* Images milieu et bas-droite avec hauteur fixe et crop */
    .apropos-img-milieu img,
    .apropos-img-basdroite img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        border-radius: 23px;
    }

    /* ✅ Contenu centré dans les blocs */
    .apropos-solution .content,
    .apropos-visibilite .content,
    .apropos-accompagnement .content {
        font-size: 15px;
        max-width: 90%;
        text-align: center;
        box-sizing: border-box;
        padding: 0;
        margin: 0 auto;
    }

    /* Numéro des cartes */
    .apropos-solution .content span,
    .apropos-visibilite .content span,
    .apropos-accompagnement .content span {
        font-size: 48px;
        line-height: 1;
        margin-bottom: 8px;
    }

    .apropos-solution .content p,
    .apropos-visibilite .content p,
    .apropos-accompagnement .content p {
        font-size: 14px;
        line-height: 1.3;
        word-wrap: break-word;
        margin: 0;
    }

    /* ✅ Bloc TXT-PRES : texte entièrement contenu dans son background */
    .apropos-txt-pres {
        width: 100%;
        max-width: 280px;
        min-width: 280px;

        background-color: #ADC8D7;
        border-radius: 20px;

        /* ✅ plus de height fixe → s'adapte automatiquement */
        height: auto;

        padding: 25px 20px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        box-sizing: border-box;
        text-align: center;
    }

    .apropos-txt-pres p {
        font-size: 14px;
        max-width: 90%;
        line-height: 1.3;
        word-wrap: break-word;
        margin: 0;
        padding: 0;
    }
} 


/************************************
          SERVICES ACCUEIL
************************************/

.services-accueil {
    margin-left:50px;
    margin-right:50px;
    font-family: "Inter Tight", sans-serif;
}

.services-titre {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: left; /* titre en haut à gauche */
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px; /* espace vertical entre les services */
}

.service-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* numéro à gauche, titre au centre, texte à droite */
    padding-top: 10px ;
    padding-bottom:20px;
    border-bottom: 1px solid #000; /* ligne noire en dessous */
}

.service-item:last-child {
    border-bottom: none; /* pas de trait sous le dernier élément */
}

.service-item span.service-num {
    font-size: 24px;
    font-weight: 500;
    color: #ADC8D7;
    flex: 1;
    text-align: left; /* numéro à gauche */
}

.service-item h3.service-title {
    font-size: 40px;
    font-weight: 500;
    margin: 0;
    flex: 2;
}

.service-item p.service-text {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    flex: 3;
    text-align: left; /* texte à droite */
}


/****************************************
 ✅ GRAND ÉCRAN 1400px+
****************************************/
@media (min-width: 1400px) {
    .service-item h3.service-title {
        font-size: 48px;
    }
    .service-item p.service-text {
        font-size: 18px;
        max-width: 600px;
    }
}

/****************************************
 ✅ PETITES TABLETTES — max 768px
****************************************/
@media (max-width: 768px) {

    .services-accueil {
        margin-left: 20px;
        margin-right: 20px;
    }

    .services-titre {
        font-size: 40px;
        text-align: left;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 20px;
    }

    .service-item span.service-num {
        font-size: 20px;
    }

    .service-item h3.service-title {
        font-size: 28px;
    }

    .service-item p.service-text {
        font-size: 15px;
        max-width: 100%;
    }
}

/****************************************
 ✅ SMARTPHONE — max 500px
****************************************/
@media (max-width: 500px) {

    .services-accueil {
        margin-left: 15px;
        margin-right: 15px;
    }

    .services-titre {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 15px;
        gap: 8px;
    }

    .service-item span.service-num {
        font-size: 18px;
    }

    .service-item h3.service-title {
        font-size: 24px;
    }

    .service-item p.service-text {
        font-size: 14px;
        max-width: 100%;
    }
}



.real-accueil {
    margin: 80px 50px 0 50px;
}

.real-accueil .real-titre {
    font-family: "Inter Tight", sans-serif;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: left;
}

/* Grille principale 3 colonnes */
.real-accueil .real-grid {
    display: flex;
    gap: 35px;
}

/* Colonne 1, 2 et 3 */
.real-accueil .real-col-1,
.real-accueil .real-col-2,
.real-accueil .real-col-3 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.real-accueil .real-col-2 {
    gap: 18px;
}

/* Images et textes superposés pour colonne 1 et 2 */
.real-accueil .real-item {
    position: relative;
}

.real-accueil .real-item img {
    display: block;
}

.real-accueil .real-item-titre,
.real-accueil .real-item-text {
    position: absolute;
}

/* Flèche pour imgreal2 */
.real-accueil .real-item-2 .real-item-fleche {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 55px;
    height: auto;
    z-index: 2;
}

/* Colonne 3 texte et bouton */
.real-accueil .real-col-3 {
    justify-content: flex-start;
    align-items: center;
}

/* Texte avec background centré et justifié */
.real-accueil .real-textpres {
    display: flex;                    /* active le flexbox */
    flex-direction: column;           /* empile le texte verticalement */
    justify-content: center;          /* centre verticalement */
    align-items: center;              /* centre horizontalement */

    text-align: center;              /* texte justifié */
    text-justify: inter-word;         /* espace entre les mots pour justification */

    margin: 0 0 20px 0;
    padding: 20px;
    padding-left:40px;
    padding-right:40px;
    height: 237px;
    background-color: #ADC8D7;       /* couleur du background */
    border-radius: 23px;

    font-family: "Inter Tight", sans-serif;
    font-weight: 400;
    font-size: 16px;
}

/* Sous-titre */
.real-accueil .real-soustitres {
    font-family: "Inter Tight", sans-serif;
    font-weight: 500;
    max-width: 200px;
    text-align: center;
    font-size:36px;
    margin: 10px 0 20px 0;
}

/* Bouton "Voir plus" style header */
.real-accueil .real-btn {
    display: inline-flex;          /* texte + flèche alignés */
    align-items: center;
    justify-content: center;
    gap: 8px;                      /* espace entre texte et flèche */
    border: 1px solid #000;        /* même bordure que header */
    padding: 10px 30px;            /* padding identique au header */
    border-radius: 50px;           /* arrondi complet comme header */
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    color: #000;                   /* texte noir */
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Flèche dans le bouton */
.real-accueil .real-btn .real-btn-fleche {
    width: 10px;
    height: 10px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

/* Animation flèche au hover */
.real-accueil .real-btn:hover .real-btn-fleche {
    transform: translateX(3px);    /* flèche bouge légèrement à droite */
}



/* Titres des réalisations : plus gros */
.real-accueil .real-item-titre {
    font-size: 36px;          /* taille plus grande que le texte */
    font-family: "Inter Tight", sans-serif;
    font-weight: 600;
    bottom: 45px;
    left: 20px;
    color: #fff;
    z-index: 2;
}

/* Texte des réalisations : plus petit et sous le titre */
.real-accueil .real-item-text {
    font-family: "Inter Tight", sans-serif;
    font-size: 14px;          /* plus petit que le titre */
    font-weight: 400;
    bottom: 25px;                /* décalage pour être en dessous du titre */
    left: 20px;
    color: #fff;
    z-index: 2;
}


.real-col-1 .real-item .real-item-titre{
    color: #000;
    bottom: 75px;                /* décalage pour être en dessous du titre */
    left: 0px;
}

.real-col-1 .real-item .real-item-text{
    color: #000;
    left: 0px;
    bottom: 15px;                /* décalage pour être en dessous du titre */
    font-size:16px;
    max-width:350px;
}



/************************************
        📱 RESPONSIVE MOBILE
        (0 – 768px)
************************************/
@media (max-width: 767px) {

    .real-accueil {
        margin: 40px 20px;
    }

    .real-titre {
        font-size: 32px;
        margin-bottom: 25px;
        text-align: center;
    }

    /* ✅ Une seule colonne */
    .real-grid {
        flex-direction: column;
        gap: 25px;
    }

    .real-col-1,
    .real-col-2,
    .real-col-3 {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /*******************************************
        ✅ IMAGE 1 PLUS GRANDE (comme demandé)
    *******************************************/
    .real-col-1 .real-item img {
        width: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    /* ✅ Les autres images un peu plus petites */
    .real-col-2 .real-item img,
    .real-col-3 img {
        width: 100%;
        height: 200px;
        border-radius: 20px;
    }

    /* ✅ Titres sur images */
    .real-item-titre {
        font-size: 18px;
        bottom: -50px;
        left: 12px;
    }

    .real-item-text {
        font-size: 14px;
        bottom: 0px;
        left: 0px;
        max-width: 85%;
    }

    /* ✅ Flèche sur la deuxième image */
    .real-item-2 .real-item-fleche {
        width: 40px;
        top: 8px;
        right: 8px;
    }

    .real-accueil .real-item-titre{
                font-size: 24px;
        bottom: 60px;
        left: 12px;
    }
        .real-accueil .real-item-text{
                font-size: 14px;
        bottom: 20px;
        left: 12px;
    }
    .real-accueil .real-soustitres{
        margin-top:-20px;
    }

    .real-accueil .real-btn{
        margin-top:-20px;
    }

    /*******************************************
        ✅ BLOC BLEU PLUS PETIT AVEC MARGES
    *******************************************/
    .real-textpres {
        width: 77%;
        padding: 20px;
        background-color: #ADC8D7;
        border-radius: 18px;
        font-size: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .real-soustitres {
        font-size: 26px;
        max-width: 180px;
        margin: 10px auto;
        text-align: center;
    }

    .real-btn {
        padding: 10px 28px;
        font-size: 15px;
        border-radius: 40px;
    }

    .real-btn-fleche {
        width: 10px;
        height: 10px;
    }

    .real-col-1 .real-item .real-item-titre{
        bottom:50px;
        font-size: 28px;
    }
    .real-col-1 .real-item .real-item-text{
        bottom:0px;
        font-size: 14px;
        max-width:250px;
    }

    .real-accueil .real-item-2 .real-item-fleche{
        width:50px;
        top:0px;
        right:0px;
    }
 
}

/************************************
        📱 iPAD / TABLETTES
        (768px – 1024px)
************************************/
@media (min-width: 768px) and (max-width: 1024px) {

    /* Conteneur global */
    .real-accueil {
        margin: 50px 40px; 
    }

    /* Titre principal */
    .real-titre {
        font-size: 40px;
        margin-bottom: 30px;
    }

    /* Grille 3 colonnes */
    .real-grid {
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: stretch; /* force colonnes même hauteur */
    }

    /* Colonnes */
    .real-col-1,
    .real-col-2,
    .real-col-3 {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 15px;    
        height: 100%; /* permet aux colonnes de s’étirer */
    }

    /* Images : laisser image de gauche inchangée, réduire autres images */
    .real-col-1 .real-item img {
        width: 100%;
        height: auto; /* conserve proportion naturelle */
    }

    .real-col-2 .real-item img,
    .real-col-3 .real-item img {
        width: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    .real-accueil .real-textpres{
        height:150px;
    }

    .real-accueil .real-soustitres{
        font-size:20px;
        margin-top:-20px;
    }

    .real-accueil .real-btn{
        margin-top:-20px;
    }

    .real-accueil .real-item-2 .real-item-fleche{
        width:40px;
        height: auto;
        top:0;
        right:0;
    }

    .real-accueil .real-item-titre{
        font-size:22px;

    }

    .real-accueil .real-item-text{
        font-size:14px;
        line-height: 90%;
        bottom:15px;
    }
    .real-col-1 .real-item .real-item-titre{
        bottom:40px;

    }

    .real-col-1 .real-item .real-item-text{
        bottom:0px;
        max-width:220px;
        font-size: 14px;
    }

    /* Titres sur images */
    .real-item-titre {
        font-size: 26px;
        bottom: 25px;
        left: 12px;
    }

    /* Texte sur images */
    .real-item-text {
        font-size: 14px;
        bottom: 12px;
        left: 12px;
        max-width: 85%;
    }

    /* Flèche image 2 */
    .real-item-2 .real-item-fleche {
        width: 45px;
        top: 8px;
        right: 8px;
    }

    /* Colonne texte / bouton */
    .real-col-3 {
        justify-content: flex-start;
        align-items: stretch; /* pour que bloc bleu prenne même hauteur */
    }

    .real-textpres {
        padding: 20px 30px;
        font-size: 15px;
        border-radius: 20px;
        text-align: center;
        height: 100%; /* remplissage hauteur colonne */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .real-soustitres {
        font-size: 28px;
        max-width: 180px;
        margin: 10px auto 15px auto;
    }

    .real-btn {
        padding: 10px 28px;
        border-radius: 40px;
        font-size: 15px;
    }

    .real-btn-fleche {
        width: 10px;
        height: 10px;
    }
}




/* ======================================
    ANIMATIONS GENERALES
====================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-left.show {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-right.show {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease-out;
}

.zoom-in.show {
    opacity: 1;
    transform: scale(1);
}

/* Animation flèche sur hover */
.fleche-anim {
    transition: transform 0.3s ease;
}

.fleche-anim.show {
    transform: translateX(5px);
}

/* Animation bouton "Voir plus" */
.real-btn-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.real-btn-anim.show {
    opacity: 1;
    transform: translateY(0);
}



/* Animation fade-in + slide-up pour le main accueil */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-accueil {
    animation: fadeSlideUp 1.2s ease-out forwards;
    /* pour que l'animation se joue une seule fois au chargement */
}

