/* Charte Monsieur Canapé : crème, marron, rose magenta, doré ; Baloo 2 + Poppins. */
:root {
  --creme: #FBF0DA;
  --creme-clair: #FFF9EE;
  --marron: #3A2416;
  --marron-doux: #6B4B36;
  --rose: #E84C8B;
  --rose-fonce: #C9306F;
  --rose-pale: #FCE7F0;
  --dore: #F4B63E;
  --vert: #25D366;
  --blanc: #FFFFFF;
  --trait: #EADBC0;
  --ombre: 0 6px 24px rgba(58, 36, 22, .08);
  --rayon: 18px;
  --titre: 'Baloo 2', system-ui, sans-serif;
  --texte: 'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--creme); color: var(--marron);
  font-family: var(--texte); font-size: 15px; line-height: 1.5;
  padding-bottom: 120px;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

.bandeau-maquette {
  background: var(--marron); color: var(--creme); text-align: center;
  font-size: 12px; padding: 6px 16px; letter-spacing: .02em;
}

.entete {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 760px; margin: 0 auto; padding: 8px 16px 0;
}
/* Logo Résa Sofa (08/11) : icône + nom en texte réel, lisible même sur un petit téléphone */
.entete__logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.entete__logo img { width: 44px; height: 44px; display: block; flex: none; }
.marque { display: flex; flex-direction: column; line-height: 1; }
.marque__nom { font-family: var(--titre); font-weight: 800; font-size: 25px; color: var(--marron); letter-spacing: -.3px; white-space: nowrap; }
.marque__sofa { color: var(--rose); }
.marque__par { font-family: var(--texte); font-weight: 600; font-size: 10.5px; color: var(--marron); opacity: .78; margin-top: 3px; white-space: nowrap; }
.entete__tel {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--marron); font-weight: 600; font-size: 14px; white-space: nowrap;
  background: var(--blanc); border-radius: 999px; padding: 8px 14px; box-shadow: var(--ombre);
}
@media (max-width: 380px) { .entete__tel { font-size: 13px; padding: 8px 11px; gap: 6px; } }
@media (max-width: 345px) { .entete__tel span { display: none; } }  /* très petits écrans : l'icône seule suffit */
.entete__tel svg { width: 18px; height: 18px; fill: var(--vert); }

.page { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.accroche { padding: 18px 0 6px; }
.accroche h1 {
  font-family: var(--titre); font-weight: 800; font-size: 34px; line-height: 1.05;
  margin: 0 0 8px; letter-spacing: -.01em;
}
.accroche h1 em { font-style: normal; color: var(--rose); }
.accroche p { margin: 0; color: var(--marron-doux); }
.atouts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; padding: 0; list-style: none; }
.atouts li {
  font-size: 12.5px; font-weight: 500; background: var(--creme-clair);
  border: 1px solid var(--trait); border-radius: 999px; padding: 5px 11px;
}
.atouts li::before { content: '✓'; color: var(--rose); font-weight: 700; margin-right: 6px; }

/* Étapes */
.etapes { display: flex; gap: 6px; margin: 18px 0 14px; padding: 0; list-style: none; counter-reset: e; }
.etapes li {
  flex: 1; counter-increment: e; font-size: 12.5px; font-weight: 600; color: var(--marron-doux);
  border-top: 4px solid var(--trait); padding-top: 7px; opacity: .75;
}
.etapes li::before { content: counter(e) '. '; }
.etapes li.faite { border-color: var(--dore); opacity: 1; }
.etapes li.active { border-color: var(--rose); color: var(--marron); opacity: 1; }

h2.titre { font-family: var(--titre); font-weight: 700; font-size: 24px; margin: 6px 0 12px; }

