/* =========================================
   RESET DE QUARK
   ========================================= */
   
/* Masque le header natif de Quark (Logo + Menu de navigation) */
#header, 
.header-fixed #header {display: none;}

/* On supprime le menu en mobile */
.mobile-menu {display: none !important}

/* Supprime la marge supérieure que Quark ajoute souvent pour compenser le header fixe */
#body-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}


/* Force le Hero à coller tout en haut de l'écran */
.restaurant-hero {
    margin-top: 0 !important;
    top: 0;
}
/* On force le conteneur principal de Quark à prendre toute la largeur pour le Hero */
#body-wrapper .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* On redonne de la marge au contenu du menu uniquement */
.menu-app-wrapper {
    margin-top: -40px !important; /* Petit effet de chevauchement sur le Hero */
    position: relative;
    z-index: 10;
}

/* --- CORRECTION BUG COLONNES QUARK --- */
/* Force l'affichage du contenu sur une seule colonne */
.plat-description, 
.plat-description p {
    display: block !important;
    width: 100% !important;
    column-count: auto !important;
}

/* Cache le footer par défaut du thème Quark */
#footer {
    display: none !important;
}


/* =========================================
   VARIABLES GLOBALES DU THÈME (DÉFAUT : DARK)
   ========================================= */
:root {
    --yoommy-bg-main: #121212;         /* Fond général de la page */
    --yoommy-bg-nav: #1a1a1a;          /* Fond du menu défilant en haut */
    --yoommy-bg-card: #1e1e1e;         /* Fond des accordéons et de la légende */
    --yoommy-text-main: #ffffff;       /* Texte principal (Titres, plats, etc.) */
    --yoommy-text-muted: #aaaaaa;      /* Texte secondaire (Descriptions, sous-titres) */
    --yoommy-accent: #8b5cf6;          /* Couleur Yoommy (Boutons, icônes, loaders) */
    --yoommy-border: #333333;          /* Bordures principales */
    --yoommy-border-light: #2a2a2a;    /* Bordures subtiles (séparation de plats) */
    --yoommy-font-title: 'Abril Fatface', serif;
    --yoommy-font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================
   1. ESPACE CLIENT (yoommy-dashboard)
   (On garde ce bloc indépendant pour ne pas casser l'admin)
   ========================================= */
.yoommy-dashboard { max-width: 1000px; margin: 40px auto; padding: 20px; font-family: sans-serif; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; padding-bottom: 20px; margin-bottom: 30px; }
.dashboard-header h1 { margin: 0; font-size: 24px; }
.btn-logout { background: #ff4757; color: white; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: bold; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.tool-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.tool-card.full-width { grid-column: 1 / -1; }
.tool-card h3 { margin-top: 0; }
.tool-card p.subtitle { color: #666; font-size: 14px; }
.yoommy-dropzone { border: 2px dashed #dcdde1; padding: 40px; text-align: center; border-radius: 8px; cursor: pointer; background: #f5f6fa; transition: all 0.3s ease; }
.yoommy-dropzone.active { border-color: var(--yoommy-accent); background: #f3f0ff; }
.yoommy-dropzone .icon { font-size: 30px; margin-bottom: 10px; }
.yoommy-dropzone .title { margin: 0; color: #666; font-weight: bold; }
.yoommy-dropzone .hint { margin: 5px 0 0 0; font-size: 13px; color: #a4b0be; }
.btn-action { width: 100%; border: none; padding: 15px; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 16px; transition: 0.2s; display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.btn-action.success { background: #2ed573; color: white; margin-top: 15px; }
.btn-action.primary { background: var(--yoommy-accent); color: white; }
.btn-action.danger { background: #ff4757; color: white; }
.btn-action.danger.recording { background: #e84118; }
.yoommy-loader { margin-top: 15px; padding: 15px; border-radius: 8px; text-align: center; font-weight: bold; }
.yoommy-loader.scan { background: #e5f8ed; color: #2ed573; }
.yoommy-loader.ia { background: #f1f2f6; color: var(--yoommy-accent); }
.yoommy-loader.ia.success { background: #e5f8ed; color: #2ed573; }
.yoommy-loader .subtext { font-size: 12px; color: #666; font-weight: normal; margin-top: 5px; }
.ia-prompt-wrapper { display: flex; gap: 10px; margin-top: 20px; }
.ia-prompt-wrapper textarea { flex-grow: 1; padding: 15px; border: 1px solid #dcdde1; border-radius: 8px; font-family: inherit; font-size: 16px; resize: vertical; }
.ia-prompt-actions { display: flex; flex-direction: column; gap: 10px; }

/* =========================================
   2. FRONT-END : MENU & CARTE DYNAMIQUE
   ========================================= */

body {
    background: var(--yoommy-bg-main) !important;
}

.yoommy-theme-wrapper {
    background-color: var(--yoommy-bg-main);
    color: var(--yoommy-text-main);
    min-height: 100vh;
    font-family: var(--yoommy-font-text);
}

/* Menu Sticky Horizontal */
.sticky-nav-categories {
    position: sticky;
    top: 0;
    background-color: var(--yoommy-bg-nav);
    z-index: 1000;
    border-bottom: 1px solid var(--yoommy-border);
    padding: 15px 0px;
    border-radius: 20px 0 0 0;
    margin-top: -30px;
}
.nav-scroll-container {
    display: flex;
    justify-content: left;
    overflow-x: auto;
    padding: 0 15px;
    gap: 5px;
    scrollbar-width: none; 
}

@media only screen and (min-width:1140px){
  .nav-scroll-container {
    justify-content: center;
}  
}

.nav-scroll-container::-webkit-scrollbar { display: none; }

.nav-category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--yoommy-text-main);
    text-transform: uppercase;
    font-weight: 200;
    transition: 0.2s;
    border: 1px solid #f4f7f930;
    margin-right: 3px;
    box-shadow: inset 1px 1px 15px var(--yoommy-accent)
}
.nav-category-btn:focus, .nav-category-btn:hover, .nav-category-btn:active {
    border: 2px solid var(--yoommy-text-main);
    color: var(--yoommy-bg-muted);
    text-decoration: none;
}
.nav-icon { font-size: 1.2rem; margin-bottom: 5px; }
.nav-text { 
    font-size: 0.75rem; 
    font-weight: bold; 
    letter-spacing: 0.5px;
    text-align: center;
}

/* Hero Section */
.restaurant-hero {
    height: 40vh;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 120px;
    border-radius: 25px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-family: var(--yoommy-font-title);
    font-size: 2rem;
    letter-spacing: -0.03em;
    text-align: center;
    margin: 0 0 5px 0;
    color: #ffffff; /* Forcé en blanc sur l'image de fond */
}
.hero-subtitle { font-size: 1rem; color: #dddddd; margin: 0 0 10px 0; }
.hero-subtitle p { 
    margin: 0; 
    font-size: 1.1rem;
    text-align: center;
}

/* Sections Principales */
.menu-content-wrapper { padding: 20px; max-width: 800px; margin: 0 auto; }
.main-menu-section { margin-top: 30px; margin-bottom: 50px; }
.main-section-title {
    font-family: var(--yoommy-font-title);
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    border-bottom: 1px dotted var(--yoommy-border);
    padding-bottom: 10px;
    color: var(--yoommy-accent);
    text-align: center;
    letter-spacing: -0.03em;
}


/* =========================================
   ACCORDÉONS
   ========================================= */

.yoommy-accordion summary.has-bg {
    position: relative;
    background-size: cover;          
    background-position: center;    
    background-repeat: no-repeat;
    padding: 25px 15px;            
    border: none;
    overflow: hidden;
}

/* Overlay */
.yoommy-accordion summary.has-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 👈 C'est ici que tu règles ton assombrissement ! */
    z-index: 1; /* On le pose juste au-dessus de l'image de fond */
    transition: background-color 0.3s ease; /* Pour une petite animation fluide */
}

/* On met les txt et la fleche au premier plan */
.yoommy-accordion summary.has-bg .summary-left,
.yoommy-accordion summary.has-bg .summary-arrow {
    position: relative;
    z-index: 2; 
}

/*L'overlay devient légèrement plus sombre quand on passe la souris ! */

.yoommy-accordion[open] summary.has-bg::before {
    background-color: rgba(0, 0, 0, 0.3);
}


/* Accordéons (Sous-catégories) */
.accordions-container {
    background-color: var(--yoommy-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 0px 5px #778b8242;
}
.yoommy-accordion {
    border-bottom: 5px solid var(--yoommy-border-light);
}
.yoommy-accordion:last-child { border-bottom: none; }
.yoommy-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--yoommy-text-main);
}
.yoommy-accordion summary::-webkit-details-marker { display: none; }
.summary-left { 
    display: flex; 
    align-items: center; 
    gap: 10px;
    text-transform: uppercase;
    }
    
.summary-arrow {max-height: 20px;}
    
.summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--yoommy-border-light);
    color: var(--yoommy-accent);
    border-radius: 6px;
    font-size: 0.9rem;
}
.summary-arrow i {
    font-size: 1.2rem; /* Tu peux ajuster la taille ici */
    color: var(--yoommy-text-main);
    transition: transform 0.3s ease-in-out;
    
    /* TRÈS IMPORTANT : Les balises <i> sont "inline" par défaut. 
       Le CSS refuse de faire tourner (transform) un élément inline. 
       Il faut le forcer en inline-block ! */
    display: inline-block;
    max-height: 20px;
}

.yoommy-accordion[open] .summary-arrow i { 
    transform: rotate(-180deg); 
}

/* Contenu des plats */
.accordion-content { 
    background: var(--yoommy-bg-main);
    padding: 0 15px 15px 15px; 
}
.plat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--yoommy-border);
}
.plat-card:last-child { border-bottom: none; }
.plat-info { flex: 1; padding-right: 15px; }
.plat-title-row h3 { 
    margin: 0 0 5px 0; 
    font-size: 1.05rem; 
    color: var(--yoommy-accent);
    }
    
.plat-desc { 
    margin: 0 0 10px 0; 
    font-size: 0.85rem; 
    color: var(--yoommy-text-muted); 
    line-height: 1.4;
    
}
.price { 
    font-weight: bold; 
    font-size: 1.1rem; 
    color: var(--yoommy-accent); 
}

.badge { font-size: 0.8rem; margin-left: 5px; }
.badge:after {display:none !important;}

/* Image du plat */
.plat-image img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }

/* Étiquettes Allergènes */
.allergene-tags { margin-top: 8px; margin-bottom: 10px; font-size: 0.75rem; }
.allergene-label { color: var(--yoommy-text-muted); margin-right: 5px; }
.allergene-tag {
    display: inline-block;
    background-color: var(--yoommy-border-light);
    color: var(--yoommy-text-muted);
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid var(--yoommy-border);
    font-style: italic;
}

/* =========================================
   3. LÉGENDE, FOOTER & LANGUES
   ========================================= */

/* Sélecteur de Langues */
.lang-dropdown-wrapper { position: fixed; top: 20px; right: 20px; z-index: 9999; font-family: var(--yoommy-font-text); font-size: 16px; }
.lang-dropdown-box { background: var(--yoommy-bg-card); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); overflow: hidden; width: 80px; border: 1px solid var(--yoommy-border); }
.lang-toggle { padding: 10px; cursor: pointer; text-align: center; font-weight: bold; background: var(--yoommy-bg-card); color: var(--yoommy-text-main); display: flex; justify-content: space-between; align-items: center; }
.lang-toggle .arrow { font-size: 12px; opacity: 0.6; }
.lang-list { flex-direction: column; border-top: 1px solid var(--yoommy-border); }
.lang-list a { padding: 10px; text-decoration: none; color: var(--yoommy-text-main); text-align: center; display: block; transition: background 0.2s; }
.lang-list a:hover { background: var(--yoommy-border-light); }

/* Légende */
.menu-legende { margin: 40px auto; padding: 0 20px; max-width: 800px; }
.menu-legende details { 
    border: 3px solid var(--yoommy-bg-card); 
    padding: 15px 20px; 
    border-radius: 12px; 
    border: 1px solid var(--yoommy-border); 
    cursor: pointer; 
    color: var(--yoommy-text-main); 
}
.menu-legende summary { 
    color: var(--yoommy-text-muted);
    font-weight: bold; 
    font-size: 1.1em; 
    outline: none; 
    list-style: none;
    }
.menu-legende summary::-webkit-details-marker { display: none; }
.menu-legende p { color: var(--yoommy-text-muted); font-size: 0.9rem; line-height: 1.5; margin: 10px 0; }

/* Footer */
.footMenu { 
    text-align: center; 
    padding: 40px 20px; 
    border-top: 1px solid var(--yoommy-border-light); 
    margin-top: 0px; 
    color: var(--yoommy-text-muted); 
    font-size: 0.9rem;
    background: var(--yoommy-bg-main);
}

/* Bloc Avis Google */
.googleAvis { 
    display: inline-block; 
    border: 3px solid var(--yoommy-bg-card); 
    padding: 15px 25px; 
    border-radius: 12px; 
    border: 1px solid var(--yoommy-border); 
    margin-bottom: 25px; 
    transition: background 0.3s; 
}
.googleAvis a { text-decoration: none; color: var(--yoommy-text-main); }
.googleAvis strong {color: var(--yoommy-text-muted);}
.googleAvis:hover { background: var(--yoommy-border-light); }
.googleImg { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 5px; }
.googleRate { color: #f39c12; font-size: 1.2rem; margin-top: 5px;}
.googleRate span { color: var(--yoommy-text-muted); font-size: 0.9rem; }

/* Réseaux Sociaux */
.social-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.social-icons img { 
    filter: brightness(0) saturate(100%) invert(67%) sepia(24%) saturate(356%) hue-rotate(74deg) brightness(95%) contrast(92%);
    transition: transform 0.3s; 
    opacity: 0.8;
}
.social-icons a:hover img { transform: scale(1.1); opacity: 1; }

.pulseggg {
	animation-name: pulse_animation;
	animation-duration: 2000ms;
	transform-origin:70% 70%;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	width: 20px;
    margin-bottom: -5px
}

@keyframes pulse_animation {
	0% { transform: scale(1); }
	30% { transform: scale(1); }
	40% { transform: scale(1.08); }
	50% { transform: scale(1); }
	60% { transform: scale(1); }
	70% { transform: scale(1.05); }
	80% { transform: scale(1); }
	100% { transform: scale(1); }
}