/* ============================================
   POPUP VÉRIFICATION 18 ANS
   ============================================ */

.age-gate[hidden] { display: none; }

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.age-gate__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 25, 20, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.age-gate__box {
    position: relative;
    max-width: 480px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: ageGateIn 0.35s ease-out;
}

@keyframes ageGateIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.age-gate__logo {
    max-width: 90px;
    height: auto;
    margin: 0 auto 1.25rem;
    display: block;
}

.age-gate__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3a2d;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.age-gate__question {
    font-size: 1.15rem;
    color: #555;
    margin: 0 0 1.75rem;
    font-weight: 500;
}

.age-gate__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.age-gate__btn {
    min-width: 140px;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.age-gate__btn:not(.age-gate__btn--ghost) {
    background: #4a7c4e;
    color: #fff;
}
.age-gate__btn:not(.age-gate__btn--ghost):hover {
    background: #3d6841;
    transform: translateY(-1px);
}

.age-gate__btn--ghost {
    background: transparent;
    color: #888;
    border: 1px solid #ddd;
}
.age-gate__btn--ghost:hover {
    background: #f5f5f5;
    color: #555;
}

.age-gate__legal {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* Bloque le scroll quand le popup est ouvert */
body.age-gate-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .age-gate__box { padding: 2rem 1.25rem; }
    .age-gate__title { font-size: 1.2rem; }
    .age-gate__btn { width: 100%; }
}

/* ===========================================================================
   TOAST « NOUVEAU SITE »
   Annonce discrete en bas a droite, une seule fois par visiteur.
   =========================================================================== */
.site-toast {
    position: fixed;
    left: 20px;  /* a gauche : le widget d'accessibilite occupe le coin droit */
    bottom: 20px;
    z-index: 9500; /* sous la fenetre d'age (9999), au-dessus du contenu */
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 360px;
    padding: 15px 16px;
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #e8e8e3);
    border-left: 4px solid var(--green-primary, #7ab934);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .13);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .25s ease, transform .25s ease;
}

.site-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.site-toast__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green-pale, #f0f8e8);
    color: var(--green-dark, #5a9a1a);
}

.site-toast__body { flex: 1 1 auto; min-width: 0; }

.site-toast__title {
    display: block;
    margin-bottom: 4px;
    font-size: 0.92rem;
    line-height: 1.35; /* le titre tient sur deux lignes */
    color: var(--gray-900, #1a1a18);
}

.site-toast__text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gray-500, #6a6e49);
}

.site-toast__close {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    color: var(--gray-400, #a0a098);
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.site-toast__close:hover,
.site-toast__close:focus-visible {
    color: var(--gray-900, #1a1a18);
    background: var(--gray-100, #f5f5f2);
}

/* Sur mobile, le toast occupe toute la largeur disponible. */
@media (max-width: 480px) {
    .site-toast {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* Respecte le reglage systeme « animations reduites ». */
@media (prefers-reduced-motion: reduce) {
    .site-toast { transition: none; transform: none; }
}
