/* --- Mobile first --- */

/* Titre */
.titre {
    margin-bottom: 5%;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    white-space: normal;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    text-align: center;
}

/* Image d’intro */
.citation-container {
    position: relative;
    margin: auto;
    text-align: center;
}

.citation-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

.text-over-image {
    position: absolute;
    bottom: 60%;
    left: 40%;
    transform: translateX(-50%);
    color: white;
    font-size: clamp(0.9rem, 2vw, 1.5rem);
    text-align: center;
    max-width: 90%;
}

/* Liste des accompagnements */
.guidance-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    padding-top: 8%;
}

/* Carte accompagnement */
.accompagnement-card {
    background-color: rgba(40, 1, 1, 0.48);
    border-radius: 8px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Contenu texte */
.guidance-content {
    text-align: center;
}

.guidance-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: #fff;
}

.guidance-content p {
    font-size: 0.95rem;
    color: #ddd;
}

/* Actions bouton */
.guidance-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* Bouton responsive */
.button_guidance {
    background-color: rgba(53, 50, 47, 0.9);
    color: white;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 1);
    text-decoration: none;
    display: block;
    font-weight: bold;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.7rem);
    padding: clamp(0.5rem, 1.5vw, 1.5rem) clamp(1rem, 3vw, 3rem);
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.button_guidance:hover {
    background-color: rgba(53, 50, 47, 0.7);
    color: #fff;
}

.detail-description {
    font-size: clamp(0.8rem, 2vw, 1.3rem);
}

.texte-titre {
    font-size: clamp(1rem, 2vw, 1.5rem);
}


.texte {
    font-size: clamp(0.8rem, 2vw, 1.3rem);
}

.div_bouton {
    margin: 2rem;
}

button.btn-stripe {
    display: block;
    margin: 0 auto 1.5rem auto;
    background-color: #2A4031;
    color: white;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 1);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4); /* ajout du box-shadow */
    width: 100%;          /* prend toute la largeur dispo */
    max-width: 300px;     /* limite la taille */
}

button.btn-stripe:hover {
    background-color: #3B5A46;
}

/* Container Stripe  */
#stripe-button {
    margin-bottom: 2rem;
    margin-top: 3rem;
}

/* --- Responsive desktop --- */
@media (min-width: 769px) {
    .titre {
        white-space: nowrap;
        max-width: none;
    }
    .citation-container {
        width: 100%;
        max-width: none;
    }


    .guidance-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2.5rem;
    }

    .accompagnement-card {
        flex: 1 1 calc(50% - 2rem);
        max-width: 400px;
    }
}

@media (min-width: 1199px) {
    .accompagnement-card {
        flex-direction: row;
        max-width: 800px;
    }
    .citation-container img {
        height: 900px;
    }

    .guidance-content {
        width: 100%;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1.5rem;
    }

    .guidance-actions {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .button_guidance {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
