/* DA Louis — tokens officiels */
:root {
  --bg: #edf0f0;
  --ink: #03256c;
  --accent: #3694f7;
  --good: #38bb33;
  --bad: #ff3236;
  --surface: #ffffff;
  --bg-2: #dfe5e5;
  --muted: #64708c;
  --line: #d6dcdc;
  --accent-dark: #1f7fe0;
  --accent-soft: #e3f0fe;
  --good-soft: #e4f6e3;
  --blue: #2563d6;
  --blue-15: rgba(54, 148, 247, 0.15);
  --green-15: rgba(56, 187, 51, 0.15);
  --ink-15: rgba(3, 37, 108, 0.15);
  --shadow: 0 1px 2px rgba(3, 37, 108, 0.05), 0 14px 34px rgba(3, 37, 108, 0.1);
  --radius: 16px;
  /* Couleurs Claude Code (terracotta / brun) */
  --claude: #d97757;
  --claude-dark: #c15f3c;
  --claude-brown: #8a3d22;
  --claude-soft: #fbece5;
  --claude-line: #f2cdbd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Host Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* halo froid discret */
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(54, 148, 247, 0.1), transparent 60%),
    radial-gradient(900px 480px at 110% 8%, rgba(3, 37, 108, 0.06), transparent 55%);
}
[hidden] { display: none !important; }

/* Surlignage signature de la DA : mot en couleur sur la même couleur à 15 % */
.hl { border-radius: 999px; padding: 0 .22em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-blue { color: var(--blue); background: var(--blue-15); }
.hl-green { color: var(--good); background: var(--green-15); }
.hl-red { color: var(--bad); background: rgba(255, 50, 54, 0.15); }

.hero {
  width: 100%;
  max-width: 1040px;
  margin: auto; /* centré verticalement dans la page */
  padding: clamp(22px, 4vw, 40px) 20px 24px;
  text-align: center;
}

/* Mascotte Claude Code */
.mascot {
  display: block;
  width: 100px; height: 60px;
  margin: 0 auto 14px;
  fill: var(--claude);
  filter: drop-shadow(0 6px 14px rgba(217, 119, 87, 0.35));
  animation: clawd-bob 3.2s ease-in-out infinite;
}
@keyframes clawd-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .mascot { animation: none; } }
svg.mini { width: 20px; height: 12px; fill: var(--claude); flex: none; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--good);
  background: var(--green-15);
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 auto 14px;
  max-width: 24ch;
}

.lede {
  font-size: 1.02rem;
  color: #33406b;
  max-width: 60ch;
  margin: 0 auto 18px;
}
.lede strong { color: var(--ink); font-weight: 700; }

.checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}
.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  color: #33406b;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--green-15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2338bb33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checks li strong { color: var(--ink); }

