/* Vitrine Morocco Builders, charte graphique v3 (plâtre, or, terracotta).
   Jetons et matières : design/tokens.css + design/glass.css (source : packages/design). */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}
body {
  margin: 0;
  position: relative;
  font-family: var(--font);
  font-size: var(--fs-2);
  line-height: 1.55;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
/* Titres en Instrument Serif : la voix éditoriale de la marque. */
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
}
h1 em,
h2 em {
  font-style: italic;
  color: var(--accent);
}
.h-small {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}
h3 {
  font-size: var(--fs-3);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.defs {
  position: absolute;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  inset-inline-start: -999px;
  top: var(--s-3);
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
}
.skip:focus {
  inset-inline-start: var(--s-3);
}

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 46px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--on-accent);
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  border-radius: var(--r-pill);
  padding: 0 1.35rem;
  cursor: pointer;
  background: var(--accent);
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform var(--d-retour) var(--ease), background-color var(--d-retour) var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-lo);
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn-small {
  min-height: 38px;
  padding: 0 var(--s-4);
  font-size: 0.88rem;
}
.btn-wide {
  width: 100%;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
[data-theme="dark"] .i-moon,
[data-theme="light"] .i-sun {
  display: none;
}
.text-link {
  color: var(--link);
  font-weight: 500;
  text-underline-offset: 0.3em;
}

/* ===== Navigation ===== */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: var(--s-3) var(--s-4) 0;
}
.nav {
  width: min(920px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 6px 6px 6px 18px;
  border-radius: var(--r-pill);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  width: 24px;
  height: 28px;
}
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.92rem;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.nav-login {
  margin-inline-end: 4px;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.menu-btn,
.menu-only {
  display: none;
}
.menu-cta {
  display: none;
}

/* ===== Héros : promesse + dépôt du projet ===== */
.hero {
  padding-top: clamp(3rem, 6vw, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(var(--s-6), 5vw, var(--s-9));
  align-items: center;
}
.slogan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-4);
  letter-spacing: 0;
  color: var(--accent);
}
.slogan svg {
  width: 26px;
  height: 30px;
}
.hero h1 {
  margin-top: var(--s-4);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.98;
  text-wrap: balance;
}
.lede {
  margin-top: var(--s-5);
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.55;
  color: var(--text-2);
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6);
  padding: 0;
  list-style: none;
  font-size: var(--fs-2);
  color: var(--text-2);
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent);
}
.hero-note {
  margin-top: var(--s-6);
  font-size: var(--fs-1);
  color: var(--text-3);
}
.text-link-inline {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Carte de dépôt */
.depot {
  position: relative;
  border-radius: 260px 260px var(--r-xl) var(--r-xl);
  padding: 12px;
  min-height: 460px;
  display: grid;
  background: var(--surface-2);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--filet) 70%, transparent),
    var(--shadow-2);
}
.depot-zone {
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--s-3);
  padding: var(--s-7) var(--s-5);
  text-align: center;
  padding-top: var(--s-9);
  border: 1.5px dashed color-mix(in srgb, var(--filet) 85%, transparent);
  border-radius: 248px 248px calc(var(--r-xl) - 12px) calc(var(--r-xl) - 12px);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.depot.is-over .depot-zone,
.depot-zone:focus-within {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.depot-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--on-accent);
  background: var(--accent);
}
.depot-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.depot h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.3rem);
}
.depot p {
  color: var(--text-2);
  max-width: 26rem;
}
.depot .fine {
  font-size: var(--fs-1);
  color: var(--text-3);
}
.depot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.btn-line {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn-line:hover {
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.depot-step {
  align-self: center;
  padding: var(--s-9) var(--s-6) var(--s-6);
}
.depot-step h2 {
  margin-top: var(--s-4);
}
.depot-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-m);
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent);
  font-size: var(--fs-2);
}
.depot-file strong {
  word-break: break-all;
}
.depot-file .tick {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ok);
  font-weight: 700;
}
.depot-bar {
  height: 8px;
  margin-top: var(--s-4);
  border-radius: 99px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  overflow: hidden;
}
.depot-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--filet);
  transition: width 0.2s linear;
}
.depot-form {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.depot-form label {
  font-size: var(--fs-2);
  font-weight: 600;
}
.depot-form input {
  min-height: 50px;
  padding: 0 var(--s-4);
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
}
.depot-form input:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 1px;
}
.depot-form .btn {
  min-height: 52px;
}
.depot-err {
  color: var(--danger);
  font-size: var(--fs-2);
}
.depot-back {
  margin-top: var(--s-4);
  font-size: var(--fs-2);
  color: var(--text-3);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.depot-back:hover {
  color: var(--text);
}
/* Survol de la page entière avec des fichiers */
.drag-veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: var(--fs-5);
  font-weight: 600;
  pointer-events: none;
}
.is-dragging .drag-veil {
  display: grid;
}
.drag-veil span {
  padding: var(--s-6) var(--s-8);
  font-family: var(--font-display);
  font-size: var(--fs-6);
  font-weight: 400;
  border: 1.5px dashed var(--filet);
  border-radius: 200px 200px var(--r-xl) var(--r-xl);
  background: var(--surface-2);
}

