/* KenhoWeb Alerte Formation v1.0.0 — guideeparsaparole.com.
   Fenêtre plein écran « Formez-vous à la Parole de Dieu ».
   Palette du ministère : bleu nuit #0b1c33, or #c9a227,
   crème #faf7f0. Mobile d'abord : lisible sur téléphone plié
   étroit (320 px). La fenêtre est cachée par défaut : seul le
   JavaScript l'ouvre (classe « kwaf-visible »), jamais en mode
   application (le JS ne l'ouvre pas ; la règle html.kwapp
   ci-dessous est une seconde barrière). */

/* ── Voile plein écran ──────────────────────────────────────────
   z-index 100010 : au-dessus du tiroir de l'application
   (100001), du portail des notifications (99999) et de la barre
   du haut (99990). */
.kwaf-voile {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100010;
    align-items: center;
    justify-content: center;
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: rgba(6, 17, 32, 0.82);
    overflow-y: auto;
    box-sizing: border-box;
}
.kwaf-voile.kwaf-visible {
    display: flex;
}
html.kwapp .kwaf-voile {
    display: none !important;
}
body.kwaf-ouvert {
    overflow: hidden;
}

/* ── Carte ────────────────────────────────────────────────────── */
.kwaf-carte {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: auto;
    background: #faf7f0;
    border: 1px solid rgba(201, 162, 39, 0.65);
    border-top: 4px solid #c9a227;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    box-sizing: border-box;
}
.kwaf-voile.kwaf-visible .kwaf-carte {
    animation: kwaf-apparition 0.25s ease-out;
}
@keyframes kwaf-apparition {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .kwaf-voile.kwaf-visible .kwaf-carte {
        animation: none;
    }
}

/* ── Croix de fermeture (en haut, sur l'image) ───────────────── */
.kwaf-fermer {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid #c9a227;
    border-radius: 50%;
    background: rgba(11, 28, 51, 0.85);
    color: #faf7f0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.kwaf-fermer:hover,
.kwaf-fermer:focus-visible {
    background: #0b1c33;
    outline: 3px solid #c9a227;
    outline-offset: 2px;
}

/* ── Image ────────────────────────────────────────────────────── */
.kwaf-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
}

/* ── Contenu ──────────────────────────────────────────────────── */
.kwaf-contenu {
    padding: 20px 20px 24px;
    text-align: center;
    box-sizing: border-box;
}
.kwaf-verset {
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 3px solid #c9a227;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
    color: #0b1c33;
}
.kwaf-reference {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a6d1f;
}
.kwaf-titre {
    margin: 0 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 700;
    color: #0b1c33;
}
.kwaf-corps {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e55;
}
.kwaf-bouton {
    display: block;
    min-height: 52px;
    margin-top: 20px;
    padding: 15px 18px;
    border-radius: 10px;
    background: #c9a227;
    color: #0b1c33;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.kwaf-bouton:hover,
.kwaf-bouton:focus-visible {
    background: #d9b23a;
    outline: 3px solid #0b1c33;
    outline-offset: 2px;
}

/* ── Écrans larges ────────────────────────────────────────────── */
@media (min-width: 640px) {
    .kwaf-image {
        height: 230px;
    }
    .kwaf-contenu {
        padding: 24px 28px 28px;
    }
    .kwaf-verset {
        font-size: 16px;
    }
    .kwaf-titre {
        font-size: 28px;
    }
    .kwaf-corps {
        font-size: 16px;
    }
}
