/* assets/css/public/modules/photos/gallery/02-base.css */
/* @layer-wrap:site.elements */
@layer site.elements {
/* Part 2/2 de modules/photos/gallery.css : composant « base » (découpage par composant, lot 5b ; la cascade de la feuille d'origine est gardée). */


/* Accueil : 2 lignes selon les colonnes (la page Galerie affiche tout) */
@media screen and (max-width: 620px) {
  }

@media screen and (min-width: 621px) and (max-width: 900px) {
  }

@media screen and (min-width: 901px) and (max-width: 1439px) {
  }
}

/* assets/css/public/modules/photos/swipebox.css */
/* @layer-wrap:site.elements */
@layer site.elements {
/* Version: 03-10-2026-viewer-b */
/* Swipebox: caption and in-page photo viewer styles (moved from main.css) */
.pf-c-page #swipebox-caption {
    color: var(--pf-theme-text-main, #ffffff);
    opacity: 0.9;
    font-size: 0.9rem;
    margin-top: 6px;
    transition: 0.2s linear;
}

/* Photo viewer (in-page fullscreen) + modale enquêtes.
 * Visionneuse : fond et contrôles du hub (overlay/viewer-controls.css). Modale enquêtes : fond du portfolio. */
.pf-c-viewer,
.pf-c-survey-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow: hidden;
    overscroll-behavior: none;
    box-sizing: border-box;
    max-width: 100%;
}
.pf-c-survey-modal {
    background: var(--pf-section-color-pair, var(--pf-theme-bg-alt, var(--pf-bg-alt-color, #e2e2e2)));
    color: var(--pf-body-text-color, var(--pf-text-main-color, #222));
}
.pf-c-viewer.is-open,
.pf-c-survey-modal.is-open {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    overflow-x: clip;
}

html.is-viewer-open,
html.survey-modal-open,
html.is-viewer-open body,
html.survey-modal-open body {
    overflow: hidden;
    overflow-x: clip;
    overscroll-behavior: none;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    max-height: 100dvh;
    touch-action: none;
}

.pf-c-viewer .pf-c-viewer__stage,
.pf-c-survey-modal .pf-c-viewer__stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    padding: 88px 24px 40px;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
}

/* Zone image : pleine largeur, sans flèches superposées */
.pf-c-viewer .pf-c-viewer__viewport {
    position: relative;
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.pf-c-viewer .pf-c-viewer__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    line-height: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: opacity .3s ease, transform .3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.pf-c-viewer .pf-c-viewer__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width:700px){
    .pf-c-viewer .pf-c-viewer__stage,
    .pf-c-survey-modal .pf-c-viewer__stage { padding: 64px 12px 16px; gap: 8px; }
}

/* Légende + navigation : flèches aux extrémités du bloc titres */
.pf-c-viewer .pf-c-viewer__bar {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-inline: 0;
    box-sizing: border-box;
    min-width: 0;
}

.pf-c-viewer .pf-c-viewer__caption {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 720px;
    margin-inline: auto;
    padding-inline: 4px;
    box-sizing: border-box;
    transition: opacity .3s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* Légende : police du portfolio ([data-pf-font]), couleurs et tailles du hub (lisibles sur fond sombre). */
.pf-c-viewer .pf-c-viewer__title {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--arktefakt-text-main);
    margin: 0;
    padding: 0;
}
.pf-c-viewer .pf-c-viewer__title:empty {
    display: none;
}
.pf-c-viewer .pf-c-viewer__description {
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 400;
    color: var(--arktefakt-text-muted);
    margin: 6px 0 0;
    padding: 0;
}
.pf-c-viewer .pf-c-viewer__description:empty {
    display: none;
}
.pf-c-viewer .pf-c-viewer__title :is(a, span, p, strong, em, b, i, small) {
    color: var(--arktefakt-text-main);
}
.pf-c-viewer .pf-c-viewer__description :is(a, span, p, strong, em, b, i, small) {
    color: var(--arktefakt-text-muted);
}
.pf-c-viewer .pf-c-viewer__counter {
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: initial;
    color: var(--arktefakt-text-muted);
    font-variant-numeric: tabular-nums;
    margin: 10px 0 0;
    padding: 0;
}
.pf-c-viewer .pf-c-viewer__counter[hidden] {
    display: none;
}
.pf-c-viewer .pf-c-viewer__counter :is(.pf-c-viewer__counter-current, .pf-c-viewer__counter-separator, .pf-c-viewer__counter-total) {
    color: inherit;
}

/* Navigation prev/next, orientation & Fermer : apparence dans overlay/viewer-controls.css
   (.ak-viewer-ctl, design du hub) ; ici seulement le placement. */
.pf-c-viewer .pf-c-viewer__prev,
.pf-c-viewer .pf-c-viewer__next {
    position: relative;
    flex: 0 0 auto;
    z-index: 5;
    pointer-events: auto;
}

.pf-c-viewer .pf-c-viewer__close,
.pf-c-survey-modal .pf-c-viewer__close {
    position: absolute;
    top: max(1rem, env(safe-area-inset-top, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    z-index: 10;
}

.pf-c-viewer .pf-c-viewer__rotate {
    display: none;
    position: absolute;
    top: max(1rem, env(safe-area-inset-top, 0px));
    left: max(1rem, env(safe-area-inset-left, 0px));
    z-index: 10;
}

@media (orientation: portrait) {
    .pf-c-viewer.is-open .pf-c-viewer__rotate {
        display: inline-flex;
    }
}

/* Bascule d'orientation : bouton secondaire, plus petit que fermer / précédent / suivant. */
.pf-c-viewer .pf-c-viewer__rotate.ak-viewer-ctl {
    width: 2rem;
    height: 2rem;
}
.pf-c-viewer .pf-c-viewer__rotate.ak-viewer-ctl .pf-c-viewer__icon {
    width: 1rem;
    height: 1rem;
}

.pf-c-viewer .pf-c-viewer__prev .pf-c-viewer__icon { transform: rotate(-90deg); }
.pf-c-viewer .pf-c-viewer__next .pf-c-viewer__icon { transform: rotate(90deg); }

@media screen and (max-width: 900px) {
    .pf-c-viewer .pf-c-viewer__close,
    .pf-c-survey-modal .pf-c-viewer__close {
        top: 1rem;
        right: 1rem;
    }
    .pf-c-viewer .pf-c-viewer__rotate {
        top: 1rem;
        left: 1rem;
    }
    .pf-c-viewer .pf-c-viewer__bar {
        gap: 8px;
    }
}

@media (orientation: landscape) {
    .pf-c-viewer .pf-c-viewer__stage {
        justify-content: center;
    }
}

/*
 * Portrait vertical : compacter les espacements pour tenir dans l'écran sans scroll.
 */
@media (orientation: portrait) {
    .pf-c-viewer.is-open:not([data-pf-viewer-layout="horizontal"]) .pf-c-viewer__stage {
        padding-top: calc(3.25rem + env(safe-area-inset-top, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        gap: 8px;
    }

    /* Bascule vertical / horizontal : fondu de la scène (durée = ORIENTATION_FADE_MS de photo-viewer.js).
       `scale` est indépendant de `transform`, qui porte la rotation en horizontal. */
    .pf-c-viewer.is-open .pf-c-viewer__stage {
        transition: opacity 0.16s ease, scale 0.16s ease;
    }

    .pf-c-viewer.is-open.is-pending .pf-c-viewer__stage {
        opacity: 0;
        scale: 0.97;
    }

    .pf-c-viewer.is-open[data-pf-viewer-layout="horizontal"] {
        align-items: center;
        justify-content: center;
        overflow: hidden;
        overflow-x: clip;
    }

    .pf-c-viewer.is-open[data-pf-viewer-layout="horizontal"] .pf-c-viewer__stage {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100dvh;
        height: 100dvw;
        max-width: 100dvh;
        max-height: 100dvw;
        padding: calc(3.25rem + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
        gap: 8px;
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center center;
        overflow: hidden;
    }
}

@media (orientation: portrait) and (prefers-reduced-motion: reduce) {
    .pf-c-viewer.is-open .pf-c-viewer__stage {
        transition: none;
    }
}

@media (orientation: portrait) and (max-width: 700px) {
    .pf-c-viewer.is-open:not([data-pf-viewer-layout="horizontal"]) .pf-c-viewer__stage {
        padding-top: calc(3rem + env(safe-area-inset-top, 0px));
    }

    .pf-c-viewer.is-open[data-pf-viewer-layout="horizontal"] .pf-c-viewer__stage {
        padding-top: calc(3rem + env(safe-area-inset-top, 0px));
    }

    .pf-c-viewer .pf-c-viewer__bar {
        gap: 4px;
    }
}

/* Mobile : légende compacte — après les règles de base pour gagner la cascade */
@media (max-width: 700px) {
    .pf-c-viewer .pf-c-viewer__caption .pf-c-viewer__title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .pf-c-viewer .pf-c-viewer__caption .pf-c-viewer__description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-top: 3px;
    }
}

/* --------------------------------------------------------------------------
   Légende de la visionneuse : hiérarchie titre / description / compteur
   -------------------------------------------------------------------------- */

.pf-c-viewer .pf-c-viewer__caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pf-c-viewer .pf-c-viewer__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.005em;
}

.pf-c-viewer .pf-c-viewer__description {
    max-width: 60ch;
    max-height: 4.4em;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Filet entre titre et description quand les deux sont présents. */
.pf-c-viewer .pf-c-viewer__title:not(:empty) + .pf-c-viewer__description:not(:empty)::before {
    content: '';
    display: block;
    width: 1.75rem;
    height: 1px;
    margin: 0 auto calc(var(--layout-space-y-sm, 15px) / 2);
    background: currentColor;
    opacity: 0.35;
}

.pf-c-viewer .pf-c-viewer__counter:not([hidden]) {
    display: inline-flex;
    padding: 2px var(--layout-space-x-sm, 10px);
    border: 1px solid color-mix(in srgb, var(--arktefakt-text-muted) 40%, transparent);
    border-radius: 999px;
    font-size: 0.75rem;
}

/* Sans titre ni description : seul le compteur reste, plus de marge vide. */
.pf-c-viewer .pf-c-viewer__caption:has(.pf-c-viewer__title:empty):has(.pf-c-viewer__description:empty) .pf-c-viewer__counter {
    margin-top: 0;
}
}

/* assets/css/public/modules/videos/show/14-card.css */
/* @layer-wrap:site.elements */

/* Primitives retirées du HTML des vidéos (pf-cols-N / -md-N / -sm-N selon le nombre de vidéos, pf-w-content,
   pf-pad-md, pf-mt-md, pf-mb-md) : colonnes lues dans --pf-c-cards-cols* (productions.php) ; même couche et même
   spécificité que core/layout.css et core/utilities.css. */

@layer site.utilitaires {
@layer general {
.pf-c-videos__fallback { padding: var(--layout-space-y-md) var(--layout-space-x-md); }
.pf-c-videos__fallback { margin-top: var(--layout-space-y-md); }
.pf-c-videos__fallback-text { margin-bottom: var(--layout-space-y-md); }
}
}

/* assets/css/public/modules/videos/productions/02-hero.css */
/* @layer-wrap:site.elements */
@layer site.elements {
/* Part 2/2 de modules/videos/productions.css : composant « hero » (découpage par composant, lot 5b ; la cascade de la feuille d'origine est gardée). */


/* Fiche desktop : affiche | texte */
.pf-c-page :where(.pf-c-hero):is(.pf-c-page *) :where([data-pf-page-type="single"] .pf-c-hero__body):is(.pf-c-page *) {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.pf-c-page :where(.pf-c-hero):is(.pf-c-page *) :where([data-pf-page-type="single"] .pf-c-hero__body):is(.pf-c-page *) > :where(.pf-c-hero__cover--poster):is(.pf-c-page *) {
    --pochette-width: min(200px, 20%);
    width: var(--pochette-width);
    height: auto;
    max-width: 220px;
    max-height: none;
    min-height: 0;
    /* Format de la couverture, lu aussi par les dispositions de fiche (design/work-page/). */
    --pf-cover-ratio: 2 / 3;
    aspect-ratio: var(--pf-cover-ratio);
    flex: 0 0 var(--pochette-width);
    align-self: flex-start;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pf-c-page :where(.pf-c-hero):is(.pf-c-page *) :where([data-pf-page-type="single"] .pf-c-hero__body):is(.pf-c-page *) :where([data-pf-page-type="single"] .pf-c-hero__text):is(.pf-c-page *) {
    flex: 1;
    min-width: 0;
}

@media screen and (max-width: 700px) {

    /* Afficher la pochette (annule le masquage global éventuel) */
    .pf-c-page :where(.pf-c-hero):is(.pf-c-page *) :where(.pf-c-hero__cover--poster):is(.pf-c-page *),
    .pf-c-page :where(.pf-c-hero):is(.pf-c-page *) :where([data-pf-page-type="single"] .pf-c-hero__body):is(.pf-c-page *) > :where(.pf-c-hero__cover--poster):is(.pf-c-page *) {
        display: block;
        --pochette-width: min(160px, 48vw);
        width: var(--pochette-width);
        flex: 0 0 auto;
        margin-bottom: 1.25rem;
    }

    .pf-c-page :where(.pf-c-hero):is(.pf-c-page *) :where([data-pf-page-type="single"] .pf-c-hero__body):is(.pf-c-page *) {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 0;
    }

    .pf-c-page :where(.pf-c-hero):is(.pf-c-page *) :where([data-pf-page-type="single"] .pf-c-hero__body):is(.pf-c-page *) :where([data-pf-page-type="single"] .pf-c-hero__text):is(.pf-c-page *) {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

}
}

