/* =========================================
   Vite et Gourmand — Feuille de styles
   Organisation (mobile first) :
   1.  Variables & reset
   2.  Header & navigation
   3.  Accueil
   4.  Authentification
   5.  Page menus
   6.  Détail menu
   7.  Page commande
   8.  Page contact
   9.  Espace utilisateur
   10. Espace employé
   11. Espace administrateur
   12. Avis client & pages légales
   13. Footer
   14. Responsive (tablette & desktop)
   ========================================= */

/* =========================================
   1. VARIABLES & RESET
   Couleurs, reset global, accessibilité (RGAA).
   ========================================= */

:root {
    /* Couleurs orientées "Traiteur/Gourmand" */
    --primary: #8b1c1c; /* Rouge bordeaux */
    --primary-light: #b32424;
    --secondary: #d4af37; /* Or */
    --bg-light: #fbfbfb;
    --text-main: #333333;
    --text-muted: #666666;
    /* Calendriers, time pickers, cases à cocher, radios… */
    accent-color: var(--primary);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Pour coller le footer en bas */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Accessibilité (RGAA) --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10001;
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
}

.skip-link:focus {
    left: 1rem;
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   2. HEADER & NAVIGATION
   En-tête sticky, navigation, menu burger (mobile first).
   ========================================= */

header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between; /* Logo à gauche, burger à droite */
    align-items: center;
    padding: 1rem;
}


/* "Bonjour Prénom" dans la navbar */
.nav-bonjour {
    color: var(--text-muted);
    font-style: italic;
}

