:root {
    --bg: #0f1f3a; /* fond header (bleu Arsha-like) */
    --bg-2: #13284a; /* survols/sections foncées */
    --text: #1f2937; /* texte principal */
    --muted: #6b7280;
    --white: #fff;
    --primary: #47b2e4; /* bleu cyan Arsha */
    --accent: #ff9f59; /* orange doux */
    --success: #6cc6a3; /* vert doux */
    --card: #ffffff;
    --border: #e5e7eb;
    --radius: 16px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --container: 1120px;
}
* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial,
        sans-serif;
    color: var(--text);
    background: #f7f8fc;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}

main {
  padding: 40px 20px;
}


.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header / Nav ===== */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* ===== Admin dropdown (navbar) ===== */
.nav-admin-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.nav-admin-caret {
  font-size: 0.9em;
  opacity: 0.7;
}

.nav-admin-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  padding: 8px;
  display: none;
  z-index: 9999;
  
  color: black;
}

.nav-admin-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  
  color: black;
}

.nav-admin-item:hover {
  background: #f4f4f4;
  color: black;
}

.nav-admin-separator {
  height: 1px;
  background: #eee;
  margin: 8px 4px;
}

.nav-admin-danger {
  color: #b42318;
}

/* Ouverture au survol (desktop) */
.nav-admin-dropdown:hover .nav-admin-menu {
  display: block;
}

/* Ouverture au focus clavier */
.nav-admin-dropdown:focus-within .nav-admin-menu {
  display: block;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.brand .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}
.menu {
    display: flex;
    gap: 22px;
    align-items: center;
}
.menu a {
    opacity: 0.9;
}
.menu a:hover {
    opacity: 1;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow);
}
.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.25);
}
.burger {
    display: none;
    cursor: pointer;
    inline-size: 36px;
    block-size: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}
.burger span,
.burger::before,
.burger::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    margin: 3px auto;
    border-radius: 2px;
}
@media (max-width: 900px) {
    .menu {
        position: fixed;
        inset: 64px 0 auto 0;
        background: var(--bg);
        padding: 16px 20px;
        display: none;
        flex-direction: column;
        gap: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .menu.open {
        display: flex;
    }
    .burger {
        display: inline-flex;
    }
}

/* ===== Hero ===== */
.hero {
    background: radial-gradient(
            1200px 600px at 80% -10%,
            rgba(71, 178, 228, 0.35),
            transparent 60%
        ),
        radial-gradient(
            900px 500px at -10% 10%,
            rgba(108, 198, 163, 0.22),
            transparent 60%
        ),
        var(--bg);
    color: #eaf6fd;
    padding: 80px 0 40px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
}
.kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.3px;
}
h1 {
    font-size: 44px;
    line-height: 1.15;
    margin: 14px 0 10px;
}
.lead {
    color: #cfe8f6;
    max-width: 48ch;
}
.hero-cta {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.hero-visual {
    aspect-ratio: 16 / 11;
    border-radius: 22px;
    background: linear-gradient(180deg, #1b3566, #0f1f3a 60%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}
.hero-visual .placeholder {
    width: 88%;
    max-width: 820px;
    opacity: 0.96;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35));
}
.caption {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 12px;
    color: #a8c9dd;
    opacity: 0.9;
}
@media (max-width: 900px) {
    .hero {
        padding: 56px 0 28px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    h1 {
        font-size: 34px;
    }
}

/* ===== Partners ===== */
.section {
    padding: 60px 0;
}
.muted {
    color: var(--muted);
}
.logos {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}
.carousel {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 10px;
}
.carousel button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #f2f5fb;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.rail {
    overflow: hidden;
}
.track {
    display: flex;
    gap: 28px;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
}
.track::-webkit-scrollbar {
    display: none;
}
.logo {
    min-width: 160px;
    height: 72px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    display: grid;
    place-items: center;
    padding: 10px;
    filter: grayscale(20%);
    opacity: 0.9;
}
.logo img {
    max-height: 46px;
    opacity: 0.9;
}

/* ===== Activities ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef6ff;
    color: #1e4b6a;
}
.price {
    font-weight: 700;
}
.card footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ===== CTA / Sponsors ===== */
.cta {
    background: linear-gradient(180deg, #ffffff, #f2f6ff);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.cta h3 {
    margin: 0 0 10px;
}
.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
/* ===== Footer ===== */
footer.text-center.py-4 {
  display: flex;
  align-items: center;          /* centrage vertical */
  justify-content: center;      /* centrage horizontal du GROUPE */
  gap: 16px;                    /* espace logo / texte */
  background: var(--bg);
  color: var(--white);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15);
}

/* Paragraphes */
footer.text-center.py-4 p {
  margin: 0;
  display: flex;
  align-items: center;
}

/* Logo */
footer.text-center.py-4 img {
  display: block;
  height: 50px;
  width: auto;
  margin: 0;                   /* supprime le margin-top inline */
  opacity: 0.95;
}

/* Texte */
footer.text-center.py-4 p:last-of-type {
  gap: 8px;
  opacity: 0.92;
  line-height: 1.4;
}

/* Lien */
footer.text-center.py-4 a {
  color: var(--white);
  opacity: 0.9;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
}

footer.text-center.py-4 a:hover {
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

/* Responsive */
@media (max-width: 900px) {
  footer.text-center.py-4 {
    flex-direction: column;
    gap: 8px;
  }

  footer.text-center.py-4 img {
    height: 44px;
  }
}


/* ===== Formulaires ===== */

.form-container {
    max-width: 720px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 36px;
    font-family: Poppins, sans-serif;
}

.form-container h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 22px;
    color: var(--bg);
}

form div {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="color"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f9fafb;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(71, 178, 228, 0.15);
}

.btn {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.2s ease;
}

.btn:hover {
    background: #3ca1d1;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.actions a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.actions a:hover {
    text-decoration: underline;
}


/* ===== DataTables (style unifié) ===== */

table.dataTable {
    width: 100% !important;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

table.dataTable thead {
    background: var(--bg-2);
    color: var(--white);
}

table.dataTable th,
table.dataTable td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

table.dataTable tbody tr:hover {
    background: #f0f7ff;
}

table.dataTable td:last-child {
    text-align: right;
}

/* Contrôles DataTables */
.dataTables_wrapper {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text);
}

.dataTables_filter input {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 8px;
    background: #fff;
}

.dataTables_length select {
    border-radius: 6px;
    padding: 4px 6px;
}

.dataTables_paginate {
    margin-top: 8px;
}

.dataTables_paginate a {
    color: var(--primary) !important;
}

.dataTables_info {
    margin-top: 8px;
    color: var(--muted);
}

/* Icônes d’action */
a.action {
    font-size: 1.2rem;
    margin-right: 0.4rem;
}

/* ===== Pagination DataTables ===== */

.dataTables_paginate {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 10px;
}

.dataTables_paginate a,
.dataTables_paginate span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dataTables_paginate a:hover {
  background: var(--primary);
  color: #fff !important;
}

.dataTables_paginate .current {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
  cursor: default;
}

.dataTables_paginate .disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================
   DataTables - habillage comme .admin-table
   Scope strict: #statsTable + conteneur DT
   ========================================== */

/* Table */
#statsTable.dataTable {
  width: 100% !important;
  border-collapse: collapse !important; /* comme .admin-table */
  margin-top: 0 !important;
  font-size: 0.95rem !important;
}

