/* =====================================================================
   TERRACONGO — feuille de style du site public
   ===================================================================== */

:root{
  --ground:#F3F6F1;
  --surface:#FFFFFF;
  --surface2:#F8FAF7;
  --ink:#15211A;
  --ink2:#31453A;
  --muted:#65786C;
  --faint:#94A69A;
  --line:#DCE5DC;
  --line2:#EBF0EA;

  --vert:#1F5D3F;
  --vert-fonce:#143F2B;
  --vert-clair:#DCEDE1;
  --mandarine:#D9671A;
  --mandarine-clair:#FBEADC;
  --prune:#7B3F61;
  --prune-clair:#F3E5EE;
  --ocre:#A97114;
  --ocre-clair:#F7EED9;
  --rouge:#B23A2E;
  --rouge-clair:#FAE6E3;
  --bleu:#2F6690;
  --bleu-clair:#E2EDF5;

  --rayon:12px;
  --ombre:0 1px 2px rgba(21,33,26,.05), 0 12px 32px -22px rgba(21,33,26,.45);
  --large:1140px;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--ground); color:var(--ink);
  font-family:Manrope,"Helvetica Neue",Arial,sans-serif; font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ font-family:Petrona,Georgia,serif; font-weight:700; margin:0; text-wrap:balance;
  letter-spacing:-.01em; line-height:1.15; }
p{ margin:0 0 1em; }
a{ color:var(--vert); }
img{ max-width:100%; }
button,input,select,textarea{ font:inherit; color:inherit; }
:focus-visible{ outline:3px solid var(--mandarine); outline-offset:2px; border-radius:6px; }
/* Règle de sécurité : un display: explicite dans une classe annule
   l'attribut hidden du HTML. Sans cette ligne, des blocs censés être
   masqués (choix des produits, bandeau d'installation) restent visibles. */
[hidden]{ display:none !important; }

@media (prefers-reduced-motion:reduce){ *{ transition:none!important; animation:none!important; } }

.contenu{ max-width:var(--large); margin:0 auto; padding:0 20px; }
.discret{ color:var(--faint); }

/* ---------- Boutons -------------------------------------------------- */
.bouton{
  display:inline-block; background:var(--vert); color:#fff; border:2px solid var(--vert);
  padding:12px 24px; border-radius:99px; font-weight:700; font-size:15px;
  text-decoration:none; cursor:pointer; text-align:center; transition:background .15s, transform .08s;
}
.bouton:hover{ background:var(--vert-fonce); border-color:var(--vert-fonce); }
.bouton:active{ transform:translateY(1px); }
.bouton[disabled]{ opacity:.5; cursor:not-allowed; }
.bouton-clair{ background:transparent; color:var(--vert); }
.bouton-clair:hover{ background:var(--vert-clair); border-color:var(--vert); color:var(--vert-fonce); }
.bouton-petit{ padding:8px 18px; font-size:14px; }
.bouton-bloc{ display:block; width:100%; }
.bouton-grand{ padding:15px 24px; font-size:16px; }

/* ---------- En-tête --------------------------------------------------- */
.entete{ background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; }
.entete-barre{ display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding-top:14px; padding-bottom:14px; }
.marque{ display:flex; align-items:center; gap:11px; text-decoration:none; color:var(--ink); }
.marque strong{ font-family:Petrona,Georgia,serif; font-size:20px; letter-spacing:.02em; display:block; line-height:1.05; }
.marque small{ display:block; font-size:11.5px; color:var(--muted); letter-spacing:.01em; }
.marque-pastille{ width:32px; height:32px; border-radius:10px; background:var(--vert); flex:0 0 auto;
  position:relative; }
.marque-pastille::after{ content:""; position:absolute; left:8px; right:8px; top:9px; height:5px;
  border-radius:3px; background:var(--mandarine); }
.marque-pastille::before{ content:""; position:absolute; left:8px; right:8px; bottom:8px; height:5px;
  border-radius:3px; background:rgba(255,255,255,.55); }
