/* ========================== Polices ========================== */
/* Fonts from Google Fonts are now used via <link> in index.html */


.patrick-hand-sc-regular {
  font-family: "Patrick Hand SC", cursive;
  font-weight: 400;
  font-style: normal;
}

.swanky-and-moo-moo-regular {
  font-family: "Swanky and Moo Moo", cursive;
  font-weight: 400;
  font-style: normal;
}

.coming-soon-regular {
  font-family: "Coming Soon", cursive;
  font-weight: 400;
  font-style: normal;
}

.caveat-paragraphs {
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


body {
    font-family: 'Caveat', 'Coming Soon', 'Swanky and Moo Moo', cursive, Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 600;
    overflow-x: hidden;

    display: flex;
    justify-content: center;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Patrick Hand SC', cursive, Arial, sans-serif;
    letter-spacing: 0.5px;
}

img {
    width: 20px;
    height: 20px;
    align-self: center;
}

/* ========================== Loading Screen ========================== */
#loading {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: pink;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    border-radius: 50px;
    margin: 2%;
    padding: 0px clamp(12px, 1.5vw, 25px);
}

#loading.hidden {
    display: none;
}

/* ========================== Écran de démarrage ========================== */
/* Styles pour l'écran d'accueil initial et le bouton d'entrée */
.starting-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
}

.starting-screen.hidden {
    display: none;
}

.starting-content {
    background: rgba(255, 255, 255, 0);
    padding: 60px 50px;
    border-radius: 15px;
    text-align: center;
    animation: slideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.starting-content h1 {
    margin: 0 0 15px 0;
    color: hsl(0, 100%, 86%);
    font-size: 36px;
    font-family: 'Patrick Hand SC', Arial, sans-serif;
}

.starting-content p {
    color: hsl(0, 100%, 86%);
    font-size: clamp(21px, 1.4vw, 27px);
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
    width: clamp(280px, 60%, 500px);
    place-self: center;
    margin: 0 auto 30px auto;
}

.enter-button {
    background-color: rgb(245, 220, 238);
    color: #090909;
    border: 2px solid rgb(245, 220, 238);
    padding: 10px 5%;
    font-size: clamp(13px, 1.5vw, 20px);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Caveat', 'Coming Soon', 'Swanky and Moo Moo', cursive, Arial, sans-serif;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.enter-button:hover {
    background-color: #090909;
    color: rgb(245, 220, 238);
    transform: scale(1.05);
}

.enter-button:active {
    transform: scale(0.98);
}

.enter-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================== Navigation ========================== */
/* Barre de navigation, boutons et contrôle du son */
nav {
    position: absolute;
    background-color: #98989800;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 92vw;
    height: 50px;
    margin-top: 2%;

    border-radius: 7px;
}

#option {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.btn {
    color: rgba(245, 220, 238, 0.8);
    background-color: transparent;
    border: 2px solid rgba(245, 220, 238, 0.4);
    text-decoration: none;
    font-size: 18px;
    padding: 6px 30px;
    border-radius: 50px;
    font-family: 'Patrick Hand SC', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn:hover {
    background-color: rgba(245, 220, 238, 0.2);
    border-color: rgb(245, 220, 238);
}

.btn-sound {
    padding: 12px;
    display: flex;
}

.btn-sound img {
    width: 20px;
    height: 20px;
    filter: invert(98%) sepia(100%) saturate(1000%) hue-rotate(291deg) brightness(1) contrast(0.97) opacity(0.45);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-sound:hover img {
    filter: invert(100%) sepia(100%) saturate(1000%) hue-rotate(291deg) brightness(1.05) contrast(1) opacity(1);
}

/* ========================== À propos ========================== */
/* Styles du pop-up « À propos » (fenêtre modale, contenu et mise en page) */
.about-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.about-overlay.active {
    display: flex;
}

.about-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    padding: 0;
    border-radius: 15px;
    max-width: 640px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.about-content::-webkit-scrollbar {
    width: 6px;
}

.about-content::-webkit-scrollbar-track {
    background: rgba(60, 60, 60, 0.3);
    border-radius: 10px;
}

.about-content::-webkit-scrollbar-thumb {
    background: rgba(245, 220, 238, 0.4);
    border-radius: 10px;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.about-content h2 {
    margin: 0;
    color: rgb(245, 220, 238);
    font-size: 32px;
    font-family: 'Patrick Hand SC', Arial, sans-serif;
    padding: 30px 30px 20px;
    border-bottom: 2px solid rgba(245, 220, 238, 0.2);
}

.about-content h3 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Patrick Hand SC', Arial, sans-serif;
    letter-spacing: 0.3px;
}

.about-content p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 20px;
    margin: 0 0 10px 0;
    font-weight: 400;
}

.about-content strong {
    display: block;
    color: rgb(245, 220, 238);
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 16px 0 6px 0;
    font-weight: 600;
}

.about-content ul {
    margin: 0;
    padding-left: 20px;
    color: #e0e0e0;
}

.about-body section {
    margin-bottom: 48px;
}

.about-body section:nth-of-type(2) {
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
}

.about-body {
    padding: 30px;
}

.about-body section:nth-of-type(2) > p {
    margin-bottom: 5%;
}

.about-body section:nth-of-type(2) h3 {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(245, 220, 238, 0.1);
}

.about-body section:nth-of-type(2) p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 400;
}

