/* === Animations d’ouverture/fermeture === */
@keyframes modalFadeIn {
  0%   { opacity: 0; transform: scale(0.94);}
  60%  { opacity: 1; transform: scale(1.04);}
  100% { opacity: 1; transform: scale(1);}
}
@keyframes modalFadeOut {
  0%   { opacity: 1; transform: scale(1);}
  100% { opacity: 0; transform: scale(0.98);}
}

#christmas-modal.animated-in {
  animation: modalFadeIn 0.7s cubic-bezier(.5,1.5,.45,.97) forwards;
}
#christmas-modal.animated-out {
  animation: modalFadeOut 0.45s cubic-bezier(.5,1,.5,.99) forwards;
}

/* === Modal principal === */
#christmas-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,0,0,0.85);
  backdrop-filter: blur(4px);
}

/* === Structure interne (split) === */
.modal-flex {
  display: flex;
  flex-direction: row;
  width: 720px;
  max-width: 95vw;
  height: 70vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(197,168,106,0.4);
  overflow: hidden;
}

/* === Côté image === */
.modal-images-bg {
  width: 60%;
  height: 100%;
  background: url('https://chateauberne-vin.com/cdn/shop/articles/Degustation_des_vins_et_sollicitation_des_sens.jpg?v=1622120927')
              center center/cover no-repeat;
}

/* === Côté contenu === */
.modal-content {
  width: 40%;
  height: 100%;
  padding: 40px 24px;
  color: #230000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  text-align: center;
}

.modal-content h2 {
  margin: 0 0 14px 0;
  font-size: 1.5em;
  color: #ae2d1c;
  font-weight: bold;
}
.modal-content p {
  margin: 0 0 18px 0;
  font-size: 1.22em;
  color: #42201a;
  line-height: 1.4;
  max-width: 95%;
}
.modal-btn {
  margin-top: 10px;
  display: inline-block;
  background: #fcb900;
  color: #222;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(246,168,33,0.2);
  transition: background 0.25s;
}
.modal-btn:hover {
  background: #edb300;
  color: #fff;
}

/* === Tablette : ajustement fluide === */
@media (max-width: 900px) {
  .modal-flex {
    width: 95vw;
    height: auto;
    flex-direction: column;
    border-radius: 14px;
  }
  .modal-images-bg {
    width: 100%;
    height: 40vh;
    background-size: cover;
  }
  .modal-content {
    width: 100%;
    padding: 26px 8vw;
    text-align: center;
  }
  .modal-content h2 { font-size: 1.3em; }
  .modal-content p { font-size: 0.95em; }
}

/* === Mobile : affichage vertical optimal === */
@media (max-width: 600px) {
  #christmas-modal {
    height: 100vh;
  }
  .modal-flex {
    width: 100%;
    height: 100vh;
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
  }
  .modal-images-bg {
    width: 100%;
    height: 45vh;
    background-position: center center;
    background-size: cover;
    border-bottom: 2px solid rgba(197,168,106,0.3);
  }
  .modal-content {
    width: 50%;
    height: 55vh;
    padding: 22px 8vw;
    background: #fff;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .modal-content h2 {
    font-size: 2.40em;
    margin-bottom: 10px;
  }
  .modal-content p {
    font-size: 1.15em;
    line-height: 1.5;
  }
  .modal-btn {
    margin-top: 10px;
    font-size: 0.93em;
    padding: 10px 16px;
    border-radius: 6px;
  }
}
@media (max-width: 600px) {
  .modal-images-bg {
    display: none !important;
  }
  .modal-content {
    width: 100% !important;
    height: 40vh;
    background: #fff;
    min-height: 100px;
    justify-content: center;
    border-radius: 12px;
    box-shadow: none;
    padding: 28px 7vw;
  }
  .modal-flex {
    width: 100%;
    height: 40vh;
    min-height: 220px;
    border-radius:12px;
    box-shadow: none;
    flex-direction: column;
    background: #333;
  }
}

body, html {
    margin: 0; padding: 0; font-family: Arial, sans-serif;
    background-color: #710f0f; color: #eeeeee;
}
#logo {
    display: block; max-width: 300px; margin: 14px auto 6px auto; width: 100%; height: auto;
}
#lang-switcher {
    display: flex; justify-content: center; margin: 5px 0 10px 0; gap: 12px;
}
#lang-switcher a {
    display: inline-flex; width: 36px; height: 24.2px; border: 2px solid transparent;
    border-radius: 8px; cursor: pointer; transition: border-color 0.3s; align-items: center;
    justify-content: center; text-decoration: none; color: inherit; transform: scale(1.1);
    box-sizing: border-box; overflow: hidden;
}
#lang-switcher a.active, #lang-switcher a:hover {
    border-color: red;
}
.fi {
    width: 35px; height: 33px; border-radius: 6px;
}


.menu-button-filter {
    display: flex; flex-wrap: wrap; justify-content: center; list-style: none;
    padding: 0; margin: 0 0 15px 0;
}
.menu-button-filter li {
    cursor: pointer; margin: 5px 8px; padding: 6px 14px; background: #222;
    border-radius: 5px; font-weight: 400; font-size: 14px; display: flex;
    align-items: center; color: #eee; transition: background-color 0.3s;
}
.menu-button-filter li.tagsort-active,
.menu-button-filter li:hover {
    background: #fcb900; color: #222;
}
.menu-button-filter i {
    margin-right: 6px; font-size: 16px; display: none;
}
.menu-items-list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
    padding: 0 10px 30px 10px;
}
.menu-item {
    background: #222; border-radius: 6px; padding: 12px 15px; width: 96%;
    box-sizing: border-box; color: #eee; margin-bottom: 10px; cursor: default;
    transition: box-shadow 0.3s; overflow: visible !important; height: auto !important;
}
.menu-item:hover {
    box-shadow: 0 0 8px #fcb900;
}
.menu-item .title-price {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.menu-item .title {
    font-size: 24px; font-weight: bold; font-family: 'Cabin', sans-serif; margin: 0;
}
.menu-item .price {
    font-size: 16px; font-weight: 400; color: #f1efef; white-space: nowrap;
}
.menu-item .desc p {
    margin: 0; font-size: 18px; line-height: 1.2; color: #ccc;
}
@media (min-width: 576px) {
    .menu-item {
        width: 48%;
    }
}
@media (min-width: 992px) {
    .menu-item {
        width: 30%;
    }
}
.menu-button-filter li i {
    display: none;
}

.allergenes-text {
    position: relative;
    display: none;
    margin-top: 10px;
    background: #4caf5026;
    color: #222222;
    font-size: 16px;
    border-radius: 6px;
    padding: 5px 10px;
    border-left: 5px solid #4caf50;
}

.allergenes-text.visible {
    display: block;
}
#toggle-allergenes-fab {
    position: fixed; right: 1%; bottom: 15px; transform: translateX(-50%);
    z-index: 1000; width: 60px; height: 60px; border-radius: 50%; background: #fcb900;
    color: #222; border: none; box-shadow: 0 4px 16px rgba(0,0,0,0.17); font-size: 28px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#toggle-allergenes-fab.active {
    background: #edb300; color: #fff;
}
#toggle-allergenes-fab:focus { outline: 3px solid #4d90fe; }
@media (max-width: 575px) {
    #toggle-allergenes-fab { width: 54px; height: 54px; font-size:22px; }
}

@media (min-width: 992px) {
  .menu-items-list {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}


.menu-item.menu-subtitle {
    width: 100%;
}