/* =====================================================================
   STYLE.CSS — design de la boutique
   Palette : brun teck, rouge latérite, vert plantation, fond sable
   ===================================================================== */
:root {
  --teck: #7a4b22;
  --teck-fonce: #4f2f14;
  --laterite: #b8492a;
  --vert: #2f6b3a;
  --sable: #f6f1e9;
  --blanc: #ffffff;
  --encre: #241a12;
  --gris: #6c6259;
  --bordure: #e2d7c8;
  --rayon: 12px;
  --ombre: 0 6px 20px rgba(36, 26, 18, .08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--sable);
  color: var(--encre);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--teck); }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.7rem; margin: 0 0 24px; }

.conteneur { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.conteneur-etroit { max-width: 760px; }
.section { padding: 56px 0; }
.section.conteneur { padding: 56px 20px; }
.section-sombre { background: var(--teck-fonce); color: var(--sable); }
.section-claire { background: var(--blanc); }
.info { color: var(--gris); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 12px 24px; border: none; border-radius: 8px;
  background: var(--teck); color: var(--blanc); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--teck-fonce); }
.btn:disabled { background: #b8ab9c; cursor: not-allowed; }
.btn-large { width: 100%; padding: 15px; }
.btn-clair { background: var(--sable); color: var(--teck-fonce); }
.btn-clair:hover { background: var(--blanc); }
.btn-whatsapp { background: var(--vert); margin-top: 8px; }
.btn-lien { background: none; border: none; color: var(--laterite); cursor: pointer; text-decoration: underline; }
.lien-fleche { font-weight: 600; text-decoration: none; }
.lien-fleche::after { content: " →"; }
.lien-retour { display: inline-block; margin-bottom: 20px; text-decoration: none; }

/* ---------- En-tête ---------- */
.bandeau { background: var(--laterite); color: var(--blanc); text-align: center; font-size: .85rem; padding: 7px 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px; }
/* Petit camion de livraison devant le texte du bandeau */
.bandeau-camion { width: 34px; height: 21px; flex-shrink: 0; overflow: visible; animation: camion-roule 1.6s ease-in-out infinite; }
.bandeau-camion .carrosserie { fill: var(--blanc); }
.bandeau-camion .vitre { fill: var(--laterite); opacity: .55; }
.bandeau-camion .bois { stroke: var(--laterite); stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
.bandeau-camion .roue { fill: #3a2418; stroke: var(--blanc); stroke-width: 1.2; }
.bandeau-camion .moyeu { fill: var(--blanc); }
.bandeau-camion .vitesse { stroke: var(--blanc); stroke-width: 1.4; stroke-linecap: round; opacity: .6; animation: vitesse 1.6s ease-in-out infinite; }
@keyframes camion-roule { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes vitesse { 0%, 100% { opacity: .25; transform: translateX(1px); } 50% { opacity: .75; transform: translateX(-1px); } }
@media (prefers-reduced-motion: reduce) { .bandeau-camion, .bandeau-camion .vitesse { animation: none; } }
#entete { background: var(--blanc); border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 10; }
.entete-barre { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--teck-fonce); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-icone { color: var(--vert); }
.nav-principale { display: flex; gap: 28px; }
.nav-principale a { color: var(--encre); text-decoration: none; font-weight: 500; }
.nav-principale a:hover { color: var(--laterite); }
.entete-actions { display: flex; align-items: center; gap: 14px; }
/* Menu déroulant des langues avec drapeaux */
.langues { position: relative; }
.langue-actuelle {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--bordure); background: var(--blanc);
  padding: 5px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .9rem;
}
.drapeau { display: inline-flex; width: 22px; height: 15px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.drapeau svg { width: 100%; height: 100%; display: block; }
.langues-liste {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: 10px; box-shadow: var(--ombre);
  min-width: 170px; z-index: 20;
}
.langues.ouvert .langues-liste { display: block; }
.langues-liste button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: none;
  background: none; border-radius: 6px; cursor: pointer; font-size: .95rem; text-align: left;
}
.langues-liste button:hover { background: var(--sable); }
.langues-liste button.actif { font-weight: 700; color: var(--teck); }
.icone-panier { position: relative; font-size: 1.4rem; text-decoration: none; }
.compteur {
  position: absolute; top: -6px; right: -10px; background: var(--laterite); color: var(--blanc);
  font-size: .7rem; font-weight: 700; border-radius: 99px; padding: 1px 6px;
}
.burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ---------- Bannière ---------- */
.hero { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; color: var(--blanc); }
.hero-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,26,18,.85), rgba(36,26,18,.25)); }
.hero-contenu { position: relative; z-index: 1; max-width: 640px; margin-left: max(20px, calc((100vw - 1180px) / 2)); }
.hero h1 { font-size: 2.6rem; margin: 0 0 16px; }
.hero p { font-size: 1.1rem; margin: 0 0 28px; opacity: .92; }

