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

body {
    background-color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
}

/* ── HEADER ────────────────────────────────── */

header {
    border-bottom: #9B7BC2 solid 5px;
    width: 100%;
}

.navbar {
    padding: 0;
    width: 100%;
}

.navbar-nav {
    gap: 55px;
}

.container-fluid {
    background-color: #5B2D8B !important;
    color: #FFFFFF;
    margin: 0;
}

.nav-item {
    color: #FFFFFF;
    margin-right: 25px;
}

.nav-link {
    color: #FFFFFF;
    padding: 15px 20px;
    font-size: 20px;
}

/* ── FOOTER ────────────────────────────────── */

.footer {
    background-color: #5B2D8B;
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: #9B7BC2 solid 5px;
}

.footer a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 5px;
}

.footer a:hover {
    text-decoration: underline;
}

.footer div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.footer p {
    margin: 10px 0 0 0;
    color: #FFFFFF;
}

/* ── SECTION PRÉSENTATION ACCUEIL ─────────── */

.presentation {
    padding: 80px 100px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    text-align: justify;
    color: #FFFFFF;
    border-bottom: #9B7BC2 solid 5px;
    line-height: 35px;
    background-image: url("../images/buffet-Zp9iSSC.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
}

.presentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.presentation > * {
    position: relative;
    z-index: 1;
}

/* ── CARDS ACCUEIL ─────────────────────────── */

.cards-presentation {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 40px 15px;
    background-color: #1a1a2e;
}

.card {
    background-color: #5B2D8B;
    color: #fff;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    max-width: 18rem;
    margin: 25px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card-accueil {
    width: 18rem;
}

.card img {
    max-height: 180px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

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

.btn-card {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-bottom: 15px;
    background-color: #000000;
    color: #FFFFFF;
    border: none;
}

.btn-card:hover {
    background-color: #222222;
    color: #FFFFFF;
}

/* ── CONNEXION ─────────────────────────────── */

.connexion-form {
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
}

.connexion-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.connexion-form label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.connexion-form input[type="email"],
.connexion-form input[type="password"] {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.connexion-form input[type="email"]:focus,
.connexion-form input[type="password"]:focus {
    border-color: #6C63FF;
    outline: none;
    box-shadow: 0 0 5px rgba(108, 99, 255, 0.3);
}

.connexion-form button {
    background: #6C63FF;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.connexion-form button:hover {
    background: #574bde;
}

.reset-intro {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.reset-link {
    color: #6C63FF;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
}

.reset-link:hover {
    color: #574bde;
    text-decoration: underline;
}

.connexion-form--centered {
    text-align: center;
}

.login-forgot {
    text-align: center;
    margin-top: 12px;
}

.alert {
    background-color: #ffdddd;
    color: #d8000c;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.not-yet {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 35px;
    color: #333;
}

.not-yet a {
    color: #6C63FF;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.not-yet a:hover {
    text-decoration: underline;
}

/* ── CRÉATION DE COMPTE ────────────────────── */

.create-title {
    text-align: center;
    margin-top: 50px;
}

.creation-form {
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
}

.creation-form h1,
.creation-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.creation-form .form-row,
.creation-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

.creation-form label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.creation-form input,
.creation-form select,
.creation-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.creation-form input:focus,
.creation-form select:focus,
.creation-form textarea:focus {
    border-color: #6C63FF;
    outline: none;
    box-shadow: 0 0 5px rgba(108, 99, 255, 0.3);
}

.creation-form button {
    background: #6C63FF;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    margin: 0 auto;
}

.creation-form button:hover {
    background: #574bde;
}

.creation-form .form-errors,
.creation-form .alert {
    background-color: #ffdddd;
    color: #d8000c;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

/* ── CONTACT ───────────────────────────────── */

.container-contact {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.text-contact {
    text-align: center;
    margin-bottom: 30px;
}

.button-contact {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #5B2D8B;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-info {
    max-width: 400px;
    margin: 0 auto 40px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 25px 30px;
}

.contact-info h2 {
    color: #5B2D8B;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 15px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #333;
}

.contact-info-list li:last-child {
    border-bottom: none;
}

.contact-info-label {
    font-weight: 600;
    color: #5B2D8B;
    min-width: 90px;
}

/* ── AVIS — ACCUEIL ────────────────────────── */

.avis-section {
    background-color: #1a1a2e;
    padding: 60px 20px;
    border-top: 5px solid #9B7BC2;
}

.avis-section-title {
    text-align: center;
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 40px;
    margin-top: 0;
}

.avis-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.avis-card {
    background-color: #5B2D8B;
    color: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease;
}

.avis-card:hover {
    transform: translateY(-4px);
}

.avis-stars {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 1.3rem;
}

.star-filled {
    color: #f5c518;
}

.star-empty {
    color: rgba(255, 255, 255, 0.3);
}

.avis-commentaire {
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.avis-auteur {
    font-size: 13px;
    font-weight: 600;
    color: #9B7BC2;
    margin: 0;
    margin-top: auto;
}

/* ── MENU DETAIL (ancien tableau) ──────────── */

.menu-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    font-size: 15px;
    background-color: #ffffff;
}

.menu-table thead {
    border-bottom: 2px solid #eaeaea;
}

.menu-table th {
    text-align: left;
    font-weight: 600;
    padding: 15px 10px;
    color: #5B2D8B;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.menu-table td {
    padding: 18px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.menu-table tbody tr:hover {
    background-color: #fafafa;
    transition: 0.2s ease;
}

/* ── PROFIL UTILISATEUR ────────────────────── */

.profil-container {
    max-width: 700px;
    margin: 50px auto;
    padding: 0 20px;
}

.profil-title {
    text-align: center;
    margin-bottom: 40px;
    color: #3A3A3A;
}

.profil-card {
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 35px 40px;
    margin-bottom: 30px;
}

.profil-section-title {
    color: #5B2D8B;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    margin-top: 0;
}

.profil-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.profil-table tr {
    border-bottom: 1px solid #eee;
}

.profil-table-last {
    border-bottom: none !important;
}

.profil-table td {
    padding: 12px 0;
}

.profil-label {
    font-weight: 600;
    color: #555;
    width: 40%;
}

.profil-value {
    color: #333;
}

.profil-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-modifier {
    background: #6C63FF;
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-modifier:hover {
    background: #574bde;
    color: #fff;
    text-decoration: none;
}

.btn-deconnexion {
    background: #eeeeee;
    color: #555;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-deconnexion:hover {
    background: #ddd;
    color: #333;
    text-decoration: none;
}

.btn-avis {
    background: #5B2D8B;
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-avis:hover {
    background: #4a2270;
    color: #fff;
    text-decoration: none;
}

/* ── AVIS PROFIL ───────────────────────────── */

.avis-item-user {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.avis-item-user:last-child {
    border-bottom: none;
}

.avis-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.avis-item-commentaire {
    color: #555;
    font-size: 14px;
    margin: 0;
}

.avis-statut {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.avis-statut-en_attente  { background: #fff3cd; color: #856404; }
.avis-statut-valide      { background: #d1f0e0; color: #186a3b; }
.avis-statut-refuse      { background: #fde8e8; color: #a93226; }

/* ── MODIFICATION PROFIL ───────────────────── */

.form-separator {
    margin: 25px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.form-back-link {
    text-align: center;
    margin-bottom: 30px;
}

.form-back-link a {
    color: #6C63FF;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.form-back-link a:hover {
    color: #574bde;
    text-decoration: underline;
}

/* ── HISTORIQUE COMMANDES ──────────────────── */

.commandes-card {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.commandes-empty {
    color: #888;
    font-style: italic;
    margin: 0;
}

.commandes-table-wrapper {
    overflow-x: auto;
}

.commandes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.commandes-table thead tr {
    background: #f0eaf8;
    border-bottom: 2px solid #d6c5ec;
}

.commandes-table th {
    padding: 10px 14px;
    text-align: left;
    color: #5B2D8B;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.commandes-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.15s;
}

.commandes-table tbody tr:last-child {
    border-bottom: none;
}

.commandes-table tbody tr:hover {
    background: #faf7ff;
}

.commandes-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

.commande-numero {
    font-weight: 600;
    color: #5B2D8B;
    white-space: nowrap;
}

.commande-prix {
    font-weight: 600;
    white-space: nowrap;
}

.commande-menu-tag {
    display: inline-block;
    background: #f0eaf8;
    color: #5B2D8B;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    margin: 2px 2px 2px 0;
}

/* ── BADGES STATUTS COMMANDE ──────────────── */

.badge-statut {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-statut--en_attente                 { background: #fff3cd; color: #856404; }
.badge-statut--acceptee                   { background: #d1ecf1; color: #0c5460; }
.badge-statut--en_preparation             { background: #cce5ff; color: #004085; }
.badge-statut--en_cours_de_livraison      { background: #d4edda; color: #155724; }
.badge-statut--livree                     { background: #d4edda; color: #155724; }
.badge-statut--en_attente_retour_materiel { background: #fde8d8; color: #7c3a00; }
.badge-statut--terminee                   { background: #e2e3e5; color: #383d41; }

/* ══════════════════════════════════════════════
   PAGE MENUS
   ══════════════════════════════════════════════ */

.menus-hero {
    background: #fff;
    padding: 60px 100px 50px;
    border-bottom: 5px solid #9B7BC2;
    text-align: center;
}

.menus-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #5B2D8B;
    margin-bottom: 20px;
}

.menus-hero-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.menus-grid-wrapper {
    background-color: #1a1a2e;
    padding: 50px 40px;
    min-height: 200px;
}

.menus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-card {
    background-color: #2a2a45;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

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

.menu-card-body {
    padding: 20px 22px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-card-body *,
.menu-card-body p,
.menu-card-body h3,
.menu-card-body span {
    color: #ffffff;
}

.menu-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.menu-card-desc {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    opacity: 0.85;
}

.menu-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 4px;
}

.menu-card-meta-item {
    font-size: 12px;
    opacity: 0.7;
}

.menu-card-price {
    font-weight: 700;
    font-size: 14px;
    color: #c9a7f0 !important;
    opacity: 1;
}

.menu-card-regime {
    align-self: flex-start;
    background: rgba(155, 123, 194, 0.25);
    color: #c9a7f0 !important;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(155, 123, 194, 0.4);
    margin-top: 6px;
}

.menu-card-footer {
    padding: 0 22px 20px;
    margin-top: auto;
}

.menu-card-btn {
    display: block;
    background: #5B2D8B;
    color: #fff !important;
    text-align: center;
    padding: 11px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.menu-card-btn:hover {
    background: #7b44b8;
    color: #fff !important;
    text-decoration: none;
}

.menus-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 0;
    font-style: italic;
}

/* ══════════════════════════════════════════════
   PAGE DÉTAIL MENU
   ══════════════════════════════════════════════ */

.detail-hero {
    background: #5B2D8B;
    padding: 60px 40px;
    border-bottom: 5px solid #9B7BC2;
}

.detail-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.detail-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.detail-hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 680px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.detail-meta-tile {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 14px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 130px;
}

.detail-meta-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.55);
}

.detail-meta-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.detail-plats-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 30px;
}

.detail-plats-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #5B2D8B;
    margin-bottom: 28px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.plat-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 4px solid #5B2D8B;
    transition: box-shadow 0.2s;
}

.plat-card:hover {
    box-shadow: 0 6px 22px rgba(91, 45, 139, 0.15);
}

.plat-card-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9B7BC2;
}

.plat-card-nom {
    font-size: 1rem;
    font-weight: 700;
    color: #2a2a2a;
    margin: 0;
}

.badge-allergene {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: auto;
    border: 1px solid #ffd97d;
}

.badge-allergene--none {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

.detail-plats-empty {
    text-align: center;
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
}

.detail-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-commander {
    background: #5B2D8B;
    color: #fff;
    padding: 13px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-commander:hover {
    background: #7b44b8;
    color: #fff;
    text-decoration: none;
}

.btn-retour {
    background: #f0eaf8;
    color: #5B2D8B;
    padding: 13px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-retour:hover {
    background: #e0d0f5;
    color: #5B2D8B;
    text-decoration: none;
}

/* ══════════════════════════════════════════════
   PAGE COMMANDE
   ══════════════════════════════════════════════ */

.cmd-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.cmd-col-left {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cmd-col-right {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
}

.cmd-section-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
    padding: 28px 30px;
}

.cmd-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #5B2D8B;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 20px;
}

.cmd-user-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.cmd-user-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cmd-user-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9B7BC2;
}

.cmd-user-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.cmd-frais-text {
    margin-top: 12px;
    font-size: 14px;
    color: #5B2D8B;
    font-weight: 600;
}

.cmd-select-hidden,
.cmd-btn-hidden,
.cmd-hidden-field {
    display: none !important;
}

/* ── CHAMPS DATE / HEURE ────────────────────── */

.cmd-field-group {
    margin-bottom: 16px;
}

.cmd-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #5B2D8B;
    margin-bottom: 6px;
}

.cmd-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0c0ea;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #2a2a2a;
    background: #faf8fe;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cmd-form-control:focus {
    outline: none;
    border-color: #5B2D8B;
    background: #fff;
}

/* ── MENUS GRID & CARDS ─────────────────────── */

.cmd-menus-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cmd-menu-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f9f7fd;
    border: 2px solid #e8dff5;
    border-radius: 10px;
    padding: 16px 18px;
    transition: border-color 0.2s, background 0.2s;
}

.cmd-menu-card--preselect {
    border-color: #5B2D8B;
    background: #f0eaf8;
}

.cmd-menu-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.cmd-menu-card-titre {
    font-weight: 700;
    font-size: 15px;
    color: #2a2a2a;
}

.cmd-menu-card-prix {
    font-size: 14px;
    font-weight: 700;
    color: #5B2D8B;
}

.cmd-menu-card-min {
    font-size: 12px;
    color: #888;
}

.cmd-menu-card-regime {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    background: #f0eaf8;
    color: #5B2D8B;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
}

/* ── NB PERSONNES DANS LES CARDS ────────────── */

.cmd-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.cmd-card-nb-pers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.cmd-card-nb-label {
    font-size: 11px;
    font-weight: 600;
    color: #5B2D8B;
    white-space: nowrap;
}

.cmd-card-personnes {
    width: 80px;
    padding: 6px 8px;
    border: 1.5px solid #d0bff0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #2a2a2a;
    text-align: center;
    background: #fff;
    transition: border-color 0.2s;
}

.cmd-card-personnes:focus {
    outline: none;
    border-color: #5B2D8B;
}

.cmd-menu-add-btn {
    background: #5B2D8B;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.cmd-menu-add-btn:hover {
    background: #7b44b8;
    color: #fff;
}

/* ── PAGE ÉVÉNEMENTS ────────────────────────── */

.evenements-hero {
    background-image: url("../images/buffet-Zp9iSSC.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 60px 40px;
    border-bottom: 5px solid #9B7BC2;
}

.evenements-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.evenements-hero > * {
    position: relative;
    z-index: 1;
}

.evenements-cta {
    background-color: #1a1a2e;
    color: #ffffff;
    text-align: center;
    padding: 60px 40px;
}

.evenements-cta .menus-hero-title {
    color: #ffffff;
}

.evenements-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 28px auto 0;
}

/* ── FLATPICKR THEME ────────────────────────── */

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: #5B2D8B;
    border-color: #5B2D8B;
}

.flatpickr-day:hover {
    background: #f0eaf8;
}

.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
span.flatpickr-weekday {
    background: #5B2D8B;
    color: #fff;
    fill: #fff;
}

/* ── RÉCAPITULATIF COMMANDE ─────────────────── */

.cmd-recap {
    background: #5B2D8B;
    border-radius: 14px;
    padding: 28px 24px;
    color: #fff;
    box-shadow: 0 6px 24px rgba(91, 45, 139, 0.35);
}

.cmd-recap-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cmd-recap-list {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 20px;
}

.cmd-recap-list li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.btn-rm-item {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.btn-rm-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cmd-recap-detail {
    margin-top: 8px;
}

.cmd-recap-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 12px 0;
}

.cmd-recap-line {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 6px 0;
}

.cmd-recap-reduction {
    color: #a8f0a8;
    display: none;
}

.cmd-recap-total {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 4px 0 20px;
}

.cmd-recap input[type="submit"],
.cmd-recap button[type="submit"] {
    width: 100%;
    background: #fff;
    color: #5B2D8B;
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: 'Poppins', sans-serif;
}

.cmd-recap input[type="submit"]:hover,
.cmd-recap button[type="submit"]:hover {
    background: #f0eaf8;
}

/* ══════════════════════════════════════════════
   ESPACE EMPLOYÉ
   ══════════════════════════════════════════════ */

.employe-container {
    max-width: 1200px;
}

.employe-container .profil-card {
    padding: 20px;
}

.employe-container .commandes-table th,
.employe-container .commandes-table td {
    white-space: normal;
    font-size: 13px;
    padding: 8px 10px;
}

.employe-statut-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.employe-statut-select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d0c0ea;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff;
}

.employe-statut-btn {
    background: #5B2D8B;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s;
}

.employe-statut-btn:hover {
    background: #7b44b8;
}

/* ══════════════════════════════════════════════
   MEDIA QUERIES
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {

    .nav-link {
        font-size: 16px;
        padding: 10px;
    }

    .navbar-nav {
        gap: 10px;
    }

    .presentation {
        padding: 40px 20px;
        font-size: 16px;
        line-height: 28px;
    }

    .menus-hero {
        padding: 40px 20px 36px;
    }

    .menus-grid-wrapper {
        padding: 30px 16px;
    }

    .plats-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        padding: 40px 20px;
    }

    .detail-plats-section {
        padding: 36px 16px;
    }

    .cmd-layout {
        flex-direction: column;
        margin: 20px auto;
        padding: 0 16px;
    }

    .cmd-col-right {
        width: 100%;
        position: static;
    }

    .cmd-user-grid {
        grid-template-columns: 1fr;
    }

    .employe-container {
        max-width: 100%;
        padding: 0 12px;
    }

    .commandes-table th:nth-child(4),
    .commandes-table td:nth-child(4) {
        display: none;
    }
}
