:root {
    --color-brand: #000000;
    --color-cta: #FF5722;
    --text-dark: #222222;
    --text-muted: #666666;
    --border-light: #e0e0e0;
    --bg-light: #f8f8f8;
}

.admin-hero {
    background-color: var(--color-brand);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admin-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/administratif-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.admin-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.admin-hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #dddddd;
}

.btn-cta {
    display: inline-block;
    background-color: var(--color-cta);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.btn-cta:hover,
.btn-cta:focus {
    background-color: #e64a19;
}

.admin-articles {
    padding: 60px 20px;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-articles h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-brand);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
}

.article-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-card h3 a {
    color: var(--color-brand);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card h3 a:hover {
    color: var(--color-cta);
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-card time {
    color: #999999;
    font-size: 0.85rem;
    display: block;
}

.no-articles {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.admin-timeline {
    padding: 60px 20px;
    background-color: var(--bg-light);
}

.admin-timeline h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-brand);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-brand);
}

.timeline-event {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-cta);
    border: 2px solid #ffffff;
}

.event-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 8px;
}

.event-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 8px;
    line-height: 1.3;
}

.event-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.admin-docs {
    padding: 60px 20px;
    background-color: #ffffff;
}

.admin-docs h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-brand);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.admin-docs table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.admin-docs thead {
    background-color: var(--color-brand);
    color: #ffffff;
}

.admin-docs th,
.admin-docs td {
    padding: 16px 20px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
}

.admin-docs th {
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.admin-docs tbody tr {
    border-bottom: 1px solid var(--border-light);
}

.admin-docs tbody tr:nth-child(even) {
    background-color: var(--bg-light);
}

.admin-docs tbody tr:hover {
    background-color: #f0f0f0;
}

.table-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.admin-faq {
    padding: 60px 20px;
    background-color: var(--bg-light);
}

.admin-faq h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-brand);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px;
}

.faq-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .admin-hero {
        padding: 60px 15px;
    }

    .admin-hero h1 {
        font-size: 2rem;
    }

    .admin-hero p {
        font-size: 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .admin-articles,
    .admin-timeline,
    .admin-docs,
    .admin-faq {
        padding: 40px 15px;
    }

    .admin-articles h2,
    .admin-timeline h2,
    .admin-docs h2,
    .admin-faq h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-event {
        padding-left: 20px;
        margin-bottom: 30px;
    }

    .timeline-event::before {
        left: -14px;
    }

    .event-content h3 {
        font-size: 1.1rem;
    }

    .admin-docs th,
    .admin-docs td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .admin-hero h1 {
        font-size: 1.7rem;
    }

    .btn-cta {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .card-content {
        padding: 15px;
    }

    .article-card h3 {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .event-date {
        font-size: 1rem;
    }

    .event-content h3 {
        font-size: 1rem;
    }

    .event-content p {
        font-size: 0.9rem;
    }

    .table-note {
        font-size: 0.85rem;
    }

    .faq-item {
        padding: 18px;
    }

    .faq-item h3 {
        font-size: 1.05rem;
    }

    .faq-item p {
        font-size: 0.9rem;
    }
}