/* ---------- Catégories ---------- */
.grille-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.carte-categorie {
  background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre);
  text-decoration: none; color: var(--encre); transition: transform .2s;
}
.carte-categorie:hover { transform: translateY(-4px); }
.carte-categorie img, .carte-categorie .sans-image { height: 200px; width: 100%; object-fit: cover; }
.carte-categorie-texte { padding: 18px; }
.carte-categorie-texte h3 { margin: 0 0 6px; }
.carte-categorie-texte p { margin: 0 0 10px; color: var(--gris); font-size: .95rem; }
.carte-categorie.inactive { opacity: .6; pointer-events: none; }
.sans-image {
  display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 800;
  color: rgba(255,255,255,.85); background: linear-gradient(135deg, var(--teck), var(--vert));
}
.sans-image.grand { height: 420px; border-radius: var(--rayon); }
.sans-image.petit { width: 72px; height: 72px; font-size: 1.4rem; border-radius: 8px; }

/* ---------- Atouts ---------- */
.grille-atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.atout-icone {
  display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--laterite); font-size: 1.4rem; margin-bottom: 10px;
}
.atout h3 { margin: 0 0 6px; }
.atout p { margin: 0; opacity: .85; }

/* ---------- Grille produits ---------- */
.titre-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.carte-produit { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.carte-image img, .carte-image .sans-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carte-corps { padding: 16px; }
.carte-cat { color: var(--laterite); text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: 1px; margin: 0 0 4px; }
.carte-corps h3 { font-size: 1.05rem; margin: 0 0 8px; }
.carte-corps h3 a { color: var(--encre); text-decoration: none; }
.carte-prix { font-size: 1.25rem; font-weight: 800; color: var(--teck); margin: 0 0 6px; }
.carte-prix small, .fiche-prix small { font-size: .85rem; color: var(--gris); font-weight: 400; }
.stock { font-size: .9rem; font-weight: 600; }
.stock-ok { color: var(--vert); }
.stock-bas { color: var(--laterite); }
.stock-epuise { color: #9b1c1c; }

/* ---------- Filtres catalogue ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filtres button {
  border: 1px solid var(--bordure); background: var(--blanc); padding: 8px 18px; border-radius: 99px;
  cursor: pointer; font-weight: 600;
}
.filtres button.actif { background: var(--teck); color: var(--blanc); border-color: var(--teck); }

/* ---------- Fiche produit ---------- */
.fiche-produit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.fiche-image img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; }
.fiche-infos h1 { font-size: 2rem; margin: 6px 0 14px; }
.fiche-prix { font-size: 1.9rem; font-weight: 800; color: var(--teck); margin: 0 0 6px; }
.fiche-description { color: var(--gris); }
.petit-titre { font-size: 1.15rem; margin: 24px 0 8px; }
.caracteristiques { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.caracteristiques th, .caracteristiques td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--bordure); }
.caracteristiques th { color: var(--gris); font-weight: 500; width: 45%; }
.achat { display: flex; gap: 14px; align-items: end; }
.achat label { display: flex; flex-direction: column; font-size: .9rem; color: var(--gris); }
.achat input { width: 90px; padding: 12px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 1rem; }

