/* Modèle de site vitrine — couleurs fournies par la fiche du client */
:root {
  --principale: #be185d;
  --secondaire: #a16207;
  --fond: #ffffff;
  --fond-doux: #f6f5f2;
  --texte: #1c1b1f;
  --texte-doux: #5f5d66;
  --rayon: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ─── En-tête ─── */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}
.entete .conteneur { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo img { height: 40px; width: auto; border-radius: 10px; }
.menu { margin-left: auto; display: flex; gap: 22px; font-weight: 500; }
.menu a:hover { color: var(--principale); }
.bouton {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--principale); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--principale) 35%, transparent);
  transition: transform .15s;
}
.bouton:hover { transform: translateY(-2px); }
.bouton.clair { background: #fff; color: var(--principale); box-shadow: none; }
.burger, .menu-wa { display: none; }

/* Menu ☰ sur téléphone et petite tablette */
@media (max-width: 760px) {
  .logo { margin-right: auto; }
  .entete .bouton { padding: 10px 16px; font-size: 14px; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px;
    padding: 0 10px; border: 0; border-radius: 12px; background: var(--fond-doux); cursor: pointer; flex: none; }
  .burger span { display: block; height: 2.5px; border-radius: 2px; background: var(--texte); transition: transform .2s, opacity .2s; }
  .entete.ouvert .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .entete.ouvert .burger span:nth-child(2) { opacity: 0; }
  .entete.ouvert .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    margin: 0; padding: 8px 16px 18px; background: #fff; border-bottom: 1px solid #eee;
    box-shadow: 0 16px 30px rgba(0,0,0,.12); max-height: calc(100vh - 70px); overflow: auto; }
  .entete.ouvert .menu { display: flex; }
  .menu a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid #f0efec; }
  .menu a:last-of-type { border-bottom: 0; }
  .menu .menu-wa { display: flex; justify-content: center; margin-top: 12px; padding: 14px 22px; font-size: 16px;
    color: #fff; border: 0; }
  .menu .menu-wa:hover { color: #fff; }
}

/* ─── Accueil (grande image) ─── */
.hero {
  position: relative; min-height: min(78vh, 680px); display: flex; align-items: center;
  color: #fff; background: #111 center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,.75), rgba(0,0,0,.25));
}
.hero .conteneur { position: relative; padding: 80px 0; }
.hero .accroche {
  display: inline-block; background: var(--secondaire); color: #fff;
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.1; max-width: 720px; }
.hero p { font-size: 19px; max-width: 560px; margin: 18px 0 30px; opacity: .92; }
.hero .boutons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Sections ─── */
section { padding: 80px 0; scroll-margin-top: 60px; }  /* le titre ne passe pas sous l'en-tête collant */
section.doux { background: var(--fond-doux); }
.titre-section { text-align: center; margin-bottom: 44px; }
.titre-section span { color: var(--principale); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.titre-section h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 6px; }

/* À propos */
.apropos { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.apropos img { border-radius: var(--rayon); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.apropos p { color: var(--texte-doux); font-size: 17px; margin-top: 14px; }
.chiffres { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.chiffres b { display: block; font-size: 30px; color: var(--principale); }
@media (max-width: 760px) { .apropos { grid-template-columns: 1fr; } }

/* Services */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.carte {
  background: #fff; border-radius: var(--rayon); padding: 26px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06); border: 1px solid #f0efec;
}
.carte .icone { font-size: 34px; }
.carte h3 { margin: 12px 0 6px; font-size: 19px; }
.carte p { color: var(--texte-doux); font-size: 15px; }
.carte .prix { margin-top: 14px; font-weight: 800; color: var(--principale); font-size: 18px; }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.galerie img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Avis */
.avis .carte p { font-style: italic; color: var(--texte); }
.avis .etoiles { color: #f5b301; letter-spacing: 2px; }
.avis .auteur { margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--texte-doux); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.infos li { list-style: none; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee; }
.infos li b { min-width: 110px; }
.carte-maps { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--rayon); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* Bandeau d'appel à l'action */
.cta { background: linear-gradient(120deg, var(--principale), var(--secondaire)); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(26px, 4vw, 38px); }
.cta p { margin: 10px 0 26px; opacity: .92; }

/* Pied de page */
.pied { background: #111; color: #bbb; padding: 30px 0; font-size: 14px; text-align: center; }
.pied a { color: #fff; }

/* Bouton WhatsApp flottant */
.whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.whatsapp svg { width: 32px; height: 32px; fill: #fff; }
.infos a { color: var(--principale); font-weight: 600; }

/* ─── Panier WhatsApp (option "panier" de la fiche) ─── */
.photo-article { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 4px; }
.ajouter { margin-top: 14px; width: 100%; min-height: 46px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--principale); color: #fff; font: inherit; font-weight: 700; }
.quantite { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--fond-doux);
  border-radius: 999px; padding: 4px; }
.quantite button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; cursor: pointer;
  color: var(--principale); font-size: 22px; font-weight: 800; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.quantite b { min-width: 26px; text-align: center; }
.barre-panier { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(0,0,0,.12); }
.barre-panier[hidden], .panier-fond[hidden], .erreur[hidden], .confirmation[hidden], #champ-adresse[hidden] { display: none; }
.barre-panier button { width: min(720px, 100%); margin: auto; min-height: 54px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; padding: 0 18px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--principale); color: #fff; font: inherit; font-weight: 700; }
body.avec-panier .whatsapp { bottom: 92px; }
body.avec-panier .pied { padding-bottom: 110px; }
.panier-fond { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: flex;
  align-items: flex-end; justify-content: center; }
.panier { background: #fff; width: min(560px, 100%); max-height: 90vh; overflow: auto; border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .panier-fond { align-items: center; } .panier { border-radius: 22px; } }
.panier-tete { display: flex; justify-content: space-between; align-items: center; }
.panier-tete h2 { font-size: 22px; }
.fermer { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--fond-doux); font-size: 26px; cursor: pointer; }
#lignes li { list-style: none; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nom st" "pu qte";
  gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; }
#lignes .nom { grid-area: nom; font-weight: 600; }
#lignes .sous-total { grid-area: st; text-align: right; }
#lignes .pu { grid-area: pu; color: var(--texte-doux); }
#lignes .quantite { grid-area: qte; margin-top: 0; justify-self: end; }
.total { display: flex; justify-content: space-between; font-size: 19px; padding: 14px 0 6px; }
.total b { color: var(--principale); }
#form-commande label { display: block; font-weight: 600; font-size: 14px; margin-top: 12px; }
#form-commande input:not([type=radio]), #form-commande textarea { display: block; width: 100%; margin-top: 6px;
  padding: 12px 14px; border: 1px solid #ddd; border-radius: 12px; font: inherit; font-size: 16px; }
.modes { display: flex; gap: 8px; flex-wrap: wrap; }
#form-commande .mode { flex: 1; margin-top: 12px; }
.mode input { position: absolute; opacity: 0; }
.mode span { display: block; text-align: center; padding: 11px 10px; border: 2px solid #e5e5e5; border-radius: 12px; cursor: pointer; }
.mode input:checked + span { border-color: var(--principale); color: var(--principale); background: color-mix(in srgb, var(--principale) 8%, #fff); }
.mode input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--principale) 40%, transparent); }
.info-livraison { font-size: 13px; color: var(--texte-doux); margin-top: 10px; }
.erreur { color: #b91c1c; font-weight: 600; font-size: 14px; margin-top: 10px; }
.envoyer { width: 100%; justify-content: center; margin-top: 16px; min-height: 54px; border: 0; cursor: pointer;
  background: #25d366; font: inherit; font-size: 16px; font-weight: 700; box-shadow: 0 8px 22px rgba(37,211,102,.35); }
.envoyer svg { width: 22px; height: 22px; fill: #fff; }
.confirmation { background: #ecfdf3; color: #166534; padding: 12px; border-radius: 12px; margin-top: 12px; font-size: 14px; }
.vider { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--texte-doux);
  text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; }

/* ─── Téléphones (la plupart des visiteurs) ─── */
@media (max-width: 480px) {
  .entete .conteneur { height: 60px; }
  .entete .conteneur > .bouton { display: none; }  /* place pour le menu ☰ ; WhatsApp reste dans le menu et en bouton flottant */
  .logo { font-size: 18px; line-height: 1.2; }
  .hero { min-height: auto; }
  .hero .conteneur { padding: 56px 0 64px; }
  .hero p { font-size: 17px; margin: 14px 0 24px; }
  .hero .boutons { flex-direction: column; }
  .hero .bouton { justify-content: center; padding: 15px 22px; }
  section { padding: 56px 0; }
  .titre-section { margin-bottom: 28px; }
  .apropos { gap: 24px; }
  .carte { padding: 22px; }
  .galerie { grid-template-columns: 1fr 1fr; gap: 8px; }
  .galerie img { border-radius: 10px; }
  .infos li b { min-width: 92px; }
  .carte-maps { min-height: 260px; }
  .pied { padding-bottom: 96px; }               /* le bouton flottant ne cache pas le pied de page */
  .grille.produits { grid-template-columns: 1fr 1fr; gap: 10px; }   /* articles avec photo : 2 par ligne */
  .produits .carte { padding: 10px 10px 14px; }
  .produits .carte h3 { font-size: 15px; margin: 8px 0 2px; }
  .produits .carte p { font-size: 13px; line-height: 1.4; }
  .produits .carte .prix { font-size: 16px; margin-top: 8px; }
  .produits .quantite button { width: 36px; height: 36px; }
  .produits .ajouter { min-height: 42px; margin-top: 10px; }
  .whatsapp { right: 14px; bottom: 14px; width: 58px; height: 58px; }
}