.nav-site{ display:flex; align-items:center; gap:22px; }
.nav-site a{ color:var(--ink2); text-decoration:none; font-weight:600; font-size:15px; }
.nav-site a:hover{ color:var(--vert); }
.nav-site a.actif{ color:var(--vert); }
.nav-site a.bouton{ color:#fff; }
.nav-site a.bouton:hover{ color:#fff; }

/* ---------- Héros ----------------------------------------------------- */
.hero{ background:var(--surface); border-bottom:1px solid var(--line); }
.hero-grille{ display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:center;
  padding-top:52px; padding-bottom:52px; }
.surtitre{ font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:var(--mandarine);
  font-weight:700; margin-bottom:12px; }
.hero h1{ font-size:clamp(38px,5.4vw,58px); margin-bottom:16px; }
.hero-texte{ font-size:18px; color:var(--ink2); max-width:46ch; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin:22px 0 26px; }
.hero-points{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:7px;
  font-size:14.5px; color:var(--ink2); }
.hero-points li{ padding-left:22px; position:relative; }
.hero-points li::before{ content:"✓"; position:absolute; left:0; color:var(--vert); font-weight:700; }

/* Cageot décoratif, dessiné en CSS */
.hero-visuel{ display:flex; justify-content:center; }
.cageot{ width:min(320px,100%); aspect-ratio:1/.86; border-radius:14px; position:relative;
  background:
    repeating-linear-gradient(90deg, #C89B62 0 14px, #B98A50 14px 20px);
  box-shadow:inset 0 -18px 30px rgba(0,0,0,.18), var(--ombre);
  overflow:hidden; border:3px solid #A87A45; }
.cageot::after{ content:""; position:absolute; inset:auto 0 0 0; height:26%;
  background:linear-gradient(transparent, rgba(0,0,0,.22)); }
.fruit{ position:absolute; border-radius:50%; box-shadow:inset -6px -8px 12px rgba(0,0,0,.18); }
.f1{ width:27%; height:31%; left:5%;  top:16%; background:#C6462F; }
.f2{ width:24%; height:27%; left:34%; top:7%;  background:#E08A1E; }
.f3{ width:30%; height:33%; left:62%; top:14%; background:#5E8C3A; }
.f4{ width:22%; height:25%; left:12%; top:47%; background:#E3B417; }
.f5{ width:26%; height:29%; left:38%; top:41%; background:#8E3F5E; border-radius:48% 48% 44% 44%; }
.f6{ width:23%; height:26%; left:68%; top:49%; background:#C6462F; }
.f7{ width:20%; height:22%; left:2%;  top:70%; background:#6FA83F; }
.f8{ width:24%; height:24%; left:52%; top:70%; background:#E08A1E; }

/* ---------- Sections --------------------------------------------------- */
.section{ padding:56px 0; }
.section-alt{ background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-etroite .contenu{ max-width:760px; }
.section-entete{ max-width:64ch; margin:0 auto 32px; text-align:center; }
.section-entete.gauche{ margin-left:0; text-align:left; }
.section-entete h2{ font-size:clamp(26px,3.4vw,34px); margin-bottom:10px; }
.section-entete p{ color:var(--muted); margin:0; }

/* ---------- Paniers ---------------------------------------------------- */
.grille-paniers{ display:grid; grid-template-columns:repeat(auto-fit,minmax(255px,1fr)); gap:18px; }
.panier{ background:var(--surface); border:1px solid var(--line); border-radius:var(--rayon);
  padding:20px; display:flex; flex-direction:column; gap:12px; box-shadow:var(--ombre);
  border-top:5px solid var(--vert); }
.panier.c-mandarine{ border-top-color:var(--mandarine); }
.panier.c-prune{ border-top-color:var(--prune); }
.panier.c-ocre{ border-top-color:var(--ocre); }
.panier-haut{ display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
.panier-haut h3{ font-size:19px; }
.panier-prix{ font-weight:700; font-size:16px; color:var(--vert); white-space:nowrap; }
.panier.c-mandarine .panier-prix{ color:var(--mandarine); }
.panier.c-prune .panier-prix{ color:var(--prune); }
.panier.c-ocre .panier-prix{ color:var(--ocre); }
.panier-desc{ font-size:14.5px; color:var(--ink2); margin:0; flex:1; }
.panier-compo summary{ cursor:pointer; font-size:13.5px; color:var(--muted); font-weight:600; }
.panier-compo ul{ list-style:none; margin:10px 0 0; padding:0; font-size:13.5px; }
.panier-compo li{ display:flex; justify-content:space-between; gap:10px;
  padding:3px 0; border-bottom:1px solid var(--line2); }
.panier-compo li:last-child{ border-bottom:0; }

/* ---------- Étapes ----------------------------------------------------- */
.etapes{ list-style:none; margin:0; padding:0; display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; counter-reset:etape; }
.etapes li{ background:var(--ground); border:1px solid var(--line); border-radius:var(--rayon); padding:20px; }
.etape-num{ display:inline-flex; width:30px; height:30px; border-radius:50%; background:var(--vert);
  color:#fff; align-items:center; justify-content:center; font-weight:700; font-size:15px; margin-bottom:10px; }
.etapes h3{ font-size:17px; margin-bottom:6px; }
.etapes p{ font-size:14.5px; color:var(--ink2); margin:0; }

/* ---------- Zones ------------------------------------------------------ */
.grille-zones{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:10px; }
.zone{ background:var(--surface); border:1px solid var(--line); border-radius:9px;
  padding:11px 15px; display:flex; justify-content:space-between; gap:10px; font-size:14.5px; }
.zone strong{ color:var(--vert); white-space:nowrap; }
.note-centre{ text-align:center; color:var(--muted); font-size:14.5px; margin-top:20px; }

/* ---------- Bandeau final ---------------------------------------------- */
.bandeau-final{ background:var(--vert-fonce); color:#fff; padding:52px 0; text-align:center; }
.bandeau-final h2{ font-size:clamp(26px,3.4vw,34px); margin-bottom:8px; }
.bandeau-final p{ color:#C9DED1; margin-bottom:22px; }
.bandeau-final .bouton-clair{ color:#fff; border-color:rgba(255,255,255,.7); }
.bandeau-final .bouton-clair:hover{ background:#fff; color:var(--vert-fonce); border-color:#fff; }

/* ---------- Formulaire de commande -------------------------------------- */
.form-commande{ display:flex; flex-direction:column; gap:18px; }
.bloc{ background:var(--surface); border:1px solid var(--line); border-radius:var(--rayon);
  padding:22px; margin:0; }
.bloc legend{ font-family:Petrona,Georgia,serif; font-weight:700; font-size:19px; padding:0 8px;
  display:flex; align-items:center; gap:9px; }
.num-etape{ display:inline-flex; width:26px; height:26px; border-radius:50%; background:var(--vert);
  color:#fff; align-items:center; justify-content:center; font-family:Manrope,sans-serif;
  font-weight:700; font-size:14px; }

.liste-choix{ display:flex; flex-direction:column; gap:12px; }
.choix{ display:flex; gap:16px; justify-content:space-between; align-items:flex-start;
  border:2px solid var(--line); border-radius:10px; padding:15px; transition:border-color .15s, background .15s; }
.choix-actif{ border-color:var(--vert); background:var(--vert-clair); }
.choix.c-mandarine.choix-actif{ border-color:var(--mandarine); background:var(--mandarine-clair); }
.choix.c-prune.choix-actif{ border-color:var(--prune); background:var(--prune-clair); }
.choix.c-ocre.choix-actif{ border-color:var(--ocre); background:var(--ocre-clair); }
.choix-info h3{ font-size:17px; margin-bottom:4px; }
.choix-info p{ font-size:14px; color:var(--ink2); margin:0 0 6px; }
.choix-info summary{ cursor:pointer; font-size:13px; color:var(--muted); font-weight:600; }
.compo-plate{ list-style:none; margin:8px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:5px; }
.compo-plate li{ background:var(--surface2); border:1px solid var(--line); border-radius:99px;
  padding:2px 10px; font-size:12px; color:var(--ink2); }
.choix-action{ text-align:right; flex:0 0 auto; }
.choix-prix{ font-weight:700; color:var(--vert); margin-bottom:8px; white-space:nowrap; }
.compteur{ display:inline-flex; align-items:center; border:2px solid var(--line); border-radius:99px;
  overflow:hidden; background:var(--surface); }
.compteur button{ width:38px; height:38px; border:0; background:none; font-size:20px; font-weight:700;
  color:var(--vert); cursor:pointer; line-height:1; }
.compteur button:hover{ background:var(--vert-clair); }
.compteur input{ width:44px; height:38px; border:0; text-align:center; font-weight:700; font-size:16px;
  -moz-appearance:textfield; background:none; }
.compteur input::-webkit-outer-spin-button,
.compteur input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

.grille-champs{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.grille-champs .large{ grid-column:1/-1; }
label{ display:flex; flex-direction:column; gap:6px; font-weight:600; font-size:14px; color:var(--ink2); }
label .aide{ font-weight:500; color:var(--faint); font-size:12.5px; }
input, select, textarea{ background:var(--surface2); border:2px solid var(--line); border-radius:9px;
  padding:11px 13px; font-size:15.5px; font-weight:500; width:100%; }
input:focus, select:focus, textarea:focus{ background:var(--surface); border-color:var(--vert); outline:none; }
textarea{ resize:vertical; }

/* ---------- Récapitulatif ----------------------------------------------- */
.recap{ background:var(--surface); border:2px solid var(--vert); border-radius:var(--rayon);
  padding:20px; position:sticky; bottom:14px; box-shadow:var(--ombre); }
.recap h3{ font-size:18px; margin-bottom:12px; }
.recap-lignes{ margin-bottom:4px; }
.recap-ligne{ display:flex; justify-content:space-between; gap:12px; padding:6px 0;
  border-bottom:1px solid var(--line2); font-size:15px; }
.recap-vide{ color:var(--faint); font-size:14.5px; margin:0 0 6px; }
.recap-total{ display:flex; justify-content:space-between; gap:12px; padding:12px 0 14px;
  font-size:17px; font-weight:700; }
.recap-total strong{ color:var(--vert); font-size:20px; }
.recap-note{ font-size:13px; color:var(--muted); margin:12px 0 0; text-align:center; }

/* ---------- Confirmation & suivi ---------------------------------------- */
.bandeau-succes{ display:flex; gap:18px; align-items:flex-start; background:var(--vert-clair);
  border:1px solid var(--vert); border-radius:var(--rayon); padding:22px; margin-bottom:22px; }
.bandeau-succes h1{ font-size:26px; margin-bottom:6px; }
.bandeau-succes p{ margin:0; color:var(--ink2); }
.coche{ width:46px; height:46px; border-radius:50%; background:var(--vert); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:700; flex:0 0 auto; }

.ticket{ background:var(--surface); border:1px solid var(--line); border-radius:var(--rayon);
  overflow:hidden; box-shadow:var(--ombre); }
.ticket-entete{ display:flex; justify-content:space-between; align-items:center; gap:14px;
  padding:18px 20px; background:var(--surface2); border-bottom:1px solid var(--line); }
.ticket-label{ font-size:11.5px; text-transform:uppercase; letter-spacing:.09em; color:var(--faint); font-weight:700; }
.ticket-numero{ font-family:Petrona,Georgia,serif; font-size:24px; font-weight:700; letter-spacing:.04em; }
.ticket-corps{ padding:16px 20px; }
.ticket-pied{ padding:16px 20px; background:var(--surface2); border-top:1px solid var(--line); }
.paires{ display:grid; grid-template-columns:auto 1fr; gap:6px 18px; margin:0; font-size:14.5px; }
.paires dt{ color:var(--muted); }
.paires dd{ margin:0; font-weight:600; }

.progression{ display:flex; padding:20px; gap:4px; border-bottom:1px solid var(--line); }
.prog-etape{ flex:1; text-align:center; position:relative; }
.prog-etape::before{ content:""; position:absolute; left:-50%; right:50%; top:8px; height:3px;
  background:var(--line); }
.prog-etape:first-child::before{ display:none; }
.prog-etape.faite::before{ background:var(--vert); }
.prog-point{ width:18px; height:18px; border-radius:50%; background:var(--line); display:block;
  margin:0 auto 8px; position:relative; z-index:1; border:3px solid var(--surface); }
.prog-etape.faite .prog-point{ background:var(--vert); }
.prog-etape.active .prog-point{ box-shadow:0 0 0 4px var(--vert-clair); }
.prog-nom{ font-size:12px; color:var(--muted); font-weight:600; }
.prog-etape.faite .prog-nom{ color:var(--vert); }

.actions-fin{ display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; justify-content:center; }
.form-suivi{ display:grid; grid-template-columns:1fr 1fr auto; gap:12px; align-items:end;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--rayon); padding:20px; }

/* ---------- Badges & messages -------------------------------------------- */
.badge{ display:inline-block; padding:4px 12px; border-radius:99px; font-size:12.5px;
  font-weight:700; white-space:nowrap; }
.b-bleu{ background:var(--bleu-clair); color:var(--bleu); }
.b-violet{ background:var(--prune-clair); color:var(--prune); }
.b-ocre{ background:var(--ocre-clair); color:var(--ocre); }
.b-mandarine{ background:var(--mandarine-clair); color:var(--mandarine); }
.b-vert{ background:var(--vert-clair); color:var(--vert); }
.b-rouge{ background:var(--rouge-clair); color:var(--rouge); }
.b-gris{ background:var(--line2); color:var(--muted); }

.flash{ border-radius:10px; padding:13px 17px; margin:0 0 18px; font-size:15px; border:1px solid; }
.flash ul{ margin:6px 0 0; padding-left:20px; }
.f-ok{ background:var(--vert-clair); border-color:var(--vert); color:var(--vert-fonce); }
.f-erreur{ background:var(--rouge-clair); border-color:var(--rouge); color:var(--rouge); }
.f-info{ background:var(--bleu-clair); border-color:var(--bleu); color:var(--bleu); }
.avertissement{ background:var(--ocre-clair); border:1px solid var(--ocre); border-radius:10px;
  padding:13px 17px; color:#6E4A0C; }

/* ---------- Pied de page -------------------------------------------------- */
.pied{ background:var(--ink); color:#C7D4CA; padding:40px 0 20px; margin-top:0; }
.pied-grille{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:30px; padding-bottom:26px; }
.pied h4{ font-family:Manrope,sans-serif; font-size:12px; text-transform:uppercase;
  letter-spacing:.1em; color:#8FA595; margin-bottom:10px; }
.pied-texte{ font-size:14px; line-height:1.8; margin:0; }
.pied a{ color:#C7D4CA; text-decoration:none; }
.pied a:hover{ color:#fff; text-decoration:underline; }
.marque-pied strong{ color:#fff; }
.marque-pied .marque-pastille{ width:26px; height:26px; border-radius:8px; }
.pied-bas{ border-top:1px solid #2B3A31; padding-top:16px; display:flex;
  justify-content:space-between; font-size:13px; color:#8FA595; }

/* ---------- Page simple (installateur, connexion) -------------------------- */
.page-simple{ display:flex; align-items:center; justify-content:center; min-height:100vh; padding:24px; }
.carte-centrale{ background:var(--surface); border:1px solid var(--line); border-radius:var(--rayon);
  padding:32px; max-width:480px; width:100%; box-shadow:var(--ombre); }
.carte-centrale h1{ font-size:24px; margin:18px 0 10px; }
.carte-centrale .marque{ margin-bottom:6px; }
.form-vertical{ display:flex; flex-direction:column; gap:14px; margin-top:18px; }
code{ background:var(--surface2); border:1px solid var(--line); border-radius:5px;
  padding:1px 6px; font-size:13.5px; }

/* ---------- Responsive ------------------------------------------------------ */
@media (max-width:860px){
  .hero-grille{ grid-template-columns:1fr; gap:28px; }
  .hero-visuel{ order:-1; }
  .cageot{ width:min(260px,70%); }
  .pied-grille{ grid-template-columns:1fr 1fr; }
}
@media (max-width:620px){
  .entete-barre{ flex-wrap:wrap; }
  .nav-site{ gap:14px; font-size:14px; width:100%; justify-content:space-between; }
  .marque small{ display:none; }
  .grille-champs{ grid-template-columns:1fr; }
  .choix{ flex-direction:column; }
  .choix-action{ text-align:left; display:flex; align-items:center; gap:14px; width:100%; }
  .choix-prix{ margin:0; }
  .form-suivi{ grid-template-columns:1fr; }
  .pied-grille{ grid-template-columns:1fr; }
  .progression{ gap:0; padding:16px 8px; }
  .prog-nom{ font-size:10.5px; }
  .section{ padding:38px 0; }
  .recap{ position:static; }
}

/* ---------- Groupes « au choix » ---------------------------------- */
.compo-resume{ font-size:.9rem; font-weight:600; color:#2E7D4F; margin-top:.35rem; }
.grp-zone{ grid-column:1 / -1; border-top:1px dashed rgba(31,93,63,.25);
  margin-top:.9rem; padding-top:.9rem; display:flex; flex-direction:column; gap:.9rem; }
.grp{ background:rgba(31,93,63,.04); border:1px solid rgba(31,93,63,.12);
  border-radius:12px; padding:.7rem .8rem; }
.grp-tete{ display:flex; justify-content:space-between; align-items:center;
  margin-bottom:.55rem; font-size:.95rem; }
.grp-compte{ font-variant-numeric:tabular-nums; font-weight:700; color:#8a6a2a;
  background:#fdf4e3; border-radius:999px; padding:.1rem .6rem; font-size:.85rem; }
.grp-complet .grp-compte{ color:#1F5D3F; background:#e3f1e7; }
.grp-trop .grp-compte{ color:#a33; background:#fbe9e9; }
.grp-produits{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:.45rem; }
.grp-item{ display:flex; align-items:center; gap:.55rem; cursor:pointer;
  background:#fff; border:1px solid rgba(0,0,0,.10); border-radius:10px; padding:.5rem .7rem;
  transition:border-color .12s, background .12s; }
.grp-item input{ width:17px; height:17px; accent-color:#2E7D4F; flex:none; cursor:pointer; }
.grp-item-actif{ border-color:#2E7D4F; background:#f1f8f3;
  box-shadow:0 0 0 1px rgba(46,125,79,.35) inset; }
.grp-item-bloque{ opacity:.45; cursor:not-allowed; }
.grp-item-bloque input{ cursor:not-allowed; }
.grp-nom{ font-size:.92rem; }
.grp-aide{ font-size:.82rem; color:#6B7D70; margin:0; }
.bloc-choix{ display:block; color:#6B7D70; font-size:.82rem; margin-top:.15rem; }

/* ---------- Logo d'en-tête et bandeau d'installation --------------- */
.marque-logo{ width:32px; height:32px; border-radius:10px; flex:0 0 auto; display:block; }
.barre-install{ display:flex; align-items:center; gap:12px; background:#1F5D3F; color:#fff;
  padding:11px 18px; font-size:14.5px; line-height:1.35; }
.barre-install span{ flex:1; }
.barre-install button{ font-family:inherit; font-size:14px; font-weight:600; cursor:pointer;
  border:0; border-radius:8px; padding:8px 16px; background:#E07A22; color:#fff; }
.barre-install button:last-child{ background:transparent; color:rgba(255,255,255,.7);
  font-size:21px; padding:2px 8px; line-height:1; }
@media (max-width:560px){
  .barre-install{ font-size:13.5px; padding:10px 13px; gap:9px; }
  .barre-install button{ padding:7px 13px; font-size:13.5px; }
}
.lien-install{ color:var(--mandarine); font-weight:600; text-decoration:none; font-size:14px; }
.lien-install:hover{ text-decoration:underline; }
.notice-ios{ display:flex; align-items:flex-start; gap:14px; background:#F2EEE2;
  border:1px solid rgba(31,93,63,.14); border-radius:16px; padding:15px 17px; margin:0 0 20px; }
.notice-ios img{ border-radius:12px; flex:0 0 auto; }
.notice-ios strong{ display:block; color:var(--vert); font-size:15.5px; margin-bottom:3px; }
.notice-ios p{ margin:0; font-size:14.5px; line-height:1.45; color:#4A5A4F; }
.notice-ios button{ border:0; background:transparent; color:#9AA79E; font-size:24px;
  line-height:1; cursor:pointer; padding:0 2px; font-family:inherit; }

/* ===================================================================
   NAVIGATION TÉLÉPHONE — barre d'onglets en bas
   =================================================================== */
.appel-tel{ display:none; width:40px; height:40px; border-radius:50%; background:var(--vert);
  align-items:center; justify-content:center; flex:0 0 auto; }
.appel-tel svg{ width:20px; height:20px; fill:#fff; }
.onglets{ display:none; }

@media (max-width:760px){
  /* en-tête réduit à l'essentiel : logo, nom, bouton d'appel */
  .entete-barre{ padding-top:11px; padding-bottom:11px; gap:12px; }
  .marque small{ display:none; }
  .marque strong{ font-size:18px; }
  .nav-site{ display:none; }
  .appel-tel{ display:flex; }

  /* la barre d'onglets, toujours à portée de pouce */
  .onglets{
    display:grid; grid-template-columns:repeat(4,1fr);
    position:fixed; left:0; right:0; bottom:0; z-index:40;
    background:var(--surface); border-top:1px solid var(--line);
    box-shadow:0 -3px 14px rgba(20,40,30,.09);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .onglets a{
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:3px; padding:9px 2px 8px; text-decoration:none; color:var(--muted);
    font-size:11px; font-weight:600; letter-spacing:.01em; line-height:1.1;
    -webkit-tap-highlight-color:transparent;
  }
  .onglets svg{ width:23px; height:23px; fill:currentColor; }
  .onglets a.actif{ color:var(--vert); }
  .onglets a.actif svg{ fill:var(--vert); }
  .onglets a:active{ background:rgba(31,93,63,.06); }

  /* l'onglet Commander ressort */
  .onglets a.onglet-fort{ color:var(--mandarine); }
  .onglets a.onglet-fort svg{ fill:var(--mandarine); }
  .onglets a.onglet-fort.actif{ color:var(--vert); }
  .onglets a.onglet-fort.actif svg{ fill:var(--vert); }

  /* on libère la place sous le contenu */
  body{ padding-bottom:calc(62px + env(safe-area-inset-bottom)); }
  .barre-install{ position:sticky; top:0; z-index:19; }

  /* confort tactile : cibles plus grandes */
  .bouton{ min-height:48px; display:inline-flex; align-items:center; justify-content:center; }
  .compteur button{ min-width:40px; min-height:40px; }
  .grp-item{ min-height:46px; }
  input, select, textarea{ font-size:16px; }   /* évite le zoom auto sur iPhone */
}

@media (max-width:420px){
  .onglets a{ font-size:10px; }
  .onglets svg{ width:21px; height:21px; }
}

@media print{ .onglets, .appel-tel, .barre-install{ display:none !important; } }

/* ---------- Page d'accueil : version téléphone compacte ----------- */
.zones-repli > summary{ cursor:pointer; font-weight:600; color:var(--vert); padding:12px 2px;
  list-style:none; }
.zones-repli > summary::-webkit-details-marker{ display:none; }
.zones-repli > summary::after{ content:" ▾"; color:var(--muted); }
.zones-repli[open] > summary::after{ content:" ▴"; }
.zones-repli > summary + .grille-zones{ margin-top:6px; }

@media (min-width:761px){
  .zones-repli > summary{ display:none; }
  .zones-repli > .grille-zones{ display:grid !important; }
}

@media (max-width:760px){
  /* l'illustration décorative mange un écran entier : on la retire */
  .hero-visuel{ display:none; }
  .hero{ padding-top:26px; padding-bottom:30px; }
  .hero h1{ font-size:34px; line-height:1.1; }
  .hero-texte{ font-size:16.5px; }
  .hero-actions{ gap:10px; }
  .hero-points{ margin-top:18px; font-size:14.5px; }

  .section{ padding:34px 0; }
  .section-entete{ margin-bottom:18px; }
  .section-entete h2{ font-size:25px; }
  .section-entete p{ font-size:15px; }

  /* cartes paniers resserrées */
  .grille-paniers{ gap:13px; }
  .panier{ padding:17px 16px; }
  .panier h3{ font-size:19px; }
  .panier-desc{ font-size:14.5px; margin-bottom:9px; }
  .panier-compo summary{ font-size:14px; }

  .etapes{ gap:11px; }
  .etapes li{ padding:15px 16px; }
  .etapes h3{ font-size:16px; }
  .etapes p{ font-size:14px; }

  .bandeau-final{ padding:32px 0; }

  /* pied de page : on enlève la colonne des quartiers, redondante */
  .pied-grille > div:nth-child(3){ display:none; }
  .pied{ padding-top:28px; }
}

/* ---------- Correctif : les cases de choix sont des <label> -------
   La règle générale label{flex-direction:column} les empilait et
   l'input prenait toute la largeur. On rétablit une ligne propre.   */
label.grp-item{ flex-direction:row; align-items:center; gap:.6rem;
  font-weight:500; font-size:15px; padding:11px 13px; }
label.grp-item input[type="checkbox"]{ width:20px; height:20px; flex:0 0 auto;
  margin:0; padding:0; border-width:2px; }
label.grp-item .grp-nom{ flex:1; min-width:0; font-size:15px; }
.grp-produits{ grid-template-columns:repeat(auto-fill,minmax(168px,1fr)); gap:7px; }

@media (max-width:760px){
  .grp-produits{ grid-template-columns:1fr 1fr; gap:6px; }
  label.grp-item{ padding:10px 11px; gap:.5rem; }
  label.grp-item .grp-nom{ font-size:14px; line-height:1.2; }
  .grp{ padding:11px 10px; }
  .grp-tete{ margin-bottom:8px; }
}
@media (max-width:360px){
  .grp-produits{ grid-template-columns:1fr; }
}