/* Catégories en accordéon */
.categories { display: grid; gap: 12px; }
.cat { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.cat__tete {
  width: 100%; display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 14px;
  padding: 10px 14px 10px 10px; background: none; border: 0; cursor: pointer; text-align: left;
}
.cat__tete img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.cat__picto { background: var(--creme); }   /* pictos de catégorie, 27/11/2026 */
.cat__nom { font-family: var(--titre); font-weight: 700; font-size: 20px; line-height: 1.1; }
.cat__info { font-size: 13px; color: var(--marron-doux); }
.cat__droite { display: flex; align-items: center; gap: 10px; }
.cat__badge {
  background: var(--rose); color: var(--blanc); font-weight: 600; font-size: 12px;
  min-width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; padding: 0 7px;
}
.cat__fleche { width: 22px; height: 22px; transition: transform .2s; stroke: var(--marron); fill: none; stroke-width: 2.4; }
.cat.ouverte .cat__fleche { transform: rotate(180deg); }
.cat__corps { border-top: 1px solid var(--trait); padding: 4px 14px 8px; }

.article { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; }
.article__dessin { width: 60px; height: 36px; display: block; }   /* dessins du site, 27/11/2026 */
.article + .article { border-top: 1px dashed var(--trait); }
.article__nom { font-weight: 600; }
.article__detail { font-size: 12.5px; color: var(--marron-doux); }
.article__prix { font-size: 14px; margin-top: 2px; }
.article__prix s { color: var(--marron-doux); opacity: .7; margin-right: 6px; font-size: 13px; }
.article__prix strong { color: var(--rose-fonce); font-weight: 600; }
/* « 106 CHF », « 95 CHF » et « -10 % » ne se coupent jamais en deux (Genève, 03/12/2026). */
.article__prix s, .article__prix strong, .article__prix .promo { white-space: nowrap; }
.article__prix .promo {
  font-size: 11px; font-weight: 600; color: var(--marron); background: var(--dore);
  border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px;
}

.compteur { display: inline-flex; align-items: center; background: var(--creme-clair); border: 1px solid var(--trait); border-radius: 999px; }
.compteur button {
  width: 38px; height: 38px; border: 0; background: none; font-size: 22px; line-height: 1;
  color: var(--marron); cursor: pointer; border-radius: 50%;
}
.compteur button:disabled { opacity: .3; cursor: default; }
.compteur button.plus { color: var(--blanc); background: var(--rose); }
.compteur output { min-width: 26px; text-align: center; font-weight: 600; }
.ajouter {
  border: 1.5px solid var(--rose); color: var(--rose-fonce); background: var(--blanc);
  font-weight: 600; border-radius: 999px; padding: 8px 16px; cursor: pointer;
}

.note { font-size: 13px; color: var(--marron-doux); margin: 14px 2px; }

/* Options des canapés (extension lit, pouf, pipi de chat ; 03/12/2026) : discrètes, jamais obligatoires. */
.options { background: var(--creme-clair); border: 1px dashed var(--trait); border-radius: 14px; padding: 10px 10px 10px; margin: 6px 0 10px; }
.options__titre { font-weight: 600; font-size: 13.5px; padding: 0 2px 8px; }
.options__titre small { display: block; font-weight: 400; font-size: 12.5px; color: var(--marron-doux); margin-top: 1px; }
.options__cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.option {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  background: var(--blanc); border: 1.5px solid var(--trait); border-radius: 12px; padding: 6px 6px 8px;
  transition: border-color .15s, background .15s;
}
.option.prise { border-color: var(--rose); background: var(--rose-pale); }
.option__dessin { width: 100%; height: auto; aspect-ratio: 144 / 100; object-fit: contain; display: block; margin-bottom: 2px; }
.option__nom { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.option__detail { font-size: 11.5px; line-height: 1.25; color: var(--marron-doux); }
.option__prix { color: var(--rose-fonce); font-weight: 700; font-size: 14px; white-space: nowrap; margin: auto 0 6px; padding-top: 4px; }

.option .ajouter { padding: 6px 12px; font-size: 13px; }
.ajoutee {
  border: 1.5px solid var(--rose); background: var(--blanc); color: var(--rose-fonce);
  border-radius: 999px; padding: 6px 10px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.compteur--petit { background: var(--blanc); }
.compteur--petit button { width: 30px; height: 30px; font-size: 19px; }
.compteur--petit output { min-width: 18px; }
@media (max-width: 340px) { .options__cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rappel { margin: -4px 0 14px; }
.rappel__titre { font-size: 13.5px; font-weight: 600; margin: 0 2px 8px; }
.rappel__puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
  border: 1.5px dashed var(--rose); background: var(--blanc); color: var(--marron); border-radius: 999px;
  padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.puce strong { color: var(--rose-fonce); font-weight: 600; margin-left: 2px; white-space: nowrap; }
.puce:hover { background: var(--rose-pale); }
.rappel__msg { font-size: 12.5px; color: var(--rose-fonce); margin: 8px 2px 0; }
.recap__option { font-size: 13px; color: var(--marron-doux); }
.recap__retirer { background: none; border: 0; padding: 0 0 0 4px; color: var(--rose-fonce); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.note a { color: var(--rose-fonce); }

/* Barre du panier */
.barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--marron); color: var(--creme);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(58, 36, 22, .25);
}
.barre__dedans { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.barre__texte { flex: 1; min-width: 0; }
.barre__ligne1 { font-weight: 600; font-size: 14px; }   /* le total passe à la ligne plutôt que d'être coupé (03/12/2026) */
.barre__ligne2 { font-size: 12.5px; opacity: .85; }
.barre__ligne2.alerte { color: var(--dore); opacity: 1; }
.barre__total { font-family: var(--titre); font-weight: 800; font-size: 26px; line-height: 1; white-space: nowrap; }
.barre__total small { font-size: 15px; font-weight: 700; }   /* « CHF » plus petit : le total tient sur un téléphone */
.bouton {
  border: 0; border-radius: 999px; background: var(--rose); color: var(--blanc);
  font-weight: 600; font-size: 15px; padding: 13px 20px; cursor: pointer; white-space: nowrap;
}
.bouton:disabled { background: #7d6253; color: #d8c6b4; cursor: default; }
.bouton.large { width: 100%; padding: 15px; font-size: 16px; }

/* Récapitulatif */
.recap {
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 14px 16px; margin-bottom: 14px;
}
.recap__ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 3px 0; }
.recap__ligne span:last-child { font-weight: 600; white-space: nowrap; }
.recap__total { border-top: 1px solid var(--trait); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.recap__total span:last-child { color: var(--rose-fonce); font-size: 17px; }
.recap__sous { font-size: 12.5px; color: var(--marron-doux); margin-top: 6px; }
.retour {
  background: none; border: 0; color: var(--marron-doux); font-weight: 500; cursor: pointer;
  padding: 4px 0; margin: 4px 0 6px; font-size: 14px;
}

/* Jours et horaires */
.jours { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -16px; padding-left: 16px; scroll-snap-type: x proximity; }
.jours::-webkit-scrollbar { display: none; }
.jour {
  flex: 0 0 auto; width: 70px; scroll-snap-align: start; text-align: center; cursor: pointer;
  background: var(--blanc); border: 2px solid transparent; border-radius: 16px; padding: 8px 4px; box-shadow: var(--ombre);
}
.jour__sem { font-size: 12px; text-transform: capitalize; color: var(--marron-doux); }
.jour__num { font-family: var(--titre); font-weight: 800; font-size: 24px; line-height: 1.1; }
.jour__mois { font-size: 12px; text-transform: capitalize; }
.jour__dispo { font-size: 10.5px; font-weight: 600; color: var(--rose-fonce); margin-top: 2px; }
.jour.choisi { border-color: var(--rose); background: var(--rose-pale); }
.jour:disabled { opacity: .45; box-shadow: none; background: transparent; border: 2px dashed var(--trait); cursor: default; }
.jour:disabled .jour__dispo { color: var(--marron-doux); }

.moment { margin: 8px 0 14px; }
.moment h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--marron-doux); margin: 0 0 8px; }
.heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.heure {
  border: 1.5px solid var(--trait); background: var(--blanc); border-radius: 12px; padding: 11px 0;
  font-weight: 600; cursor: pointer; font-size: 15px;
}
.heure.choisie { background: var(--rose); border-color: var(--rose); color: var(--blanc); }
.vide { background: var(--creme-clair); border: 1px dashed var(--trait); border-radius: var(--rayon); padding: 18px; text-align: center; color: var(--marron-doux); }

/* Formulaire */
.formulaire { display: grid; gap: 12px; }
.champ label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; }
.champ label small { font-weight: 400; color: var(--marron-doux); }
.champ input, .champ textarea, .champ select {
  width: 100%; font-size: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--trait); background: var(--blanc); outline: none;
}
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-pale); }
.champ textarea { min-height: 84px; resize: vertical; }
.champ.erreur input, .champ.erreur textarea { border-color: var(--rose-fonce); }
.champ .aide { font-size: 12px; color: var(--marron-doux); margin-top: 4px; }
.champ .msg { font-size: 12px; color: var(--rose-fonce); margin-top: 4px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tel { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.choix { display: flex; gap: 8px; flex-wrap: wrap; }
.choix label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px;
  background: var(--blanc); border: 1.5px solid var(--trait); border-radius: 999px; padding: 9px 14px; cursor: pointer; margin: 0;
}
.choix input { accent-color: var(--rose); width: auto; margin: 0; }
.coche { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13px; color: var(--marron-doux); align-items: start; }
.coche input { width: 20px; height: 20px; accent-color: var(--rose); margin: 1px 0 0; }

/* Confirmation */
.bravo { text-align: center; padding: 18px 0 8px; }
.bravo img { width: 120px; margin: 0 auto 8px; }
.bravo h1 { font-family: var(--titre); font-weight: 800; font-size: 32px; margin: 0; }
.bravo p { color: var(--marron-doux); margin: 6px 0 16px; }
.whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  background: var(--vert); color: var(--blanc); font-weight: 600; border-radius: 999px; padding: 13px;
}