/* ---- Bouton d'appel à l'action ---- */
.cta-wrap { margin-top: 30px; display: grid; justify-items: center; gap: 12px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 26px 8px 8px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: 0 0 0 7px var(--ink-15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cta img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.cta svg { transition: transform 0.15s ease; }
.cta:hover {
  background: #0a2f80;
  transform: translateY(-2px);
  box-shadow: 0 0 0 9px var(--blue-15);
}
.cta:hover svg { transform: translateX(3px); }
.cta:active { transform: translateY(0); }
.cta:focus-visible { outline: none; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--accent); }
.cta-meta { font-size: 0.86rem; color: var(--muted); }

/* ---- Aperçu centré (modale) ---- */
body.modal-open { overflow: hidden; }
.modal {
  width: min(1040px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(3, 37, 108, 0.35);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal[open] { animation: modal-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modal::backdrop {
  background: rgba(3, 20, 60, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal[open]::backdrop { animation: fade-in 0.22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.modal-close:hover { background: var(--bg-2); }

/* ---- Module de réservation (calendrier) ---- */
.booker {
  width: 100%;
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 540px;
}

.host {
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}
.host h2 {
  padding-right: 36px; /* place pour le bouton de fermeture */
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 22px;
}
.who { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.who img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.who .name { font-weight: 600; font-size: 1rem; }
.who .role { color: var(--muted); font-size: 0.92rem; }
.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 14px 6px;
}
.meta svg { color: #9aa6b8; flex: none; }
.meta.cc-meta { color: var(--ink); font-weight: 500; }
.meta.cc-meta svg.mini { width: 22px; height: 13px; }

.tz { display: block; margin-top: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tz select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.95rem;
  color: #4a5670;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa6b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px no-repeat;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 38px 11px 13px;
  cursor: pointer;
  outline: none;
}
.tz select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.picked {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid #cfe4fd;
  border-radius: 12px;
}
.picked-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-dark); }
.picked-when { font-weight: 700; margin-top: 2px; }

/* Étape 1 : calendrier + horaires */
.pick {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 28px;
  padding: 30px 60px 30px 32px;
}
.pick[hidden], .step-form[hidden], .step-done[hidden] { display: none; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.month { font-size: 1.15rem; font-weight: 600; }
.nav { display: flex; gap: 6px; }
.nav button {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: none; background: none;
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
}
.nav button:hover:not(:disabled) { background: var(--accent-soft); }
.nav button:disabled { color: #c3cad6; cursor: default; }

.dow, .grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
}
.dow { margin-bottom: 12px; }
.dow span { font-size: 0.74rem; font-weight: 700; color: #4a5670; letter-spacing: 0.02em; }
.grid { row-gap: 8px; }

.dnum {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: none;
  font: inherit;
  font-size: 1rem;
  color: #b3bbc8;
  display: grid; place-items: center;
}
.dnum.avail {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}
.dnum.avail:hover { background: #cfe4fd; }
.dnum.active, .dnum.active:hover { background: var(--accent); color: #fff; }
.dnum.today { font-weight: 700; color: #6b7690; }
.dnum.today::after {
  content: "";
  position: absolute;
  bottom: 6px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}
.dnum.avail.today { color: var(--accent-dark); }
.dnum.active.today { color: #fff; }

.loading, .empty { color: var(--muted); font-size: 0.9rem; padding: 18px 0 0; text-align: center; }

.times-head { font-size: 1.15rem; font-weight: 600; margin: 6px 0 22px; min-height: 1.5em; }
.times-list {
  display: grid;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding: 2px;
}
.slot {
  width: 100%;
  padding: 13px 10px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}
.slot:hover { background: var(--accent); color: #fff; }
.slot:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.slot.active, .slot.active:hover { background: var(--accent); color: #fff; }
.times .btn.primary { margin-top: 14px; }
.btn[hidden] { display: none; }
.pick .formerr { margin-top: 14px; }

/* Étape 2 : coordonnées */
.step-form, .step-done { padding: 30px 36px; max-width: 560px; }
.step-form h3, .step-done h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 0.9rem; margin: 4px 0 20px; }

.field { margin-bottom: 15px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}
label .opt { color: #a7b0c4; font-weight: 600; letter-spacing: 0; text-transform: none; }
input, textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #a7b0c4; }
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 74px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.05s, opacity 0.15s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #fff; margin-top: 8px; }
.btn.primary:hover { background: #06318a; }
.btn.primary:disabled { background: var(--bg-2); color: #9aa4bd; cursor: not-allowed; }

.back {
  background: none; border: none; color: var(--accent-dark);
  font: inherit; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; padding: 0; margin-bottom: 14px;
}
.back:hover { text-decoration: underline; }

.formerr {
  margin-top: 12px;
  background: #ffe5e5;
  color: #c31f22;
  border: 1px solid #f3b0b1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

/* ---- Confirmation ---- */
.step-done { text-align: center; margin: 0 auto; }
.done-badge {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--good-soft); color: var(--good);
  display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 800;
  margin: 6px auto 14px;
  box-shadow: 0 0 0 6px rgba(56, 187, 51, 0.08);
}
.done-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}
.done-box p { font-size: 0.92rem; color: #33406b; }
.mini { font-size: 0.86rem; color: var(--muted); }

/* ---- Footer ---- */
.foot {
  text-align: center;
  padding: 22px 20px 30px;
  font-size: 0.8rem;
  color: var(--muted);
}

.spin { pointer-events: none; opacity: 0.7; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .booker { grid-template-columns: 1fr; }
  .host { border-right: none; border-bottom: 1px solid var(--line); padding: 24px 22px; }
  .host h2 { margin-bottom: 16px; }
  .pick { grid-template-columns: 1fr 220px; padding: 24px 22px; }
}
@media (max-width: 680px) {
  .modal { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .cta { font-size: 1rem; padding-right: 20px; }
  .pick { grid-template-columns: 1fr; gap: 18px; padding: 20px 14px; }
  .dnum { width: 40px; height: 40px; font-size: 0.95rem; }
  .times-head { margin: 0 0 12px; }
  .times-list { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); max-height: none; }
  .step-form, .step-done { padding: 22px 16px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
}

/* ---- Scène animée : Claude Code vs outils no-code (décoratif) ---- */
.arena {
  position: relative;
  width: min(760px, calc(100% - 32px));
  height: 100px;
  margin: 4px auto 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.8;
  --ground: 14px;
}
.arena .ground {
  position: absolute;
  left: 0; right: 0; bottom: var(--ground);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.arena .archer {
  position: absolute;
  left: 30px; bottom: var(--ground);
  width: 60px; height: 44px;
  animation: archer-idle 2.4s ease-in-out infinite;
}
.arena .archer-body { position: absolute; left: 0; bottom: 0; width: 45px; height: 27px; fill: var(--claude); }
.arena .bow { position: absolute; left: 40px; bottom: 6px; width: 12px; height: 26px; overflow: visible; transition: transform 0.35s ease; transform-origin: 0 50%; }
.arena .archer.aiming .bow { transform: rotate(-12deg); }
@keyframes archer-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

.arena .enemy {
  position: absolute;
  left: 0; bottom: var(--ground);
  width: 30px; height: 42px;
  will-change: transform;
}
.arena .enemy .logo { position: absolute; left: 0; bottom: 6px; width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(3, 37, 108, 0.12)); transition: transform 0.45s cubic-bezier(0.5, -0.4, 0.7, 1.4), opacity 0.6s ease 0.9s; transform-origin: 50% 100%; }
.arena .enemy .eyes { position: absolute; left: 8px; top: 0; display: flex; gap: 4px; transition: opacity 0.2s; }
.arena .enemy .eyes i { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: inset 1px 0 0 1.5px #1c1c1c, 0 0 0 1px rgba(0,0,0,0.15); }
.arena .enemy .legs { position: absolute; left: 9px; bottom: 0; width: 12px; height: 7px; }
.arena .enemy .legs b { position: absolute; bottom: 0; width: 2px; height: 7px; background: #4a5670; border-radius: 1px; transform-origin: 50% 0; animation: leg 0.36s ease-in-out infinite alternate; }
.arena .enemy .legs b:first-child { left: 2px; }
.arena .enemy .legs b:last-child { right: 2px; animation-delay: -0.18s; }
@keyframes leg { from { transform: rotate(22deg); } to { transform: rotate(-22deg); } }

/* Touché ! */
.arena .enemy.dead .legs { opacity: 0; transition: opacity 0.2s; }
.arena .enemy.dead .logo { transform: rotate(-90deg) translate(-2px, -2px); opacity: 0; }
.arena .enemy.dead .eyes { opacity: 0; }
.arena .enemy.dead::after {
  content: "×  ×";
  position: absolute; left: 6px; top: -2px;
  font: 700 9px/1 "Host Grotesk", sans-serif; color: #1c1c1c; white-space: pre;
  animation: fade-out 0.5s ease 0.25s forwards;
}
.arena .enemy .stuck {
  position: absolute; left: 12px; top: 18px;
  width: 16px; height: 2px; background: #8a3d22;
  transform: rotate(-8deg);
  animation: fade-out 0.6s ease 0.9s forwards;
}
.arena .enemy .stuck::after { content: ""; position: absolute; right: -3px; top: -2px; border: 3px solid transparent; border-right-color: #c15f3c; transform: rotate(180deg); }
@keyframes fade-out { to { opacity: 0; } }

.arena .arrow {
  position: absolute;
  left: 0; bottom: var(--ground);
  width: 18px; height: 2px;
  background: #8a3d22;
  border-radius: 1px;
  transform-origin: 50% 50%;
  will-change: transform;
}
.arena .arrow::before { content: ""; position: absolute; right: -5px; top: -3px; border: 4px solid transparent; border-left: 6px solid #c15f3c; }
.arena .arrow::after { content: ""; position: absolute; left: -1px; top: -2px; width: 4px; height: 6px; background: linear-gradient(#f2cdbd, #f2cdbd) left/1px 100% no-repeat, linear-gradient(#f2cdbd, #f2cdbd) right/1px 100% no-repeat; }

.arena .puff {
  position: absolute; bottom: calc(var(--ground) + 8px);
  width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%;
  box-shadow: -9px -4px 0 0 #cfd6de, 9px -5px 0 0 #cfd6de, 0 -11px 0 0 #cfd6de, -5px 5px 0 -1px #dfe5e5, 6px 5px 0 -1px #dfe5e5;
  animation: puff 0.8s ease-out forwards;
}
@keyframes puff { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.8) translateY(-6px); opacity: 0; } }

@media (max-width: 520px) {
  .arena { height: 80px; opacity: 0.7; }
  .arena .archer { left: 14px; }
}

/* Gains : chaque outil abattu fait économiser son abonnement annuel */
.arena .up {
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
  border-radius: 50%;
  background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center/9px no-repeat;
  flex: none;
}
.arena .gain {
  position: absolute;
  bottom: calc(var(--ground) + 44px);
  font: 700 12px/1 "Host Grotesk", sans-serif;
  color: #2a9a26;
  white-space: nowrap;
  animation: gain-rise 2.1s ease-out forwards;
}
@keyframes gain-rise {
  0% { opacity: 0; transform: translateY(8px) scale(0.9); }
  15% { opacity: 1; transform: translateY(0) scale(1.05); }
  30% { transform: translateY(-3px) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-22px); }
}
.arena .total {
  position: absolute;
  right: 0; top: 4px;
  display: flex; align-items: center;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: var(--good-soft);
  border: 1px solid #c9ebc7;
  font: 700 12px/1 "Host Grotesk", sans-serif;
  color: #2a8a26;
  white-space: nowrap;
}
.arena .total[hidden] { display: none; }
.arena .total.bump { animation: bump 0.45s ease; }
@keyframes bump { 40% { transform: scale(1.1); } }