/* Schéma « du prompt au site en ligne » et tampon FREE */
.flow-section {
  text-align: center;
}
.stamp-wrap {
  display: grid;
  place-items: center;
  height: 150px;
}
.stamp {
  display: grid;
  place-items: center;
  width: 190px;
  height: 120px;
  border: 5px solid var(--accent);
  border-radius: 18px;
  color: var(--accent);
  transform: rotate(-9deg);
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: -11px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.stamp-word {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}
.stamp-sub {
  margin-top: -18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.js .flow-section:not(.is-in) .stamp {
  opacity: 0;
}
.flow-section.is-in .stamp {
  animation: stamp-hit var(--d-tampon) var(--ease) both;
}
.flow-section.is-in .stamp-wrap {
  animation: stamp-shake 0.3s var(--d-tampon) ease-out both;
}
@keyframes stamp-hit {
  0% {
    opacity: 0;
    transform: rotate(-9deg) scale(1.5);
  }
  70% {
    opacity: 1;
    transform: rotate(-9deg) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: rotate(-9deg) scale(1);
  }
}
@keyframes stamp-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-3px, 2px);
  }
  50% {
    transform: translate(3px, -1px);
  }
  75% {
    transform: translate(-1px, 1px);
  }
}
.flow-title {
  margin-top: var(--s-4);
}
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: start;
  margin-top: var(--s-8);
  padding: 0;
  list-style: none;
}
.flow-step {
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  padding: 0 var(--s-2);
}
.flow-step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-5);
  letter-spacing: 0;
}
.flow-step > p:not(.flow-num):not(.cndp-badge) {
  max-width: 17rem;
  color: var(--text-2);
}
.flow-icon {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 40px 40px 16px 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--filet) 60%, transparent);
  box-shadow: var(--shadow-1);
}
.flow-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-num {
  font-size: var(--fs-1);
  font-weight: 700;
  color: var(--text-3);
}
.flow-arrow {
  padding-top: 32px;
}
.flow-arrow svg {
  width: 48px;
  height: 12px;
  fill: none;
  stroke: var(--filet);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Étape 3 : coche « validé » qui se dessine, avec un éclat */
.flow-check {
  background: color-mix(in srgb, var(--ok) 16%, var(--surface));
  border-color: color-mix(in srgb, var(--ok) 50%, transparent);
}
.flow-check svg {
  width: 46px;
  height: 46px;
  stroke: var(--ok);
  stroke-width: 2.2;
}
.check-ring,
.check-tick {
  stroke-dasharray: 70;
  stroke-dashoffset: 0;
}
.js .flow-section:not(.is-in) .check-ring,
.js .flow-section:not(.is-in) .check-tick {
  stroke-dashoffset: 70;
}
.flow-section.is-in .check-ring {
  animation: draw 0.6s 1s ease-out both;
}
.flow-section.is-in .check-tick {
  animation: draw 0.4s 1.45s ease-out both;
}
@keyframes draw {
  from {
    stroke-dashoffset: 70;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.burst {
  position: absolute;
  inset: -10px;
  border-radius: 48px 48px 22px 22px;
  border: 2px solid var(--ok);
  opacity: 0;
}
.flow-section.is-in .burst {
  animation: burst 0.7s 1.75s ease-out both;
}
@keyframes burst {
  0% {
    opacity: 0.9;
    transform: scale(0.85);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}
.validated {
  display: inline-flex;
  margin-inline-start: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: var(--fs-1);
  font-weight: 700;
  vertical-align: middle;
  color: var(--on-ok, #faf4ee);
  background: var(--ok);
}
[data-theme="dark"] .validated {
  --on-ok: var(--nuit);
}
.flow-section.is-in .validated {
  animation: pop 0.45s 1.8s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
@keyframes pop {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
.cndp-badge {
  max-width: 100%;
  text-wrap: balance;
  text-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-2);
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
}
.cndp-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Vitrine des builders */
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s-8);
  align-items: center;
}
.showcase-points {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding: 0;
  list-style: none;
}
.showcase-points li {
  padding-inline-start: 30px;
  position: relative;
  color: var(--text-2);
}
.showcase-points li strong {
  color: var(--text);
}
.showcase-points li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--ok);
  font-weight: 700;
}
.showcase-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
.sc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 140px 140px var(--r-l) var(--r-l);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--filet) 55%, transparent);
  box-shadow: var(--shadow-2);
}
.sc-card:nth-child(2) {
  transform: translateY(28px);
}
.sc-top {
  position: relative;
  height: 120px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hue, var(--accent)) 14%, var(--surface-2)), color-mix(in srgb, var(--hue, var(--accent)) 45%, var(--surface-2)));
}
.sc-top span {
  position: absolute;
  inset-inline: 0;
  bottom: 12px;
  margin-inline: auto;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: var(--fs-1);
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
}
.sc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--s-5);
}
.sc-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-5);
  letter-spacing: 0;
}
.sc-by {
  font-size: var(--fs-2);
  color: var(--text-2);
}
.sc-desc {
  margin-top: var(--s-3);
  font-size: var(--fs-2);
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--s-4);
}
.sc-actions a,
.sc-actions span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 99px;
  font-size: var(--fs-2);
  font-weight: 600;
}
.sc-actions .sc-site {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.sc-actions .sc-contact {
  color: var(--on-accent);
  background: var(--accent);
}
.depot-actions-start {
  justify-content: flex-start;
}
.showcase-cta {
  margin-top: var(--s-6);
}
.hue-restaurant {
  --hue: #9a4632;
}
.hue-commerce {
  --hue: #c9a24a;
}
.hue-tourisme {
  --hue: #1f4d56;
}
.hue-services {
  --hue: #5a4c42;
}
.hue-sante {
  --hue: #2a6370;
}
.hue-education {
  --hue: #5e5c2e;
}
.hue-immobilier {
  --hue: #d49a82;
}
.hue-portfolio {
  --hue: #b8893a;
}
.hue-association {
  --hue: #7d7a45;
}
.hue-autre {
  --hue: #8a7a6a;
}
.sc-label {
  grid-column: 1 / -1;
  font-size: var(--fs-1);
  color: var(--text-3);
}

/* ===== Sections ===== */
.section {
  padding-top: var(--s-10);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--s-5) var(--s-7);
  flex-wrap: wrap;
}
.section-head p {
  color: var(--text-2);
  font-size: var(--fs-3);
}
.ok-text {
  color: var(--ok);
}
.muted {
  color: var(--text-2);
}

