
/*
 * KÉPIOU.FR - Képiou Flash Info
 * Feuille de style complète
 * © AREDIUS ART PRODUCTION
 */

/* PAGE KFI */

.kfi-page {
    width: 100%;
    color: #ffffff;
}

.kfi-page * {
    box-sizing: border-box;
}

/* BANDEAU DE PRÉSENTATION */

.kfi-introduction {
    padding: 30px;
    text-align: center;
    background: linear-gradient(
        115deg,
        #081f42,
        #1554ae 70%,
        #276fc1
    );
    border: 2px solid #c9b693;
    border-radius: 12px;
}

.kfi-surtitre {
    margin: 0 0 8px;
    color: #e5d8bd;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: bold;
}

.kfi-introduction h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 44px);
    color: #ffffff;
}

.kfi-sigle {
    margin: 4px 0 16px;
    font-size: 20px;
    font-weight: bold;
    color: #e5d8bd;
}

.kfi-introduction > p:not(.kfi-surtitre):not(.kfi-sigle) {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.kfi-indication {
    margin-bottom: 0;
    color: #e5d8bd;
    font-size: 14px;
}

/* CATALOGUE DES ÉMISSIONS */

.kfi-catalogue {
    margin-top: 20px;
    overflow: hidden;
    background: #102d59;
    border: 2px solid #c9b693;
    border-radius: 12px;
}

.kfi-section-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 22px;
    background: #1554ae;
    border-bottom: 2px solid #c9b693;
}

.kfi-section-entete h2 {
    margin: 0;
    font-size: 22px;
    color: #ffffff;
}

.kfi-section-entete span {
    color: #e5d8bd;
    font-size: 14px;
}

/* GRILLE DES ÉMISSIONS */

.kfi-grille {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 290px), 1fr)
    );
    gap: 20px;
    padding: 22px;
}

.kfi-emission {
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(
        150deg,
        #2463ab,
        #153b73
    );
    border: 1px solid #c9b693;
    border-radius: 10px;
}

/* MINI-LECTEURS */

.kfi-miniature {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    border: 0;
    background: #081f42;
}

.kfi-miniature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kfi-miniature-defaut {
    color: #e5d8bd;
    font-size: 56px;
    font-weight: bold;
    letter-spacing: 6px;
}

.kfi-play {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid #c9b693;
    background: rgba(8, 31, 66, 0.86);
    color: #ffffff;
    font-size: 23px;
    transition: transform 0.2s ease;
}

.kfi-miniature:hover .kfi-play,
.kfi-miniature:focus-visible .kfi-play {
    transform: scale(1.12);
}

/* INFORMATIONS DES ÉMISSIONS */

.kfi-emission-infos {
    padding: 17px;
}

.kfi-emission-infos time {
    color: #e5d8bd;
    font-size: 13px;
    font-weight: bold;
}

.kfi-emission-infos h3 {
    margin: 8px 0 10px;
    color: #ffffff;
    font-size: 19px;
}

.kfi-emission-infos p {
    margin: 0;
    color: #eaf3ff;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.kfi-emission-infos p + p {
    margin-top: 12px;
}

/* MENTION DES ARCHIVES */

.kfi-source-archive {
    margin-top: 16px !important;
    padding-top: 12px;
    border-top: 1px solid #c9b693;
    color: #e5d8bd !important;
}

.kfi-source-archive strong {
    color: #ffffff;
}

/* ENCADRÉ DES DROITS DE DIFFUSION */

.kfi-droits-archive {
    margin-top: 16px;
    border: 1px solid #c9b693;
    border-radius: 8px;
    background: #102d59;
    overflow: hidden;
}

.kfi-droits-archive summary {
    padding: 12px 15px;
    cursor: pointer;
    color: #ffe08a;
    font-size: 14px;
    font-weight: bold;
    background: #173f78;
}

.kfi-droits-archive summary:hover {
    background: #20549b;
}

.kfi-droits-contenu {
    padding: 16px;
    border-top: 1px solid #c9b693;
}

.kfi-droits-contenu p {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.7;
}

.kfi-droits-contenu p:last-child {
    margin-bottom: 0;
}

/* ADRESSE MAIL DES AYANTS DROIT */

.kfi-droits-archive a,
.kfi-droits-archive a:visited {
    color: #ffe08a;
    font-size: 16px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.kfi-droits-archive a:hover,
.kfi-droits-archive a:focus-visible {
    color: #ffffff;
    text-decoration-thickness: 2px;
}

/* MESSAGE EN ABSENCE D'ÉMISSIONS */

.kfi-vide {
    padding: 55px 25px;
    text-align: center;
}

.kfi-vide h3 {
    margin-top: 0;
    color: #e5d8bd;
}

/* MENTION D'INDÉPENDANCE */

.kfi-mention {
    margin: 20px auto;
    color: #102d59;
    font-size: 12px;
    text-align: center;
}

/* LECTEUR VIDÉO AGRANDI */

.kfi-modal[hidden] {
    display: none;
}

.kfi-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(2, 12, 30, 0.88);
}

.kfi-fenetre {
    width: min(1100px, 100%);
    max-height: 95dvh;
    overflow: auto;
    background: #102d59;
    border: 2px solid #c9b693;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.kfi-fenetre-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 18px;
    background: #1554ae;
    border-bottom: 2px solid #c9b693;
}

.kfi-fenetre-entete h2 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
}

.kfi-fermer {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 34px;
    cursor: pointer;
}

.kfi-fermer:hover,
.kfi-fermer:focus-visible {
    color: #ffe08a;
}

.kfi-zone-video {
    aspect-ratio: 16 / 9;
    background: #000000;
}

.kfi-zone-video video,
.kfi-zone-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.kfi-zone-video video {
    object-fit: contain;
}

body.kfi-lecteur-ouvert {
    overflow: hidden;
}

/* AFFICHAGE SMARTPHONE */

@media (max-width: 600px) {

    .kfi-introduction {
        padding: 22px 15px;
    }

    .kfi-grille {
        padding: 12px;
        gap: 12px;
    }

    .kfi-section-entete {
        padding: 14px;
    }

    .kfi-section-entete h2 {
        font-size: 18px;
    }

    .kfi-modal {
        padding: 8px;
    }

    .kfi-fenetre-entete h2 {
        font-size: 15px;
    }

    .kfi-droits-contenu {
        padding: 12px;
    }

    .kfi-droits-archive a {
        font-size: 15px;
    }
}
