/* === Général === */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    }
    
    a {
    text-decoration: none;
    color: inherit;
    }
    
    /* === Header === */
    .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #6B8E23;
    flex-wrap: wrap;
    }
    
    .logo img {
    width: 100%;
    max-width: 80px;
    height: auto;
    border-radius: 50%;
    display: block;
    }
    
    nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    }
    
    .nav-link {
    color: white;
    font-weight: 600;
    padding: 0.5rem;
    transition: border-bottom 0.3s;
    }
    
    .nav-link:hover {
    border-bottom: 3px solid white;
    }
    
    .nav-link.active {
    border-bottom: 3px solid #CD853F;
    }
    
    .admin-link {
    font-size: 0.9rem;
    opacity: 0.9;
    }
    
    /* === Menu burger (mobile) === */
    .burger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    }
    
    @media (max-width: 768px) {
    nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    }
    
    nav.show {
    display: flex;
    }
    
    .burger {
    display: block;
    }
    }
    
    /* === Hero === */
    .hero {
    position: relative;
    text-align: center;
    color: white;
    }
    
    .hero-img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    filter: brightness(0.6);
    }
    
    .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 1rem;
    }
    
    .hero-content h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    }
    
    @media (max-width: 600px) {
    .hero-img {
    height: 300px;
    }
    
    .hero-content h2 {
    font-size: 1.6rem;
    }
    }

    /* === HREF TEL === */
    a[href^="tel:"] {
        color: #CD853F;
        font-weight: bold;
    }

    a[href^="tel:"]:hover {
        text-decoration: underline;
    }
    
    /* === Sections de contenu === */
    section {
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
    }
    
    h3 {
    color: #CD853F;
    margin-bottom: 1rem;
    }
    
    ul {
    list-style: none;
    padding: 0;
    }
    
    ul li {
    margin-bottom: 0.5rem;
    }
    
    /* === Encadré allergènes === */
    .allergenes {
    background: #fff7ec;
    padding: 1rem 2rem;
    margin-top: 2rem;
    border-left: 6px solid #CD853F;
    }

    .plats {
        max-width: 1000px;
        margin: auto;
        padding: 2rem;
    }
        
    .plats h2 {
        text-align: center;
        margin-bottom: 2rem;
    }
        
    .search-bar {
        display: block;
        width: 100%;
        max-width: 400px;
        margin: auto;
        margin-bottom: 2rem;
        padding: 0.7rem;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 8px;
    }
        
    .grid-plats {
        display: grid;
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        align-items: stretch;
    }
        
    .plat-card {
        background: white;
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 0 10px rgba(0,0,0,0.05);
        text-align: center;
    }
        
    .plat-card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
        
    .plat-card .prix {
        display: block;
        margin-top: 0.5rem;
        color: #CD853F;
        font-weight: bold;
    }

    .plat-card.indispo {
        /* opacity: 2.9; */
        position: relative;
        
    }
            
    .image-container {
        position: relative;
    }
            
    .image-container img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 8px;
    }
    .plat-footer {
        margin-top: auto;
        padding-top: 0.8rem;
    }
    .titre-allergenes {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin-top: 0.5rem;
        font-weight: bold;
        color: #8B0000;
    }
    .titre-allergenes .icone {
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    .bloc-allergenes {
        background: #fff3cd;
        border-left: 4px solid #ff9800;
        padding: 0.5rem;
        color: #8B0000;
        margin-top: 0.3rem;
        font-size: 0.9rem;
    }
    .allergenes .icone {
        flex-shrink: 0;
        font-size: 1.2rem;
        line-height: 1;
    }
     .overlay {
        text-decoration: underline;
     } 
    .tri-options {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }      
    /* .overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(205, 133, 63, 0.75);
        color: white;
        font-weight: bold;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        text-align: center;
    } */

    .grid-marches {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        max-width: 900px;
        margin: auto;
        padding: 2rem;
    }
        
    .marche-card {
        background: white;
        padding: 1rem 1.5rem;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0,0,0,0.05);
        text-align: center;
    }
        
    .marche-card h3 {
        margin: 0.5rem 0;
        color: #6B8E23;
    }
        
    .marche-card a {
        color: #CD853F;
        font-weight: bold;
        text-decoration: none;
    }

    .tooltip-marche {
        font-size: 0.6rem;
        padding: 2px 3px;
        background-color: #ffffffcc;
        color: #333;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        font-weight: 500;
    }

    .contact {
        max-width: 800px;
        margin: auto;
        padding: 2rem;
        text-align: center;
    }
        
    .contact h2 {
        margin-bottom: 2rem;
        color: #6B8E23;
    }
        
    .contact-content {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 2rem;
    }
        
    .contact-text p {
        margin: 0.3rem 0;
        font-size: 1rem;
        color: #333;
    }
    
    .contact-photo {
        display: flex;
        justify-content: center;
        margin: 1rem 0;
    }

    .contact-img {
        width: 140px;
        height: 140px;
        object-fit: cover;
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(0,0,0,0.1);
    }
        
    @media (min-width: 768px) {
        .contact-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        }
        
        .contact-text {
        text-align: left;
        }
    }
        
    .contact a {
        color: #CD853F;
        text-decoration: none;
        font-weight: bold;
    }
        
    .contact a:hover {
        text-decoration: underline;
    }
        
    
    /* === Footer === */
    footer {
    background-color: #f1f1f1;
    color: #444;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
    }
    
    footer a {
    color: #6B8E23;
    }
    
    footer a:hover {
    text-decoration: underline;
    }
    
    .footer-content p {
    margin: 0.3rem 0;
    }


    /* === Admin === */
    .tabs {
        display: flex;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
        
    .tabs button {
        padding: 0.5rem 1rem;
        background: #eee;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
    }
        
    .tabs button.active {
        background-color: #CD853F;
        color: white;
    }
        
    .admin-section h3 {
        color: #CD853F;
        margin-bottom: 1rem;
    }

    /* Formulaire moderne */
.form-plat-modern {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .form-plat-modern label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
  }
  
  .form-plat-modern input,
  .form-plat-modern select,
  .form-plat-modern textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
  }
  
  .form-plat-modern button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
  }
  
  .form-plat-modern button[type="submit"] {
    background-color: #68BE23;
    color: white;
  }
  
  .form-plat-modern button[type="button"] {
    background-color: #007BFF;
    color: white;
  }

    /* .form-plat {
        display: grid;
        gap: 0.5rem;
        margin-bottom: 2rem;
        max-width: 500px;
    }
        
    .form-plat input,
        .form-plat button {
        padding: 0.5rem;
        font-size: 1rem;
    } */
        
    .table-plats {
        width: 100%;
        border-collapse: collapse;
    }
        
    .table-plats th,
    .table-plats td {
        padding: 0.5rem;
        border-bottom: 1px solid #ddd;
    }
        
    .table-plats button {
        margin-right: 0.5rem;
    }

    form.form-plat {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 10px;
        margin-bottom: 20px;
        align-items: end;
        }
        
        form.form-plat input,
        form.form-plat textarea,
        form.form-plat button {
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 0.95rem;
        }
        
        form.form-plat label {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 0.9rem;
        }
        
        table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1rem;
        }
        
        th, td {
        padding: 10px;
        text-align: left;
        border-bottom: 1px solid #ddd;
        }
        
        tr:nth-child(even) {
        background-color: #f9f9f9;
        }
        
        button {
        padding: 6px 12px;
        border: none;
        border-radius: 5px;
        font-size: 0.9rem;
        cursor: pointer;
        }
        
        button:hover {
        opacity: 0.9;
        }
        
        button[type=\"submit\"] {
        background-color: #6B8E23;
        color: white;
        }
        
        button[type=\"button\"] {
        background-color: #CD853F;
        color: white;
        }
        
        button.btn-delete {
        background-color: #c0392b;
        color: white;
        margin-left: 5px;
        }

        /* Conteneur du formulaire fixé en haut */