/* TH / TD */
#statsTable.dataTable th,
#statsTable.dataTable td {
  border: 1px solid #ddd !important;
  padding: 12px 14px !important; /* + aéré */
  text-align: left !important;
  vertical-align: middle !important;
  line-height: 1.35 !important;
}

/* Header */
#statsTable.dataTable thead th {
  background: var(--bg) !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #ddd !important;
}

/* Enlève les effets DataTables (stripe/hover/selected) trop marqués */
#statsTable.dataTable tbody tr > * {
  box-shadow: none !important;
}

#statsTable.dataTable.stripe > tbody > tr:nth-child(odd) > * ,
#statsTable.dataTable.display > tbody > tr:nth-child(odd) > * {
  background: #0000001e !important;
}

/* Hover léger */
#statsTable.dataTable.hover > tbody > tr:hover > * ,
#statsTable.dataTable.display > tbody > tr:hover > * {
  background: rgba(0,0,0,0.02) !important;
}

/* Alignements numériques (DataTables ajoute déjà dt-body-right via columnDefs) */
#statsTable.dataTable td.dt-body-right,
#statsTable.dataTable th.dt-body-right {
  text-align: right !important;
}

/* Controls (Recherche / select / pagination) */
#statsTable_wrapper .dt-layout-row {
  margin: 0.75rem 0 !important;
  gap: 12px !important;
}

/* Inputs */
#statsTable_wrapper .dt-search input,
#statsTable_wrapper .dt-length select.dt-input {
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  background: #fff !important;
}

/* Pagination : plus proche de votre style */
#statsTable_wrapper .dt-paging .dt-paging-button {
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  margin-left: 6px !important;
  background: #fff !important;
  color: inherit !important;
}

#statsTable_wrapper .dt-paging .dt-paging-button:hover {
  background: #f4f4f4 !important;
  border-color: #ddd !important;
  color: inherit !important;
}

#statsTable_wrapper .dt-paging .dt-paging-button.current,
#statsTable_wrapper .dt-paging .dt-paging-button.current:hover {
  background: #f4f4f4 !important;
  border-color: #ddd !important;
  color: inherit !important;
}

/* Désactivés */
#statsTable_wrapper .dt-paging .dt-paging-button.disabled,
#statsTable_wrapper .dt-paging .dt-paging-button.disabled:hover {
  opacity: 0.5 !important;
  cursor: default !important;
}

/* Mobile : réduit légèrement sans redevenir “serré” */
@media (max-width: 767px) {
  #statsTable.dataTable th,
  #statsTable.dataTable td {
    padding: 10px 10px !important;
  }

  #statsTable_wrapper .dt-layout-row {
    margin: 0.5rem 0 !important;
  }
}


/* ===== Admin Dashboard ===== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.admin-table th, .admin-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
}

.admin-table th {
  background: #f4f4f4;
  font-weight: 600;
}

.admin-table .muted {
  color: #999;
  font-style: italic;
}

.admin-card {
  margin-bottom: 2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.actions a {
  margin-right: 6px;
  text-decoration: none;
  font-size: 1.1rem;
}


/* ===== Notifications utilisateurs ===== */

.alert {
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 500;
}
.alert-success {
  background-color: #d4edda;
  color: #155724;
}
.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}
