/* ============================================================
   L'Abeille Athégienne — Charte graphique
   Apiculture : Jaune miel, brun ruche, nature sobre
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ============================================================
   VARIABLES CSS — Design System
   ============================================================ */
:root {
    /* Couleurs principales */
    --jaune-vif:        #F5C200;
    --jaune-miel:       #E8A020;
    --jaune-claire:     #F5D878;
    --jaune-pale:       #FFF8E1;
    --brun-fonce:       #2C1A0E;
    --brun-moyen:       #5C3D1E;
    --brun-claire:      #8B6340;
    --beige:            #FAF3E0;
    --beige-2:          #F0E6C8;
    --blanc:            #FFFFFF;

    /* Statuts ateliers */
    --vert-nature:      #4A7C59;
    --vert-clair:       #D4EDDA;
    --rouge-brique:     #C0392B;
    --rouge-clair:      #FADBD8;
    --orange-alerte:    #E67E22;

    /* Typographie */
    --font-titre:       'Playfair Display', Georgia, serif;
    --font-corps:       'Lato', Arial, sans-serif;

    /* Tailles */
    --radius-sm:        6px;
    --radius-md:        12px;
    --radius-lg:        20px;
    --radius-xl:        32px;

    /* Ombres */
    --ombre-legere:     0 2px 8px rgba(44, 26, 14, 0.08);
    --ombre-moyenne:    0 4px 20px rgba(44, 26, 14, 0.12);
    --ombre-forte:      0 8px 40px rgba(44, 26, 14, 0.18);
    --ombre-doree:      0 4px 20px rgba(232, 160, 32, 0.3);

    /* Transitions */
    --transition:       all 0.25s ease;
    --transition-lente: all 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-corps);
    background-color: var(--beige);
    color: var(--brun-fonce);
    line-height: 1.6;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; }
a { color: var(--jaune-miel); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brun-moyen); }
ul, ol { list-style: none; }
button { cursor: pointer; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4, h5 {
    font-family: var(--font-titre);
    color: var(--brun-fonce);
    line-height: 1.3;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 0.75rem; }

/* ============================================================
   MOTIF ALVÉOLES (arrière-plan décoratif)
   ============================================================ */
.bg-alveoles {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-2l26-15V18L28 2 2 18v31l26 15z' fill='%23E8A020' fill-opacity='0.07'/%3E%3C/svg%3E");
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.navbar {
    background: var(--brun-fonce);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--jaune-miel);
    object-fit: cover;
}

.navbar-brand-text {
    font-family: var(--font-titre);
    color: var(--jaune-vif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--beige-2);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--jaune-vif);
    background: rgba(245, 194, 0, 0.1);
}

.nav-btn-logout {
    color: var(--beige-2);
    background: transparent;
    border: 1px solid rgba(245, 194, 0, 0.3);
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-corps);
    transition: var(--transition);
}

.nav-btn-logout:hover {
    background: var(--rouge-brique);
    border-color: var(--rouge-brique);
    color: white;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--beige-2);
    font-size: 0.85rem;
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--jaune-miel);
    color: var(--brun-fonce);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-corps);
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--jaune-miel), var(--jaune-vif));
    color: var(--brun-fonce);
    box-shadow: var(--ombre-doree);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 160, 32, 0.45);
    color: var(--brun-fonce);
}

.btn-secondary {
    background: transparent;
    color: var(--jaune-miel);
    border-color: var(--jaune-miel);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--jaune-miel);
    color: var(--brun-fonce);
}

.btn-success {
    background: var(--vert-nature);
    color: white;
    border-color: var(--vert-nature);
}
.btn-success:hover:not(:disabled) {
    background: #3a6448;
    transform: translateY(-1px);
    color: white;
}

.btn-danger {
    background: var(--rouge-brique);
    color: white;
    border-color: var(--rouge-brique);
}
.btn-danger:hover:not(:disabled) {
    background: #a93226;
    color: white;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--brun-claire);
    border-color: var(--beige-2);
}
.btn-ghost:hover:not(:disabled) {
    background: var(--beige-2);
    color: var(--brun-fonce);
}

.btn-sm { padding: 6px 14px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    box-shadow: var(--ombre-legere);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(232, 160, 32, 0.1);
}

.card:hover {
    box-shadow: var(--ombre-moyenne);
    transform: translateY(-3px);
}

.card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--beige-2);
}

.card-body {
    padding: 20px 24px;
}