/* Bento */
.bento {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-4);
}
.tile {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  overflow: hidden;
  min-height: 250px;
}
.tile p {
  margin-top: var(--s-2);
  color: var(--text-2);
  font-size: 0.97rem;
  max-width: 36ch;
}
.t-drop {
  grid-column: span 4;
  grid-row: span 2;
}
.t-mcp {
  grid-column: span 2;
  grid-row: span 2;
}
.t-dns,
.t-versions,
.t-secret {
  grid-column: span 2;
}
/* Mini-interfaces des tuiles : opaques pour rester lisibles (pas de verre sur verre). */
.drop,
.mcp .bot,
.dns p,
.versions li,
.secret {
  background: var(--field);
  border: 1px solid var(--line);
}
.drop {
  border-style: dashed;
  border-width: 1.5px;
  border-color: var(--line-strong);
  border-radius: var(--r-m);
  padding: var(--s-5);
}
.folder {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.folder strong,
.folder small {
  display: block;
}
.folder small {
  color: var(--text-2);
  font-size: var(--fs-1);
}
.folder svg {
  width: 46px;
  fill: var(--accent);
  filter: none;
}
.progress {
  margin-top: var(--s-5);
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--filet);
}
.drop-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 0.86rem;
}
.tile .drop-meta {
  max-width: none;
  margin-top: var(--s-3);
}
.mcp {
  display: grid;
  gap: var(--s-2);
  font-size: 0.88rem;
}
.tile .mcp p {
  margin: 0;
  max-width: none;
  padding: 10px 14px;
  border-radius: var(--r-s);
  color: var(--text);
}
.tile .mcp .you {
  justify-self: end;
  color: var(--platre);
  background: var(--encre);
}
.tile .mcp .muted {
  color: var(--text-2);
}
.dns {
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.76rem;
}
.tile .dns p {
  margin: 0;
  max-width: none;
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--r-s);
  color: var(--text);
}
.dns b {
  color: var(--accent);
}
[data-theme="light"] .dns b {
  color: var(--warn);
}
.dns span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.versions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.versions li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-s);
}
.versions em {
  margin-inline-start: auto;
  font-style: normal;
  font-family: var(--font);
  color: var(--text-2);
  font-size: 0.8rem;
}
.v-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.v-dot.is-live {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.tile .secret {
  margin: 0;
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 12px 14px;
  border-radius: var(--r-s);
  color: var(--text);
}
.dots {
  letter-spacing: 0.14em;
  color: var(--accent);
}
[data-theme="light"] .dots {
  color: var(--warn);
}

/* Souveraineté */
.sovereign {
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  border-radius: var(--r-xl);
}
.sovereign h2 {
  max-width: 16ch;
}
.sov-lede {
  margin-top: var(--s-5);
  max-width: 42rem;
  color: var(--text-2);
  font-size: var(--fs-3);
}
.sov-grid {
  margin: clamp(var(--s-6), 5vw, var(--s-7)) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
}
.sov-grid div {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--s-4);
}
.sov-grid dt {
  font-weight: 600;
}
.sov-grid dd {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

/* Bientôt */
.soon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--s-6), 6vw, var(--s-8));
  align-items: center;
}
.badge {
  display: inline-block;
  margin-bottom: var(--s-4);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
[data-theme="light"] .badge {
  color: var(--accent-lo);
}
.soon-lede {
  margin-top: var(--s-5);
  color: var(--text-2);
  max-width: 32rem;
}
.chat {
  display: grid;
  gap: var(--s-4);
}
.bubble {
  max-width: 25rem;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-l);
}
.bubble-user {
  justify-self: end;
  color: var(--platre);
  background: var(--encre);
  border-end-end-radius: var(--r-xs);
}
.bubble-app {
  border-end-start-radius: var(--r-xs);
}
.bubble-app ul {
  margin: var(--s-2) 0 var(--s-3);
  padding-inline-start: 1.1rem;
  color: var(--text-2);
}
.bubble-url {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--ok);
}