.about-body section:nth-of-type(2) ul {
    margin-top: 8px;
}

.about-body > *:not(:first-child) {
    margin: 5px 20px;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tools-list span {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(245, 220, 238, 0.15);
    color: #e8e8e8;
    font-size: 15px;
    font-weight: 400;
    border-radius: 20px;
}

/* Section Auteur */
.about-body section:first-of-type {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.04);
    padding: 18px;
    border-radius: 10px;
    border: 1px solid rgba(245, 220, 238, 0.1);
    display: flex;
    align-items: center;
    gap: 18px;
}

.about-body section:first-of-type img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(245, 220, 238, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-body section:first-of-type div {
    flex: 1;
}

.about-body section:first-of-type h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.about-body section:first-of-type p {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #ccc;
}

/* Liens sociaux */
.about-body section:first-of-type a {
    display: inline-block;
    padding: 6px 14px;
    margin-right: 8px;
    background: rgb(245, 220, 238);
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.about-body section:first-of-type a:hover {
    background: #fff;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* Section Projet */
.about-body section:nth-of-type(2) strong:first-of-type {
    margin-top: 0;
}

.about-close {
    position: absolute;
    top: 28px;
    right: 22px;
    background: none;
    border: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.about-close:hover {
    background: rgba(245, 220, 238, 0.2);
    color: rgb(245, 220, 238);
}

/* ========================== Menu ========================== */
/* Styles du pop-up Menu : catégories, recherche, liste et détails */
.menu-overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    overscroll-behavior: contain;
    padding: 16px;
    box-sizing: border-box;
}

.menu-overlay.active {
    display: flex;
}

.menu-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border-radius: 15px;
    max-width: 1300px;
    width: min(80%, calc(100vw - 32px));
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 80%;
    overscroll-behavior: contain;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease;
    z-index: 10;
}

.menu-close:hover {
    color: rgb(245, 220, 238);
}

.menu-header {
    padding: 30px 30px 20px;
    border-bottom: 2px solid rgba(245, 220, 238, 0.2);
    position: sticky;
    top: 0;
    z-index: 6;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.96) 0%, rgba(37, 37, 37, 0.96) 100%);
    backdrop-filter: blur(12px);
}

.menu-header h2 {
    margin: 0 0 20px 0;
    color: rgb(245, 220, 238);
    font-size: 32px;
    font-family: 'Patrick Hand SC', Arial, sans-serif;
}

.menu-search {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 2px solid rgba(245, 220, 238, 0.2);
    border-radius: 12px;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s ease;
    font-family: 'Swanky and Moo Moo', 'Caveat', 'Coming Soon', cursive, Arial, sans-serif;
}

.menu-search::placeholder {
    color: #888;
}

.menu-search:focus {
    outline: none;
    border-color: rgb(245, 220, 238);
    box-shadow: 0 0 0 3px rgba(245, 220, 238, 0.15);
}

.menu-categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 20px;
    border: 2px solid rgba(245, 220, 238, 0.4);
    background-color: transparent;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Swanky and Moo Moo', 'Coming Soon', 'Caveat', cursive, Arial, sans-serif;
    
}

.category-btn:hover {
    background-color: rgba(245, 220, 238, 0.2);
    border-color: rgb(245, 220, 238);
}

.category-btn.active {
    background-color: rgb(245, 220, 238);
    color: #1a1a1a;
    border-color: rgb(245, 220, 238);
}

.menu-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    padding: 30px;
    flex: 1;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(85vh - 300px);
    overflow-y: auto;
    padding-right: 10px;
    -webkit-overflow-scrolling: touch;
}

.menu-items::-webkit-scrollbar {
    width: 6px;
}

.menu-items::-webkit-scrollbar-track {
    background: rgba(60, 60, 60, 0.3);
    border-radius: 10px;
}

.menu-items::-webkit-scrollbar-thumb {
    background: rgba(245, 220, 238, 0.4);
    border-radius: 10px;
}

