/* --- Mobile first (par défaut) --- */

.titre {
    margin-bottom: 5%;
    font-size: clamp(1rem, 2.5vw, 2rem);
    white-space: normal;  /* autorise retour à la ligne */
    max-width: 250px;     /* limite la largeur */
    margin-left: auto;    /* centre horizontalement */
    margin-right: auto;
    width: 100%;
}

/* Image + texte générique */
.image-text-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.image-text-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}



/* Citation */

.citation-container {
    position: relative;
    margin: auto;
    text-align: center;
    }

    .citation-container img {
    width: 100%;
    height: auto; /* garde le ratio de l'image */
    display: block;
    border: 3px solid black;
    border-radius: 0; /* ou arrondi si tu veux */
    }

    .text-over-image {
    position: absolute;
    top: 20%;
    left: 5%;
    color: white;
    font-weight: 500;
    font-size: clamp(0.8rem, 3vw, 2rem);
    max-width: 90%;
    line-height: 1.5;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    pointer-events: none; /* pour que le texte ne gêne pas les clics */
}


/* Bloc "Me découvrir" */
.me-decouvrir-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.me-decouvrir-title {
    position: absolute;
    top: 10%;
    left: 5%;
    color: white;
    font-size: clamp(1.1rem, 3vw, 2.2rem);
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.me-decouvrir-text {
    position: absolute;
    top: 40%;
    right: 50%;
    transform: translate(90%, -50%);
    max-width: 90%;
    color: white;
    font-size: clamp(0.7rem, 2vw, 1.8rem);
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.me-decouvrir-button {
    position: absolute;
    bottom: 5%; /* fixé par rapport au bas de l'image */
    right: 10%; /* fixé par rapport au côté droit */
}

.me-decouvrir-button button {
    border-radius: 8px;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    background-color: rgba(128, 128, 128, 0.8);
    border: 1px solid rgba(0, 0, 0, 1);
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}




/* Conteneur pour chaque image + texte */
    .d-flex > div > a {
    display: inline-flex;
    flex-direction: column;
    align-items: center; /* centre horizontalement image + texte */
    text-decoration: none; /* enlève le soulignement des liens */
    }

    /* Texte sous l’image */
    .d-flex > div > a > p.text-center {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 1rem; /* à ajuster */
    }

    /* Supprime margin-top sur l’image pour que le texte colle bien */
    .rounded-img {
    margin: 0;
    border-radius: 5%;
    object-fit: cover;
    width: 160px !important;
    height: 160px !important;
    }

/* Conteneur global des images + textes */
.d-flex.justify-content-center.gap-4.mb-3,
.d-flex.justify-content-center.gap-4.mt-3 {
    margin-top: 1.5rem; /* marge en haut */
}

/* Enlever les marges négatives */
.d-flex.justify-content-center.gap-4.mb-3 > div:first-child,
.d-flex.justify-content-center.gap-4.mb-3 > div:last-child,
.d-flex.justify-content-center.gap-4.mt-3 > div:first-child,
.d-flex.justify-content-center.gap-4.mt-3 > div:last-child {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Bouton plus petit sur mobile */
.text-center > a > button {
    font-size: 1.2rem !important;
    padding: 12px 30px !important;
    margin: 1.2rem !important;
}

.button_rendez_vous,
.button_rendez_vous:hover,
.button_rendez_vous:focus,
.button_rendez_vous:active {
    background-color: rgba(53, 50, 47, 0.9) !important;
    color: white !important;
    border: 2px solid rgba(0, 0, 0, 1);
}

.button_rendez_vous {
    border-radius: 8px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button_rendez_vous:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
}





/* Events container */
.events-container {
    position: relative;
    width: 100%;         
    max-width: 100vw;     /* s'assure pas de dépassement */
    height: 180px;        /* hauteur réduite sur mobile */
    overflow: hidden;
    margin-top: 10%;
}

/* Image s’adapte pour couvrir tout le conteneur */
.events-container img {
    width: 100%;
    height: 100%;         /* hauteur fixe du conteneur */
    object-fit: cover;    /* image recadre pour remplir */
    display: block;
}

/* Texte centré sur l’image */
.events-container .centered-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.75);
    text-align: center;
    user-select: none;
    width: 95%;
    cursor: pointer;
}


/* Commentaire */
.commentaire {
    margin: 8%;
}

.commentaire p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: white;
}

