/* noel.chefs-dor.fr — la boutique de Noël.
   Une seule feuille pour la page fermée et pour la boutique : elles partagent
   le bandeau, la carte et les boutons, et deux fichiers auraient divergé. */

:root {
  --bleu-marine: #1a2a4a;
  --or: #c9a84c;
  --rouge-noel: #9b2226;
  --vert-sapin: #2d5941;
  --texte: #23262b;
  --texte-leger: #6b7280;
  --bordure: #e3e1dc;
  --blanc: #ffffff;
  --fond: #f7f5f0;
  --rayon: 16px;
  --ombre: 0 2px 10px rgba(26, 42, 74, 0.07);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: 'Google Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%;
}

/* ====================================================== La page fermée ==== */
.nl-ferme { display: flex; align-items: center; justify-content: center;
            min-height: 100vh; padding: 24px; }
.nl-ferme-carte {
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 44px 32px; max-width: 460px; width: 100%; text-align: center;
}
.nl-logo { max-width: 190px; height: auto; margin-bottom: 20px; }
.nl-sapin { font-size: 46px; margin: 0 0 8px; line-height: 1; }
.nl-ferme-carte h1 { font-size: 24px; color: var(--bleu-marine); margin: 0 0 12px; }
.nl-message { font-size: 17px; color: var(--texte-leger); margin: 0 0 28px; }
.nl-bouton {
  display: inline-block; background: var(--bleu-marine); color: var(--blanc);
  text-decoration: none; font-weight: 700; padding: 14px 26px; border-radius: 999px;
}

/* ========================================================== La boutique === */
.nl-entete {
  background: var(--bleu-marine); color: var(--blanc);
  padding: 22px 20px; text-align: center;
}
/* Le logo du bandeau est CARRE (fond bleu) : on le borne en hauteur,
   sinon `max-width` seul l'étirerait sur toute la largeur. */
.nl-entete img { height: 62px; width: auto; }
.nl-entete h1 { font-size: 21px; margin: 12px 0 4px; }
.nl-entete p { margin: 0; opacity: 0.8; font-size: 14px; }

.nl-corps { max-width: 940px; margin: 0 auto; padding: 24px 16px 140px; }
.nl-section { background: var(--blanc); border-radius: var(--rayon);
              box-shadow: var(--ombre); padding: 22px 20px; margin-bottom: 18px; }
.nl-section h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--texte-leger); margin: 0 0 16px;
}
.nl-etape { display: inline-flex; align-items: center; justify-content: center;
            width: 22px; height: 22px; border-radius: 50%; background: var(--or);
            color: var(--bleu-marine); font-size: 12px; margin-right: 8px; }

/* Les cartes produit */
.nl-produits { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.nl-produit { border: 1px solid var(--bordure); border-radius: var(--rayon);
              overflow: hidden; display: flex; flex-direction: column; }
.nl-produit img { width: 100%; height: 150px; object-fit: cover; display: block; }
.nl-produit-vide { width: 100%; height: 150px; background: #f2f0ea; display: flex;
                   align-items: center; justify-content: center; font-size: 38px; }
.nl-produit-corps { padding: 14px; display: flex; flex-direction: column;
                    gap: 6px; flex: 1; }
.nl-produit-titre { font-weight: 700; color: var(--bleu-marine); }
.nl-produit-desc { font-size: 14px; color: var(--texte-leger); flex: 1; }
.nl-produit-prix { font-weight: 700; font-size: 18px; color: var(--rouge-noel); }
.nl-indispo { font-size: 13px; color: var(--texte-leger); font-style: italic; }

.nl-qte { display: flex; align-items: center; gap: 10px; }
.nl-qte button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bordure);
  background: var(--blanc); font-size: 20px; color: var(--bleu-marine);
  cursor: pointer; line-height: 1; flex: none;
}
.nl-qte button:disabled { opacity: 0.35; cursor: default; }
.nl-qte output { min-width: 28px; text-align: center; font-weight: 700; }

/* Choix : boutique, date, heure */
.nl-choix { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-choix button {
  padding: 12px 18px; border-radius: 999px; border: 2px solid var(--bordure);
  background: var(--blanc); font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--bleu-marine); cursor: pointer;
}
.nl-choix button[aria-pressed="true"] { border-color: var(--or); background: #fdfaf2; }
.nl-limite { display: block; font-weight: 400; font-size: 12px; color: var(--texte-leger); }

/* Le formulaire client */
.nl-champs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.nl-champ { display: flex; flex-direction: column; gap: 6px; }
.nl-champ span { font-weight: 700; font-size: 14px; color: var(--bleu-marine); }
.nl-champ input {
  font-family: inherit; font-size: 16px; padding: 13px 14px;
  border: 2px solid var(--bordure); border-radius: 10px; background: var(--blanc);
  color: var(--texte);
}
.nl-champ input:focus { outline: none; border-color: var(--or); }

/* La barre du panier, collée en bas */
.nl-panier {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--blanc);
  border-top: 1px solid var(--bordure); box-shadow: 0 -2px 14px rgba(26,42,74,0.10);
  padding: 14px 16px; z-index: 10;
}
.nl-panier-corps { max-width: 940px; margin: 0 auto; display: flex;
                   align-items: center; gap: 16px; flex-wrap: wrap; }
.nl-panier-resume { flex: 1 1 200px; font-size: 14px; color: var(--texte-leger); }
.nl-panier-total { font-size: 22px; font-weight: 700; color: var(--bleu-marine); }
.nl-payer {
  background: var(--vert-sapin); color: var(--blanc); border: 0; border-radius: 999px;
  font-family: inherit; font-size: 17px; font-weight: 700; padding: 15px 30px;
  cursor: pointer;
}
.nl-payer:disabled { background: #b8bdc4; cursor: default; }

.nl-erreurs { background: #fdecea; border-radius: 12px; padding: 14px 18px;
              color: #9b1c1c; margin: 0 0 16px; }
.nl-erreurs ul { margin: 6px 0 0; padding-left: 20px; }
.nl-etat { color: var(--texte-leger); font-style: italic; }

@media (max-width: 600px) {
  .nl-corps { padding: 16px 12px 150px; }
  .nl-panier-corps { justify-content: space-between; }
  .nl-payer { width: 100%; }
}
