:root {
    --bg: #000000;
    --text: #ffffff;
    --dim: #949494;
    --accent: #f3d2b3;
    --border: #222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

body {
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 0 25px;
}

/* =========================
   HEADER
========================= */

.main-header {
    padding: 30px 0;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-logo {
    height: 35px;
    width: auto;
    display: block;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.auth-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logout-container {
    margin-left: auto;
}

.nav-btn-link {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
}

/* bouton principal */
.btn-orange-pill {
    background: var(--accent);
    color: black;
    padding: 8px 18px;
    border-radius: 24px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s ease;
}

.btn-orange-pill:hover {
    opacity: 0.85;
}

/* =========================
   ADMIN ELEMENTS
========================= */

.admin-edit-link {
    color: var(--accent);
    font-size: 0.7rem;
    margin-left: 10px;
    text-decoration: none;
    transition: 0.2s ease;
}

.admin-edit-link:hover {
    opacity: 0.7;
}

/* compteur emails */
.admin-email-counter {
    margin-top: 15px;
    color: var(--accent);
    font-size: 0.85rem;
    text-align: right;
    font-family: monospace;
}

/* bouton + article admin */
.admin-create-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}

.admin-create-btn:hover {
    background: var(--accent);
    color: black;
}

/* =========================
   MESSAGES
========================= */

.alert {
    padding: 15px;
    border: 1px solid var(--accent);
    background: rgba(243, 210, 179, 0.05);
    color: var(--accent);
    text-align: center;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* =========================
   HERO
========================= */

.hero {
    text-align: center;
    padding: 40px 0 20px 0;
}

.main-title {
    font-family: 'Lexend', sans-serif;
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    color: var(--dim);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* =========================
   ARTICLES
========================= */

.archive-section {
    margin: 60px 0;
}

.section-title {
    font-family: monospace;
    color: #555;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 12px;
}

.raw-link {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    flex: 1;
    transition: 0.2s ease;
}

.raw-link:hover {
    color: var(--accent);
}

.member-tag {
    font-family: monospace;
    font-size: 0.6rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 1px 5px;
    margin-left: 10px;
}

/* =========================
   FORM BOX
========================= */

.newsletter-box {
    border: 1px solid var(--border);
    padding: 40px;
    background: #050505;
    margin: 40px 0 80px 0;
    text-align: center;
}

.form-toggle {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    justify-content: center;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--dim);
    font-weight: 800;
    font-size: 0.7rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.toggle-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.news-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.news-tagline {
    color: var(--dim);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* formulaire plus étroit que le bloc et centré */
.news-form {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--border);
    text-align: left;
}

.news-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px;
    color: white;
    outline: none;
    min-width: 0;
}

.news-form button {
    background: var(--accent);
    color: black;
    border: none;
    padding: 0 25px;
    font-weight: 800;
    cursor: pointer;
}

/* =========================
   FOOTER
========================= */

.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    width: 100%;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.footer-link {
    color: var(--dim);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

    .news-form {
        flex-direction: column;
        border: none;
        gap: 10px;
        max-width: 100%;
    }

    .news-form input {
        border: 1px solid var(--border);
        width: 100% !important;
    }

    .news-form button {
        width: 100% !important;
        padding: 15px;
        border-radius: 4px;
    }

    .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