/* Bouton "Déconnexion" stylé comme un lien de navigation */
.nav-logout {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.nav-logout button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 500;
    color: inherit;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-logout button:hover {
    color: var(--primary);
}



/* Sur mobile : menu caché par défaut, affiché en panneau sous le header via .active */
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Juste sous le header (qui est en position sticky) */
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1rem 0;
    text-align: center;
    gap: 1rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Classe ajoutée par le JS au clic sur le burger */
.nav-links.active {
    display: flex;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Menu burger --- */

/* Burger visible par défaut (mobile first), caché sur desktop */
.burger {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.25rem;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
}

/* Animation en croix quand le menu est ouvert (classe 'toggle' ajoutée par le JS) */
.burger.toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.toggle span:nth-child(2) {
    opacity: 0;
}

.burger.toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}



.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.logo:hover,
.logo:focus-visible {
    color: var(--primary-light);
}

/* =========================================
   3. ACCUEIL
   Hero, avis clients (grille), présentation de l’entreprise.
   ========================================= */

main {
    flex: 1; /* Prend l'espace restant pour pousser le footer */
}

.hero {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero-banner {
    padding: 3rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-banner-content h1,
.hero-banner-content p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn:hover {
    background-color: #bfa030;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn.btn-outline:hover,
.btn.btn-outline:focus-visible {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.avis-clients {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.avis-clients h2 {
    margin-bottom: 2rem;
    color: var(--primary);
}

.avis-grid {
    display: grid;
    /* Mobile : 1 seule colonne */
    grid-template-columns: 1fr; 
    gap: 1.5rem;
}

.avis-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary);
}

.note {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.commentaire {
    font-style: italic;
    margin-bottom: 1rem;
}

.auteur {
    font-weight: bold;
    text-align: right;
}

.presentation {
    background: #fff;
    padding: 3rem 1rem;
}

.presentation-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.presentation-visuel {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.presentation-visuel img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 2669 / 1918;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.presentation-texte h2 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.presentation-lead {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.presentation-texte p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.presentation-equipe {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.presentation-card {
    background: var(--bg-light);
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.presentation-card h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.presentation-role {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.presentation-card p:last-child {
    color: var(--text-muted);
    margin: 0;
}

.presentation-atouts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.presentation-atouts li {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.presentation-atouts strong {
    display: block;
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.presentation-atouts span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.presentation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.presentation-actions .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.presentation-actions .btn.btn-outline:hover,
.presentation-actions .btn.btn-outline:focus-visible {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

/* =========================================
   4. AUTHENTIFICATION
   Connexion, inscription, mot de passe oublié / réinitialisation.
   ========================================= */

.auth {
    max-width: 450px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.auth.auth-wide {
    max-width: 450px;
}

.auth-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

@media (min-width: 768px) {
    .auth.auth-wide {
        max-width: 720px;
    }

    .auth-row {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.auth h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
}

.auth-intro {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.champ {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.champ label {
    font-weight: 600;
}

.champ input,
.champ textarea {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.champ textarea {
    resize: vertical;
    min-height: 140px;
}

.champ input:focus,
.champ textarea:focus {
    outline: 2px solid var(--secondary);
    border-color: transparent;
}

/* Date / heure : accent site (calendrier & sélecteur d'heure) */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
    accent-color: var(--primary);
    color-scheme: light;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.85;
    /* Teinte vers le bordeaux du site */
    filter: invert(18%) sepia(55%) saturate(1800%) hue-rotate(340deg) brightness(0.85);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
}

/* Afficher / masquer le mot de passe */
.password-field {
    position: relative;
    display: block;
}

.password-field input {
    width: 100%;
    padding-right: 2.75rem;
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 4px;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
    pointer-events: none;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(139, 28, 28, 0.08);
    outline: none;
}

.password-toggle:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 1px;
}

.aide {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-form .btn {
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.auth-liens {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-liens a {
    color: var(--primary);
    font-weight: 600;
}

.auth-liens a:hover {
    text-decoration: underline;
}

/* Messages d'alerte (erreurs de formulaire et messages flash) */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert ul {
    padding-left: 1rem;
}

.alert-erreur {
    background-color: #fdecea;
    color: #8b1c1c;
    border-left: 4px solid #8b1c1c;
}

.alert-avertissement {
    background-color: #fff8e6;
    color: #6b4e00;
    border-left: 4px solid var(--secondary);
    margin-bottom: 1rem;
}

.alert-champ {
    margin-top: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
}

.alert-champ ul {
    margin: 0;
}

.alert-succes {
    background-color: #edf7ed;
    color: #1e4620;
    border-left: 4px solid #2e7d32;
}

/* Bandeau flash (confirmation / erreur globale) */
.flash-banner {
    max-width: 42rem;
    margin: 1.25rem auto 0;
    padding: 0.9rem 1.25rem;
    border-radius: 6px;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    animation: flash-in 0.35s ease-out;
}

.flash-banner-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: center;
}

.flash-banner-succes {
    background: #faf7f2;
    border-color: rgba(212, 175, 55, 0.45);
    color: var(--text-main);
    border-left: 3px solid var(--secondary);
}

.flash-banner-erreur {
    background: #faf6f5;
    border-color: rgba(139, 28, 28, 0.2);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

@keyframes flash-in {
    from {
        opacity: 0;
        transform: translateY(-0.4rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash-banner-out {
    opacity: 0;
    transform: translateY(-0.25rem);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    .flash-banner {
        animation: none;
    }

    .flash-banner-out {
        transition: none;
    }
}

/* =========================================
   5. PAGE MENUS
   Liste et cartes des menus.
   ========================================= */

.menus-hero {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem;
}

.menus-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.menus-hero p {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
    opacity: 0.95;
}

/* Bandeau accueil : même gabarit que menus-hero + image de fond */
.home-hero {
    position: relative;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.home-hero h1,
.home-hero p,
.home-hero .btn {
    position: relative;
    z-index: 1;
}

.home-hero h1,
.home-hero p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.menus-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.menus-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

/* Panneau filtres */
.menus-filters {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary);
    min-width: 0;
}

.menus-filters .price-range {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.menus-filters .price-range span {
    display: none;
}

.menus-filters .price-range input {
    width: 100%;
    min-width: 0;
}

.menus-filters h2 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-select,
.filter-input {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
}

.filter-select:focus,
.filter-input:focus {
    outline: 2px solid var(--secondary);
    border-color: transparent;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.price-range input:focus {
    outline: 2px solid var(--secondary);
    border-color: transparent;
}

.price-range span {
    color: var(--text-muted);
}

.filters-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.filters-actions .btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Résultats */
.menus-results {
    min-width: 0;
}

.menus-count {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.menus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Carte menu */
.menu-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-card-image-link {
    display: block;
    line-height: 0;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    width: 100%;
    font: inherit;
    text-align: left;
}

.menu-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

.menu-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.menu-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.menu-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.menu-stock {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.menu-stock.ok {
    background: #edf7ed;
    color: #2e7d32;
}

.menu-stock.ko {
    background: #fdecea;
    color: #8b1c1c;
}

.menu-card-title {
    color: var(--primary);
    font-size: 1.25rem;
    line-height: 1.3;
}

.menu-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
}

.menu-meta {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.menu-meta li {
    font-size: 0.85rem;
    color: var(--text-main);
}

.menu-meta li span {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
}

.menu-meta strong {
    color: var(--primary);
}

.menu-card-btn {
    text-align: center;
    margin-top: 0.25rem;
}

.menus-empty {
    grid-column: 1 / -1;
    text-align: center;
    background: #fff;
    padding: 3rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.menus-empty p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.menus-empty .btn {
    border: none;
    cursor: pointer;
}

/* =========================================
   6. DÉTAIL MENU
   Page détail d’un menu et ses plats.
   ========================================= */

.menu-detail-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.menu-detail-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-light);
}

.menu-detail-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
}

.menu-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.menu-gallery {
    position: relative;
    grid-column: 1 / -1;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.menu-gallery-viewport {
    overflow: hidden;
    width: 100%;
}

.menu-gallery-track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.45s ease;
    will-change: transform;
}

.menu-gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
    margin: 0;
}

.menu-gallery-slide figure {
    margin: 0;
    position: relative;
}

.menu-gallery-slide img {
    width: 100%;
    height: clamp(220px, 42vw, 420px);
    object-fit: cover;
    object-position: center;
    display: block;
}

.menu-gallery-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.menu-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.menu-gallery-btn:hover,
.menu-gallery-btn:focus-visible {
    background: var(--primary);
    color: #fff;
    outline: none;
}

.menu-gallery-prev {
    left: 0.75rem;
}

.menu-gallery-next {
    right: 0.75rem;
}

.menu-gallery-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.85rem;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    pointer-events: none;
}

.menu-gallery-dot {
    pointer-events: auto;
    width: 1.35rem;
    height: 0.28rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.menu-gallery-dot.is-active,
.menu-gallery-dot:hover,
.menu-gallery-dot:focus-visible {
    background: #fff;
    transform: scaleX(1.15);
    outline: none;
}

.menu-gallery:has(.menu-gallery-slide figcaption) .menu-gallery-dots {
    bottom: 2.6rem;
}

.plats-list-detail .plat-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.plats-list-detail .plat-item:last-child {
    border-bottom: none;
}

.plat-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.plat-item-body strong {
    display: block;
    margin-bottom: 0.35rem;
}

.plat-allergenes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.plat-allergenes-none {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.allergene-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #ffeeba;
}

.menu-detail-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-detail-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.menu-detail-card h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.plats-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
}

.plats-list li {
    padding-left: 1.5rem;
    position: relative;
}

.plats-list li:before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.allergenes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.allergene-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.conditions-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
}

.conditions-list li {
    padding-left: 1.5rem;
    position: relative;
}

.conditions-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.menu-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card.sticky {
    top: 2rem;
}

.info-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.info-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-block .label {
    font-weight: 600;
    color: var(--text-main);
}

.info-block .value {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.info-block .value.price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3rem;
}

.price-calculation {
    flex-direction: column !important;
    align-items: center;
    border-bottom: 2px solid var(--primary) !important;
    padding-bottom: 1.5rem !important;
    gap: 0.8rem;
}

.price-calculation label {
    font-weight: 600;
    text-align: center;
}

.quantity-input {
    width: 5.5rem;
    margin: 0 auto;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    align-self: center;
}

.champ-nombre-personnes .quantity-input {
    align-self: flex-start;
    margin-left: 0;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid #eee;
    background: none;
}

.total-price .label {
    font-weight: 600;
    color: var(--text-main);
}

.total-price .value {
    color: var(--primary) !important;
    font-weight: bold;
    font-size: 1.3rem !important;
}

.stock-banner {
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.stock-banner.available {
    background: #edf7ed;
    color: #2e7d32;
}

.stock-banner.unavailable {
    background: #fdecea;
    color: #8b1c1c;
}

/* =========================================
   7. PAGE COMMANDE
   Formulaire de commande et récapitulatif.
   ========================================= */

.commande-hero {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem;
}

.commande-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.commande-hero p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

.commande-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.commande-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.commande-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Formulaire commande : champs → récap → validation (mobile) */
.commande-form--with-recap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.commande-fields {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.commande-validate {
    background: #fff;
    padding: 1.5rem 2rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.commande-fieldset {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 0;
}

.commande-fieldset legend {
    color: var(--primary);
    font-weight: 600;
    padding: 0 0.5rem;
}

.commande-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.commande-row:first-of-type {
    margin-top: 0;
}

.conditions-box {
    background: #fff8e6;
    border-left: 4px solid var(--secondary);
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
}

.conditions-box h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.conditions-box .conditions-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.conditions-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 600;
    margin-top: 0.75rem;
    cursor: pointer;
}

.conditions-check input {
    margin-top: 0.25rem;
}

.commande-form .btn-submit {
    border: none;
    cursor: pointer;
    width: 100%;
}

.commande-form .btn-submit:disabled,
.commande-form .btn-submit.is-submitting {
    background-color: #b0b0b0;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.85;
    pointer-events: none;
}

.alert-conditions {
    margin: 1rem 0;
}

/* Modale confirmation commande */
body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(30, 20, 20, 0.55);
}

.modal-box {
    width: 100%;
    max-width: 28rem;
    background: #fff;
    border-radius: 10px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-top: 4px solid var(--secondary);
    text-align: center;
}

.modal-box h2 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

.modal-box p {
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.modal-box .alert {
    text-align: center;
    margin: 0 0 1.25rem;
}

.modal-box .modal-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.35rem;
}

.modal-box .modal-ok {
    display: inline-block;
    width: auto;
    min-width: 8rem;
    padding: 0.7rem 1.75rem;
    text-align: center;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.25rem;
}

.modal-confirm-msg {
    text-align: center;
    margin-bottom: 1.25rem !important;
}

.modal-actions .btn {
    min-width: 7.5rem;
}

.commande-recap {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary);
}

.commande-recap h2 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.recap-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.recap-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
}

.recap-list dt {
    color: var(--text-muted);
}

.recap-list dd {
    font-weight: 600;
    text-align: right;
}

.recap-reduction dd {
    color: #2e7d32;
}

.recap-total {
    border-top: 2px solid var(--primary);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.recap-total dt,
.recap-total dd {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: bold;
}

.recap-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.btn-large {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.btn-danger {
    color: #8b1c1c;
    border-color: #8b1c1c;
}

.btn-danger:hover {
    background-color: #8b1c1c;
    color: #fff;
}

/* =========================================
   8. PAGE CONTACT
   Formulaire de contact et informations.
   ========================================= */

.contact-hero {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem;
}

.contact-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
    opacity: 0.95;
}

.contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form .required {
    color: var(--primary);
}

/* Honeypot anti-bot : hors écran, ignoré par les lecteurs d'écran */
.champ-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.champ-turnstile {
    min-height: 65px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.contact-actions .btn-submit {
    width: 100%;
}

.contact-aside h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary);
    margin-bottom: 1.5rem;
}

.contact-card:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-detail {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* =========================================
   9. ESPACE UTILISATEUR
   Mon compte, profil, commandes, avis.
   ========================================= */

.compte-hero {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem;
}

.compte-hero-compact {
    padding: 2rem 1.5rem;
}

.compte-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.back-link-light {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

.compte-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.compte-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.compte-nav a {
    padding: 0.5rem 1rem;
    border-radius: 5px 5px 0 0;
    font-weight: 600;
    color: var(--text-muted);
}

.compte-nav a.active,
.compte-nav a:hover {
    color: var(--primary);
    background: #fff;
}

.compte-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.compte-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.compte-page > .compte-card + .compte-card {
    margin-top: 1.5rem;
}

.compte-card-wide {
    grid-column: 1 / -1;
}

.compte-card-narrow {
    max-width: 560px;
}

.profil-layout {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profil-card {
    border: 1px solid rgba(139, 28, 28, 0.25);
    border-left: 4px solid var(--primary);
}

.profil-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: var(--primary);
}

.profil-card-intro {
    margin: 0 0 1rem;
    color: #555;
    font-size: 0.95rem;
}

.profil-card-danger h2 {
    color: var(--primary);
}

.profil-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profil-form .commande-row {
    margin-top: 0;
    gap: 0.75rem;
}

.profil-form .champ {
    gap: 0.2rem;
}

.profil-form .champ input {
    padding: 0.55rem 0.7rem;
}

.profil-form .btn {
    margin-top: 0.25rem;
    align-self: flex-start;
}

.compte-danger-zone {
    margin-top: 1.5rem;
    border: 1px solid rgba(139, 28, 28, 0.25);
    border-left: 4px solid var(--primary);
}

.compte-danger-zone h2 {
    color: var(--primary);
}

.compte-danger-zone p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.95rem;
}

.champ-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-weight: normal;
    cursor: pointer;
}

.champ-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.compte-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.compte-card h2 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.compte-card-head h2 {
    margin-bottom: 0;
}

.compte-infos {
    list-style: none;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.compte-empty {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.compte-info {
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

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

.commandes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.commandes-table th,
.commandes-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.commandes-table th {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.commandes-table .col-total {
    white-space: nowrap;
    text-align: right;
    min-width: 6.5rem;
    font-variant-numeric: tabular-nums;
}

.statut-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #eee;
    color: var(--text-main);
}

.statut-en_attente { background: #fff3cd; color: #856404; }
.statut-acceptee,
.statut-confirmee { background: #d1ecf1; color: #0c5460; }
.statut-en_preparation { background: #e2e3f3; color: #383d7a; }
.statut-en_livraison { background: #cce5ff; color: #004085; }
.statut-livree,
.statut-terminee { background: #edf7ed; color: #2e7d32; }
.statut-annulee { background: #fdecea; color: #8b1c1c; }

.commande-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.detail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-head h2 {
    margin: 0;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-list dt {
    color: var(--text-muted);
}

.detail-list dd {
    text-align: right;
    font-weight: 500;
}

.detail-total dd {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    align-items: center;
}

.inline-form {
    display: inline;
}

.inline-form button {
    cursor: pointer;
}

.suivi-timeline {
    list-style: none;
    border-left: 3px solid var(--secondary);
    margin-left: 0.5rem;
    padding-left: 1.25rem;
}

.suivi-timeline li {
    position: relative;
    padding-bottom: 1.25rem;
}

.suivi-timeline li::before {
    content: '';
    position: absolute;
    left: -1.45rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.suivi-statut {
    display: block;
    font-weight: 600;
    color: var(--primary);
}

.suivi-commentaire {
    margin: 0.35rem 0 0.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.suivi-timeline time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   10. ESPACE EMPLOYÉ
   Tableau de bord employé, commandes, avis, pickers.
   ========================================= */

.employe-hero {
    background-color: #2c3e50;
}

.employe-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.employe-stat-card {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.employe-stat-urgent {
    border-left: 4px solid var(--secondary);
}

.employe-stat-nb {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}

.employe-stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.employe-stat-card a {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.employe-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.employe-filtres a {
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.employe-filtres a.active,
.employe-filtres a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
}

.employe-client-filtre {
    margin-bottom: 1.25rem;
}

.champ-search-client {
    max-width: 28rem;
}

.search-client-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-client-row .form-search {
    flex: 1;
    min-width: 0;
}

.form-search {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 0.75rem 2.6rem 0.75rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b1c1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-search::placeholder {
    color: #999;
}

.form-search:hover:not(:disabled) {
    border-color: #c9c9c9;
}

.form-search:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.form-search:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.85;
}

.search-client-clear {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.search-client-clear svg {
    width: 1.2rem;
    height: 1.2rem;
}

.search-client-clear:hover:not(:disabled) {
    background: #faf6f5;
    color: var(--primary-light);
}

.search-client-clear:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.search-client-clear:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.employe-client-form {
    display: grid;
    gap: 1rem;
}

.employe-client-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.employe-section-title {
    color: var(--primary);
    font-size: 1rem;
    margin: 1.25rem 0 0.75rem;
}

.employe-statut-form,
.employe-materiel-form,
.employe-annulation-form {
    margin-top: 0.5rem;
}

.employe-statut-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: end;
    margin-bottom: 0.5rem;
}

.employe-annulation-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.employe-statut-form .champ,
.employe-annulation-form .champ {
    width: 100%;
    min-width: 0;
}

.employe-statut-form .btn {
    width: 100%;
}

.employe-annulation-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 6rem;
}

.employe-annulation-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.form-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.75rem 2.6rem 0.75rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b1c1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:hover {
    border-color: #c9c9c9;
}

.form-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

/* --- Pickers date / heure (custom, couleurs site) --- */
.time-picker {
    width: 100%;
}

.time-picker-selects {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
}

.time-picker-unit {
    position: relative;
    flex: 1;
    min-width: 0;
}

.time-picker-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    background-color: #fff;
    padding-left: 0.5rem;
    padding-right: 2rem;
}

.time-picker-placeholder {
    color: #999;
}

.time-picker-sep {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.15rem;
    align-self: center;
}

.time-picker-panel {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    max-height: 12rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.35rem;
    border-top: 3px solid var(--secondary);
}

.time-picker-option {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.45rem 0.5rem;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
}

.time-picker-option:hover {
    background: rgba(212, 175, 55, 0.2);
}

.time-picker-option.is-selected {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.time-picker-option.is-selected:hover {
    background: var(--primary-light);
}

.date-picker {
    position: relative;
    width: 100%;
}

.date-picker-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    background-color: #fff;
}

.date-picker-placeholder {
    color: #999;
}

.date-picker-panel {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 0.35rem);
    left: 0;
    width: min(100%, 18.5rem);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.75rem;
    border-top: 3px solid var(--secondary);
}

.date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.date-picker-month {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.date-picker-nav {
    border: 1px solid #ddd;
    background: #fff;
    color: var(--primary);
    width: 2rem;
    height: 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.date-picker-nav:hover {
    border-color: var(--secondary);
    background: #faf7f2;
}

.date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
    margin-bottom: 0.35rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
}

.date-picker-empty {
    min-height: 2rem;
}

.date-picker-day {
    min-height: 2rem;
    border: none;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-main);
}

.date-picker-day:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.2);
}

.date-picker-day.is-today {
    box-shadow: inset 0 0 0 1px var(--secondary);
}

.date-picker-day.is-selected {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.date-picker-day.is-selected:hover:not(:disabled) {
    background: var(--primary-light);
}

.date-picker-day.is-disabled,
.date-picker-day:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.date-picker-clear {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.45rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

.date-picker-clear:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (min-width: 640px) {
    .employe-statut-form {
        grid-template-columns: 1fr auto;
    }

    .employe-statut-form .btn {
        width: auto;
        white-space: nowrap;
        margin-bottom: 0;
        align-self: end;
        height: calc(0.75rem * 2 + 1rem + 2px);
    }
}

.employe-materiel-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.employe-avis-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.employe-avis-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.employe-avis-note {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--secondary);
    font-weight: bold;
}

.employe-avis-text {
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.employe-avis-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.statut-valide { background: #edf7ed; color: #2e7d32; }
.statut-refuse { background: #fdecea; color: #8b1c1c; }

/* =========================================
   11. ESPACE ADMINISTRATEUR
   Administration (menus, employés, horaires, etc.).
   ========================================= */

.admin-hero {
    background-color: var(--primary);
}

.admin-actions-top {
    margin-bottom: 1rem;
}

.admin-form-card {
    max-width: 720px;
}

.admin-menu-photo-preview {
    margin: 0.5rem 0 0.75rem;
}

.admin-menu-photo-preview img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.admin-cell-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.admin-menus-page {
    max-width: 1400px;
}

.admin-menus-table {
    min-width: 1100px;
}

.admin-menus-table .admin-cell-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.admin-menu-title {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.admin-menu-lock-badge {
    display: inline-block;
    margin-left: 0;
    vertical-align: middle;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.admin-menu-plats-badge {
    display: inline-block;
    margin-left: 0;
    vertical-align: middle;
    font-size: 0.75rem;
    flex-shrink: 0;
    background: #fff8e6;
    color: #6b4e00;
    border: 1px solid #e0c36a;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}

.admin-plats-min-alert {
    margin: 0.75rem 0 1.25rem;
}

.admin-plat-photo-form {
    margin: 0.75rem 0 1rem;
}

.admin-plat-photo-preview {
    max-width: 180px;
}

.admin-plat-photo-preview img {
    max-width: 180px;
}

.admin-menu-row-locked .admin-menu-title {
    font-weight: 600;
}

.admin-menu-row-hidden {
    opacity: 0.72;
}

.col-visible {
    width: 4.5rem;
    text-align: center;
}

.menu-visible-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
}

.menu-visible-toggle input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.admin-employes-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.admin-employes-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary);
}

.admin-employes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-employe-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 0.9rem 1.1rem;
}

.admin-employe-card-head {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.admin-employe-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.admin-employe-name {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
}

.admin-employe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.admin-employe-actions .btn,
.admin-employe-actions .inline-form {
    flex: 1 1 auto;
}

.admin-employe-actions .inline-form .btn {
    width: 100%;
}

.admin-employe-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem 1.25rem;
    margin: 0;
}

.admin-employe-field {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.4rem;
    min-width: 0;
}

.admin-employe-field dt {
    margin: 0;
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.admin-employe-field dt::after {
    content: ' :';
}

.admin-employe-field dd {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-employe-email a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.admin-employe-email a:hover {
    color: var(--primary-light);
}

@media (min-width: 640px) {
    .admin-employe-card-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .admin-employe-actions {
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .admin-employe-actions .btn,
    .admin-employe-actions .inline-form {
        flex: 0 0 auto;
    }

    .admin-employe-actions .inline-form .btn {
        width: auto;
    }

    .admin-employe-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .admin-employe-fields {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr);
        gap: 0.35rem 1.5rem;
    }

    .admin-employe-field-email {
        grid-column: 1 / 3;
    }
}

.admin-plats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.admin-form-spaced {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.admin-plat-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.admin-plat-item:last-child {
    border-bottom: none;
}

.admin-plat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.admin-allergenes-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.admin-allergenes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.admin-horaire-row {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.admin-horaire-row legend {
    font-weight: 600;
    color: var(--primary);
    padding: 0 0.25rem;
}

/* Dashboard admin — statistiques */
.admin-dashboard-intro {
    margin: 0 0 1rem;
    color: #666;
    font-size: 0.95rem;
}

.admin-stats-source {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0 0 1rem;
}

.admin-stats-sync {
    margin-left: 0.25rem;
}

.admin-stats-form-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-stats-form-dates {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.admin-stats-form-menu {
    margin-top: 1rem;
}

.admin-stats-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: stretch;
}

.admin-stats-form-actions .btn {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
}


.admin-charts {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-chart-card h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.admin-chart-wrap {
    position: relative;
    min-height: 280px;
    height: 280px;
}

.admin-stats-table tfoot th,
.admin-stats-table tfoot td {
    font-weight: 700;
    border-top: 2px solid #ddd;
}

.commande-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.commande-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.distance-label {
    display: block;
    font-weight: 600;
}

.distance-valeur {
    margin: 0;
    /* Même hauteur visuelle que les inputs (.champ input) pour aligner avec la ville */
    padding: 0.7rem 0;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
    box-sizing: border-box;
}

/* =========================================
   12. AVIS CLIENT & PAGES LÉGALES
   Formulaire d’avis client et pages légales.
   ========================================= */

.avis-eligibles {
    margin-bottom: 1.5rem;
}

.avis-eligibles-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.avis-eligibles-list li {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.avis-eligibles-meta {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.avis-client-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
}

.avis-form .avis-note-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.avis-form .avis-note-fieldset legend {
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.15rem;
    margin: 0.25rem 0 0.35rem;
}

.star-rating input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.star-rating label {
    cursor: pointer;
    line-height: 1;
    padding: 0.15rem;
    border-radius: 4px;
    transition: transform 0.12s ease;
}

.star-rating label:hover {
    transform: scale(1.12);
}

.star-rating .star-icon {
    display: block;
    font-size: 2.35rem;
    color: #d8d8d8;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.08);
    transition: color 0.12s ease;
}

/* Remplissage au survol et à la sélection (de gauche à droite) */
.star-rating label:hover .star-icon,
.star-rating label:hover ~ label .star-icon,
.star-rating input:checked ~ label .star-icon {
    color: var(--secondary);
}

.star-rating input:focus-visible + label {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.star-rating-hint {
    margin: 0;
}

.avis-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.avis-note-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.avis-note-label input {
    margin-right: 0.35rem;
}

.avis-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
}

.legal-page {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.legal-content h2 {
    color: var(--primary);
    margin: 1.75rem 0 0.75rem;
    font-size: 1.15rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    padding-left: 1.25rem;
    line-height: 1.7;
}

.legal-content p,
.legal-content li {
    line-height: 1.7;
    color: #444;
}

.legal-meta {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #777;
}

.legal-back {
    margin-top: 1.5rem;
}

.legal-content code {
    background: #f0f0f0;
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* =========================================
   13. FOOTER
   Pied de page.
   ========================================= */

footer {
    background-color: #222;
    color: #fff;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column; /* Empilé sur mobile */
    gap: 1.25rem;
    text-align: center;
    margin-top: auto;
}

footer h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

footer .horaires p {
    margin: 0.2rem 0;
    line-height: 1.45;
}

footer .horaires p + p {
    margin-top: 0.35rem;
}

.footer-links {
    margin-top: 0.75rem;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
}

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

/* =========================================
   14. RESPONSIVE
   Adaptations tablette et desktop (min-width).
   ========================================= */

@media (min-width: 768px) {

    /* Plus besoin du burger sur grand écran */
    .burger {
        display: none;
    }

    .navbar {
        padding: 1rem 2rem;
    }

    /* Le menu redevient une ligne classique dans la navbar */
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        gap: 2rem;
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .hero h1,
    .contact-hero h1,
    .menus-hero h1,
    .commande-hero h1 {
        font-size: 3rem;
    }

    .hero,
    .contact-hero,
    .menus-hero,
    .commande-hero {
        padding: 5rem 2rem;
    }

    /* Page contact : formulaire + infos côte à côte */
    .contact-page {
        padding: 4rem 2rem;
    }

    .contact-layout {
        grid-template-columns: 1.4fr 1fr;
        gap: 3rem;
    }

    .contact-actions {
        flex-direction: row;
    }

    .contact-actions .btn-submit {
        width: auto;
        flex: 1;
    }

    .contact-aside h2 {
        text-align: left;
    }

    /* Page commande : formulaire + récap côte à côte */
    .commande-page {
        padding: 4rem 2rem;
    }

    .commande-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .commande-form--with-recap {
        grid-template-columns: 1.5fr 1fr;
        grid-template-areas:
            "fields recap"
            "validate recap";
        align-items: start;
        gap: 2.5rem;
    }

    .commande-fields {
        grid-area: fields;
    }

    .commande-form--with-recap .commande-recap {
        grid-area: recap;
    }

    .commande-validate {
        grid-area: validate;
    }

    .commande-row {
        grid-template-columns: 1fr 1fr;
    }

    .commande-recap {
        position: sticky;
        top: 5rem;
    }

    .compte-grid {
        grid-template-columns: 1fr 2fr;
    }

    .employe-stats {
        grid-template-columns: 1fr 1fr;
    }

    .employe-stats:has(.employe-stat-card:nth-child(3)) {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .admin-stats-form-top {
        flex-direction: row;
        align-items: flex-end;
        gap: 1.25rem;
    }

    .admin-stats-form-dates {
        flex: 1;
        grid-template-columns: 1fr 1fr;
    }

    .admin-stats-form-actions {
        flex: 0 0 11.5rem;
        grid-template-columns: 1fr;
    }

    .admin-charts {
        grid-template-columns: 1fr 1fr;
    }

    .compte-card-wide {
        grid-column: auto;
    }

    .commande-detail-layout {
        grid-template-columns: 1.4fr 1fr;
    }

    .compte-hero,
    .commande-hero {
        padding: 5rem 2rem;
    }

    .compte-hero h1,
    .commande-hero h1 {
        font-size: 3rem;
    }

    .commande-form .btn-submit {
        width: auto;
    }

    /* La grille d'avis passe sur plusieurs colonnes */
    .avis-grid {
        /* Magie du Grid : s'adapte automatiquement à la largeur disponible */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .presentation {
        padding: 4rem 2rem;
    }

    .presentation-inner {
        grid-template-columns: 1fr 1.2fr;
        grid-template-areas:
            "visuel texte"
            "equipe equipe"
            "atouts atouts"
            "actions actions";
        align-items: center;
    }

    .presentation-visuel {
        grid-area: visuel;
    }

    .presentation-texte {
        grid-area: texte;
    }

    .presentation-equipe {
        grid-area: equipe;
        grid-template-columns: 1fr 1fr;
    }

    .presentation-atouts {
        grid-area: atouts;
        grid-template-columns: repeat(4, 1fr);
    }

    .presentation-actions {
        grid-area: actions;
        flex-direction: row;
        justify-content: center;
    }

    .presentation-texte h2 {
        font-size: 2rem;
    }

    /* Le footer s'aligne côte à côte (flux normal, comme sur mobile) */
    footer {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
        padding: 1.25rem 2rem;
        gap: 2rem;
    }

    /* Page menus : filtres à gauche, grille à droite */
    .menus-page {
        padding: 4rem 2rem;
    }

    .menus-layout {
        grid-template-columns: minmax(260px, 300px) 1fr;
        gap: 2.5rem;
    }

    .menus-filters {
        position: sticky;
        top: 5rem;
        z-index: 2;
    }

    .filters-actions {
        flex-direction: column;
    }

    .menus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Détail menu : layout 2 colonnes */
    .menu-detail-content {
        grid-template-columns: 2fr 1fr;
    }

    .menu-detail-sidebar {
        position: sticky;
        top: 2rem;
        height: fit-content;
    }

    .avis-eligibles-list li {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .menus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
