/* ============================================================
   Laverie de Caudebec-lès-Elbeuf — feuille de style v2
   Palette claire : blanc cassé + bleu marine + touches dorées
   ============================================================ */

/* Polices auto-hébergées (RGPD + compatibles avec la CSP font-src 'self').
   Fichiers téléchargés automatiquement au build Docker (docker/get-fonts.sh) */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url('fonts/space-grotesk.woff2') format('woff2');}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url('fonts/work-sans.woff2') format('woff2');}

:root {
  --navy-900: #0e2c4c;
  --navy-800: #123a63;
  --navy-700: #16416f;
  --navy-500: #386590;
  --sky-400: #4fa3d1;
  --sky-100: #e8f3fa;
  --paper: #fbfaf6;
  --paper-alt: #f2efe6;
  --ink: #1d2b3a;
  --ink-soft: #5c6b7c;
  --amber-500: #e2a13a;
  --amber-600: #c9862a;
  --amber-100: #fbead0;
  --green-500: #3f9d63;
  --line: #e6e2d6;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand span small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

nav.main-nav {
  display: flex;
  gap: 28px;
}

nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--navy-900);
  border-color: var(--amber-500);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-900);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: none !important;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--navy-700); }

.nav-cta .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6bd08a;
  box-shadow: 0 0 0 3px rgba(107,208,138,0.28);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
}

/* ---------- Status pill (ouvert / fermé) ---------- */

.status-bar {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}

.status-bar .container {
  padding-top: 9px;
  padding-bottom: 9px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-pill.is-open .dot {
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(63,157,99,0.18);
}

.status-pill.is-open strong {
  color: var(--green-500);
}

.status-pill.is-closed .dot {
  background: var(--amber-600);
  box-shadow: 0 0 0 3px rgba(201,134,42,0.18);
}

.status-pill.is-closed strong {
  color: var(--amber-600);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 64px;
  position: relative;
}

.hero-bubble {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--sky-100);
  opacity: 0.9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-100);
  color: var(--amber-600);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 1.12rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--navy-900);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-700);
}

.btn-gold {
  background: var(--amber-500);
  color: var(--navy-900);
}

.btn-gold:hover {
  background: var(--amber-600);
}

.btn-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--navy-900);
}

.btn-outline:hover {
  border-color: var(--navy-500);
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 30px 50px -25px rgba(14,44,76,0.35);
  position: relative;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.hero-facts .fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.hero-facts .fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy-900);
}

.hero-facts .fact span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

section.tight {
  padding: 48px 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head p {
  font-size: 1.05rem;
}

.bg-alt {
  background: var(--paper-alt);
}

/* Machine cards */

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.machine-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.machine-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(14,44,76,0.25);
}

.machine-card .icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.machine-card .cap {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-900);
}

.machine-card .cap sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.machine-card .price {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.machine-card .price strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--amber-600);
}

.machine-card .price span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.machine-card .note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--navy-500);
  font-weight: 500;
}

.wash-icon {
  width: 34px;
  height: 34px;
  color: var(--sky-400);
}

/* Steps (fonctionnement) */

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step .emoji-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--sky-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.step h3 {
  margin-bottom: 8px;
}

.step ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.step ul li {
  margin-bottom: 4px;
}

/* FAQ */

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: #fff;
  margin-bottom: 14px;
}

.faq-item .q {
  font-weight: 600;
  color: var(--navy-900);
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.faq-item .a {
  color: var(--ink-soft);
  margin: 0;
}

.help-banner {
  margin-top: 28px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.help-banner p {
  color: #c7d3e0;
  margin: 0;
}

.help-banner strong {
  color: #fff;
}

/* Payment methods */

.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.pay-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.pay-card .emoji-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--amber-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.pay-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.pay-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Reviews */

.reviews-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.reviews-card .stars {
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--amber-500);
  margin-bottom: 6px;
}

.reviews-card h3 {
  margin-bottom: 6px;
}

.reviews-card p {
  margin: 0;
}

.reviews-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.info-card h3 {
  margin-bottom: 14px;
}

.info-line {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.info-line:first-of-type {
  border-top: none;
}

.info-line .k {
  color: var(--ink-soft);
  min-width: 84px;
}

.info-line .v {
  color: var(--ink);
  font-weight: 500;
}

.info-line .v a:hover {
  color: var(--sky-400);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 20px;
}

.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

form.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--sky-400);
  outline-offset: 1px;
  background: #fff;
}

.form-row textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  display: none;
}

.form-status.ok {
  color: #1f8a4c;
  display: block;
}

.form-status.err {
  color: #c23b3b;
  display: block;
}

/* Disponibilité (widget) */

.avail-frame-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.avail-frame-wrap iframe {
  width: 100%;
  height: 720px;
  border: 0;
  display: block;
}

.avail-fallback {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--paper-alt);
}

.avail-fallback p {
  margin: 0;
  font-size: 0.9rem;
}

/* Legal page */

.legal-content h2 {
  margin-top: 40px;
  font-size: 1.2rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.legal-content ul {
  padding-left: 20px;
}

.legal-placeholder {
  background: var(--amber-100);
  color: var(--amber-600);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9em;
}

/* Footer */

footer {
  background: var(--navy-900);
  color: #c7d3e0;
  padding: 48px 0 28px;
  margin-top: 40px;
}

footer .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

footer p,
footer a {
  color: #a9b8c9;
  font-size: 0.9rem;
}

footer a:hover {
  color: #fff;
}

footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

footer .foot-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

footer .foot-brand strong {
  color: #fff;
  font-family: var(--font-display);
}

.foot-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: #7d90a6;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.foot-bottom a {
  color: #a9b8c9;
}

