/* ════════════════════════════════════════════════════════════
   HL-DIGITAL v2 — « le devis ouvert, édition atelier »
   Papier crème · encre noire · vert sapin · surligneur jaune
   ════════════════════════════════════════════════════════════ */
:root {
  --ink: #141414;
  --paper: #F6F4EF;
  --white: #FFFFFF;
  --green: #0E7A46;
  --green-dark: #0A5432;
  --green-light: #66CE9F;
  --yellow: #FFE24A;
  --orange: #E8552F;
  --muted: #52504A;
  --muted-2: #8A877E;
  --font-sans: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; }
h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
  letter-spacing: -0.01em;
}
p { margin: 0; }
.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Boutons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-lg { font-size: 17px; padding: 16px 30px; border-radius: 12px; }
.btn-sm { font-size: 13px; padding: 9px 16px; }
.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-green:hover { color: var(--white); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { color: var(--ink); background: #EFEDE6; }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--green);
}
.btn-dark:hover { color: var(--paper); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--green); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { color: var(--ink); background: rgba(20,20,20,0.05); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,244,239,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-block {
  width: 40px; height: 40px;
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700; font-size: 15px;
  box-shadow: 3px 3px 0 var(--ink);
}
.brand-block-sm { width: 34px; height: 34px; font-size: 13px; box-shadow: none; border-color: transparent; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 600; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta { color: var(--paper); }
.burger { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2.5px; background: var(--ink); margin: 4.5px 0; transition: 0.2s; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-deco {
  position: absolute; right: 380px; top: 40px;
  width: 280px; height: 280px;
  border: 2px solid var(--green);
  border-radius: 999px;
  opacity: 0.12;
  pointer-events: none;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 32px 84px;
  display: flex;
  gap: 56px;
  align-items: center;
}
.hero-text { flex: 1; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  box-shadow: 3px 3px 0 var(--ink);
}
.dot { width: 9px; height: 9px; background: #2BB673; border-radius: 999px; }
.hero h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.0; }
.hero-p { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-checks { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }

/* Le ticket */
.ticket-wrap { width: 400px; flex-shrink: 0; position: relative; }
.ticket {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 30px 28px 22px;
  transform: rotate(1.5deg);
  font-size: 13px;
}
.ticket-head {
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1.5px dashed var(--ink);
  color: var(--muted);
  font-size: 11px;
  display: flex; flex-direction: column; gap: 3px;
}
.ticket-title { font-weight: 600; font-size: 16px; letter-spacing: 2px; color: var(--ink); }
.ticket-lines { padding: 15px 0; border-bottom: 1.5px dashed var(--ink); display: flex; flex-direction: column; gap: 11px; }
.ticket-lines div, .ticket-zeros div { display: flex; justify-content: space-between; gap: 8px; }
.ticket-lines b, .ticket-zeros b { font-weight: 600; }
.ticket-zeros { padding: 13px 0 4px; display: flex; flex-direction: column; gap: 7px; font-size: 11.5px; color: var(--muted); }
.ticket-foot {
  margin-top: 11px; padding-top: 11px;
  border-top: 1.5px dashed var(--ink);
  text-align: center; font-size: 10.5px; color: var(--muted);
}
.stamp {
  position: absolute; right: -20px; top: -26px;
  width: 118px; height: 118px;
  border: 4px solid var(--green);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transform: rotate(12deg);
  background: rgba(246,244,239,0.94);
  box-shadow: 0 8px 20px rgba(20,20,20,0.14);
  text-align: center;
  color: var(--green);
  font-weight: 700; font-size: 14px; line-height: 1.2;
}
.stamp span { font-family: var(--font-mono); font-size: 9px; font-weight: 600; }

/* ── Marquee ─────────────────────────────────────────────── */
.marquee {
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  padding: 15px 0;
}
.marquee-track {
  display: flex; gap: 40px;
  white-space: nowrap;
  font-weight: 600; font-size: 15px; letter-spacing: 1.5px;
  width: max-content;
  animation: defile 32s linear infinite;
}
.marquee-track i { color: var(--green-light); font-style: normal; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 88px 32px; max-width: 1280px; margin: 0 auto; }
.section-white {
  max-width: none;
  background: var(--white);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.section-white > * { max-width: 1216px; margin-left: auto; margin-right: auto; }
.section-dark {
  max-width: none;
  background: var(--ink);
  color: var(--paper);
}
.section-dark > * { max-width: 1216px; margin-left: auto; margin-right: auto; }
.kicker { font-size: 13px; font-weight: 600; color: var(--green); letter-spacing: 1px; margin-bottom: 14px; }
.kicker-light { color: var(--green-light); }
.section h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 42px; flex-wrap: wrap;
}
.section-note { font-size: 15px; color: var(--muted); max-width: 320px; line-height: 1.6; }
.section-cols { display: flex; gap: 64px; }
.section-side { width: 360px; flex-shrink: 0; }
.section-body { flex: 1; display: flex; flex-direction: column; gap: 22px; }
.section-body p { font-size: 17px; line-height: 1.75; color: var(--muted); }
.section-body p.strong { color: var(--ink); font-weight: 500; }

/* Valeurs */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.value-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 4px 4px 0 var(--ink);
  display: flex; flex-direction: column; gap: 7px;
}
.value-num { font-size: 11.5px; color: var(--green); font-weight: 600; }
.value-title { font-weight: 700; font-size: 17px; }
.value-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ── Registre des créations ──────────────────────────────── */
.registre {
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--white);
}
.reg-row {
  display: grid;
  grid-template-columns: 120px 1fr 300px 140px;
  gap: 24px;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 2px solid var(--ink);
}
.reg-thumb {
  height: 72px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700; font-size: 14px;
}
.reg-thumb-hafidy { background: linear-gradient(140deg, #0C0C16 30%, #6366f1 130%); }
.reg-thumb-hafidy span { color: #8B8DF5; }
.reg-thumb-hammam { background: linear-gradient(140deg, #3E4A2F 40%, #C4A97D 140%); font-family: var(--font-serif); font-weight: 400; color: #FBF8F1; }
.reg-thumb-hammam em { color: #C4A97D; }
.reg-thumb-horizon { background: linear-gradient(140deg, #10203E 40%, #4D8BFF 150%); }
.reg-main h3 { font-size: 21px; }
.reg-main h3 .mono { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.reg-main p { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.reg-tags { font-size: 12px; color: var(--muted); }
.reg-status {
  justify-self: end;
  font-size: 11px; font-weight: 600;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}
.reg-next {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 26px;
  background: var(--paper);
  font-size: 13px; color: var(--muted);
}
.highlight {
  background: linear-gradient(transparent 45%, var(--yellow) 45%);
  font-weight: 700; font-size: 15px;
  color: var(--ink);
  padding: 0 4px;
}
.highlight:hover { color: var(--ink); background: var(--yellow); }

/* ── Carte des formules ──────────────────────────────────── */
.carte {
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--white);
  margin-bottom: 28px;
}
.plat {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 28px 34px;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.plat:last-child { border-bottom: none; }
.plat-star { background: #FFF9DE; padding-top: 34px; }
.badge-star {
  position: absolute; top: -14px; left: 34px;
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  padding: 6px 14px;
}
.plat-info { width: 400px; flex-shrink: 0; }
.plat-line { display: flex; align-items: baseline; gap: 12px; }
.plat-line h3 { font-size: 22px; white-space: nowrap; }
.dots { flex: 1; border-bottom: 2.5px dotted var(--ink); transform: translateY(-6px); min-width: 24px; }
.prix { font-weight: 600; font-size: 22px; color: var(--green); white-space: nowrap; }
.plat-info p { font-size: 13.5px; color: var(--muted); margin-top: 7px; line-height: 1.6; }
.plat-inclus { flex: 1; font-size: 12px; color: var(--muted); line-height: 2; }
.plat .btn { white-space: nowrap; }

.maintenance {
  display: flex; align-items: center; gap: 24px;
  border: 2px dashed var(--ink);
  border-radius: 14px;
  padding: 20px 28px;
  background: var(--white);
  flex-wrap: wrap;
}
.maintenance-title { font-weight: 700; font-size: 17px; white-space: nowrap; }
.maintenance .mono { flex: 1; font-size: 12.5px; color: var(--muted); line-height: 1.7; min-width: 260px; }
.maintenance b { color: var(--ink); }

/* ── Contact ─────────────────────────────────────────────── */
.section-dark .section-cols { padding: 0; }
.contact-side { width: 420px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-side h2 em { color: var(--green-light); }
.contact-side p { font-size: 15.5px; color: #B5B2A8; line-height: 1.7; }
.contact-lines { display: flex; flex-direction: column; gap: 9px; font-size: 15px; font-weight: 600; }
.contact-lines a { color: var(--paper); }
.contact-lines a:hover { color: var(--green-light); }

.contact-form {
  flex: 1;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 6px 6px 0 var(--green);
  display: flex; flex-direction: column; gap: 14px;
}
.form-kicker { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 1px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-form label { display: block; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(14,122,70,0.15);
}
.contact-form textarea { resize: vertical; min-height: 88px; }
.contact-form ::placeholder { color: var(--muted-2); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.consent { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.consent input { accent-color: var(--green); width: 15px; height: 15px; }
.form-status { font-size: 12.5px; min-height: 18px; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--orange); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: #B5B2A8;
  border-top: 1px solid rgba(246,244,239,0.15);
  padding: 26px 32px;
}
.footer-inner {
  max-width: 1216px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.footer-brand .brand-block { background: var(--green); }
.footer-links { display: flex; gap: 24px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.footer-links a { color: #B5B2A8; }
.footer-links a:hover { color: var(--paper); }
.footer-social { color: var(--green-light) !important; }
.footer-social:hover { color: var(--paper) !important; }

/* ── Bandeau cookies ─────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1; font-size: 13px; color: var(--muted); min-width: 220px; }
.cookie-actions { display: flex; gap: 10px; }

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1080px) {
  .hero-inner { flex-direction: column; gap: 64px; padding-top: 56px; }
  .hero-deco { display: none; }
  .ticket-wrap { width: min(400px, 100%); }
  .section-cols { flex-direction: column; gap: 36px; }
  .section-side, .contact-side { width: auto; }
  .plat { flex-wrap: wrap; }
  .plat-info { width: 100%; }
  .reg-row { grid-template-columns: 100px 1fr 130px; }
  .reg-tags { display: none; }
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-links a.nav-cta { text-align: center; margin-top: 8px; }
  .burger { display: block; }
  .section { padding: 64px 20px; }
  .hero-inner { padding: 44px 20px 64px; }
  .values { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .reg-row { grid-template-columns: 1fr; gap: 12px; }
  .reg-thumb { width: 110px; }
  .reg-status { justify-self: start; }
  .plat { padding: 22px 20px; }
  .plat-line { flex-wrap: wrap; }
  .dots { min-width: 100%; order: 3; display: none; }
  .stamp { right: -6px; top: -30px; width: 100px; height: 100px; font-size: 12px; }
  .marquee-track { font-size: 13px; gap: 26px; }
}
