/* ===================== */
/* Reset & Body          */
/* ===================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1d0920;
    color: #f0f0f0;
    width: 100%;
    min-height: 100vh;
}

/* Défilement verrouillé tant que la fenêtre d'entrée n'est pas validée */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ===================== */
/* Background & Overlay  */
/* ===================== */
#HeroBack {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 9, 32, 0.1);
    z-index: 1;
}

/* ===================== */
/* Disclaimer Modal      */
/* ===================== */
#Disclaimer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 7, 25, 0.75);
    backdrop-filter: blur(4px);
    z-index: 100;
    padding: 20px;
}

#Disclaimer.hidden {
    display: none;
}

.disc-content {
    background: linear-gradient(160deg, #3f1346 0%, #571b60 45%, #86c723 100%);
    border: 1px solid rgba(171, 244, 123, 0.35);
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 0 60px rgba(159, 224, 62, 0.18);
    padding: 44px 40px 36px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    animation: popIn 0.4s ease-out;
}

.disc-lead {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.disc-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 26px;
    line-height: 1.6;
}

.disc-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.disc-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 0;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #abf47b, #86c723);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.disc-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(159, 224, 62, 0.45);
}

.disc-confirm .arrow {
    font-size: 1.3rem;
}

.disc-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===================== */
/* Appels à l'action     */
/* ===================== */
article a {
    color: #abf47b;
}

.content-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 8px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #abf47b, #86c723);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.content-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(159, 224, 62, 0.4);
}

/* ===================== */
/* Animation             */
/* ===================== */
#Disclaimer.hidden {
    display: none;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================== */
/* SEO Content (details) */
/* ===================== */
.content {
    position: relative;
    z-index: 5;
    background: #1d0920;
}

article {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 22px 80px;
    color: #ddd;
    line-height: 1.8;
}

article h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #9fe03e, #abf47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

article h2 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: #9fe03e;
}

article h3 {
    font-size: 1.2rem;
    margin: 24px 0 12px;
    color: #abf47b;
}

article p {
    margin-bottom: 16px;
    color: #ccc;
}

article ul, article ol {
    margin: 16px 0;
    padding-left: 24px;
}

article li {
    margin-bottom: 8px;
    color: #ccc;
}

article blockquote {
    border-left: 3px solid #9fe03e;
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(159, 224, 62, 0.05);
    border-radius: 0 8px 8px 0;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

article th, article td {
    padding: 12px;
    border: 1px solid #2a2a5c;
    text-align: left;
}

article th {
    background: #1a1040;
    color: #fff;
}

article td {
    color: #ccc;
}

/* ===== Annonces ===== */

/* Le fond prend tout l'écran sur l'accueil : sur une annonce, il la
   repousserait sous la ligne de flottaison. On le réduit à un bandeau,
   et on l'enferme dans l'en-tête — fixé en plein écran, il se glissait
   sous le texte au lieu de rester en haut. */
.hero {
    height: clamp(120px, 24vh, 260px);
}

#HeroBack, .hero .overlay {
    position: absolute;
    height: 100%;
}

article {
    padding-top: 28px;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    margin: 28px 0;
}

.ad-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #2a2a5c;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ad-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.ad-card-title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 12px 14px 16px;
}

.ad-card-title a {
    color: #fff;
    text-decoration: none;
}

.ad-card-title a:hover {
    color: #abf47b;
}

.ad-photo {
    width: 100%;
    max-width: 520px;
    border-radius: 4px;
    margin: 20px 0;
    display: block;
}

.ad-action {
    text-align: center;
    margin: 32px 0;
}

.ad-related {
    margin-top: 48px;
    border-top: 1px solid #2a2a5c;
    padding-top: 8px;
}

.ad-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 36px 0;
}

.ad-pager a {
    color: #9fe03e;
    text-decoration: none;
    border: 1px solid #9fe03e;
    border-radius: 4px;
    padding: 8px 16px;
}

.ad-pager a:hover {
    background: #9fe03e;
    color: #fff;
}

.ad-page {
    color: #aaa;
    font-size: 0.9rem;
}

.ad-back {
    margin: 28px 0;
}

.ad-back a {
    color: #abf47b;
}

.site-footer {
    margin-top: 48px;
    padding-top: 18px;
    border-top: 1px solid #2a2a5c;
    font-size: 0.85rem;
}

.site-footer a {
    color: #abf47b;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ===================== */
/* Responsive            */
/* ===================== */
@media screen and (max-width: 600px) {
    .disc-content {
        padding: 28px 20px 24px;
        margin: 16px;
    }

    .disc-title {
        font-size: 1.1rem;
    }

    .disc-text {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .disc-buttons {
        flex-direction: column;
    }

    .disc-exit,
    .disc-confirm {
        padding: 13px 0;
        font-size: 0.9rem;
    }
}