.foot-bottom a:hover {
  color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {

  nav.main-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-wrap.open nav.main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 16px 24px 20px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
    z-index: 60;
  }

  .nav-wrap.open .nav-cta {
    margin-top: 10px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 32px;
    padding-bottom: 40px;
    gap: 32px;
  }

  .hero-photo {
    order: -1;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .hero-bubble {
    display: none;
  }

  section {
    padding: 52px 0;
  }

  section.tight {
    padding: 36px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery img {
    height: 180px;
  }

  footer .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .step {
    grid-template-columns: 48px 1fr;
    padding: 20px;
  }

  .step .emoji-badge {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    border-radius: 12px;
  }

  .reviews-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .avail-frame-wrap iframe {
    height: 560px;
  }
}

@media (max-width: 600px) {

  .container {
    padding: 0 18px;
  }

  .nav-wrap {
    padding: 12px 18px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand span small {
    font-size: 0.66rem;
  }

  .nav-cta {
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero p.lead {
    font-size: 1rem;
  }

  .hero-actions .btn,
  .reviews-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions,
  .reviews-actions {
    flex-direction: column;
  }

  .machine-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .machine-card {
    padding: 18px 16px;
  }

  .machine-card .cap {
    font-size: 1.6rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 220px;
  }

  .contact-form,
  .info-card {
    padding: 22px;
  }

  .avail-frame-wrap iframe {
    height: 480px;
  }

  .avail-fallback {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 400px) {

  .machine-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .nav-cta {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .machine-card {
    transition: none;
  }
}

/* ================================
   DISPONIBILITÉ DES MACHINES
   ================================ */

.availability-summary {
  margin: 25px 0 30px;
}

.availability-count {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
}

.availability-updated {
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.88rem;
}

/* GROUPES */

.machine-group {
  margin: 35px 0;
}

.machine-group h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
}

/* GRILLE */

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 15px;
}

/* CARTE */

.machine-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.machine-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
}

/* TYPE */

.machine-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

/* POIDS */

.machine-capacity {
  margin-top: 4px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  color: #111827;
}

/* NUMÉRO */

.machine-number {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* STATUT */

.machine-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-weight: 800;
  font-size: 0.95rem;
}

/* POINT */

.status-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
}

/* LIBRE */

.status-free .status-dot {
  background: #16a34a;
}

.status-free {
  color: #15803d;
}

/* OCCUPÉ */

.status-busy .status-dot {
  background: #eab308;
}

.status-busy {
  color: #a16207;
}

/* INDISPONIBLE */

.status-off .status-dot {
  background: #dc2626;
}

.status-off {
  color: #b91c1c;
}

/* INCONNU */

.status-unknown .status-dot {
  background: #9ca3af;
}

.status-unknown {
  color: #6b7280;
}

/* TEXTE "LIBRE DANS..." */

.machine-remaining {
  display: block;
  margin-top: 3px;
  margin-left: 21px;
  font-size: 0.86rem;
  font-weight: 600;
}

/* PRODUITS */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.product-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.product-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 700;
}

.product-status .status-dot {
  width: 11px;
  height: 11px;
  min-width: 11px;
}

/* CHARGEMENT / ERREUR */

.availability-loading,
.availability-error {
  padding: 20px;
  border-radius: 12px;
  background: #f8fafc;
}

.availability-error {
  color: #b91c1c;
  background: #fef2f2;
}

/* MOBILE */

@media (max-width: 600px) {

  .machine-grid,
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .machine-card {
    padding: 16px;
  }

  .machine-capacity {
    font-size: 1.7rem;
  }

  .machine-status {
    font-size: 0.88rem;
  }

  .machine-remaining {
    font-size: 0.8rem;
  }
}

/* ---------- Bouton notification machine ---------- */

.machine-notify-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  width: 100%;
  margin-top: 14px;
  padding: 9px 12px;

  border: 1px solid #d8e2ec;
  border-radius: 8px;

  background: #f4f8fb;
  color: var(--navy-800);

  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;

  cursor: pointer;

  transition:
      background-color 0.15s ease,
      border-color 0.15s ease,
      color 0.15s ease,
      transform 0.1s ease;
}

.machine-notify-button:hover {
  background: var(--sky-100);
  border-color: var(--sky-400);
  color: var(--navy-900);
}

.machine-notify-button:active {
  transform: translateY(1px);
}

.machine-notify-button:focus-visible {
  outline: 2px solid var(--sky-400);
  outline-offset: 2px;
}

/* ---------- États non cliquables ---------- */

/*
 * Une fois la notification activée ou reçue,
 * le bouton devient un indicateur d'état.
 *
 * Il ne doit plus donner l'impression d'être
 * une action disponible.
 */

.machine-notify-button:disabled {
  cursor: default;
  pointer-events: none;
  transform: none;
}

/* Notification activée */

.machine-notify-button:disabled {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #64748b;
  opacity: 1;
}

/* Aucun effet de survol / clic sur un état désactivé */

.machine-notify-button:disabled:hover,
.machine-notify-button:disabled:active {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #64748b;
  transform: none;
}

/* ---------- États spécifiques ---------- */

/* Pré-notification */

.machine-notify-button:disabled {
  cursor: default;
}

/* Notification finale */

.machine-notify-button:disabled {
  cursor: default;
}
/* Carte chargée après clic (RGPD) */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 260px;
  padding: 24px;
  text-align: center;
  background: #eef3f7;
  border-radius: 12px;
}
.map-placeholder .map-note { font-size: .85rem; opacity: .8; max-width: 38ch; }
.map-embed .map-placeholder iframe { width: 100%; }


/* Accessibilité : focus clavier visible */
:focus-visible {
  outline: 3px solid #f5b83d;
  outline-offset: 2px;
}
main:focus { outline: none; }
