/* --- 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;
}

/* Liste des guidances */
.guidance-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    padding-top: 8%;
}

/* Carte de guidance */
.guidance-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;
}

/* Image de la guidance */
.guidance-card img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
}

/* Contenu texte */
.guidance-content {
    padding: 1rem;
    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 sous la carte) */
.guidance-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* Bouton guidance */
.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; /* largeur max du bouton */
    margin: 0 auto;   /* centré */
}

/* effet hover : bouton plus clair */
.button_guidance:hover {
    background-color: rgba(53, 50, 47, 0.7);
    color: #fff;
}


.texte {
    font-size: clamp(0.8rem, 2vw, 1.3rem);
}

.div_bouton {
    margin: 2rem;
}


.event-image {
    display: block;          /* nécessaire pour centrer */
    margin: 0 auto;          /* centre horizontalement */
    max-width: 400px;        /* limite la taille sur grand écran */
    width: 100%;             /* responsive */
    height: auto;            /* garde les proportions */
    border-radius: 8px;      /* optionnel */
    padding: 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;
    }

    .guidance-card {
        flex: 1 1 calc(50% - 2rem);
        max-width: 400px;
    }
}

/* Desktop large : image et texte côte à côte */
@media (min-width: 1199px) {
    .citation-container img {
        height: 900px;
    }

    .guidance-card {
        flex-direction: row;
        max-width: 800px;
    }

    .guidance-card img {
        width: 50%;
        max-height: 300px;
    }

    .guidance-content {
        width: 50%;
        padding: 1.5rem;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .guidance-actions {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .button_guidance {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
