/* =============================================================
   NAKERION — Information allergènes (feuille partagée)
   Chargée par index.html (carte de la salle), /commander et /allergenes.
   Les trois surfaces doivent avoir exactement le même rendu : une pastille
   qui change d'aspect d'une page à l'autre, c'est une information de
   sécurité qui perd sa lisibilité.
   ============================================================= */
/* ---------------- Information allergènes ----------------
   Trois états visuels, jamais deux :
     .alg-c    → allergène déclaré par le restaurant
     .alg-non  → NON RENSEIGNÉ : le client doit demander. Volontairement
                 visible, pas discret : un plat muet serait lu comme « sans
                 allergène », ce qui est exactement l'erreur à éviter.
     .alg-aucun→ le restaurant a déclaré « aucun allergène ». */

.alg-bloc {
  background: #FFF8F3;
  border: 1px solid #F0D6BE;
  border-left: 4px solid var(--orange-btn);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 26px;
}
.alg-bloc h3 {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: #A5400C; margin: 0 0 9px;
}
.alg-bloc p { font-size: 13.5px; line-height: 1.6; color: #4A3F52; margin: 0 0 8px; }
.alg-bloc p:last-child { margin-bottom: 0; }
.alg-bloc .alg-trace { color: #5B5063; font-style: italic; }
.alg-bloc a { color: #A5400C; }

.alg { display: block; margin-top: 5px; font-size: 12px; line-height: 1.7; }
.alg-t { color: var(--doux); letter-spacing: .02em; }

.alg-c {
  display: inline-block;
  background: #F7ECE0;
  border: 1px solid #E3CDB6;
  color: #8A4A12;
  border-radius: 999px;
  padding: 1px 9px;
  margin: 0 4px 3px 0;
  font-size: 11.5px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.alg-non a {
  color: #A5400C;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.alg-non::before { content: '⚠︎ '; }
.alg-aucun { color: var(--ok); }

.alg-rappel {
  background: #FFF8F3;
  border: 1px solid #F0D6BE;
  border-left: 4px solid var(--orange-btn);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4A3F52;
}
.alg-rappel strong { color: #A5400C; }

@media (prefers-reduced-motion: no-preference) { .alg-c { transition: none; } }


/* ---------------- Page /allergenes ---------------- */

.alg-table { width: 100%; border-collapse: collapse; margin: 22px 0 34px; font-size: 14.5px; }
.alg-table th, .alg-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.alg-table thead th {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--doux);
  border-bottom: 2px solid var(--ligne);
}
.alg-table tr.alg-cat th {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  color: var(--violet-fonce); background: #FBF6EF;
  padding-top: 16px; letter-spacing: 0; text-transform: none;
}
.alg-table td em { display: block; font-size: 12.5px; color: var(--doux); font-style: italic; margin-top: 2px; }
.alg-table td:last-child { width: 46%; }
.alg-non-t { color: #A5400C; font-size: 13px; }
.alg-non-t::before { content: '⚠︎ '; }

.alg-liste { margin: 14px 0 30px; padding-left: 22px; }
.alg-liste li { margin-bottom: 7px; line-height: 1.6; font-size: 14.5px; }

@media (max-width: 620px) {
  .alg-table { font-size: 13.5px; }
  .alg-table th, .alg-table td { padding: 8px 6px; }
  .alg-table td:last-child { width: 42%; }
}


/* ---------------- Carte en anglais (/menu-en) ---------------- */

.menu-nav { font-size: 13.5px; line-height: 2.1; margin: 0 0 24px; }
.menu-nav a { color: var(--violet-fonce); text-decoration: none; border-bottom: 1px solid var(--ligne); }
.menu-nav a:hover { border-bottom-color: var(--orange-txt); color: var(--orange-txt); }
.menu-nav span { color: var(--doux); margin: 0 9px; }

.alg-table.menu-en td.px { white-space: nowrap; width: 20%; text-align: right; }
.alg-table.menu-en td:last-child { width: 38%; }
.alg-table.menu-en .px-salle { text-decoration: line-through; color: var(--doux); font-size: 13px; margin-right: 4px; }
.alg-table.menu-en tbody td { padding: 10px; }

.primaute {
  border-left: 3px solid var(--ligne);
  padding-left: 14px;
  font-style: italic;
  color: var(--doux);
  margin-top: 30px;
}

@media (max-width: 620px) {
  .alg-table.menu-en td.px { width: 25%; font-size: 13px; }
  .alg-table.menu-en td:last-child { width: 34%; }
}

/* Liens de bas de carte : la version anglaise et la fiche allergènes.
   Placés APRÈS la carte, pas sous les onglets : sous les onglets ils
   entraient en collision avec la rangée de pastilles et donnaient
   l'impression d'un septième onglet mal aligné. */
.carte-liens {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin: 34px 0 22px;
  padding-top: 26px;
  border-top: 1px solid var(--ligne);
}
.carte-liens a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--violet);
  border-radius: 999px;
  color: var(--violet);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: .03em;
  transition: background .15s, color .15s;
}
.carte-liens a:hover, .carte-liens a:focus-visible {
  background: var(--violet); color: #fff;
}


/* ---------------- Sélecteur de langue de la carte ----------------
   Placé sur la ligne du titre de section, avant les onglets et avant le
   premier prix. Deux états côte à côte : c'est la forme que tout le monde
   reconnaît comme un choix de langue. Une simple ligne de liens sous les
   onglets se lisait comme un onglet supplémentaire mal aligné. */

.carte-tete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.carte-tete > div { flex: 1 1 auto; }
.carte-tete h2 { margin-bottom: 0; }

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--violet);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: .04em;
  flex: 0 0 auto;
  background: #fff;
}
.lang-switch > * {
  padding: 7px 17px;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
}
/* Un filet entre les deux états : sans lui, les deux libellés se lisent
   comme un seul bloc de texte et non comme un choix. */
.lang-switch > * + * { border-left: 1px solid var(--violet); }
.lang-switch .on + *,
.lang-switch a.on-a + * { border-left-color: transparent; }
.lang-switch .on { background: var(--violet); color: #fff; font-weight: 500; }
.lang-switch a { color: var(--violet); transition: background .15s, color .15s; }
.lang-switch a:hover, .lang-switch a:focus-visible { background: #F3E9F6; }

@media (max-width: 700px) {
  .carte-tete { align-items: flex-start; }
  .lang-switch { margin: 10px 0 4px; font-size: 12.5px; }
  .lang-switch > * { padding: 6px 14px; }
}

/* Sur /menu-en le sélecteur ouvre la page : il ne partage pas sa ligne
   avec un titre, on lui rend sa marge basse. */
.texte > .lang-switch { margin: 0 0 20px; }

/* Bloc « salle ou emporter » sur /menu-en. Volontairement en violet et non
   en orange : ce n'est pas un avertissement de sécurité comme le bloc
   allergènes, c'est une information tarifaire. Deux couleurs, deux natures. */
.note-emporter {
  background: #FAF6FB;
  border-color: #E4D3E9;
  border-left-color: var(--violet);
}
.note-emporter h3 { color: var(--violet-fonce); }
.note-emporter a { color: var(--violet-fonce); font-weight: 500; }