.card-footer {
    padding: 16px 24px;
    background: var(--beige);
    border-top: 1px solid var(--beige-2);
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

/* ============================================================
   BADGES STATUTS ATELIERS
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-a-venir {
    background: var(--vert-clair);
    color: var(--vert-nature);
    border: 1px solid var(--vert-nature);
}

.badge-termine {
    background: var(--rouge-clair);
    color: var(--rouge-brique);
    border: 1px solid var(--rouge-brique);
}

.badge-annule {
    background: #F0F0F0;
    color: #999;
    border: 1px solid #CCC;
}

.badge-admin {
    background: linear-gradient(135deg, var(--jaune-miel), var(--jaune-vif));
    color: var(--brun-fonce);
}

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--brun-moyen);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--beige-2);
    border-radius: var(--radius-md);
    font-family: var(--font-corps);
    font-size: 0.95rem;
    color: var(--brun-fonce);
    background: var(--blanc);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--jaune-miel);
    box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.15);
}

.form-control::placeholder { color: #bbb; }

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
}

.form-error {
    color: var(--rouge-brique);
    font-size: 0.82rem;
    margin-top: 4px;
}

.form-hint {
    color: var(--brun-claire);
    font-size: 0.82rem;
    margin-top: 4px;
}

/* ============================================================
   ALERTES
   ============================================================ */
.alerte {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alerte-success {
    background: var(--vert-clair);
    color: var(--vert-nature);
    border-left: 4px solid var(--vert-nature);
}

.alerte-erreur {
    background: var(--rouge-clair);
    color: var(--rouge-brique);
    border-left: 4px solid var(--rouge-brique);
}

.alerte-info {
    background: var(--jaune-pale);
    color: var(--brun-moyen);
    border-left: 4px solid var(--jaune-miel);
}

/* ============================================================
   SPINNER DE CHARGEMENT
   ============================================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--beige-2);
    border-top-color: var(--jaune-miel);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--jaune-miel), var(--jaune-vif));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Grilles */
.grid-ateliers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ============================================================
   CARD ATELIER
   ============================================================ */
.atelier-card {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    box-shadow: var(--ombre-legere);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(232, 160, 32, 0.12);
    display: flex;
    flex-direction: column;
}

.atelier-card:hover {
    box-shadow: var(--ombre-forte);
    transform: translateY(-4px);
}

.atelier-card-banner {
    height: 6px;
}
.atelier-card-banner.a-venir { background: linear-gradient(90deg, var(--vert-nature), #6aaa80); }
.atelier-card-banner.termine { background: linear-gradient(90deg, var(--rouge-brique), #e74c3c); }
.atelier-card-banner.annule { background: #CCC; }

.atelier-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.atelier-card-titre {
    font-family: var(--font-titre);
    font-size: 1.15rem;
    color: var(--brun-fonce);
    margin: 0;
}

.atelier-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.atelier-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    color: var(--brun-claire);
}

.atelier-card-description {
    font-size: 0.88rem;
    color: var(--brun-claire);
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.atelier-card-footer {
    padding: 14px 20px;
    background: var(--beige);
    border-top: 1px solid var(--beige-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.atelier-inscrits {
    font-size: 0.82rem;
    color: var(--brun-claire);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================================
   CALENDRIER
   ============================================================ */
.calendrier-wrapper {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    box-shadow: var(--ombre-legere);
    padding: 24px;
    border: 1px solid rgba(232, 160, 32, 0.12);
}

/* Override FullCalendar */
.fc .fc-toolbar-title {
    font-family: var(--font-titre);
    color: var(--brun-fonce);
    font-size: 1.3rem;
}

.fc .fc-button-primary {
    background: var(--jaune-miel) !important;
    border-color: var(--jaune-miel) !important;
    color: var(--brun-fonce) !important;
    font-weight: 700;
}

.fc .fc-button-primary:hover {
    background: var(--brun-moyen) !important;
    border-color: var(--brun-moyen) !important;
    color: white !important;
}

.fc-event { cursor: pointer; border-radius: 4px !important; font-size: 0.82rem; }

/* ============================================================
   GALERIE PHOTOS
   ============================================================ */
.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.galerie-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--beige-2);
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.galerie-item:hover img { transform: scale(1.05); }

.galerie-item-legende {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(44,26,14,0.75));
    color: white;
    padding: 8px 10px 6px;
    font-size: 0.78rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.galerie-item:hover .galerie-item-legende { transform: translateY(0); }

/* ============================================================
   LIGHTBOX (Visionneuse photos)
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}
.lightbox-close:hover { opacity: 1; transform: scale(1.1); }

/* ============================================================
   COMMENTAIRES
   ============================================================ */
.commentaire {
    background: var(--beige);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border-left: 3px solid var(--jaune-claire);
    margin-bottom: 12px;
}

.commentaire-auteur {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--brun-moyen);
    margin-bottom: 4px;
}

.commentaire-date {
    font-size: 0.78rem;
    color: var(--brun-claire);
}

.commentaire-contenu {
    font-size: 0.92rem;
    color: var(--brun-fonce);
    margin-top: 6px;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 26, 14, 0.5);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--blanc);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--ombre-forte);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid var(--beige-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-titre);
    font-size: 1.3rem;
    color: var(--brun-fonce);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brun-claire);
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
}
.modal-close:hover { color: var(--rouge-brique); transform: rotate(90deg); }

.modal-body { padding: 24px 28px; }
.modal-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--beige-2);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================================================
   ADMIN — TABLE
   ============================================================ */
.table-wrapper {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    box-shadow: var(--ombre-legere);
    overflow: hidden;
    border: 1px solid rgba(232, 160, 32, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--brun-fonce);
    color: var(--jaune-claire);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

td {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--beige-2);
    color: var(--brun-fonce);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--beige); }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--beige-2);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    width: fit-content;
}

