:root {
  --encre: #141414; --papier: #FAF8F4; --trait: #E3DFD7; --gris: #6F6A62; --doux: #F2EFE9;
  --jaune: #FFD400; --vert: #1F9D55; --rouge: #D32F2F;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.pub { max-width: 480px; margin: 0 auto; padding: 14px 20px calc(110px + env(safe-area-inset-bottom)); min-height: 100vh; }
.tete { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: 1.5px; font-size: 15px; padding: 4px 0 2px; }
.tete small { font-weight: 600; letter-spacing: 0; color: var(--gris); font-size: 13px; margin-left: 2px; }
.clap { width: 26px; height: 22px; background: var(--encre); border-radius: 4px; position: relative; overflow: hidden; flex: none; }
.clap::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px;
  background: repeating-linear-gradient(-45deg, var(--jaune) 0 5px, var(--encre) 5px 10px); }

h1 { font-size: 30px; line-height: 1.08; letter-spacing: -.6px; margin: 6px 0 8px; }
h1 mark { background: linear-gradient(transparent 58%, var(--jaune) 58%); color: inherit; padding: 0 2px; }
.chapo { font-size: 16px; color: #4C4842; margin: 0 0 18px; }
.alerte { background: #FDECEA; color: #8E1C1C; border-radius: 12px; padding: 11px 14px; font-weight: 600; font-size: 15px; margin: 12px 0; }
.info { background: #fff; border: 1.5px solid var(--trait); border-radius: 12px; padding: 11px 14px; font-size: 15px; }

/* Étapes */
.barres { display: flex; gap: 6px; margin: 16px 0 14px; }
.barres i { flex: 1; height: 5px; border-radius: 3px; background: #E2DED6; }
.barres i.on { background: var(--encre); }
.etape-nom { font-size: 13px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .8px; margin: 0; display: flex; align-items: center; gap: 10px; }
.retour { border: 0; background: var(--doux); border-radius: 8px; padding: 4px 9px; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.avec-js .etape[data-etape="2"] { display: none; }
.avec-js.etape-2 .etape[data-etape="1"] { display: none; }
.avec-js.etape-2 .etape[data-etape="2"] { display: block; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Champs */
.ligne { display: flex; gap: 10px; }
.ligne > * { flex: 1; min-width: 0; }
.champ { display: block; margin: 0 0 12px; border: 0; padding: 0; min-width: 0; }
.champ > span, .champ legend { display: block; font-size: 13.5px; font-weight: 700; margin: 0 0 5px; padding: 0; }
.champ small { font-weight: 500; color: var(--gris); }
.champ input { width: 100%; height: 50px; border: 1.5px solid var(--trait); background: #fff; border-radius: 12px; padding: 0 14px; font-size: 17px; outline: none; -webkit-appearance: none; appearance: none; }
.champ input:focus { border-color: var(--encre); box-shadow: 0 0 0 3px rgba(20,20,20,.08); }
.champ input::placeholder { color: #B5B0A7; }
.arobase { position: relative; }
.arobase input { padding-left: 32px; }
.arobase::after { content: "@"; position: absolute; left: 14px; top: 39px; color: var(--gris); font-size: 17px; pointer-events: none; }
.champ em, .photo em, .accord-err { display: block; font-style: normal; color: var(--rouge); font-size: 13px; font-weight: 600; margin-top: 4px; min-height: 0; }
.champ em:empty, .photo em:empty, .accord-err:empty { display: none; }
.erreur input, .erreur .cadre { border-color: var(--rouge) !important; }
.faute { display: block; width: 100%; margin-top: 7px; text-align: left; background: #FFF6C7; border: 1px solid #F1DE7A; border-radius: 10px; padding: 9px 11px; font-size: 14.5px; cursor: pointer; }
.faute b { text-decoration: underline; text-decoration-color: #C9A600; }
.puces { display: flex; gap: 8px; }
.puce { flex: 1; position: relative; }
.puce input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.puce span { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 12px; border: 1.5px solid var(--trait); background: #fff; font-weight: 600; font-size: 15.5px; cursor: pointer; }
.puce input:checked + span { background: var(--encre); color: #fff; border-color: var(--encre); }
.puce input:focus-visible + span { box-shadow: 0 0 0 3px rgba(20,20,20,.2); }
.erreur .puce span { border-color: var(--rouge); }

/* Boutons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border: 0; border-radius: 16px; background: var(--encre); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; }
.btn:disabled { background: #CFCAC0; color: #fff; cursor: default; }
.btn.blanc { background: #fff; color: var(--encre); border: 1.5px solid var(--trait); margin-top: 16px; }
.pied-etape { margin-top: 18px; }

/* Photos */
.photos { display: flex; gap: 12px; }
.photo { flex: 1; min-width: 0; }
.photo h2 { font-size: 15px; margin: 0 0 6px; }
.cadre { display: block; height: 200px; border-radius: 16px; border: 2px dashed #CFC9BE; background: #fff; position: relative; overflow: hidden; cursor: pointer; }
.cadre input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; }
.vide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px; color: #8C867B; }
.vide svg { width: 52px; height: 70px; }
.vide b { background: var(--encre); color: #fff; border-radius: 10px; padding: 7px 12px; font-size: 14px; }
.vide small { font-size: 12.5px; }
.cadre.rempli { border-style: solid; border-color: var(--encre); }
.cadre.rempli .vide { display: none; }
.cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cadre .plus { position: absolute; right: 8px; bottom: 8px; background: rgba(20,20,20,.85); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 9px; padding: 5px 9px; z-index: 1; }
.cadre .ok { position: absolute; left: 8px; top: 8px; background: var(--vert); color: #fff; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 4px 9px; z-index: 1; }
.vignettes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.vignettes:empty { display: none; }
.vignettes div { position: relative; width: 46px; height: 58px; border-radius: 8px; overflow: hidden; background: var(--doux); }
.vignettes img { width: 100%; height: 100%; object-fit: cover; }
.vignettes button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(20,20,20,.8); color: #fff; font-size: 11px; line-height: 20px; padding: 0; cursor: pointer; }

.video { margin-top: 14px; border-radius: 16px; background: var(--encre); color: #fff; padding: 14px; display: flex; gap: 12px; align-items: center; position: relative; cursor: pointer; }
.video input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.rec { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.rec i { width: 22px; height: 22px; border-radius: 50%; background: #FF3B30; }
.video-txt b { font-size: 15.5px; display: block; }
.video-txt small { display: block; margin-top: 3px; font-size: 13px; color: #CFCBC3; line-height: 1.3; }
.conseil { background: var(--jaune); color: var(--encre); font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 6px; margin-left: 4px; vertical-align: 2px; }
.video-ok { margin: 10px 0 0; background: #DDF3E6; color: #11643A; border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; }
.video-ok button { border: 0; background: transparent; text-decoration: underline; font-weight: 600; cursor: pointer; }

.accord { display: flex; gap: 11px; margin-top: 16px; font-size: 13.5px; color: #4C4842; line-height: 1.4; position: relative; cursor: pointer; }
.accord input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.case { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--encre); flex: none; display: flex; align-items: center; justify-content: center; background: #fff; }
.accord input:checked + .case { background: var(--encre); }
.accord input:checked + .case::after { content: "✓"; color: var(--jaune); font-weight: 900; font-size: 15px; }
.accord input:focus-visible + .case { box-shadow: 0 0 0 3px rgba(20,20,20,.2); }
.accord.erreur .case { border-color: var(--rouge); }

/* Envoi */
.envoi { position: fixed; inset: 0; background: rgba(250,248,244,.94); display: flex; align-items: center; justify-content: center; z-index: 10; padding: 20px; }
.envoi-boite { text-align: center; width: 100%; max-width: 320px; }
.envoi-boite b { display: block; font-size: 19px; margin: 18px 0 14px; }
.envoi-boite small { color: var(--gris); }
.rond { width: 56px; height: 56px; border-radius: 50%; border: 5px solid #E2DED6; border-top-color: var(--encre); margin: 0 auto; animation: tourne .9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.jauge { height: 10px; border-radius: 6px; background: #E2DED6; overflow: hidden; margin-bottom: 10px; }
.jauge i { display: block; height: 100%; width: 0; background: var(--jaune); transition: width .2s; }

/* Merci, confirmation */
.merci, .confirme, .message { text-align: center; padding-top: 48px; }
.merci h1, .confirme h1 { font-size: 32px; }
.grand-ok { width: 96px; height: 96px; border-radius: 50%; background: var(--jaune); margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 900; }
.encart { margin: 24px 0 0; background: #fff; border: 1.5px solid var(--trait); border-radius: 18px; padding: 16px; text-align: left; display: flex; gap: 12px; }
.encart .ico { font-size: 28px; }
.encart b { display: block; font-size: 16px; margin-bottom: 4px; }
.encart p b { display: inline; font-size: inherit; margin: 0; }
.encart p { margin: 0; font-size: 14.5px; color: #4C4842; }
.ticket { background: #fff; border: 1.5px solid var(--encre); border-radius: 20px; padding: 18px; margin-top: 22px; text-align: left; }
.ticket .quand { font-size: 24px; font-weight: 800; line-height: 1.2; }
.ticket .meta { font-size: 15px; color: #4C4842; margin-top: 10px; line-height: 1.7; }
.liens { display: flex; justify-content: center; gap: 28px; margin-top: 18px; }
.liens a, .liens button { font-size: 16px; font-weight: 600; color: var(--encre); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.liens form { margin: 0; }
.petit { font-size: 13px; color: var(--gris); margin-top: 26px; }
.message .btn { margin-top: 10px; }

/* Choix du créneau */
.rdv h1 { margin-top: 20px; }
.sect { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--gris); margin: 18px 0 9px; }
.jours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.jours::-webkit-scrollbar { display: none; }
.jour { flex: 0 0 auto; min-width: 92px; border: 1.5px solid var(--trait); background: #fff; border-radius: 14px; text-align: center; padding: 9px 8px 8px; cursor: pointer; }
.jour small { display: block; font-size: 12px; color: var(--gris); font-weight: 700; text-transform: uppercase; }
.jour b { font-size: 23px; display: block; line-height: 1.15; }
.jour span { font-size: 12px; color: var(--vert); font-weight: 700; }
.jour.actif { background: var(--encre); color: #fff; border-color: var(--encre); }
.jour.actif small { color: #BDB8AF; } .jour.actif span { color: var(--jaune); }
.jour.complet { opacity: .45; cursor: default; } .jour.complet span { color: var(--gris); }
.avec-js .heures { display: none; }
.avec-js .heures.actif { display: block; }
.grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.creneau { position: relative; }
.creneau input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.creneau span { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 12px; border: 1.5px solid var(--trait); background: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.creneau input:checked + span { background: var(--jaune); border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.creneau input:focus-visible + span { box-shadow: 0 0 0 3px rgba(20,20,20,.25); }
.creneau.pris span { background: transparent; color: #BDB8AF; text-decoration: line-through; border-style: dashed; cursor: default; }
.creneau.mien span { border-color: var(--vert); color: var(--vert); }
.barre-bas { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--papier) 30%); }
.barre-bas .btn { max-width: 440px; margin: 0 auto; }
.lien-bas { text-align: center; margin-top: 18px; }
.lien-bas a { color: var(--encre); font-weight: 600; }

@media (min-width: 560px) {
  .pub { padding-top: 34px; }
  h1 { font-size: 34px; }
}
