:root {
  color-scheme: light;
  --fond: #fbf5ec;
  --sable: #f3e6d6;
  --encre: #3a271e;
  --doux: #6d5548;
  --terre: #8a543a;
  --terre-fonce: #6f412b;
  --ligne: #e0cfbb;
  --blanc: #fffdf9;
  --erreur: #a12b1f;
  --titre: "Cormorant Garamond", Georgia, serif;
  --texte: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 17px/1.55 var(--texte); }
img { display: block; width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 48px); }
p { margin: 0; }
.prix, .recap .total dd { font-variant-numeric: lining-nums; }

.entete {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  background: var(--fond);
  border-bottom: 1px solid var(--ligne);
}
.marque { display: block; }
.marque img { width: auto; height: 34px; }
.entete-lien { color: var(--terre-fonce); font-weight: 500; text-underline-offset: 4px; padding: 8px 0; }

.bouton {
  display: inline-block; min-height: 50px; padding: 12px 26px;
  border: 0; border-radius: 999px;
  background: var(--terre); color: #fffaf3;
  font: 500 17px/26px var(--texte); text-decoration: none; text-align: center; cursor: pointer;
  transition: background .15s;
}
.bouton:hover { background: var(--terre-fonce); }
.bouton:disabled { opacity: .6; cursor: wait; }
.bouton.plein { width: 100%; }
:focus-visible { outline: 3px solid var(--terre-fonce); outline-offset: 2px; }

.hero { background: var(--sable); }
.hero { display: flex; flex-direction: column-reverse; }
.hero-texte { padding: 26px 20px 32px; }
.hero h1 { font-size: clamp(38px, 4.4vw, 58px); }
.hero-note { margin-top: 8px; font-size: 15px; color: var(--doux); }
.hero-image { aspect-ratio: 16 / 8; object-fit: cover; object-position: 85% 15%; }
.offres-titre { font-size: 26px; margin: 22px 0 10px; }
.offres { display: grid; gap: 10px; }
.offre {
  display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px 12px;
  padding: 10px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 8px;
}
.offre img { width: 76px; height: 76px; border-radius: 6px; object-fit: cover; }
.offre h3 { font: 500 16px/1.25 var(--texte); }
.offre-prix { margin-top: 3px; font: 600 26px/1.1 var(--titre); font-variant-numeric: lining-nums; }
.offre-prix span { font: 400 15px var(--texte); color: var(--doux); }
.offre .petit { grid-column: 1 / -1; min-height: 44px; padding: 8px 18px; font-size: 16px; line-height: 28px; }
.offre.vedette { border-color: var(--terre); box-shadow: inset 0 0 0 1px var(--terre); }
.pastille { display: inline-block; margin-bottom: 4px; padding: 1px 9px; border-radius: 999px; background: var(--sable); color: var(--terre-fonce); font-size: 13px; font-weight: 500; }

.produits, .atouts, .commande { padding: 56px 20px; max-width: 1120px; margin: 0 auto; }
.produits h2 { margin-bottom: 28px; }
.grille-produits { display: grid; gap: 32px; }
.produit { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.produit-texte { padding: 22px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.produit h3 { font-size: 29px; }
.produit-texte > p:first-of-type { margin: 10px 0 14px; color: var(--doux); }
.prix { font: 600 34px/1 var(--titre); margin: auto 0 18px !important; }
.prix span { font: 400 17px var(--texte); color: var(--doux); }

.atouts { display: grid; gap: 28px; padding-top: 0; }
.atouts img { border-radius: 8px; }
.atouts dl { margin: 20px 0 0; }
.atouts dt { font: 600 25px/1.2 var(--titre); margin-top: 20px; }
.atouts dd { margin: 4px 0 0; color: var(--doux); }

.bandeau img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 0 50%; }

.commande { max-width: 620px; }
.commande-intro { margin: 10px 0 26px; color: var(--doux); }
.choix { margin: 0 0 24px; padding: 0; border: 0; }
.choix legend { font: 600 25px/1.2 var(--titre); padding: 0; margin-bottom: 10px; }
.ligne-produit {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px; margin-bottom: 10px;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: 8px;
}
.ligne-produit.actif { border-color: var(--terre); box-shadow: inset 0 0 0 1px var(--terre); }
.ligne-produit strong { display: block; font-weight: 500; line-height: 1.3; }
.ligne-produit span { color: var(--doux); font-size: 15px; }
.compteur { display: flex; align-items: center; flex: none; }
.compteur button {
  width: 44px; height: 44px; border: 1px solid var(--terre); border-radius: 50%;
  background: transparent; color: var(--terre-fonce); font: 500 22px/1 var(--texte); cursor: pointer;
}
.compteur output { width: 32px; text-align: center; font-weight: 500; }

.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.champs label { font-weight: 500; font-size: 15px; min-width: 0; }
.champs .large { grid-column: 1 / -1; }
.champs input {
  display: block; width: 100%; height: 50px; margin-top: 5px; padding: 0 14px;
  border: 1px solid #b7a28d; border-radius: 6px; background: var(--blanc);
  color: var(--encre); font: 400 17px var(--texte);
}
.champs input[aria-invalid="true"] { border-color: var(--erreur); box-shadow: inset 0 0 0 1px var(--erreur); }

.recap { margin: 26px 0 18px; padding: 0; }
.recap div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.recap dd { margin: 0; white-space: nowrap; }
.recap .total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--ligne); font-weight: 500; align-items: baseline; }
.recap .total dd { font: 600 30px/1 var(--titre); }
.erreur { color: var(--erreur); margin-bottom: 14px; font-weight: 500; }

.merci { padding: 28px 22px; background: var(--sable); border-radius: 8px; }
.merci:focus { outline: none; }
.merci h3 { font-size: 32px; margin-bottom: 12px; }
.merci p { margin-top: 6px; }

.pied { padding: 26px 20px; text-align: center; font-size: 15px; color: var(--doux); border-top: 1px solid var(--ligne); }

@media (min-width: 620px) {
  .grille-produits { grid-template-columns: 1fr 1fr; }
  .bandeau img { aspect-ratio: auto; }
}

/* La photo passe à droite et les offres à gauche dès que la largeur le permet. */
@media (min-width: 760px) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-texte { padding: 32px 28px 36px max(24px, calc((100vw - 1120px) / 2 + 20px)); }
  .hero-image { height: 100%; aspect-ratio: auto; min-height: 0; object-position: 88% 20%; }
}

@media (min-width: 900px) {
  .entete { padding: 14px 40px; }
  .grille-produits { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .offre { grid-template-columns: 76px 1fr auto; }
  .offre .petit { grid-column: auto; }
  .atouts { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}
