/* ============================================================
   PAGE — RENDU PUBLIC
   ============================================================ */

.page-rendu {
    display: flex;
    flex-direction: column;
    gap: 0;
}
/*
.public-content .body-content {
    padding: 0;
}
*/
.page-conteneur {
    display: flex;
    gap: 1rem;
}

.page-conteneur--row    { flex-direction: row; }
.page-conteneur--column { flex-direction: column; }

.page-conteneur > * { min-width: 0; }

.page-titre {
    margin: 0;
    line-height: 1.25;
    color: var(--color-text);
}

.page-texte {
    line-height: 1.6;
    color: var(--color-text);
}

.page-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* Ratio fixe choisi dans le panneau (cs_ratio) : le conteneur impose sa
   boîte (aspect-ratio posé en style inline par CB_Pages_Renderer), l'image
   est recadrée pour la remplir plutôt que de piloter la hauteur. */
.page-photo--ratio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-non-configure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    min-height: 200px;
    padding: 1.5rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
    color: var(--color-text-subtle);
    text-align: center;
    font-size: var(--font-sm);
}

.widget-non-configure-nom {
    font-weight: 600;
}

.page-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* SVG collé : suit la taille (font-size) et la couleur (currentColor) du bloc */
.page-icone svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.page-video {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Cas iframe (YouTube/Vimeo) : cadre 16:9 par défaut ; s'étire si le conteneur
   est plus haut (HBox), le lecteur gère ses propres bandes. */
.page-video-ratio {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.page-video-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Cas fichier direct (.mp4…) : remplit la hauteur disponible, ratio conservé,
   vidéo centrée (pas de vide en bas dans un conteneur plus haut). */
.page-video-direct {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm);
}

.page-bouton {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-bouton-lien {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.15s;
}

.page-bouton-lien:hover {
    filter: brightness(1.12);
}

.page-bouton-lien--petite {
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
}

.page-bouton-lien--grande {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* ============================================================
   PAGE RENDU — RESPONSIVE (≤ 768 px)
   ============================================================ */

@media (max-width: 768px) {

    .page-conteneur--row {
        flex-direction: column;
    }

    .page-conteneur--row > * {
        flex: none !important;
        width: 100%;
    }

    .page-conteneur {
        gap: 0.5rem;
    }

    .page-bouton-lien {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /*.carousel-img {
        max-height: 240px;
    }*/
}