/* ====== Base ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lora', serif;
}

body {
  background-color: #9B1C2F;
  color: #5C5C5C;
  padding: 0 10px;
  overflow-x: hidden;
}

.cadre-total {
  background-color: #D9CBA7;
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ====== Header & Nav ====== */

header {
  background-color: #9B1C2F;
  padding: 20px 0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: #F1E6D6;
  text-decoration: none;
  font-size: 1.2em;
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  margin: 10px 20px;
  transition: all 0.3s ease;
}

nav a.active,
nav a:hover {
  color: #FFF;
  text-decoration: underline;
}

/* ====== Main Sections ====== */
main {
  margin-bottom: 30px;
}

main h1 {
  color: #9B1C2F;
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.1em;
  font-style: italic;
  text-align: center;
  margin-bottom: 20px;
  color: #5C5C5C;
}

/* ====== Info Fête ====== */
.info-fete {
  background-color: #F1E6D6;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
  border: 3px solid #f5f5f5;
}

.info-fete p {
  font-size: 1em;
  margin: 8px 0;
  color: #9B1C2F;
}

.info-fete strong {
  color: #9B1C2F;
}

/* ====== Message vide ====== */
.no-menu {
  background-color: #F1E6D6;
  padding: 40px 20px;
  border-radius: 8px;
  text-align: center;
  margin: 30px auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 3px solid #f5f5f5;
}

.no-menu p {
  font-size: 1.2em;
  color: #9B1C2F;
  margin: 10px 0;
}

/* ====== Section Menu (un seul cadre) ====== */
.menu-section {
  background-color: #F1E6D6;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 30px;
  border: 3px solid #f5f5f5;
}

/* ====== Catégories (Entrées, Plats, Desserts) ====== */
.categorie-block {
  margin-bottom: 30px;
}

.categorie-block:last-child {
  margin-bottom: 0;
}

.categorie-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5em;
  color: #9B1C2F;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(155, 28, 47, 0.2);
}

/* ====== Plats ====== */
.plat {
  background-color: #FFF;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
  padding: 15px;
  color: #9B1C2F;
  text-align: left;
  font-family: 'Lora', serif;
  border: 2px solid #f5f5f5;
  font-size: 1em;
  line-height: 1.3;
  transition: all 0.3s ease;
}

.plat:hover {
  box-shadow: 0 4px 8px rgba(155, 28, 47, 0.15);
  transform: translateX(3px);
}

/* Conteneur description plat : flex avec séparation nom & bloc menu */
.plat-description {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 1em;
  font-weight: bold;
  color: #9B1C2F;
  flex-wrap: nowrap;
  gap: 15px;
}

/* Nom du plat - prend tout l'espace dispo */
.plat-nom {
  flex: 1 1 auto;
  word-wrap: break-word;
  white-space: normal;
}

/* Menu déroulant à droite */
.plat-prix-menu {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  white-space: nowrap;
}

/* Menu déroulant */
.menu-deroulant {
  font-size: 0.95em;
  padding: 5px;
  border: 1px solid #9B1C2F;
  background-color: #FFF;
  border-radius: 5px;
  max-width: 120px;
  width: auto;
  cursor: pointer;
}

.menu-deroulant option {
  padding: 5px;
}

/* Allergènes */
.infos-allergenes {
  margin-top: 10px;
  padding: 10px;
  background-color: #fff3cd;
  border-radius: 5px;
  font-size: 0.9em;
  color: #856404;
  text-align: left;
  border-left: 3px solid #ffc107;
}

/* ====== Sold Out Styling ====== */
.sold-out {
  position: relative;
  color: #999;
  text-decoration: none;
}

.sold-out::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background-color: #9B1C2F;
  transform: translateY(-50%);
  pointer-events: none;
}

.sold-out-label {
  color: #ff0000;
  font-weight: bold;
  font-size: 0.9em;
  margin-left: 0.5em;
  white-space: nowrap;
  flex-shrink: 0;
}

.stock-alert {
  margin-top: 8px;
  font-size: 0.9em;
  font-weight: bold;
}

/* ====== Commander Section ====== */
.commander-section {
  text-align: center;
  margin: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-commander {
  display: inline-block;
  background-color: #9B1C2F;
  color: #F1E6D6;
  font-size: 1.2em;
  font-family: 'Playfair Display', serif;
  padding: 12px 30px;
  border: 2px solid #9B1C2F;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 300px;
  width: 100%;
  cursor: pointer;
}

.btn-commander:hover {
  background-color: #F1E6D6;
  color: #9B1C2F;
  transform: scale(1.1);
  text-decoration: underline;
}

/* ====== Footer ====== */
footer {
  background-color: #9B1C2F;
  color: #F1E6D6;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9em;
  border-radius: 10px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.separateur-ou {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0;
    color: #9B1C2F;
    font-weight: bold;
    font-size: 1.05em;
    letter-spacing: 1px;
}

.separateur-ou::before,
.separateur-ou::after {
    content: "";
    flex: 1;
    border-top: 2px solid #D9CBA7;
    margin: 0 12px;
}

/* ====== Responsive ====== */

/* Jusqu'à 1024px */
@media (max-width: 1024px) {
  main h1 {
    font-size: 1.8em;
  }

  .categorie-block h2 {
    font-size: 1.4em;
  }

  .plat {
    padding: 12px;
  }

  .commander-section {
    margin: 30px auto;
    width: 100%;
  }

  .btn-commander {
    max-width: 300px;
    width: 100%;
  }

  footer {
    padding: 15px 0;
  }

  footer p {
    font-size: 0.85em;
  }
  /* SOLD OUT : désactive fausse barre, utilise text-decoration */
.sold-out {
  color: #999;
  text-decoration: line-through;
  text-decoration-color: #9B1C2F;
  text-decoration-thickness: 2px;
}

  .sold-out::after {
    display: none !important;
  }
}

/* Jusqu'à 768px */
@media (max-width: 768px) {

  main h1 {
    font-size: 1.6em;
  }

  .subtitle {
    font-size: 1em;
  }

  .categorie-block h2 {
    font-size: 1.3em;
  }

  .plat {
    font-size: 1em;
    padding: 12px;
  }

  .plat-description {
    font-size: 1em;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
  }

  .commander-section {
    margin: 25px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .btn-commander {
    font-size: 1.1em;
    padding: 10px 25px;
    max-width: 280px;
    width: 100%;
    margin-top: 15px;
  }

  .plat-nom {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .sold-out-label {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .menu-deroulant {
    font-size: 0.85em;
    padding: 4px;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}

/* Jusqu'à 480px */
@media (max-width: 480px) {
  .plat-description {
    flex-direction: column;
    align-items: flex-start;
  }

  .plat-prix-menu {
    margin-top: 8px;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .plat-description .menu-deroulant {
    margin-left: 0;
    margin-top: 0;
    width: auto;
  }

  .menu-deroulant {
    width: 100%;
  }

  .commander-section {
    flex-direction: column;
  }

  .btn-commander {
    font-size: 1.2em;
    padding: 12px 30px;
    width: 100%;
  }

  .info-fete p {
    font-size: 0.95em;
  }
}