:root {
    --forest: #0f3d2e;
    --leaf: #1f8a4c;
    --sun: #f2b84b;
    --ink: #14201b;
    --muted: #66736d;
    --mist: #f2f6ef;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(31, 138, 76, 0.18), transparent 34rem),
        linear-gradient(180deg, #f7fbf4 0%, #eef5ec 100%);
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
}

.site-nav {
    background: rgba(15, 61, 46, 0.96);
    backdrop-filter: blur(10px);
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero {
    position: relative;
    min-height: 430px;
    background: url('../../images/COUVERTURE 1.png') center/cover no-repeat;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5, 26, 18, 0.68), rgba(15, 61, 46, 0.28));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.hero-kicker {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.hero h1 {
    margin: 1rem 0;
    font-size: clamp(2.6rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.article-card {
    height: 100%;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card);
    box-shadow: 0 18px 45px rgba(20, 32, 27, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(20, 32, 27, 0.18);
}

.article-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.category-pill {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(31, 138, 76, 0.12);
    color: var(--forest);
    font-size: 0.82rem;
    font-weight: 700;
}

.btn-green {
    border: 0;
    border-radius: 999px;
    background: var(--leaf);
    color: white;
    font-weight: 700;
}

.btn-green:hover {
    background: var(--forest);
    color: white;
}

.article-shell {
    max-width: 980px;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 28px;
    background: white;
    box-shadow: 0 18px 50px rgba(20, 32, 27, 0.12);
}

.article-hero-img {
    width: 100%;
    max-height: 470px;
    object-fit: cover;
    border-radius: 22px;
}

.article-text {
    color: #34423b;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-text p,
.article-text div {
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
}

.site-footer {
    background: #0b2118;
    color: white;
}

.admin-card {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(20, 32, 27, 0.12);
}

@media (max-width: 768px) {
    .hero {
        min-height: 360px;
    }

    .navbar form {
        width: 100%;
        margin-top: 1rem;
    }

    .article-shell {
        margin: 1rem;
        padding: 1.25rem;
    }
}

.admin-body {
    background:
        radial-gradient(circle at top right, rgba(242, 184, 75, 0.22), transparent 28rem),
        linear-gradient(135deg, #0b2118 0%, #123f2f 38%, #f2f6ef 38%, #f7fbf4 100%);
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem clamp(1rem, 4vw, 3rem);
    color: white;
}

.admin-topbar h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.06em;
}

.admin-eyebrow {
    display: block;
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.admin-action-card,
.admin-form-card,
.admin-empty-state,
.admin-article-card {
    display: block;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 70px rgba(5, 26, 18, 0.18);
    backdrop-filter: blur(16px);
}

.admin-action-card {
    padding: 2rem;
    color: var(--ink);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.admin-action-card:hover {
    color: var(--ink);
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(5, 26, 18, 0.24);
}

.admin-action-card i {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.3rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--leaf), var(--forest));
    color: white;
    font-size: 1.5rem;
}

.admin-action-card h2,
.admin-article-card h2 {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.admin-action-card p,
.admin-article-card p,
.admin-empty-state p {
    color: var(--muted);
}

.admin-form-card {
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.admin-form-card .form-control,
.admin-form-card .form-select {
    border: 1px solid rgba(15, 61, 46, 0.14);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.85);
}

.admin-form-card textarea.form-control {
    min-height: 260px;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem;
    border: 1px solid rgba(15, 61, 46, 0.14);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: rgba(242, 246, 239, 0.9);
}

.editor-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(15, 61, 46, 0.14);
    border-radius: 12px;
    background: white;
    color: var(--forest);
}

.editor-btn:hover,
.editor-btn:focus {
    background: var(--leaf);
    color: white;
}

.editor-font {
    min-width: 180px;
    border: 1px solid rgba(15, 61, 46, 0.14);
    border-radius: 12px;
    padding: 0 0.75rem;
    background: white;
    color: var(--forest);
    font-weight: 700;
}

.article-editor {
    min-height: 380px;
    padding: 1rem;
    border: 1px solid rgba(15, 61, 46, 0.14);
    border-radius: 0 0 18px 18px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    line-height: 1.7;
    outline: none;
}

.article-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--muted);
}

.editor-content-field {
    display: none;
}

.admin-empty-state {
    padding: clamp(2rem, 6vw, 4rem);
    text-align: center;
}

.admin-empty-state i {
    margin-bottom: 1rem;
    color: var(--leaf);
    font-size: 4rem;
}

.admin-empty-state h2 {
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.admin-article-card {
    overflow: hidden;
}

.admin-article-card img,
.admin-image-placeholder {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.admin-image-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(31, 138, 76, 0.15), rgba(242, 184, 75, 0.22));
    color: var(--forest);
    font-weight: 800;
}

.admin-preview {
    display: block;
    width: 100%;
    height: 170px;
    margin-bottom: 0.75rem;
    object-fit: cover;
    border-radius: 18px;
}

@media (max-width: 768px) {
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-topbar .d-flex {
        width: 100%;
        flex-wrap: wrap;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-4px);
    background: var(--leaf);
    color: white;
}
