/* ============================================================
   commun.css — Pages publiques La Mare aux Canards
   Utilisé par : formulaire.html, menus_public.html
   (et à terme : suggestions.html, impression.html…)
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --bg:         #FDFAF4;
  --surface:    #FFFFFF;
  --text:       #1A1410;
  --muted:      #5A4A3A;
  --light:      #8A7A6A;
  --border:     #C8B89A;
  --accent:     #8B2E12;
  --gold:       #B8913A;
  --success:    #2D5016;
  --success-lt: #EAF0E3;
  --radius:     8px;
}

/* ── BODY ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', serif;
  padding: 3rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ── HEADER ── */
.header { text-align: center; margin-bottom: 2rem; }

.restaurant-nom {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1; margin-bottom: 4px;
}
.restaurant-sous {
  font-family: 'EB Garamond', serif;
  font-size: 14px; font-style: italic;
  color: var(--muted); letter-spacing: 0.05em;
}

/* ── SÉPARATEUR OR ── */
.separateur {
  display: flex; align-items: center; gap: 10px;
  margin: 1.25rem auto; width: fit-content;
}
.sep-line    { width: 80px; height: 1px; background: var(--gold); opacity: 0.6; }
.sep-diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* ── SÉPARATEUR SECTION ── */
.sep-section {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── OPTIONS (communes formulaire + menus_public) ── */
.options-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-style: italic; text-align: center;
  text-decoration: underline; text-underline-offset: 5px;
  margin-bottom: 4px;
}
.options-sous {
  text-align: center; font-size: 13px;
  font-style: italic; color: var(--light); margin-bottom: 1.25rem;
}
.option-row {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 8px;
  padding: 5px 0; border-bottom: 1px dotted var(--border);
}
.option-row:last-child { border-bottom: none; }
.gateau-bloc { }
.gateau-bloc-titre {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; font-weight: 500; font-style: italic;
  color: var(--muted); letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.option-nom   { font-size: 15px; font-weight: 500; flex-shrink: 0; }
.option-desc  { font-size: 13px; font-style: italic; color: var(--muted); flex: 1; padding: 0 8px; }
.option-prix  { font-size: 15px; font-weight: 500; white-space: nowrap; flex-shrink: 0; }

/* ── GAMMES (bulles formules) ── */
.gammes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gamme-option { position: relative; }
.gamme-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.gamme-label {
  display: block; padding: 14px 16px; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: all 0.15s; text-align: center;
}
.gamme-label:hover { border-color: var(--gold); background: #FDF8EE; }
.gamme-option input:checked + .gamme-label { border-color: var(--accent); background: #FDF3EE; }
.gamme-nom     { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: var(--accent); display: block; margin-bottom: 2px; }
.gamme-desc    { font-size: 13px; font-style: italic; color: var(--muted); display: block; line-height: 1.4; }
.gamme-semaine { font-size: 11px; color: var(--light); display: block; margin-top: 4px; }
.gamme-detail  { font-size: 12px; color: var(--accent); cursor: pointer; text-decoration: underline; display: block; margin-top: 4px; }
.gamme-detail:hover { color: #6B1F0A; }

@media (max-width: 500px) {
  .gammes-grid { grid-template-columns: 1fr; }
}

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  max-width: 480px; width: 100%;
  max-height: 80vh; overflow-y: auto; position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  font-size: 20px; cursor: pointer; color: var(--muted);
  background: none; border: none; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-titre  { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; color: var(--accent); margin-bottom: 4px; }
.modal-sous   { font-size: 13px; font-style: italic; color: var(--muted); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.modal-section { margin-bottom: 14px; }
.modal-section-titre { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.modal-choix  { font-size: 14px; font-style: italic; color: var(--muted); margin-bottom: 4px; }
.modal-item   { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; padding: 5px 0; border-bottom: 1px dotted var(--border); color: var(--text); }
.modal-item:last-child { border-bottom: none; }
.modal-vide   { font-size: 14px; font-style: italic; color: var(--muted); }


/* ── LOADING / ERREUR GÉNÉRIQUE ── */
.loading {
  text-align: center; padding: 3rem;
  font-style: italic; color: var(--muted); font-size: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 500px) {
  body { padding: 2rem 1rem; }
  .restaurant-nom { font-size: 28px; }
  .option-desc { display: none; }
}
