/* RomyScheduler — site vitrine et boutique
   Palette : bleu de travail, craie, ruban de couturière (jaune), épingle (rouge, très rare). */
:root {
  --ink: #4A3426;
  --ink-2: #6B4A36;
  --chalk: #F6F1EA;
  --paper: #FFFDFA;
  --tape: #D9A441;
  --pin: #A8402F;
  --text: #3A2C24;
  --mist: #766558;
  --line: #E3D9CD;
  --ok: #4F7A5A;
  --serif: Cambria, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --hand: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--chalk); color: var(--text);
  font: 17px/1.6 var(--sans);
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--tape); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

h1, h2 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font: 600 1.1rem/1.3 var(--sans); color: var(--ink); margin: 0 0 .35em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 56ch; }
.muted { color: var(--mist); }
.small { font-size: .9rem; }

/* ------------------------------------------------------------ en-tête */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.25rem var(--serif); color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; }
.nav a { text-decoration: none; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--tape); color: var(--ink); font-weight: 600; }
.nav .btn { padding: 8px 14px; border-bottom: 0; }

/* ------------------------------------------------------------ boutons */
.btn {
  display: inline-block; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--ink); color: #fff; text-decoration: none;
  font: 600 1rem/1.2 var(--sans); padding: 13px 22px;
}
.btn:hover { background: var(--ink-2); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-tape { background: var(--tape); color: var(--ink); }
.btn-tape:hover { background: #E6B558; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 8px 14px; font-size: .92rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; }

/* ------------------------------------------------------------ accueil : bandeau */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .lead { margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* le bon de dépôt : l'objet du métier, accroché à une épingle */
.ticket {
  position: relative; background: #FFFBF3; border: 1px solid #DCCBB4; border-radius: 4px 4px 4px 22px;
  padding: 44px 26px 24px; transform: rotate(2.5deg); max-width: 340px; margin-inline: auto;
  box-shadow: 0 1px 0 #DCCBB4, 0 14px 24px -14px rgba(74, 52, 38, .35);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(74, 52, 38, .07) 27px 28px);
}
.ticket::before { /* œillet */
  content: ""; position: absolute; top: 14px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: var(--chalk); box-shadow: inset 0 0 0 3px #C9B79C;
}
.ticket::after { /* fil */
  content: ""; position: absolute; top: -34px; left: 50%; width: 2px; height: 50px; background: var(--pin); transform: rotate(-6deg); transform-origin: bottom;
}
.t-no { font: 600 .82rem var(--sans); color: var(--mist); margin: 0 0 14px; }
.t-client { font: 1.5rem/1.2 var(--hand); color: var(--ink); margin: 0 0 12px; }
.ticket ul { list-style: none; padding: 0; margin: 0 0 14px; font-family: var(--hand); font-size: 1.02rem; line-height: 28px; color: var(--text); }
.t-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 2px dashed #C9B79C; padding-top: 12px; font: 600 .9rem var(--sans); }
.t-status { background: var(--tape); color: var(--ink); padding: 3px 10px; border-radius: 999px; font-size: .8rem; }

/* ------------------------------------------------------------ sections */
section.block { padding: 44px 0; }
section.white { background: var(--paper); border-block: 1px solid var(--line); }
section.tint { background: #EDE2D4; }
section.caramel { background: #F1DDB4; }
.dark { background: var(--ink); color: #EADFD3; }
.dark h2, .dark h3 { color: #fff; }
.dark a { color: var(--tape); }
.dark .muted { color: #CDBBAA; }

.tape { height: 22px; background:
  repeating-linear-gradient(90deg, rgba(74, 52, 38, .8) 0 1px, transparent 1px 10px) left bottom / 100% 8px no-repeat,
  repeating-linear-gradient(90deg, rgba(74, 52, 38, .8) 0 2px, transparent 2px 50px) left bottom / 100% 15px no-repeat,
  var(--tape); }

/* du dépôt à la remise : une vraie suite d'étapes */
.steps { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 17px; border-top: 2px dashed #CDBBAA; }
.steps li { counter-increment: s; position: relative; padding-top: 48px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--tape); color: var(--ink); font: 700 1rem/36px var(--sans); text-align: center;
}
.steps p { font-size: .95rem; color: var(--mist); margin: 0; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }

/* fonctionnalités : liste de définitions */
.defs { margin: 0; }
.defs > div { display: grid; grid-template-columns: 240px 1fr; gap: 6px 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.defs dt { font: 700 1.15rem var(--serif); color: var(--ink); }
.defs dd { margin: 0; }

/* ------------------------------------------------------------ formulaires */
form .field { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
input[type=text], input[type=email] {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #B9A692; border-radius: 4px; background: #fff; color: var(--text);
}
input:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.dark input { border-color: transparent; }
.form-msg { margin: 12px 0 0; min-height: 1.4em; font-weight: 600; }
.form-msg.err { color: var(--pin); }
.dark .form-msg.err { color: #F2B3A6; }
.form-msg.ok { color: var(--ok); }
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.inline-form .field { margin: 0; }

/* ------------------------------------------------------------ tarifs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--line); border-radius: 6px; padding: 24px 22px 26px; }
.plan.best { border-top-color: var(--tape); }
.plan .price { font: 700 1.9rem/1.1 var(--serif); color: var(--ink); margin: 6px 0 4px; }
.plan .price small { display: block; font: 400 .95rem var(--sans); color: var(--mist); margin-top: 6px; }
.plan .ticks li { font-size: .97rem; }
.plan form { margin-top: 18px; }
.flag { display: inline-block; font: 600 .82rem var(--sans); background: var(--tape); color: var(--ink); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: 10px 0 0; }

/* ------------------------------------------------------------ espace client */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px; margin-bottom: 18px; }
.key { font: 600 1.3rem Consolas, "Courier New", monospace; letter-spacing: .06em; background: var(--chalk); border-left: 4px solid var(--tape); padding: 8px 14px; display: inline-block; word-break: break-all; }
.chip { display: inline-block; font: 600 .8rem var(--sans); padding: 2px 10px; border-radius: 999px; background: #E4EEE5; color: var(--ok); }
.chip.off { background: #F4DDD8; color: var(--pin); }
.chip.warn { background: #F8E7C2; color: #6B4A0F; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--mist); font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.scroll-x { overflow-x: auto; }

/* ------------------------------------------------------------ pied de page */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .94rem; color: var(--mist); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--mist); }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose ul { padding-left: 1.2em; }
.todo { background: #F8E7C2; color: var(--ink); font-style: normal; padding: 0 4px; border-radius: 2px; }


/* ------------------------------------------------------------ images : scène d'atelier, bandeau, objets */
.ico { display: block; overflow: visible; }
.scene { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 470px; margin-inline: auto; border-radius: 10px; background: radial-gradient(circle at 50% 38%, #F8EEDD 0 38%, #EAD9C0 100%); box-shadow: inset 0 0 0 1px #DCCBB4; overflow: hidden; }
.scene .ico { position: absolute; }
.scene .m { left: 30%; top: 8%; width: 36%; }
.scene .sp1 { left: 7%; bottom: 8%; width: 13%; color: #A8402F; transform: rotate(-8deg); }
.scene .sp2 { left: 20%; bottom: 5%; width: 11%; color: #8FA68A; transform: rotate(6deg); }
.scene .sc { right: 6%; bottom: 10%; width: 25%; transform: rotate(18deg); }
.scene .tp { left: 3%; top: 8%; width: 25%; transform: rotate(-12deg); }
.scene .bt { right: 6%; top: 46%; width: 24%; transform: rotate(-6deg); }
.scene .th { left: 43%; bottom: 4%; width: 12%; }
.scene .pn1 { left: 42%; top: 31%; width: 3%; transform: rotate(35deg); }
.scene .pn2 { left: 53%; top: 36%; width: 3%; transform: rotate(-30deg); }
.scene .ticket { position: absolute; right: 3%; top: 4%; width: 44%; max-width: none; padding: 30px 14px 12px; transform: rotate(5deg); }
.scene .ticket .t-client { font-size: 1.1rem; margin-bottom: 6px; }
.scene .ticket ul { font-size: .78rem; line-height: 20px; margin-bottom: 8px; }
.scene .ticket .t-no { font-size: .68rem; margin-bottom: 8px; }
.scene .ticket .t-foot { font-size: .72rem; padding-top: 8px; }
.scene .ticket .t-status { font-size: .66rem; padding: 2px 7px; }
.scene .ticket::before { top: 9px; width: 12px; height: 12px; margin-left: -6px; }
.scene .ticket::after { top: -22px; height: 34px; }

.strip { background: #EDE2D4; border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; align-items: flex-end; justify-content: flex-end; gap: 34px; height: 88px; overflow: hidden; }
.strip .ico { height: 62px; margin-bottom: 14px; }
.strip .sp { width: 40px; }
.strip .sc { width: 62px; transform: rotate(-12deg); }
.strip .tp { width: 66px; }
.strip .bt { width: 100px; }
.strip .th { width: 44px; }

/* fenêtre d'application (aperçus dessinés avec les données de démonstration) */
.shot { position: relative; }
.shot img { display: block; width: 100%; border-radius: 8px; box-shadow: 0 18px 30px -18px rgba(74, 52, 38, .5), 0 0 0 1px var(--line); }
.win { background: var(--paper); border-radius: 8px; box-shadow: 0 18px 30px -18px rgba(74, 52, 38, .5), 0 0 0 1px var(--line); overflow: hidden; font-size: .82rem; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #EFE5D8; border-bottom: 1px solid var(--line); color: var(--mist); font-weight: 600; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CDBBAA; }
.win-bar span { margin-left: 8px; }
.win-body { padding: 12px; }
.cap { font-size: .9rem; color: var(--mist); margin: 10px 2px 0; }

.pgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.two-shots > div, .feat > div, .story > div { min-width: 0; }
.ev { overflow: hidden; overflow-wrap: anywhere; }
.pgrid .h { text-align: center; font-weight: 700; color: var(--ink); padding-bottom: 4px; border-bottom: 2px solid var(--tape); }
.pgrid .col { display: flex; flex-direction: column; gap: 5px; }
.ev { border-radius: 4px; padding: 5px 7px; font-size: .74rem; line-height: 1.25; color: #fff; border-left: 4px solid rgba(0,0,0,.2); }
.ev b { display: block; font-weight: 700; }
.ev.c1 { background: #B7832F; } .ev.c2 { background: #5F7F5E; } .ev.c3 { background: #A8402F; } .ev.c4 { background: #6B4A36; }
.ev.h1 { min-height: 34px; } .ev.h2 { min-height: 58px; } .ev.h3 { min-height: 84px; } .ev.h4 { min-height: 110px; }
.ev.gap { background: none; border: 0; min-height: 0; padding: 0; } .ev.gap.g1 { height: 30px; } .ev.gap.g2 { height: 60px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips span { background: #EFE5D8; border-radius: 6px; padding: 8px 12px; font-weight: 600; color: var(--ink); }
.chips b { display: block; font: 700 1.3rem var(--serif); }
.orow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.orow small { color: var(--mist); display: block; }
.st { font-weight: 700; font-size: .72rem; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st.a { background: #F8E7C2; color: #6B4A0F; } .st.b { background: #DCE8DA; color: #36563A; } .st.c { background: #EDE2D4; color: var(--ink); }

.inv { padding: 16px 18px; }
.inv h4 { margin: 0 0 2px; font: 700 1.05rem var(--serif); color: var(--ink); }
.inv .l { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dotted #CDBBAA; }
.inv .tot { display: flex; justify-content: space-between; padding-top: 10px; font-weight: 700; color: var(--ink); font-size: 1rem; }
.stamp { display: inline-block; margin-top: 10px; border: 2px solid #5F7F5E; color: #5F7F5E; padding: 1px 8px; border-radius: 4px; font-weight: 700; font-size: .72rem; transform: rotate(-3deg); }
.sign { height: 86px; border: 1px dashed #B9A692; border-radius: 6px; margin-top: 10px; display: flex; align-items: center; justify-content: center; background: #FFFDFA; }
.sign svg { width: 70%; height: 70px; }
.cli { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .78rem; flex: none; }
.cli small { display: block; color: var(--mist); }
.cli .st { margin-left: auto; }
.mini-ticket { background: #FFFBF3; border: 1px solid #DCCBB4; border-radius: 4px 4px 4px 14px; padding: 12px 14px; background-image: repeating-linear-gradient(0deg, transparent 0 21px, rgba(74,52,38,.07) 21px 22px); }
.mini-ticket .n { font-weight: 600; color: var(--mist); font-size: .74rem; }
.mini-ticket .who { font: 1.2rem var(--hand); color: var(--ink); margin: 4px 0; }
.mini-ticket ul { list-style: none; padding: 0; margin: 0; font-family: var(--hand); line-height: 22px; }

/* grande capture réelle */
.bigshot { margin: 18px 0 0; }
.bigshot img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 24px 40px -22px rgba(74, 52, 38, .6), 0 0 0 1px var(--line); }
.bigshot figcaption { margin-top: 10px; font-size: .9rem; color: var(--mist); }

/* deux colonnes image + texte */
.feat { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: 34px 0; }
.feat.rev .shot { order: 2; }
.feat h2 { font-size: 1.6rem; margin-bottom: .4em; }
.feat p { margin-bottom: .8em; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 32px; margin-top: 22px; }
.tile { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; }
.tile .ico { width: 54px; height: 54px; }
.tile h3 { margin-bottom: 2px; }
.tile p { margin: 0; font-size: .95rem; color: var(--text); }

/* histoire */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.story p { font-size: 1.05rem; }
.story .quote { font: italic 1.25rem/1.45 var(--serif); border-left: 4px solid var(--tape); padding-left: 16px; margin: 20px 0; color: #fff; }
.still { position: relative; aspect-ratio: 5 / 4; border-radius: 10px; background: #5A4233; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; }
.still .ico { position: absolute; }
.still .m { left: 6%; top: 8%; width: 28%; }
.still .sp1 { right: 10%; top: 12%; width: 13%; color: #D9A441; transform: rotate(10deg); }
.still .sp2 { right: 25%; top: 22%; width: 11%; color: #8FA68A; transform: rotate(-8deg); }
.still .sc { right: 8%; bottom: 8%; width: 30%; transform: rotate(-14deg); }
.still .tp { left: 42%; bottom: 7%; width: 26%; transform: rotate(8deg); }
.still .bt { left: 40%; top: 10%; width: 22%; }
.still .th { left: 8%; bottom: 7%; width: 13%; }
.photo-slot { margin-top: 16px; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; border-left: 3px solid var(--tape); }
.timeline li { padding: 0 0 18px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.timeline h3 { margin-bottom: 2px; }
.timeline p { margin: 0; }

.two-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.hero .scene { margin: 0 auto; }

/* ------------------------------------------------------------ petits écrans */
@media (max-width: 860px) {
  .ev { font-size: .62rem; padding: 4px; }
  .win-body { padding: 8px; }
  .hero .wrap, .cols, .plans, .story, .feat, .two-shots { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .feat { gap: 22px; padding: 22px 0; }
  .feat.rev .shot { order: 0; }
  .tiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 17px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed #CDBBAA; }
  .steps li { padding: 0 0 26px 54px; }
  .defs > div { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .strip .wrap { justify-content: space-between; gap: 12px; }
  .strip .bt, .strip .th { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .scene .ticket { animation: swing2 1.1s ease-out 1 both; transform-origin: 50% -20px; }
  @keyframes swing2 { 0% { transform: rotate(-4deg); } 35% { transform: rotate(9deg); } 65% { transform: rotate(3deg); } 100% { transform: rotate(5deg); } }
}