/* Pour qui */
.audiences {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}
.audiences article {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--s-4);
}
.audiences p {
  margin-top: var(--s-2);
  color: var(--text-2);
}

/* Liste d'attente */
.waitlist {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  border-radius: var(--r-xl);
}
.waitlist-lede {
  margin-top: var(--s-4);
  color: var(--text-2);
  max-width: 26rem;
}
.form {
  display: grid;
  gap: var(--s-4);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.field > label:not(.consent) {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-2);
}
.field em {
  font-style: normal;
  color: var(--text-3);
}
.form input[type="email"],
.form input[type="text"],
.form select {
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: var(--fs-2);
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form select option {
  color: var(--encre);
  background: var(--platre);
}
.form input::placeholder {
  color: var(--text-3);
}
.form input:focus,
.form select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form [aria-invalid="true"] {
  border-color: var(--danger);
}
.field-err {
  margin-top: 6px;
  min-height: 0;
  font-size: 0.86rem;
  color: var(--danger);
}
.field-err:empty {
  display: none;
}
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: start;
  font-size: 0.88rem;
  color: var(--text-2);
  cursor: pointer;
}
.consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  font-size: 0.93rem;
  color: var(--danger);
}
.form-status:empty {
  display: none;
}
.success {
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: var(--s-3);
  min-height: 100%;
  padding: var(--s-6) var(--s-4);
}
.success:focus {
  outline: none;
}
.success svg {
  width: 52px;
  height: 52px;
  height: 60px;
}
.success h3 {
  font-size: var(--fs-5);
}
.success-text {
  color: var(--text-2);
  max-width: 24rem;
}

