/* ================================================
   OVERLAYS — Contrôle de majorité + Popin actus
   Neo-brutalism : bordures noires, ombres décalées
================================================ */

/* Verrouillage du scroll tant que le contrôle d'âge est affiché */
html.age-locked, html.age-locked body { overflow: hidden; }

.ovl {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(17, 17, 17, .72);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    animation: ovlFade .25s ease both;
}
.ovl[hidden] { display: none; }
.ovl--age { z-index: 1100; background: rgba(17, 17, 17, .9); }

.ovl-card {
    position: relative;
    width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow: auto;
    background: #fafaf8; color: #111;
    border: 3px solid #111; border-radius: 16px;
    box-shadow: 8px 8px 0 #e03527, 8px 8px 0 3px #111;
    animation: ovlPop .35s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes ovlFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ovlPop  { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ovl, .ovl-card { animation: none; } }

/* ── Contrôle de majorité ── */
.age-card { text-align: center; padding: 36px 30px 26px; }
.age-logo { height: 64px; width: auto; margin: 0 auto 18px; display: block; }
.age-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin: 0 auto 16px;
    border: 3px solid #111; border-radius: 50%;
    background: #f59e0b; box-shadow: 3px 3px 0 #111;
    font-family: 'Archivo Black', sans-serif; font-size: 1.35rem; letter-spacing: -.02em;
}
.age-title {
    font-family: 'Archivo Black', sans-serif; text-transform: uppercase;
    font-size: clamp(1.35rem, 5vw, 1.7rem); line-height: 1.1; margin: 0 0 12px;
}
.age-text { color: #444; font-size: .92rem; line-height: 1.6; margin: 0 auto 24px; max-width: 360px; }
.age-actions { display: flex; flex-direction: column; gap: 10px; }
.ovl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 52px; padding: 12px 20px;
    font-family: 'Archivo Black', sans-serif; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em;
    border: 2px solid #111; border-radius: 10px; cursor: pointer; text-decoration: none;
    transition: transform .1s ease, box-shadow .1s ease, background .15s ease;
}
.ovl-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.ovl-btn--primary { background: #e03527; color: #fff; box-shadow: 3px 3px 0 #111; }
.ovl-btn--primary:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #111; }
.ovl-btn--ghost { background: #fff; color: #111; }
.ovl-btn--ghost:hover { background: #f3f1ec; }
.age-legal { margin: 22px 0 0; padding-top: 16px; border-top: 2px dashed #ddd8cf; color: #777; font-size: .72rem; line-height: 1.5; }
.age-refused { display: none; }
.age-card.is-refused .age-ask { display: none; }
.age-card.is-refused .age-refused { display: block; }
.age-refused p { color: #444; font-size: .95rem; line-height: 1.6; margin: 0 0 20px; }

/* ── Popin actus ── */
.pop-card { max-width: 520px; }
.pop-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 3px solid #111; background: #e8e4dc; border-radius: 13px 13px 0 0; }
.pop-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-body { padding: 26px 28px 26px; }
.pop-tag {
    display: inline-block; margin-bottom: 12px; padding: 4px 10px;
    background: #f59e0b; border: 2px solid #111; border-radius: 6px; box-shadow: 2px 2px 0 #111;
    font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.pop-title { font-family: 'Archivo Black', sans-serif; text-transform: uppercase; font-size: clamp(1.25rem, 4.5vw, 1.6rem); line-height: 1.12; margin: 0 0 12px; }
.pop-text { color: #444; font-size: .93rem; line-height: 1.65; }
.pop-text p { margin: 0 0 10px; }
.pop-text ul, .pop-text ol { margin: 0 0 10px 1.2em; }
.pop-text ul { list-style: disc; } .pop-text ol { list-style: decimal; }
.pop-text a { color: #e03527; font-weight: 700; text-decoration: underline; }
.pop-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pop-actions .ovl-btn { width: auto; flex: 1 1 auto; }
.pop-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: #fff; color: #111; border: 2px solid #111; border-radius: 50%; box-shadow: 2px 2px 0 #111;
    cursor: pointer; transition: transform .1s ease, box-shadow .1s ease;
}
.pop-close:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #111; }
.pop-close:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.pop-preview { position: absolute; top: 12px; left: 12px; z-index: 2; background: #111; color: #fff; font-size: .65rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; }

/* Mobile : popin en « bottom sheet », plein largeur */
@media (max-width: 600px) {
    .ovl--pop { align-items: flex-end; padding: 0; }
    .ovl--pop .ovl-card { max-width: none; border-radius: 18px 18px 0 0; border-bottom: 0; box-shadow: 0 -4px 0 #111; max-height: 88vh; }
    .ovl--pop .pop-media { border-radius: 15px 15px 0 0; }
    .pop-body { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
    .pop-actions .ovl-btn { width: 100%; }
    .age-card { padding: 30px 22px 22px; }
}