.menu-items::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 220, 238, 0.6);
}

.menu-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 220, 238, 0.15);
    border-radius: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.menu-item:active {
    transform: scale(0.98);
}

.menu-item:hover {
    border-color: rgb(245, 220, 238);
    box-shadow: 0 4px 12px rgba(245, 220, 238, 0.15);
    transform: translateX(4px);
    background: rgba(245, 220, 238, 0.1);
}

.menu-item.selected {
    background-color: rgba(245, 220, 238, 0.15);
    border-color: rgb(245, 220, 238);
}

.menu-item-name {
    font-weight: 700;
    color: #fff;
    font-size: 18px;
    font-family: 'Patrick Hand SC', Arial, sans-serif;
    letter-spacing: 1px;
}

.menu-item-price {
    color: rgba(245, 220, 238, 0.6);
    font-weight: 500;
    font-size: 16px;
}

.menu-detail {
    background: linear-gradient(145deg, #222 0%, #2a2a2a 100%);
    border: 1px solid rgba(245, 220, 238, 0.15);
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    text-align: left;
    color: #ccc;
    overflow-y: auto;
    gap: 0;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.menu-detail::-webkit-scrollbar {
    width: 4px;
}

.menu-detail::-webkit-scrollbar-track {
    background: rgba(60, 60, 60, 0.3);
    border-radius: 10px;
}

.menu-detail::-webkit-scrollbar-thumb {
    background: rgba(245, 220, 238, 0.4);
    border-radius: 10px;
}

.menu-detail::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 220, 238, 0.6);
}

