/* =========================
   BASE
========================= */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 1.5rem;
    background: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}


h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}

a {
    color: #0050b3;
}

/* ===============================
   HEADER + NAVIGATION
================================ */

.header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-link h1 {
    margin: 0;
    color: #0d47a1;
    font-size: 1.6rem;
}

.header .subtitle {
    color: #666;
    font-size: .95rem;
}

/* NAVIGATION BAR */

.main-nav {
    display: flex;
    gap: 2rem;
    margin-top: 1.2rem;
    padding: .8rem 1rem;
    background: #f3f6fb;
    border-radius: 8px;
    border: 1px solid #dbe3f0;
}

/* liens */

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    color: #334155;
    padding: .45rem .8rem;
    border-radius: 6px;
    transition: all .2s ease;
}

/* hover */

.main-nav a:hover {
    background: #e2ecff;
    color: #0d47a1;
}

/* actif */

.main-nav a.active {
    background: #0d47a1;
    color: white;
}

/* =========================
   ALERTS
========================= */

.alert {
    padding: .7rem .9rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #e6f4ea;
    color: #1e7a3b;
    border: 1px solid #c5e6cf;
}

.alert-error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}

.alert-info {
    background: #e8f2ff;
    color: #114684;
    border: 1px solid #c3d7f5;
}

.muted {
    color: #666;
    font-size: .9rem;
}

/* =========================
   FORMULAIRES
========================= */

.field {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: .3rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="datetime-local"],
textarea {
    width: 100%;
    padding: .45rem .6rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.error {
    color: #b00020;
    font-size: .9rem;
    margin-top: .2rem;
}

button {
    padding: .6rem 1.2rem;
    border: none;
    border-radius: 4px;
    background: #0050b3;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #003f8a;
}

small {
    color: #555;
}

/* =========================
   TABLES
========================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .5rem;
    font-size: .9rem;
}

th, td {
    padding: .45rem .5rem;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

th {
    background: #fafafa;
}

.nowrap {
    white-space: nowrap;
}

.desc {
    max-width: 320px;
}

.desc small {
    display: block;
    color: #666;
    margin-bottom: .2rem;
}

/* =========================
   BADGES
========================= */

.badge {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
}

.badge-pending {
    background: #fff4e5;
    color: #924c00;
    border: 1px solid #ffd8a8;
}

.badge-success {
    background: #e6f4ea;
    color: #1e7a3b;
    border: 1px solid #c5e6cf;
}

.badge-danger {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}

/* =========================
   CALENDRIER EVENTS
========================= */

.event {
    display: block;
    color: inherit;
    text-decoration: none;
}

.event:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.event-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.red{color:red;}

/*admin*/

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

.admin-header {
    margin-bottom: 1.5rem;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem 1rem;
    background: #1e293b;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.admin-title {
    font-size: 1rem;
    font-weight: 700;
}

.admin-actions a {
    color: #fff;
    text-decoration: none;
    margin-left: 1rem;
    font-size: .9rem;
}

.admin-actions a:hover {
    text-decoration: underline;
}

.admin-nav {
    display: flex;
    gap: 1.5rem;
    padding: .8rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.admin-nav a {
    text-decoration: none;
    font-weight: 600;
    color: #334155;
    padding: .4rem .8rem;
    border-radius: 6px;
    transition: all .2s ease;
}

.admin-nav a:hover {
    background: #e2ecff;
    color: #0d47a1;
}

.admin-nav a.active {
    background: #0d47a1;
    color: #fff;
}
/* ==========================
   FOOTER PUBLIC (centré)
========================== */

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.site-footer .footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 260px;
}

.footer-col h4 {
    margin-top: 0;
    margin-bottom: .6rem;
    font-size: 1rem;
}

.contact-info a {
    color: #0050b3;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: .85rem;
    color: #666;
    text-align: center;
}

@media (max-width: 700px) {
    .footer-content {
        flex-direction: column;
    }
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        display: none;
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 6px;
        padding: .4rem;
    }

    td {
        border-bottom: none;
        padding: .2rem 0;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: .8rem;
    }
}