@media (min-width: 640px) {
  .accroche h1 { font-size: 44px; }
  .categories { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Commune de l'intervention (zones de déplacement) */
.commune { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px; margin: 14px 0 4px; display: grid; gap: 8px; }
.commune label { font-family: var(--titre); font-weight: 700; font-size: 19px; line-height: 1.1; }
.commune input { width: 100%; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--trait); background: var(--creme-clair); outline: none; }
.commune input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-pale); }
.commune.erreur input { border-color: var(--rose-fonce); }
.commune .msg { font-size: 12.5px; color: var(--rose-fonce); }
.villes { display: grid; gap: 6px; }
.villes button { text-align: left; border: 1px solid var(--trait); background: var(--creme-clair); border-radius: 12px; padding: 9px 12px; font-size: 14.5px; cursor: pointer; }
.villes button small { color: var(--marron-doux); }
.villes .note { margin: 2px; }
.commune__choisie { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.commune__choisie span { flex: 1; min-width: 0; }
.commune__choisie button { border: 0; background: none; color: var(--rose-fonce); font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 4px; }
.hors-zone { background: var(--rose-pale); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.hors-zone a { color: var(--rose-fonce); font-weight: 600; }
.heure small { display: block; font-size: 11px; font-weight: 500; opacity: .8; line-height: 1.1; }
.alerte-envoi { background: var(--rose-pale); border-left: 4px solid var(--rose); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; font-size: 14px; font-weight: 500; }
.alerte-envoi a { color: var(--rose-fonce); font-weight: 600; white-space: nowrap; }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Case anti-robot de Cloudflare, sous le formulaire, seulement si Cloudflare a un doute (09/11/2026). */
.robot { display: flex; justify-content: center; margin: 0 auto 28px; padding: 0 16px; }
.robot[hidden] { display: none; }
