/* Oeconomia : le guichet (15 octobre 2026) */
:root {
  --fond: #eef0ec; --papier: #fffdf6; --encre: #1d2a44; --gris: #5d6573; --filet: #d9dbd2;
  --rouge: #c8102e; --vert: #1f7a4d; --jaune: #f6d860;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1.04rem/1.72 'Wix Madefor Text', system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1f4f9a; text-underline-offset: .2em; }
h1, h2, h3, h4 { font-family: Unbounded, system-ui, sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.passer { position: absolute; left: -999px; }
.passer:focus { left: 1rem; top: 1rem; background: var(--jaune); padding: .5rem 1rem; z-index: 9; }

/* le comptoir */
.comptoir { background: var(--encre); color: #fff; }
.comptoir__in { max-width: 1120px; margin: 0 auto; padding: .9rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.6rem; }
.comptoir__nom { display: grid; color: #fff; text-decoration: none; font: 700 1.35rem/1.1 Unbounded, sans-serif; }
.comptoir__nom span { font: 400 .72rem/1.3 'Azeret Mono', monospace; color: #b9c3d6; }
.comptoir__nav { display: flex; flex-wrap: wrap; gap: .3rem; }
.comptoir__nav a { color: #fff; text-decoration: none; font: 600 .78rem/1 'Azeret Mono', monospace; text-transform: uppercase; letter-spacing: .04em; padding: .55rem .7rem; border: 1px solid rgba(255,255,255,.25); }
.comptoir__nav a:hover, .comptoir__nav a[aria-current] { background: var(--rouge); border-color: var(--rouge); }

main { max-width: 1120px; margin: 0 auto; padding: 0 1rem 3rem; }

/* la borne */
.borne-accueil { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 2.6rem 0 1.4rem; }
.borne-accueil > * { min-width: 0; }
.borne-accueil h1 { margin: 0 0 .8rem; font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.borne-accueil p { margin: 0; color: var(--gris); max-width: 680px; }
.borne-accueil--rubrique { grid-template-columns: 1fr; padding-bottom: .6rem; }
.distributeur { position: relative; width: 170px; height: 220px; background: var(--rouge); border-radius: 14px 14px 6px 6px; box-shadow: inset -8px 0 0 rgba(0,0,0,.15); display: grid; justify-items: center; align-content: start; padding-top: 18px; }
.distributeur__ecran { width: 130px; padding: .6rem .4rem; background: #111; color: #7cf29a; font: 600 .7rem/1.2 'Azeret Mono', monospace; text-align: center; text-transform: uppercase; border-radius: 4px; }
.distributeur__fente { width: 110px; height: 8px; margin-top: 46px; background: #2b0b10; border-radius: 4px; }
.distributeur__ticket { position: absolute; top: 120px; width: 96px; padding: .8rem 0 1.2rem; background: var(--papier); color: var(--encre); font: 600 1.4rem/1 'Azeret Mono', monospace; text-align: center; transform: rotate(-4deg); box-shadow: 0 4px 10px rgba(0,0,0,.2); clip-path: polygon(0 0, 100% 0, 100% 92%, 90% 100%, 80% 92%, 70% 100%, 60% 92%, 50% 100%, 40% 92%, 30% 100%, 20% 92%, 10% 100%, 0 92%); }

/* les tickets d'attente */
.attente h2 { font-size: 1.2rem; margin: 1rem 0 1rem; }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.2rem; }
.tickets > * { min-width: 0; }
.ticket { position: relative; background: var(--papier); padding: 1.1rem 1.1rem 1.4rem; border-top: 2px dashed var(--filet); box-shadow: 0 2px 0 var(--filet); clip-path: polygon(0 0, 100% 0, 100% 97%, 95% 100%, 90% 97%, 85% 100%, 80% 97%, 75% 100%, 70% 97%, 65% 100%, 60% 97%, 55% 100%, 50% 97%, 45% 100%, 40% 97%, 35% 100%, 30% 97%, 25% 100%, 20% 97%, 15% 100%, 10% 97%, 5% 100%, 0 97%); }
.ticket__num { margin: 0; font: 600 2.4rem/1 'Azeret Mono', monospace; color: var(--rouge); }
.ticket h3 { margin: .4rem 0 .3rem; font-size: 1.15rem; }
.ticket h3 a { color: var(--encre); text-decoration: none; }
.ticket__q { margin: 0 0 .9rem; font-size: .92rem; color: var(--gris); }
.ticket__fiche { display: grid; gap: .5rem; text-decoration: none; color: var(--encre); font-weight: 600; line-height: 1.35; border-top: 1px dotted var(--gris); padding-top: .8rem; }
.ticket__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--filet); filter: saturate(.85); }
.ticket__img img { width: 100%; height: 100%; object-fit: cover; }
.ticket__fiche:hover span:last-child { text-decoration: underline; text-decoration-color: var(--rouge); }

/* le relevé */
.releve-bloc { margin-top: 2.6rem; background: var(--papier); padding: 1.2rem clamp(.8rem, 3vw, 1.6rem) 1.4rem; border: 1px solid var(--filet); }
.releve-bloc h2 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin: 0 0 .8rem; font-size: 1.1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--encre); }
.releve-bloc__ref { font: 400 .78rem/1.6 'Azeret Mono', monospace; color: var(--gris); text-transform: uppercase; }
.releve { list-style: none; margin: 0; padding: 0; }
.releve li:nth-child(even) .operation { background: #f4f6ef; }
.operation { display: grid; grid-template-columns: 56px 92px 1fr auto; gap: .9rem; align-items: center; padding: .55rem .5rem; text-decoration: none; color: var(--encre); border-bottom: 1px dotted var(--filet); }
.operation > * { min-width: 0; }
.operation__img { width: 56px; height: 42px; overflow: hidden; background: var(--filet); }
.operation__img img { width: 100%; height: 100%; object-fit: cover; }
.operation__d { font: 400 .82rem/1 'Azeret Mono', monospace; color: var(--gris); }
.operation__l { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.operation__r { font: 600 .74rem/1.2 'Azeret Mono', monospace; color: var(--vert); text-transform: uppercase; text-align: right; }
.operation:hover .operation__l { text-decoration: underline; }

/* le bordereau (article, page) */
.bordereau { max-width: 800px; margin: 0 auto; }
.bordereau__tete { padding: 2.2rem 0 1rem; }
.bordereau__ligne { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 .9rem; font: 400 .8rem/1.4 'Azeret Mono', monospace; color: var(--gris); text-transform: uppercase; padding-bottom: .6rem; border-bottom: 1px dashed var(--gris); }
.bordereau__ligne a { color: var(--rouge); font-weight: 600; text-decoration: none; }
.bordereau__tete h1 { margin: 0 0 .7rem; font-size: clamp(1.45rem, 3.4vw, 2.1rem); overflow-wrap: anywhere; }
.bordereau__par { margin: 0; color: var(--gris); font-size: .92rem; }
.bordereau__img { margin: .4rem 0 1.6rem; }
.bordereau__texte { background: var(--papier); padding: 1.6rem clamp(1rem, 4vw, 2.4rem); border: 1px solid var(--filet); overflow-wrap: anywhere; }
.bordereau__texte h2 { font-size: 1.3rem; margin: 2rem 0 .7rem; }
.bordereau__texte h3 { font-size: 1.08rem; margin: 1.5rem 0 .5rem; }
.bordereau__texte table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .93rem; display: block; overflow-x: auto; }
.bordereau__texte th, .bordereau__texte td { border: 1px solid var(--filet); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.bordereau__texte th { background: #f4f6ef; font-family: 'Azeret Mono', monospace; font-size: .82rem; }
.bordereau__texte blockquote { margin: 1.2rem 0; padding: .9rem 1.2rem; border-left: 4px solid var(--vert); background: #f1f7f2; }
.releve-bloc--suite { max-width: 800px; margin-left: auto; margin-right: auto; }

/* le ticket de caisse du pied */
.caisse { padding: 3rem 1rem; }
.caisse__ticket { max-width: 420px; margin: 0 auto; background: var(--papier); padding: 1.6rem 1.4rem 1.4rem; font: 400 .86rem/1.6 'Azeret Mono', monospace; color: var(--encre); box-shadow: 0 6px 18px rgba(0,0,0,.08); clip-path: polygon(0 2%, 5% 0, 10% 2%, 15% 0, 20% 2%, 25% 0, 30% 2%, 35% 0, 40% 2%, 45% 0, 50% 2%, 55% 0, 60% 2%, 65% 0, 70% 2%, 75% 0, 80% 2%, 85% 0, 90% 2%, 95% 0, 100% 2%, 100% 98%, 95% 100%, 90% 98%, 85% 100%, 80% 98%, 75% 100%, 70% 98%, 65% 100%, 60% 98%, 55% 100%, 50% 98%, 45% 100%, 40% 98%, 35% 100%, 30% 98%, 25% 100%, 20% 98%, 15% 100%, 10% 98%, 5% 100%, 0 98%); }
.caisse__tete { margin: 0 0 1rem; text-align: center; font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.caisse__tete small { font-weight: 400; font-size: .74rem; color: var(--gris); }
.caisse__lignes { list-style: none; margin: 0 0 1rem; padding: .6rem 0; border-top: 1px dashed var(--encre); border-bottom: 1px dashed var(--encre); }
.caisse__lignes a { display: flex; gap: .4rem; color: var(--encre); text-decoration: none; }
.caisse__lignes a::after { content: ""; flex: 1; border-bottom: 1px dotted var(--gris); margin-bottom: .4em; }
.caisse__lignes a:hover span { text-decoration: underline; }
.caisse__mot { margin: 0 0 1rem; font-size: .78rem; color: var(--gris); }
.caisse__pages { display: grid; gap: .1rem; font-size: .78rem; }
.caisse__pages a { color: var(--encre); }
.caisse__barres { height: 46px; margin-top: 1.2rem; background: repeating-linear-gradient(90deg, var(--encre) 0 2px, transparent 2px 4px, var(--encre) 4px 7px, transparent 7px 9px, var(--encre) 9px 10px, transparent 10px 14px); }

@media (max-width: 700px) {
  .borne-accueil { grid-template-columns: 1fr; }
  .distributeur { display: none; }
  .operation { grid-template-columns: 56px 1fr; }
  .operation__d, .operation__r { grid-column: 2; text-align: left; }
}