.menu-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-detail-image-container {
    position: relative;
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, rgba(245, 220, 238, 0.1) 0%, rgba(30, 30, 30, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.menu-detail-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-detail-placeholder {
    font-size: 56px;
    opacity: 0;
    position: absolute;
    transition: opacity 0.3s ease;
    filter: grayscale(20%);
}

.menu-detail-image-container.image-error .menu-detail-image {
    display: none;
}

.menu-detail-image-container.image-error .menu-detail-placeholder {
    opacity: 1;
}

.menu-detail-mobile-bar {
    display: none;
    position: absolute;
    top: 0px;
    left: 8px;
    z-index: 8;
    pointer-events: none;
}

.menu-detail-back {
    border: none;
    position: relative;
    z-index: 9;
    background: rgba(20, 20, 20, 0.72);
    backdrop-filter: blur(10px);
    color: rgb(245, 220, 238);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Patrick Hand SC', Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    pointer-events: auto;
}

.menu-detail-back span:first-child {
    font-size: 18px;
    line-height: 1;
}

.menu-detail-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.menu-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.menu-detail-title-group {
    flex: 1;
}

.menu-detail h3 {
    margin: 0 0 6px 0;
    color: #fff;
    font-size: clamp(18px, 1.5vw, 28px);
    line-height: 1.2;
    font-weight: 700;
    font-family: 'Patrick Hand SC', Arial, sans-serif;
    letter-spacing: 0.5px;
}

.menu-detail-description {
    margin: 0;
    color: #c4c4c4e5;
    font-size: 17px;
    line-height: 1.4;
    font-style: italic;
    font-weight: 300;
}

.menu-detail-calories {
    background: rgba(245, 220, 238, 0.2);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu-detail-calories::before {
    content: '🔥';
    font-size: 10px;
}

.menu-detail > p {
    margin: 0;
    color: #999;
    font-size: 17px;
    line-height: 1.4;
}

.menu-detail-section {
    width: 100%;
    font-size: 17px;
    line-height: 1.4;
}

.menu-detail-section strong {
    color: rgb(245, 220, 238);
    display: block;
    margin-bottom: 3px;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-detail-list li {
    padding: 2px 0;
    font-size: 16px;
}

.menu-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(245, 220, 238, 0.1);
}

.menu-detail-ingredients {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(245, 220, 238, 0.1);
}

.menu-detail-ingredients strong {
    color: rgb(245, 220, 238);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-family: 'Patrick Hand SC', Arial, sans-serif;
    background: rgba(245, 220, 238, 0.1);
    padding: 5px;
    padding-left: 10px;
    border-radius: 5px;
}

.menu-detail-ingredients p {
    padding: 5px;
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    color: #e8e8e8;
    font-weight: 400;
}

.menu-detail-prices-wrapper {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(245, 220, 238, 0.1);
}

.menu-detail-prices-wrapper strong {
    color: rgb(245, 220, 238);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-family: 'Patrick Hand SC', Arial, sans-serif;
    background: rgba(245, 220, 238, 0.1);
    padding: 5px;
    padding-left: 10px;
    border-radius: 5px;
}

.menu-prices {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.price-item {
    background: rgba(255, 255, 255, 0);
    padding: 5px;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-item-size {
    font-weight: 300;
    color: #fff;
    flex: 1;
}

.price-item-value {
    color: rgb(236, 178, 217);
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    margin-left: 8px;
}

.no-selection {
    color: #d0d0d0;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    font-weight: 600;
}

/* ========================== Responsive ========================== */
/* Règles adaptatives pour petits écrans (tablettes / mobiles) */
@media (max-width: 1020px) {
    nav {
        width: calc(100vw - 24px);
        padding: 10px 12px;
        margin-top: 12px;
        gap: 10px;
        flex-wrap: wrap;
    }

    #option {
        gap: 8px;
        flex-wrap: wrap;
    }

    .btn {
        font-size: 14px;
        padding: 8px 14px;
    }

    .menu-overlay {
        align-items: flex-end;
        padding: 0;
        backdrop-filter: blur(8px);
    }

    .menu-content {
        width: 100%;
        max-width: none;
        min-height: 100dvh;
        max-height: 100dvh;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    }

    .menu-content::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 52px;
        height: 5px;
        border-radius: 999px;
        background: rgba(245, 220, 238, 0.45);
        z-index: 7;
    }

    .menu-close {
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 32px;
        border-radius: 50%;
        background: rgba(245, 220, 238, 0.12);
    }

    .menu-header {
        padding: calc(24px + env(safe-area-inset-top)) 16px 12px;
    }

    .menu-header h2 {
        font-size: 24px;
        margin-bottom: 14px;
        padding-right: 48px;
    }

    .menu-search {
        font-size: 16px;
        margin-bottom: 12px;
        min-height: 46px;
    }

    .menu-categories {
        flex-wrap: wrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .menu-categories::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        white-space: nowrap;
        font-size: 15px;
        padding: 9px 14px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .menu-container {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 16px calc(18px + env(safe-area-inset-bottom));
        overflow-y: auto;
        min-height: 0;
    }

    .menu-detail {
        display: none;
        order: -1;
        min-height: 0;
        flex: 1 1 auto;
        max-height: calc(100dvh - 170px);
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        -webkit-overflow-scrolling: touch;
    }

    .menu-detail.mobile-open {
        display: flex;
    }

    .menu-detail-mobile-bar {
        display: flex;
        padding: 12px 12px 0;
    }

    .menu-items.mobile-hidden {
        display: none;
    }

    .menu-detail-image-container {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
        flex: 0 0 180px;
    }

    .menu-detail-body {
        padding: 16px;
        flex: 0 0 auto;
    }

    .menu-detail-back {
        min-height: 40px;
    }

    .menu-detail-header {
        flex-direction: column;
        gap: 10px;
    }

    .menu-detail-calories {
        align-self: flex-start;
    }

    .menu-detail-content {
        grid-template-columns: 1fr;
    }

    .menu-items {
        max-height: none;
        padding-right: 0;
        overflow: visible;
    }

    .menu-item {
        padding: 14px 12px;
        gap: 10px;
        border-radius: 14px;
    }

    .menu-item:hover {
        transform: none;
    }

    .menu-item.selected {
        box-shadow: 0 0 0 1px rgba(245, 220, 238, 0.35), 0 8px 18px rgba(245, 220, 238, 0.12);
    }

    .menu-item-name {
        font-size: 16px;
        line-height: 1.25;
    }

    .menu-item-price {
        font-size: 15px;
        white-space: nowrap;
    }

    .menu-detail-ingredients p,
    .price-item,
    .menu-detail-description {
        font-size: 15px;
    }

    .starting-content {
        padding: 28px 18px;
    }

    .starting-content h1 {
        font-size: 30px;
    }

    .starting-content p {
        width: 100%;
        font-size: 18px;
        margin-bottom: 22px;
    }

    .menu-overlay,
    .menu-overlay.active {
        padding: 10%;
    }

    .menu-content {
        border-radius: 20px;
        min-height: 100%;
        max-height: 100%;
    }

    .menu-detail-image-container {
        height: 150px;
        min-height: 150px;
        max-height: 150px;
        flex: 0 0 150px;
    }

    .price-item {
        flex-wrap: wrap;
        row-gap: 4px;
    }
}

/* Taille du sous-titre augmentée dans À propos pour une meilleure lisibilité */
.about-content h3 {
    font-size: 26px;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .about-content h3 {
        font-size: 20px;
    }
}
    
    #loading {
        left: 50%;
        bottom: 0px;
        transform: translateX(-50%);
        margin: 0;
        width: calc(100vw - 24px);
        border-radius: 0px;
        justify-content: center;
    }
