/* ===============================
   Styles généraux client
================================= */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background: #e1c699;
    text-align: center;
    color: #333;
    line-height: 1.6;
}

h1 {
    margin-bottom: 30px;
    font-family: "Georgia", serif;
    font-weight: bold;
    font-size: 2.5rem;
    letter-spacing: 1px;
    color: #222;
}

/* ===============================
   Navigation principale
================================= */
#navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

#navigation button {
    width: 220px;
    position: relative;
    overflow: hidden;
    background: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 2;
    color: #333 !important;
    -webkit-appearance: none;
    font-family: inherit;
    transition: all 0.25s ease;
}

#navigation button:hover {
    background: #e63946;
    color: white !important;
}

#navigation button.active {
    background: #e63946;
    color: white !important;
}

/* ===============================
   Sous-menu (sous-catégories)
================================= */
#menu button {
    width: 220px;
    padding: 15px;
    font-size: 1.05rem;
    border: none;
    border-radius: 12px;
    background: white;
    color: #333 !important;
    cursor: pointer;
    margin: 10px auto 30px;
    display: block;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 2;
    -webkit-appearance: none;
    font-family: inherit;
    transition: all 0.25s ease;
}

#menu button:hover {
    background: #E69830;
    color: white !important;
}

/* ===============================
   Cartes de plats
================================= */
.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 260px;
    margin: 0;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.35);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.card h3 {
    margin: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
}

.card p {
    margin: 5px 10px;
    font-size: 0.95rem;
    color: #555;
}

/* ===============================
   Fiche détaillée du plat (zoom card)
================================= */
#dish-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    padding: 0;
    overflow-y: auto;
}

#dish-detail .card {
    width: calc(100% - 20px);
    max-width: 500px;
    margin: 10px 0;
    border-radius: 10px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#dish-detail .card img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
}

#dish-detail .card h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #222;
}

#dish-detail .card p {
    font-size: 1rem;
    color: #555;
    margin: 5px 0;
    text-align: left;
    width: 100%;
}

/* Cache l'overlay par défaut */
.hidden {
    display: none !important;
}

/* ===============================
   Bouton retour
================================= */
#back-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e63946;
    color: white !important;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* ===============================
   Espace bas du menu
================================= */
#menu {
    padding-bottom: 120px;
    padding-top: 30px;
}

.category-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    max-width: 500px;
    margin: 0 auto 30px;
}

#menu h2 {
    margin-top: 40px;
    margin-bottom: 10px;
    font-family: "Georgia", serif;
    font-weight: bold;
    font-size: 1.3rem;
    color: #222;
    letter-spacing: 0.5px;
}

/* Safari fallback pour tous les boutons et inputs */
button, input, select, textarea {
    -webkit-appearance: none;
    color: inherit !important;
    font-family: inherit;
}

/* Désactive le hover sur les boutons quand la classe no-hover est active */
#navigation.no-hover button:hover {
    background: white;
    color: #333 !important;
}

/*Le texte TITRE avec effet du menu*/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,700;1,700&display=swap');
.logo-text {
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2rem;
    font-weight: bold;
    font-style: none;
    color: #333; /* Couleur de base du texte */
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    
    /* Préparation du dégradé pour l'effet de reflet */
    background: linear-gradient(
        to right, 
        #333 0%, 
        #333 40%, 
        #ffffff 50%, 
        #333 60%, 
        #333 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text; /* Pour Chrome/Safari */
    text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    
    /* Animation */
    animation: shine 3s linear infinite;
}

/* L'animation qui déplace le dégradé */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.5); /* orange */
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
