:root {
  --marne: #1D6B57; --marne-fonce: #134A3C; --brie: #F0C75E; --encre: #14201E;
  --papier: #F3F5F2; --trait: #D5DDD9; --gris: #55625F;
  --titre: "Bricolage Grotesque", system-ui, sans-serif; --texte: "Source Sans 3", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 400 16px/1.5 var(--texte); color: var(--encre); background: var(--papier); }
h1, h2 { font-family: var(--titre); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin: 0; }
a { color: var(--marne); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brie); outline-offset: 2px; }
.marque { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 1.1rem var(--titre); color: var(--marne); letter-spacing: -.02em; }
.marque b { color: #D9A532; }

.bouton { display: inline-block; text-decoration: none; background: var(--marne); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; }
.bouton:hover { background: var(--marne-fonce); }
.bouton:disabled { opacity: .6; cursor: wait; }
.petit-bouton { display: inline-block; background: #fff; border: 1.5px solid var(--marne); color: var(--marne); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .95rem; cursor: pointer; }
.petit-bouton:hover { background: var(--marne); color: #fff; }
.lien-bouton { background: none; border: 0; padding: 4px 2px; color: var(--marne); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Étapes ---------- */
.etape-choix .edition { display: none; }
.etape-edition .choix { display: none; }

/* ---------- Choix du modèle ---------- */
.choix { min-height: 100vh; padding: 0 0 60px; }
.choix-tete { display: flex; justify-content: space-between; align-items: center; padding: 20px max(16px, 5vw); }
.lien-tel { font-weight: 600; color: var(--encre); }
.choix-intro { text-align: center; padding: 40px 16px 44px; max-width: 760px; margin: 0 auto; }
.choix-intro h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.choix-intro p { margin: 16px auto 0; font-size: 1.2rem; color: var(--gris); max-width: 46ch; }
.modeles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; width: min(1320px, 100% - 32px); margin: 0 auto; }
.modele { text-align: left; background: #fff; border: 2px solid transparent; border-radius: 22px; padding: 14px 14px 22px; display: flex; flex-direction: column; gap: 6px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.modele:hover { transform: translateY(-4px); border-color: var(--m); box-shadow: 0 24px 40px -26px rgba(20,32,30,.45); }
.modele-vignette { display: block; position: relative; aspect-ratio: 4 / 3.4; border-radius: 14px; overflow: hidden; background: var(--papier); margin-bottom: 10px; pointer-events: none; }
.modele-vignette iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 1090px; border: 0; transform: scale(var(--echelle, .21)); transform-origin: 0 0; }
.modele-nom { font: 800 1.5rem var(--titre); padding: 0 6px; }
.modele-pour { color: var(--gris); padding: 0 6px; }
.modele-action { margin: 10px 6px 0; align-self: flex-start; background: var(--m); color: #fff; font-weight: 700; padding: 9px 18px; border-radius: 999px; }

/* ---------- Édition ---------- */
.edition { display: grid; grid-template-columns: 380px 1fr; grid-template-rows: 64px 1fr; height: 100vh; }
.barre { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--trait); }
.barre .marque { margin-right: 6px; }
.appareils { margin-left: auto; display: flex; background: var(--papier); border-radius: 999px; padding: 4px; }
.appareils button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; color: var(--gris); }
.appareils button.actif { background: #fff; color: var(--encre); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.panneau { overflow-y: auto; background: #fff; border-right: 1px solid var(--trait); padding: 8px 18px 40px; }
details { border-bottom: 1px solid var(--trait); }
summary { list-style: none; cursor: pointer; padding: 16px 4px; font: 700 1.1rem var(--titre); display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--marne); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-bottom: 14px; }
label { display: grid; gap: 5px; font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
input, textarea { width: 100%; font: 400 1rem var(--texte); padding: 10px 12px; border: 1px solid #C5CFCB; border-radius: 10px; background: var(--papier); color: var(--encre); }
input:focus, textarea:focus { outline: none; border-color: var(--marne); box-shadow: 0 0 0 3px rgba(29,107,87,.18); background: #fff; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
legend { font-weight: 600; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.aide { color: var(--gris); font-size: .92rem; }

.couleurs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.pastille { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--trait); }
.pastille.actif { box-shadow: 0 0 0 3px var(--encre); }
.pastille-libre { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .9rem; }
.pastille-libre input { width: 38px; height: 38px; padding: 2px; border-radius: 50%; cursor: pointer; }

.service { background: var(--papier); border-radius: 12px; padding: 10px; margin-bottom: 10px; display: grid; gap: 6px; }
.service-tete { display: grid; grid-template-columns: 1fr 90px; gap: 6px; }
.service input { background: #fff; padding: 8px 10px; }
.service-actions { display: flex; justify-content: flex-end; gap: 14px; font-size: .9rem; }

.image-champ { display: grid; gap: 8px; margin-bottom: 16px; justify-items: start; }
.image-titre { font-weight: 600; font-size: .95rem; display: block; margin-bottom: 6px; }
.image-zone { width: 120px; height: 90px; border-radius: 12px; background: var(--papier); border: 1px dashed #B9C4BF; display: grid; place-items: center; overflow: hidden; }
.image-zone.large { width: 100%; height: 140px; }
.image-zone img { width: 100%; height: 100%; object-fit: cover; }
.image-vide { color: var(--gris); font-size: .9rem; }
.galerie-edit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.vignette { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(20,32,30,.8); color: #fff; font-size: 16px; line-height: 1; }
.ligne-horaire { grid-template-columns: 90px 1fr; align-items: center; }

.scene { position: relative; overflow: auto; padding: 22px; display: flex; justify-content: center; background: #E4EAE7; }
.cadre-apercu { width: 100%; max-width: 1280px; height: 100%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -36px rgba(20,32,30,.5); transition: max-width .3s; }
.cadre-apercu.mobile { max-width: 390px; border-radius: 34px; border: 10px solid var(--encre); }
.cadre-apercu iframe { width: 100%; height: 100%; border: 0; display: block; }
.maj { position: absolute; right: 30px; bottom: 26px; margin: 0; background: var(--encre); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: .85rem; }
.maj:empty { display: none; }

/* ---------- Fenêtre de validation ---------- */
dialog { border: 0; border-radius: 22px; padding: 30px; width: min(480px, 100% - 32px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(20,32,30,.55); }
dialog h2 { font-size: 1.8rem; margin-bottom: 10px; }
dialog p { color: var(--gris); }
.fenetre-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 18px; }
.erreur { color: #A3311E; font-weight: 600; margin: 0; }
.erreur:empty { display: none; }
.lien-prive { background: var(--papier); padding: 12px; border-radius: 10px; word-break: break-all; font-size: .9rem; }
.piege { position: absolute !important; left: -9999px; }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) { .modeles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; } }
@media (max-width: 900px) {
  .modeles { grid-template-columns: 1fr; max-width: 520px; }
  .edition { grid-template-columns: 1fr; grid-template-rows: auto auto 70vh; height: auto; }
  .barre { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .appareils { display: none; }
  .barre .bouton { margin-left: auto; }
  .panneau { border-right: 0; max-height: none; }
  .scene { order: -1; grid-row: 2; padding: 10px; height: 70vh; }
}

/* ---------- Réglages de réservation ---------- */
select { width: 100%; font: 400 1rem var(--texte); padding: 9px 10px; border: 1px solid #C5CFCB; border-radius: 10px; background: var(--papier); color: var(--encre); }
.interrupteur { display: flex; gap: 10px; align-items: center; background: var(--papier); padding: 12px; border-radius: 12px; }
.interrupteur input { width: 22px; height: 22px; accent-color: var(--marne); }
.rdv-reglages.inactif { opacity: .45; pointer-events: none; }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trois label { font-size: .85rem; }
.rdv-semaine { display: grid; gap: 6px; }
.rdv-ligne { display: grid; grid-template-columns: 92px 1fr 1fr 1.6fr; gap: 6px; align-items: center; }
.rdv-ligne input[type=time] { padding: 6px; font-size: .9rem; }
.rdv-entete { font-size: .78rem; color: var(--gris); font-weight: 700; }
.rdv-jour { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .9rem; }
.rdv-jour input { width: 18px; height: 18px; accent-color: var(--marne); }
.rdv-pause { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.rdv-ligne.ferme input[type=time] { opacity: .35; }
.s-duree-l { grid-template-columns: auto 1fr; align-items: center; gap: 8px; margin: 0; font-size: .9rem; }
.s-duree { padding: 6px 8px; background: #fff; }

.bouton-large { display: block; text-align: center; text-decoration: none; padding: 15px 22px; font-size: 1.05rem; }

/* ---------- Tarifs et fonctionnement (page de choix) ---------- */
html { scroll-behavior: smooth; }
.puces-intro { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.puces-intro li { background: #fff; border: 1px solid var(--trait); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; }
.puces-intro li::before { content: "✓ "; color: var(--marne); font-weight: 800; }
.lien-tarifs { display: inline-block; margin-top: 16px; font-weight: 700; }
.infos { width: min(1080px, 100% - 32px); margin: 80px auto 0; }
.infos-tete { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.infos-tete h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.infos-tete p:not(.surtitre) { color: var(--gris); font-size: 1.1rem; margin: 12px 0 0; }
.surtitre { margin: 0 0 8px; font-weight: 700; color: var(--marne); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
h3 { font-family: var(--titre); font-weight: 800; letter-spacing: -.015em; margin: 0; }
.formules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1080px; margin: 0 auto; }
.formule { position: relative; background: #fff; border: 2px solid var(--trait); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; }
.formule.mise-en-avant { border-color: var(--marne); box-shadow: 0 30px 50px -34px rgba(29,107,87,.55); }
.formule h3 { font-size: 1.45rem; }
.formule-pour { color: var(--gris); margin: 6px 0 14px; }
.badge { position: absolute; top: -13px; left: 26px; margin: 0; background: var(--brie); color: var(--encre); font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.prix { margin: 0 0 18px; display: flex; align-items: baseline; gap: 8px; }
.prix b { font: 800 2.8rem/1 var(--titre); letter-spacing: -.03em; }
.prix span { color: var(--gris); }
.formule ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.formule li { padding-left: 26px; position: relative; }
.formule li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--marne); font-weight: 800; }
.formule .bouton, .bouton-ligne { text-align: center; }
.bouton-ligne { display: block; text-decoration: none; border: 2px solid var(--marne); color: var(--marne); border-radius: 999px; padding: 10px 22px; font-weight: 700; }
.bouton-ligne:hover { background: var(--marne); color: #fff; }
.infos-note { text-align: center; color: var(--gris); margin: 18px 0 90px; }
.etapes { list-style: none; padding: 0; margin: 0 0 90px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.etapes li { background: #fff; border-radius: 20px; padding: 26px; }
.etapes .num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--marne); color: #fff; font: 800 1.2rem var(--titre); margin-bottom: 14px; }
.etapes h3 { font-size: 1.2rem; margin-bottom: 6px; }
.etapes p { margin: 0; color: var(--gris); }
.garanties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 90px; }
.garanties > div { background: #fff; border-radius: 18px; padding: 22px 24px; border-left: 4px solid var(--brie); }
.garanties h3 { font-size: 1.1rem; margin-bottom: 6px; }
.garanties p { margin: 0; color: var(--gris); }
.faq { max-width: 760px; margin: 0 auto 80px; background: #fff; border-radius: 20px; padding: 6px 24px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-size: 1.05rem; }
.faq p { margin: 0 4px 16px; color: var(--gris); }
.infos-fin { text-align: center; background: var(--marne); color: #fff; border-radius: 26px; padding: 50px 20px 34px; }
.infos-fin h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 22px; }
.infos-fin .bouton { background: var(--brie); color: var(--encre); display: inline-block; }
.infos-fin .bouton:hover { background: #fff; }
.infos-fin p { margin: 26px 0 0; font-size: .9rem; opacity: .85; }
.infos-fin a:not(.bouton) { color: #fff; }
@media (max-width: 800px) {
  .formules, .etapes, .garanties { grid-template-columns: 1fr; }
  .infos { margin-top: 56px; }
}

/* ---------- Boutique en ligne (éditeur) ---------- */
.btq-reglages.inactif { opacity: .45; pointer-events: none; }
.sous-titre { font: 800 1rem var(--titre); margin: 22px 0 10px; padding-top: 14px; border-top: 1px dashed var(--trait); }
.case-ligne { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 10px; }
.case-ligne input { width: 20px; height: 20px; accent-color: var(--marne); flex: none; }
.case-ligne.petit { font-size: .9rem; margin: 0 auto 0 0; }
.case-ligne.petit input { width: 17px; height: 17px; }
.deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deux-champs label { margin-bottom: 8px; }
.moyen { background: var(--papier); border-radius: 12px; padding: 12px 12px 4px; margin-bottom: 10px; }
.moyen label:not(.case-ligne) { margin-bottom: 8px; }
.moyen input:not([type=checkbox]) { background: #fff; }
.stripe-etat { margin: -2px 0 10px; }
.stripe-etat .aide { margin: 0 0 8px; }
.ok-stripe { margin: 0 0 8px; color: var(--marne-fonce); font-weight: 700; }
.produit { background: var(--papier); border-radius: 12px; padding: 10px; margin-bottom: 10px; display: grid; gap: 6px; }
.produit input, .produit textarea { background: #fff; padding: 8px 10px; }
.produit-haut { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: start; }
.produit-champs { display: grid; gap: 6px; }
.produit-photo { width: 74px; height: 74px; margin: 0; border-radius: 10px; border: 1px dashed #B9C4BF; background: #fff; display: grid; place-items: center; overflow: hidden; cursor: pointer; font-size: .82rem; color: var(--gris); }
.produit-photo img { width: 100%; height: 100%; object-fit: cover; }
.produit-photo:hover { border-color: var(--marne); }
.produit .service-actions { align-items: center; }
.accord { background: #FCEFD0; border-radius: 12px; padding: 12px 14px; margin: 8px 0 12px; }
.accord p { color: var(--encre); margin: 0 0 10px; }