.commentaire p:first-child {
    font-size: 1.2rem;
}

.commentaire p:last-child {
    margin-left: 0.8rem;
    font-weight: 600;
    font-style: italic;
}

/* --- Styles pour écrans >= 769px (tablette, desktop) --- */
@media (min-width: 769px) {
    .titre {
        white-space: nowrap;  /* une ligne sur desktop */
        width: 100%;          /* largeur pleine */
        max-width: none;      /* aucune limite */
    }

    .citation-container {
        width: 100%;              /* prend toute la largeur possible */
        max-width: none;
    }

    .citation-container.text-over-image {
        font-size: clamp(2rem, 4vw, 3rem); /* texte bien plus grand */
        max-width: 80%;
    }

    .rounded-img {
        width: 240px !important;
        height: 240px !important;
    }
    
    .d-flex > div > a > p.text-center {
        font-size: 1.8rem !important;
        margin-top: 0.75rem;
        margin-bottom: 1.5rem !important;
    }

    .text-center > a > button {
        font-size: 1.5rem !important;
        padding: 15px 40px !important;
        margin-top: 2rem !important;
        margin-bottom: 4rem !important;
        font-weight: 700;
    }

    /* Décalage à gauche/droite avec transform */
    .d-flex.justify-content-center.gap-4.mb-3 > div:first-child img {
        transform: translateX(-10px);
    }

    .d-flex.justify-content-center.gap-4.mb-3 > div:last-child img {
        transform: translateX(10px);
    }

    .d-flex.justify-content-center.gap-4.mt-3 > div:first-child img {
        transform: translateX(-10px);
    }

    .d-flex.justify-content-center.gap-4.mt-3 > div:last-child img {
        transform: translateX(10px);
    }

    .me-decouvrir-text {
        max-width: 40%;
        right: 5%;
        transform: translateY(-50%);
        text-align: right;
    }

    .me-decouvrir-button {
        bottom: 8%; /* reste aligné, mais un peu plus haut si besoin */
        right: 12%;
    }

    .me-decouvrir-button button {
        font-size: 1.5rem; /* plus grand */
        padding: 15px 35px; /* plus de marge intérieure */
    }

    /* Events container hauteur plus grande */
    .events-container {
        height: 250px;        /* hauteur fixe */
    }

    .events-container .centered-link {
        font-size: clamp(2.5rem, 6vw, 4rem);
        width: 90%;
    }

    /* Commentaire taille plus grande */
    .commentaire p {
        font-size: 1.2rem;
        margin-left: 1.2rem;
    }

    .commentaire p:first-child {
        font-size: 1.4rem;
        font-weight: 700;
        margin-left: 1.2rem;
        margin-top: 1rem;
    }

    @media (min-width: 992px) and (max-width: 1199px) {
        .rounded-img {
            width: 300px !important;
            height: 300px !important;
        }
        .d-flex > div > a > p.text-center {
            font-size: 2rem !important;
            margin-top: 0.85rem;
            margin-bottom: 1.7rem !important;
        }
        .text-center > a > button {
        font-size: 2rem !important;
        padding: 25px 50px !important;
        margin-top: 2rem !important;
        font-weight: 700;
        }
    }
    @media (min-width: 1199px) {
        .rounded-img {
            width: 300px !important;
            height: 300px !important;
        }
        .d-flex > div > a > p.text-center {
            font-size: 2rem !important;
            margin-top: 0.85rem;
            margin-bottom: 1.7rem !important;
        }
        .text-center > a > button {
        font-size: 2rem !important;
        padding: 25px 50px !important;
        margin-top: 2rem !important;
        font-weight: 700;
        }
    }
}