.tab-btn {
    padding: 9px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-corps);
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--brun-claire);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.tab-btn.active {
    background: var(--blanc);
    color: var(--brun-fonce);
    font-weight: 700;
    box-shadow: var(--ombre-legere);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   FILTRES ATELIERS
   ============================================================ */
.filtres-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filtre-btn {
    padding: 7px 18px;
    border: 2px solid var(--beige-2);
    border-radius: 20px;
    background: var(--blanc);
    font-family: var(--font-corps);
    font-size: 0.85rem;
    color: var(--brun-claire);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 400;
}

.filtre-btn.active, .filtre-btn:hover {
    border-color: var(--jaune-miel);
    color: var(--jaune-miel);
    background: var(--jaune-pale);
}

.filtre-btn.vert.active { border-color: var(--vert-nature); color: var(--vert-nature); background: var(--vert-clair); }
.filtre-btn.rouge.active { border-color: var(--rouge-brique); color: var(--rouge-brique); background: var(--rouge-clair); }

/* ============================================================
   SIDEBAR LAYOUT (page admin)
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 65px);
}

.admin-sidebar {
    width: 240px;
    background: var(--brun-fonce);
    flex-shrink: 0;
    padding: 24px 0;
}

.admin-sidebar-title {
    color: var(--jaune-claire);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 0 20px;
    margin-bottom: 8px;
    margin-top: 16px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(250, 243, 224, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-corps);
}

.admin-nav-link:hover, .admin-nav-link.active {
    color: var(--jaune-vif);
    background: rgba(245, 194, 0, 0.08);
    border-right: 3px solid var(--jaune-miel);
}

.admin-main {
    flex: 1;
    padding: 32px;
    background: var(--beige);
    overflow-y: auto;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--brun-claire);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 { color: var(--brun-claire); font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; }

/* ============================================================
   RÉFÉRENTS
   ============================================================ */
.referents-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.referent-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--jaune-pale);
    border: 1px solid var(--jaune-claire);
    color: var(--brun-moyen);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.referent-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--jaune-miel);
    color: var(--brun-fonce);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    .navbar-brand-text { display: none; }
    .nav-link span { display: none; }
    .nav-link { padding: 8px; }

    .page-wrapper { padding: 20px 16px; }
    .grid-ateliers { grid-template-columns: 1fr; }

    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; padding: 12px 0; }
    .admin-main { padding: 20px 16px; }

    .modal { border-radius: var(--radius-lg); }
    .tabs { width: 100%; overflow-x: auto; }
}

/* ============================================================
   SECTION TITRE DÉCORATIF
   ============================================================ */
.section-titre {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-titre::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--jaune-claire), transparent);
}

.section-titre h2, .section-titre h3 {
    white-space: nowrap;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--brun-fonce);
    color: var(--beige);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--ombre-forte);
    font-size: 0.88rem;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--jaune-miel);
}

.toast.success { border-left-color: var(--vert-nature); }
.toast.error { border-left-color: var(--rouge-brique); }

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   PAGE DE CONNEXION
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brun-fonce);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-2l26-15V18L28 2 2 18v31l26 15z' fill='%23F5C200' fill-opacity='0.04'/%3E%3C/svg%3E");
    animation: bgMove 20s linear infinite;
}

@keyframes bgMove { from { background-position: 0 0; } to { background-position: 56px 100px; } }

.login-card {
    background: var(--blanc);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

.login-logo-wrapper {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: block;
    border: 4px solid var(--jaune-miel);
    box-shadow: 0 0 30px rgba(232, 160, 32, 0.3);
}

.login-titre {
    font-family: var(--font-titre);
    color: var(--brun-fonce);
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 4px;
}

.login-sous-titre {
    color: var(--brun-claire);
    text-align: center;
    font-size: 0.88rem;
}

/* ============================================================
   ANIMATIONS ENTRÉE
   ============================================================ */
.fade-in {
    animation: fadeInUp 0.4s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ============================================================
   ACCORDIONS CATÉGORIES
   ============================================================ */
.accordion {
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    background: var(--blanc);
    box-shadow: var(--ombre-legere);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(232, 160, 32, 0.12);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--jaune-miel), var(--jaune-vif));
    color: var(--brun-fonce);
}

.accordion-title {
    font-family: var(--font-titre);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.accordion-content-inner {
    overflow: hidden;
}

.accordion-body {
    padding: 0 24px;
    transition: padding 0.3s ease-out;
}

/* Ouverture au survol */
.accordion:hover .accordion-content {
    grid-template-rows: 1fr;
}

.accordion:hover .accordion-body {
    padding: 24px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion:hover .accordion-icon {
    transform: rotate(180deg);
}