/* ---------- Formulaires ---------- */
.formulaire { display: flex; flex-direction: column; gap: 14px; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.formulaire input, .formulaire textarea {
  padding: 11px 12px; border: 1px solid var(--bordure); border-radius: 8px; font: inherit; background: var(--blanc);
}
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--teck); border-color: transparent; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 1px solid var(--bordure); border-radius: 8px; padding: 10px 14px; }
legend { font-weight: 600; padding: 0 6px; }
.formulaire .choix { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.retour { padding: 10px 14px; border-radius: 8px; margin: 0; }
.retour.ok { background: #e3f1e5; color: var(--vert); }
.retour.erreur { background: #fbe4df; color: #8a2414; }

/* ---------- Panier ---------- */
.panier-grille { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.carte-blanche { background: var(--blanc); padding: 24px; border-radius: var(--rayon); box-shadow: var(--ombre); }
.ligne-panier {
  display: grid; grid-template-columns: 72px 1fr 80px 100px auto; gap: 14px; align-items: center;
  background: var(--blanc); padding: 12px; border-radius: var(--rayon); margin-bottom: 12px; box-shadow: var(--ombre);
}
.ligne-panier img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.ligne-infos p { margin: 2px 0 0; color: var(--gris); font-size: .9rem; }
.ligne-panier input { width: 70px; padding: 8px; border: 1px solid var(--bordure); border-radius: 6px; }
.total-ligne { display: flex; justify-content: space-between; font-size: 1.2rem; margin: 6px 0; }
.merci { max-width: 640px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #d8cfc4; padding-top: 44px; }
.pied-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.pied h4 { color: var(--blanc); margin: 0 0 10px; }
.pied a { display: block; color: #d8cfc4; text-decoration: none; margin-bottom: 6px; }
.pied a.btn { display: inline-block; color: var(--blanc); }
.pied p { margin: 0 0 6px; }
.logo-pied { color: var(--blanc); }
.copyright { text-align: center; border-top: 1px solid #3d3027; margin: 36px 0 0; padding: 16px; font-size: .85rem; }

/* ---------- Bande « Découvrez maintenant » ---------- */
.bande { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.bande-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre); }
.bande-texte h2 { color: var(--teck-fonce); font-size: 1.8rem; margin-bottom: 14px; }
.bande-texte p { color: var(--gris); font-size: 1.05rem; margin: 0 0 26px; }
.btn-bande { background: var(--teck-fonce); padding: 14px 30px; }

/* ---------- Barre du catalogue ---------- */
.titre-catalogue { font-size: 2.2rem; font-weight: 500; margin: 0 0 20px; }
.barre-catalogue { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 14px; margin-bottom: 24px; color: var(--gris); font-size: .95rem; }
.barre-gauche, .barre-droite { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.menu-filtre { position: relative; }
.menu-filtre summary { cursor: pointer; list-style: none; color: var(--encre); }
.menu-filtre summary::after { content: " ▾"; }
.menu-filtre summary::-webkit-details-marker { display: none; }
.menu-contenu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 15; background: var(--blanc);
  border: 1px solid var(--bordure); border-radius: 8px; padding: 12px 14px; box-shadow: var(--ombre); min-width: 180px; }
.menu-contenu label { display: flex; align-items: center; gap: 8px; margin: 4px 0; white-space: nowrap; }
.prix-plage input { width: 80px; padding: 6px; border: 1px solid var(--bordure); border-radius: 6px; }
.barre-droite select { margin-left: 6px; padding: 6px 10px; border: 1px solid var(--bordure); border-radius: 6px; font: inherit; background: var(--blanc); }
.compteur-produits { white-space: nowrap; }

/* ---------- Accueil : compléments de la bannière ---------- */
.hero-kicker { text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; font-weight: 700; color: #f3c9a8; margin: 0 0 10px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 26px; }
.hero-points li { margin: 4px 0; }
.hero-points li::before { content: "✓ "; color: #9fd3a8; font-weight: 700; }
.hero-boutons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-transparent { background: transparent; border: 2px solid rgba(255,255,255,.8); }
.btn-transparent:hover { background: rgba(255,255,255,.12); }

/* ---------- Fiche produit détaillée ---------- */
.fiche-galerie { display: flex; flex-direction: column; gap: 14px; }
.fiche-galerie img { width: 100%; border-radius: var(--rayon); box-shadow: var(--ombre); }
.fiche-mention { color: var(--gris); font-size: .85rem; margin: 2px 0 10px; }
.libelle { display: block; margin: 18px 0 6px; color: var(--gris); font-size: .9rem; }
.quantite { display: inline-flex; border: 1px solid var(--bordure); border-radius: 8px; overflow: hidden; background: var(--blanc); }
.quantite button { width: 44px; border: none; background: var(--blanc); font-size: 1.2rem; cursor: pointer; }
.quantite button:hover { background: var(--sable); }
.quantite input { width: 64px; border: none; text-align: center; font-size: 1rem; -moz-appearance: textfield; }
.quantite input::-webkit-inner-spin-button, .quantite input::-webkit-outer-spin-button { -webkit-appearance: none; }
.boutons-achat { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.btn-contour { background: var(--blanc); color: var(--teck-fonce); border: 2px solid var(--teck-fonce); }
.btn-contour:hover { background: var(--sable); }
.points-forts { padding-left: 20px; color: var(--gris); }
.points-forts li { margin: 6px 0; }

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-principale {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--blanc);
    flex-direction: column; padding: 16px 20px; gap: 14px; border-bottom: 1px solid var(--bordure);
  }
  .nav-principale.ouvert { display: flex; }
  .entete-barre { position: relative; }
  .hero { min-height: 380px; }
  .hero h1 { font-size: 1.9rem; }
  .fiche-produit, .panier-grille, .deux-colonnes, .bande { grid-template-columns: 1fr; }
  .bande { gap: 20px; }
  .ligne-panier { grid-template-columns: 60px 1fr auto; }
  .ligne-panier input, .ligne-panier strong { grid-column: 2; }
}

/* Logo rectangulaire Brennivo */
/* ===== LOGO : taille réglable ici =====
   --logo-hauteur        : hauteur du logo sur ordinateur
   --logo-hauteur-mobile : hauteur du logo sur téléphone */
:root { --logo-hauteur: 44px; --logo-hauteur-mobile: 36px; }
.logo-image { height: var(--logo-hauteur); width: auto; max-width: 260px; object-fit: contain; display: block; }
.logo-pied .logo-image { height: 52px; margin-bottom: 8px; }
@media (max-width: 860px) { .logo-image { height: var(--logo-hauteur-mobile); max-width: 170px; } }

/* ---------- Petit téléphone : bannière d'accueil plus compacte ---------- */
@media (max-width: 600px) {
  .bandeau { font-size: .78rem; padding: 6px 10px; gap: 8px; }
  .bandeau-camion { width: 26px; height: 16px; }
  .hero { min-height: 0; padding: 34px 0 30px; }
  .hero-contenu { margin: 0 18px; }
  .hero::after { background: linear-gradient(180deg, rgba(36,26,18,.82), rgba(36,26,18,.6)); }
  .hero-kicker { font-size: .68rem; letter-spacing: 1px; margin-bottom: 8px; }
  .hero h1 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 10px; }
  .hero p { font-size: .95rem; line-height: 1.5; margin-bottom: 16px; }
  .hero-points { margin-bottom: 18px; font-size: .92rem; }
  .hero-points li { margin: 2px 0; }
  .hero-boutons { gap: 10px; }
  .hero-boutons .btn { flex: 1 1 0; text-align: center; padding: 11px 12px; font-size: .92rem; }
}

/* =====================================================================
   BOUTON WHATSAPP ROND (en bas à droite de l'écran)
   ===================================================================== */
.wa-flottant {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s;
}
.wa-flottant:hover { transform: scale(1.08); }
.wa-flottant svg { width: 32px; height: 32px; }
@media (max-width: 600px) { .wa-flottant { width: 52px; height: 52px; right: 14px; bottom: 14px; } }

/* Bouton « Ajouter au panier » sur les cartes produits (granulés) */
.btn-ajout-carte { width: 100%; margin-top: 12px; padding: 10px 12px; font-size: .95rem; }
.btn-ajout-carte.ajoute { background: var(--vert); }
.btn-ajout-carte:disabled { background: #b9aea3; cursor: not-allowed; }

/* =====================================================================
   PANIER (étape 1)
   ===================================================================== */
.panier-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.panier-entete h1 { margin: 0; font-weight: 500; font-size: 2.3rem; }
.lien-souligne { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.panier-tableau-entete, .panier-ligne {
  display: grid; grid-template-columns: 110px 1fr 230px 130px; gap: 20px; align-items: center;
}
.panier-tableau-entete { font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gris);
  padding-bottom: 12px; border-bottom: 1px solid var(--bordure); }
.panier-tableau-entete span:first-child { grid-column: 1 / 3; }
.panier-tableau-entete span:last-child { text-align: right; }
.panier-ligne { padding: 22px 0; border-bottom: 1px solid var(--bordure); }
.panier-image img, .panier-image .sans-image { width: 100px; height: 100px; object-fit: cover; border-radius: 6px; display: block; }
.panier-infos { display: flex; flex-direction: column; gap: 6px; }
.panier-infos a { color: var(--encre); text-decoration: none; font-size: 1.02rem; }
.panier-infos a:hover { text-decoration: underline; }
.panier-quantite { display: flex; align-items: center; gap: 14px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #8a8079; height: 46px; background: var(--blanc); }
.stepper button { width: 44px; height: 100%; border: none; background: none; font-size: 1.2rem; cursor: pointer; color: var(--encre); }
.stepper input { width: 46px; border: none; text-align: center; font-size: 1rem; background: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-poubelle { border: none; background: none; cursor: pointer; color: var(--encre); padding: 6px; }
.btn-poubelle svg { width: 20px; height: 20px; display: block; }
.btn-poubelle:hover { color: var(--laterite); }
.panier-ligne-total { text-align: right; font-weight: 500; }
.panier-pied { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-top: 34px; }
.panier-total { font-size: 1.15rem; margin: 0; display: flex; gap: 14px; align-items: baseline; }
.panier-total strong { font-weight: 500; }
.panier-note { font-size: .85rem; color: var(--gris); text-align: right; max-width: 360px; margin: 0; }
.btn-sombre { background: #2e3a4f; border-radius: 4px; }
.btn-sombre:hover { background: #1f2836; }
.panier-pied .btn-sombre { width: 100%; max-width: 360px; }

/* =====================================================================
   COMMANDE (étapes 2 et 3) : deux colonnes
   ===================================================================== */
.caisse { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0; background: var(--blanc);
  border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.caisse-gauche { padding: 34px 44px 44px; }
.caisse-droite { background: #f4f4f5; padding: 34px 32px; border-left: 1px solid #e5e5e5; }
.caisse-titre { font-size: 1.3rem; font-weight: 600; margin: 26px 0 12px; }
.caisse-sous-titre { font-size: 1.05rem; font-weight: 600; margin: 24px 0 10px; }
.retour-panier { padding: 0; text-decoration: none; color: var(--gris); }
.petit { font-size: .9rem; margin: -6px 0 12px; }

/* Champs avec étiquette flottante */
.champ { position: relative; display: block; margin-bottom: 12px; }
.champ input, .champ select, .champ textarea {
  width: 100%; border: 1px solid #d6d6d6; border-radius: 6px; background: var(--blanc);
  padding: 22px 12px 8px; font: inherit; font-size: .98rem; color: var(--encre);
}
.champ textarea { resize: vertical; }
.champ span { position: absolute; left: 13px; top: 15px; color: #737373; font-size: .95rem; pointer-events: none; transition: all .15s; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid #1773b0; border-color: transparent; }
.champ input:focus + span, .champ input:not(:placeholder-shown) + span,
.champ textarea:focus + span, .champ textarea:not(:placeholder-shown) + span,
.champ-select span { top: 6px; font-size: .74rem; }
.champ-select select { appearance: auto; }
.champ.invalide input, .champ.invalide textarea { border-color: #c4311f; box-shadow: 0 0 0 1px #c4311f; }
.deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.encadre-info { background: #f4f4f5; border-radius: 6px; padding: 16px; color: #555; margin: 0 0 12px; }

/* Options (expédition, paiement, facturation) */
.options-paiement { border: 1px solid #d6d6d6; border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.option { display: block; cursor: pointer; border-bottom: 1px solid #d6d6d6; }
.option:last-child { border-bottom: none; }
.option-tete { display: flex; align-items: center; gap: 12px; padding: 16px; }
.option-tete input { width: 18px; height: 18px; accent-color: #1773b0; flex-shrink: 0; }
.option:has(input:checked) { background: #f0f5ff; }
.option:has(input:checked) > .option-tete { box-shadow: inset 0 0 0 1px #1773b0; }
.option-detail { display: none; padding: 14px 18px 18px; background: #f7f7f7; border-top: 1px solid #e3e3e3; font-size: .93rem; color: #444; }
.option:has(input:checked) .option-detail { display: block; }
.coche { display: block; margin: 6px 0; padding-left: 24px; position: relative; }
.coche::before { content: "✔"; position: absolute; left: 0; color: #2f8a3a; font-weight: 700; }
.exp-texte { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.exp-texte .info { font-size: .88rem; }
.exp-prix { font-size: .9rem; text-align: right; max-width: 170px; }

.btn-bleu { background: #1773b0; border-radius: 6px; width: 100%; margin-top: 18px; }
.btn-bleu:hover { background: #125d8f; }

/* Étape 3 : récapitulatif */
.recap-infos { border: 1px solid #d6d6d6; border-radius: 6px; margin-bottom: 14px; }
.recap-bloc { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid #e3e3e3; }
.recap-bloc:last-child { border-bottom: none; }
.recap-bloc p { margin: 4px 0 0; }
.recap-bloc .btn-lien { color: #1773b0; text-decoration: none; align-self: flex-start; }

/* Colonne de droite */
.resume-article { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; margin-bottom: 16px; font-size: .95rem; }
.resume-image { position: relative; width: 64px; height: 64px; }
.resume-image img, .resume-image .sans-image { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #e0e0e0; background: var(--blanc); display: block; }
.resume-badge { position: absolute; top: -8px; right: -8px; background: #555; color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; font-size: .75rem; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.resume-ligne { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: .95rem; }
.resume-total { font-size: 1.25rem; font-weight: 600; margin-top: 14px; }
.resume-total small { font-size: .75rem; color: var(--gris); font-weight: 400; }

/* ---------- Panier et commande sur téléphone ---------- */
@media (max-width: 860px) {
  .caisse { grid-template-columns: 1fr; }
  .caisse-droite { order: -1; border-left: none; border-bottom: 1px solid #e5e5e5; padding: 22px 20px; }
  .caisse-gauche { padding: 22px 20px 30px; }
  .panier-tableau-entete { display: none; }
  .panier-ligne { grid-template-columns: 80px 1fr; gap: 14px; }
  .panier-image img, .panier-image .sans-image { width: 80px; height: 80px; }
  .panier-quantite { grid-column: 2; }
  .panier-ligne-total { grid-column: 2; text-align: left; }
  .panier-entete h1 { font-size: 1.8rem; }
  .panier-pied { align-items: stretch; }
  .panier-note { text-align: left; max-width: none; }
  .panier-pied .btn-sombre { max-width: none; }
  .deux-champs { grid-template-columns: 1fr; gap: 0; }
}

/* Un élément marqué « hidden » reste toujours caché, même s'il a un display défini plus haut */
[hidden] { display: none !important; }

/* Page de remerciement */
.merci { max-width: 760px; margin: 0 auto; }
.merci-titre { margin: 0 0 8px; font-size: 1.9rem; }
.merci-articles { width: 100%; }
.merci-carte { width: 100%; height: 320px; border: 0; border-radius: 8px; margin: 6px 0 22px; display: block; }
@media (max-width: 600px) { .merci-carte { height: 240px; } .merci-titre { font-size: 1.5rem; } }
