/**
 * Age Verification (Age Gate 18+) - styles front-office
 * @author corrigerunbug
 */

html.av-locked,
html.av-locked body {
    overflow: hidden !important;
}

.av-overlay {
    --av-bg: #0f1115;
    --av-accent: #2bb6ac;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none; /* affiché uniquement via html.av-locked (anti-flash) */
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

html.av-locked .av-overlay {
    display: flex;
}

.av-backdrop {
    position: fixed;
    inset: 0;
    background: var(--av-bg);
    opacity: 0.92;
}

.av-modal {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: auto;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    padding: 10px 0 28px;
    animation: av-pop 0.28s ease-out;
}

@keyframes av-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo affiché en haut du modal, sans rognage ni déformation */
.av-logo-wrap {
    display: flex;
    justify-content: center;
    margin-top: 26px;
    margin-bottom: 4px;
    padding: 0 20px;
}

.av-logo {
    max-width: 220px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    background: none;
    box-shadow: none;
    padding: 0;
    display: block;
}

.av-body {
    padding: 8px 34px 0;
    text-align: center;
    color: #2a2f36;
    font-family: inherit;
}

/* Avertissement sanitaire + pictogramme -18 */
.av-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 6px 0 14px;
}

.av-pic-18 { flex: 0 0 auto; line-height: 0; }

.av-warning-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #2a2f36;
}

.av-acknowledge {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #5a616b;
    margin: 0 auto 22px;
    max-width: 520px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.av-title {
    color: var(--av-accent);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 18px;
}

.av-message {
    font-size: 1rem;
    line-height: 1.55;
    color: #444b54;
    margin: 0 0 22px;
}

/* Saisie de la date de naissance */
.av-dob-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.av-dob-input {
    width: 92px;
    height: 56px;
    border: 2px solid var(--av-accent);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2a2f36;
    padding: 0 8px;
    box-sizing: border-box;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.av-dob-input.av-dob-year { width: 120px; }

.av-dob-input::placeholder {
    color: #b7bdc4;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.av-dob-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 182, 172, 0.25);
}

.av-btn {
    cursor: pointer;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0 26px;
    height: 56px;
    line-height: 56px;
    transition: filter 0.15s ease, transform 0.05s ease;
}

.av-btn:active { transform: translateY(1px); }
.av-btn:hover { filter: brightness(1.06); }

.av-btn-enter,
.av-btn-confirm {
    background: var(--av-accent);
    color: #fff;
}

.av-btn-decline {
    background: transparent;
    color: #8a929b;
    text-decoration: underline;
    height: auto;
    line-height: 1.4;
    padding: 10px 16px;
}

.av-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.av-error {
    color: #e2001a;
    font-size: 0.92rem;
    font-weight: 600;
    margin: 14px 0 0;
}

.av-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #eceef1;
}

.av-footer-text {
    font-size: 0.9rem;
    color: #6c737c;
    margin: 0 0 6px;
}

.av-footer-legal {
    font-size: 0.85rem;
    color: #8a929b;
    margin: 0;
}

.av-footer-legal a {
    color: var(--av-accent);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 520px) {
    .av-body { padding: 8px 20px 0; }
	.av-warning { flex-direction: column; }
    .av-warning-text, .av-acknowledge { font-size: 0.90rem; }
    .av-title { font-size: 0.8rem; }
    .av-dob-input { width: 72px; height: 52px; font-size: 1.05rem; }
    .av-dob-input.av-dob-year { width: 96px; }
    .av-btn { width: 100%; }
    .av-dob-fields .av-btn-enter { flex: 1 0 100%; margin-top: 4px; }
}
/* Responsive */
@media (max-width: 320px) {
	.av-warning { flex-direction: column; }
    .av-warning-text, .av-acknowledge { font-size: 0.70rem; }
    .av-title { font-size: 0.9rem; }
    .av-dob-input { width: 52px; height: 52px; font-size: 1.05rem; }
}