/* Questions */
.faq-list {
  margin-top: var(--s-6);
  max-width: 820px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  min-height: 64px;
  font-weight: 500;
  font-size: 1.06rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.faq details p {
  padding-bottom: var(--s-5);
  color: var(--text-2);
  max-width: 64ch;
}

.footer {
  margin-top: var(--s-10);
  padding: var(--s-6) 0 var(--s-7);
  border-top: 1px solid color-mix(in srgb, var(--filet) 60%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-size: var(--fs-1);
  color: var(--text-3);
}
.footer .brand {
  color: var(--text);
}

/* ===== Tablette et mobile ===== */
@media (max-width: 960px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .t-drop,
  .t-mcp {
    grid-column: span 2;
    grid-row: auto;
  }
  .t-dns,
  .t-versions,
  .t-secret {
    grid-column: span 1;
  }
  .t-secret {
    grid-column: span 2;
  }
  .sov-grid {
    grid-template-columns: 1fr 1fr;
  }
  .soon,
  .waitlist,
  .hero-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .nav {
    padding-inline-start: 16px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    flex-direction: column;
    padding: var(--s-3);
    border-radius: var(--r-l);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: inset 0 1px 0 var(--top-light), var(--shadow-3);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links .menu-only {
    display: block;
  }
  .nav-links .menu-cta {
    display: block;
  }
  .nav-links .menu-cta a {
    margin-top: var(--s-2);
    text-align: center;
    color: var(--on-accent);
    background: var(--accent);
  }
  .nav-links a {
    padding: 14px 16px;
    font-size: var(--fs-3);
    color: var(--text);
  }
  .menu-btn {
    display: inline-grid;
  }
  .nav-cta,
  .nav-login {
    display: none;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }
  .flow {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
  .flow-arrow {
    padding-top: 0;
    transform: rotate(90deg);
    justify-self: center;
  }
  .showcase-cards {
    grid-template-columns: 1fr;
  }
  .sc-card:nth-child(2) {
    transform: none;
  }
  .section {
    padding-top: var(--s-9);
  }
}
@media (max-width: 620px) {
  .bento,
  .sov-grid,
  .audiences,
  .form-row {
    grid-template-columns: 1fr;
  }
  .t-drop,
  .t-mcp,
  .t-dns,
  .t-versions,
  .t-secret {
    grid-column: auto;
  }
  .tile {
    min-height: 0;
    padding: var(--s-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .depot-zone,
  .depot-bar span {
    transition: none;
  }
  .flow-section .stamp,
  .flow-section .stamp-wrap,
  .flow-section .check-ring,
  .flow-section .check-tick,
  .flow-section .validated {
    animation: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
  .flow-section .burst {
    display: none;
  }
  .btn,
  .faq summary::after {
    transition: none;
  }
}

/* ===== Charte v3 : matières et signes ===== */
.nav {
  border-color: color-mix(in srgb, var(--filet) 35%, transparent);
}
.brand {
  font-weight: 650;
}
.hero-facts li::before {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--filet);
  box-shadow: none;
}
/* Fil d'or : il relie la promesse au dépôt. */
.hero-fil {
  display: block;
  width: min(420px, 100%);
  height: 70px;
  margin-top: var(--s-5);
}
.flow-section.is-in .flow-arrow .fil-or,
.hero-fil .fil-or {
  animation: fil-or var(--d-fil) var(--ease) both;
}
.flow-arrow .fil-or {
  stroke-dasharray: 100;
}
.js .flow-section:not(.is-in) .flow-arrow .fil-or {
  stroke-dashoffset: 100;
}
/* Souveraineté : bande nuit sur zellige, ton sur ton. */
.sovereign-nuit {
  position: relative;
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  border-radius: var(--r-xl);
  color: var(--text);
  background-color: var(--bg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.sovereign-nuit h2 {
  max-width: 18ch;
}
.sovereign-nuit .sov-grid dt {
  color: var(--brand);
}
.tile h3,
.audiences h3,
.waitlist h2,
.success h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-5);
  letter-spacing: 0;
}
.bubble-url {
  color: var(--link);
}
.faq-list summary {
  font-family: var(--font-display);
  font-size: var(--fs-4);
  font-weight: 400;
}
/* Badge des builders */
.badge-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.badge-demo img {
  height: 40px;
  width: auto;
}
.footer-zellige {
  height: 36px;
  margin-top: var(--s-10);
  border-radius: var(--r-m);
  opacity: 0.8;
}
.footer-zellige + .footer {
  margin-top: var(--s-5);
}
@media (prefers-reduced-motion: reduce) {
  .flow-section.is-in .stamp,
  .flow-section.is-in .stamp-wrap,
  .flow-section.is-in .flow-arrow .fil-or,
  .hero-fil .fil-or {
    animation: none;
  }
}

/* Hamsa : sur le plâtre, l'or est plus soutenu pour rester lisible en petit (charte, logo en petite taille). */
[data-theme="light"] .mg1 {
  stop-color: #b8893a;
}
[data-theme="light"] .mg2 {
  stop-color: #d9b25c;
}
[data-theme="light"] .mg3 {
  stop-color: #8e6b22;
}

/* ===== Héros v0.9 : phrase, schéma, dépôt ===== */
.hero-head {
  text-align: center;
}
.hero-head .slogan {
  justify-content: center;
}
.hero-head h1 {
  margin-inline: auto;
  max-width: 15ch;
  font-size: clamp(2.9rem, 6.4vw, 5.6rem);
}
.hero-head .lede {
  margin-inline: auto;
  max-width: 40rem;
}
.hero-flow {
  margin-top: var(--s-6);
  text-align: center;
}
.hero-flow .flow {
  margin-top: var(--s-5);
}
.hero-flow .stamp-wrap {
  height: 130px;
}
.validated.tampon {
  margin-top: var(--s-1);
  padding: 5px 14px 4px;
  border-width: 3px;
  outline-offset: -6px;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.flow-section.is-in .validated.tampon {
  animation: tampon var(--d-tampon) 1.8s var(--ease) both;
}
.js .flow-section:not(.is-in) .validated.tampon {
  opacity: 0;
}
.depot-wrap {
  display: grid;
  justify-items: center;
  margin-top: var(--s-7);
  text-align: center;
}
.depot-wrap .depot {
  width: min(620px, 100%);
}
.depot-wrap .hero-facts {
  justify-content: center;
}
.depot-wrap .hero-fil {
  margin-inline: auto;
}
/* ===== Ils nous font confiance ===== */
.section-tight {
  padding-top: var(--s-8);
}
.confiance-head {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.h-label {
  font-family: var(--font);
  font-size: var(--fs-2);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-2);
}
.marquee-toggle {
  font: inherit;
  font-size: var(--fs-1);
  color: var(--text-3);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.marquee-toggle:hover {
  color: var(--text);
}
.marquee {
  margin-top: var(--s-4);
  overflow: hidden;
  border-block: 1px solid color-mix(in srgb, var(--filet) 45%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: var(--s-5) 0;
  list-style: none;
  animation: defile 40s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track {
  animation-play-state: paused;
}
.marquee-track li {
  display: flex;
  align-items: center;
  padding-inline: clamp(var(--s-6), 5vw, var(--s-8));
}
.marquee-track li + li::before {
  content: "";
  position: relative;
  inset-inline-start: calc(-1 * clamp(var(--s-6), 5vw, var(--s-8)));
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--filet);
}
.marquee-track a,
.marquee-track span {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.6rem;
  line-height: 1;
}
.marquee-track a:hover {
  color: var(--accent);
}
/* Mots-symboles composés : pas de logo téléchargé, pas de ressource externe. */
.w-courtee {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.w-klarte {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 1.15rem !important;
}
.w-mialya {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem !important;
}
.w-valises {
  font-family: var(--font);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.2rem !important;
}
@keyframes defile {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .marquee-track li[aria-hidden="true"] {
    display: none;
  }
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
/* ===== Store des apps ===== */
.apps-note {
  margin-top: var(--s-3);
  font-size: var(--fs-1);
  color: var(--text-3);
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
}
.app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 140px 140px var(--r-l) var(--r-l);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--filet) 50%, transparent);
  box-shadow: var(--shadow-1);
}
.app-top {
  position: relative;
  height: 130px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hue, var(--accent)) 12%, var(--surface-2)), color-mix(in srgb, var(--hue, var(--accent)) 50%, var(--surface-2)));
}
.app-initial {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--surface);
  opacity: 0.9;
}
.app-tag {
  position: absolute;
  bottom: 10px;
  inset-inline: 0;
  margin-inline: auto;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
}
.app-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-4) var(--s-5);
}
.app-cat {
  font-size: 0.8rem;
  color: var(--text-3);
}
.app-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-5);
  letter-spacing: 0;
}
.app-desc,
.app-by {
  font-size: 0.92rem;
  color: var(--text-2);
}
.app-discover {
  align-self: flex-start;
  margin-top: auto;
}
.app-body > p:nth-last-child(2) {
  margin-bottom: var(--s-4);
}
.apps-cta {
  margin-top: var(--s-6);
  text-align: center;
}
.showcase-solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 46rem;
}
@media (max-width: 960px) {
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .apps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .marquee-track a,
  .marquee-track span {
    font-size: 1.3rem;
  }
}

.depot-invite {
  display: grid;
  gap: var(--s-2);
  text-align: start;
}
.depot-invite[hidden] {
  display: none;
}