.admin-form-sticky {
    position: sticky;
    top: 70px;
    background: #fff;
    z-index: 10;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    }
    
    /* Formulaire en deux lignes */
    .form-plat {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    align-items: center;
    }
    
    /* Vignette image dans le tableau */
    .table-plat-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
    }
    .titre-cell {
    display: flex;
    align-items: center;
    }

    /* Partie admin index */
    .admin-dashboard {
    text-align: center;
    padding: 3rem 1rem;
    }

    .admin-dashboard h2 {
    font-size: 2rem;
    color: #333;
    }

    .admin-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    }

    .admin-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #6B8E23;
    color: white;
    font-size: 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .admin-button:hover {
    background-color: #5a751c;
    }

    .table-cell-wrap {
        max-width: 200px;
        word-wrap: break-word;
        white-space: normal;
        overflow-wrap: break-word;
    }
    .titre-marche {
    font-size: 1.8em;
    margin-top: 40px;
    color: #6B8E23;
    text-align: center;
    }

    .ligne-separatrice {
    height: 3px;
    width: 100px;
    background-color: #CD853F;
    margin: 0 auto 20px;
    }

    .bloc-marche {
    margin-bottom: 30px;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    }

    .admin-info textarea {
        width: 100%;
        min-height: 100px;
        padding: 10px;
        font-size: 1rem;
        resize: vertical;
        border-radius: 6px;
        border: 1px solid #ccc;
        box-sizing: border-box;
    }

        