/**
 * Couche charte pour index copie.html.
 * Valeurs : design/tokens/brand-tokens.json
 * LOGO_STATUS = EXPLORATION_NOT_APPROVED
 *
 * Chargée après assets/site.css. Les noms déjà lus par le site
 * (--ink, --paper, --mineral, --copper, --blue-text, --muted, --line,
 * --serif, --sans) reprennent la palette officielle. Le rendu déjà
 * conforme reste en place. Cette feuille ne redessine pas la page.
 */

:root {
  --ink: #19232c;
  --paper: #f7f7f3;
  --stone: #efeee8;
  --mineral: #607d95;
  --copper: #b98c72;
  --blue-text: #49677e;
  --muted: #626b70;
  --line: #d9dcd8;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0, 1);

  --action-hover: #314653;
  --focus-on-ink: #c6dae8;
  --color-error: #9b412f;
  --disabled-opacity: 0.65;
  --copper-on-ink: #d8b29b;
  --text-on-ink-muted: #a5b0b6;
  --text-on-ink-document: #a9c0d0;
}

/* Pierre claire : fond secondaire du chapitre conviction. */
.vision {
  background: var(--stone);
}

/* Petit texte : bleu archive assombri, pas mineral (#607D95, 4.02:1). */
.query-arrow,
.hero-foot > div > span:nth-child(even) {
  color: var(--blue-text);
}

/* Séparateur de langue et placeholder : texte secondaire lisible. */
.languages > span {
  color: var(--muted);
}

.form-row input::placeholder {
  color: var(--muted);
}

::selection {
  background: var(--blue-text);
  color: var(--paper);
}

.primary:hover {
  background: var(--action-hover);
}

.memory :focus-visible {
  outline-color: var(--focus-on-ink);
}

.access-status.error {
  color: var(--color-error);
}

input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.button:disabled {
  opacity: var(--disabled-opacity);
}

/* Étude géométrique v1. Le mot « palorel » reste en Newsreader. */
.mark {
  display: block;
  flex-shrink: 0;
}
.brand > .mark {
  width: 29px;
  height: 29px;
}
.footer-main > .brand > .mark {
  width: 25px;
  height: 25px;
}
.demo-identity .mark {
  width: 22px;
  height: 22px;
}
.memory-core .mark {
  width: 35px;
  height: 35px;
}
@media (max-width: 800px) {
  .brand > .mark {
    width: 26px;
    height: 26px;
  }
  .memory-core .mark {
    width: 32px;
    height: 32px;
  }
}

/* Le schéma garde 280 px. La légende occupe la bande du dessous, hors des traits. */
.uses .map-conductor {
  height: 332px;
}
.uses .threads {
  inset: 0 0 auto 0;
  height: 280px;
}
.uses .conductor-caption {
  top: auto;
  bottom: 2px;
  z-index: 2;
  line-height: 1.35;
  padding: 8px 10px 0;
}
.uses .thread {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.uses .memory-map.is-playing .thread {
  animation-duration: 0.8s;
  animation-timing-function: var(--ease);
}
.uses .memory-map.is-playing .thread-2 {
  animation-delay: 0.08s;
}
.uses .memory-map.is-playing .thread-3 {
  animation-delay: 0.16s;
}
.uses .memory-map.is-playing .thread-out {
  animation-delay: 0.42s;
}
.uses .memory-map.is-playing .map-result {
  animation-delay: 0.7s;
  animation-duration: 0.45s;
}
@media (max-width: 560px) {
  .uses .map-conductor {
    height: 88px;
  }
  .uses .threads {
    inset: 0;
    height: 100%;
  }
}

/* Grand pied de page. Le feuillet du milieu reste fixe.
   Les deux autres se rejoignent pendant le défilement. */
.footer {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  padding: 72px 0 22px;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  border-top-color: transparent;
}
.footer-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  flex: 1;
}
.footer-lockup {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  width: 100%;
  color: inherit;
}
.footer-mark {
  position: relative;
  z-index: 1;
  display: block;
  flex: none;
  width: clamp(148px, 22vw, 280px);
  height: clamp(148px, 22vw, 280px);
  overflow: visible;
}
.footer-mark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.footer-layer-left {
  z-index: 1;
}
.footer-layer-mid {
  z-index: 2;
}
.footer-layer-right {
  z-index: 3;
}
.footer-name {
  position: relative;
  z-index: 2;
  flex: none;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 13.5vw, 176px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: var(--paper);
  -webkit-text-stroke: 0.02em var(--ink);
  paint-order: stroke fill;
}
.footer .brand-period {
  color: var(--copper-on-ink);
}
.footer-position {
  margin: 8px 0 0;
  max-width: 360px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-on-ink-muted);
}
.footer-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 247, 243, 0.22);
  font-size: 12px;
  color: var(--text-on-ink-muted);
}
.footer-bar .back-top {
  margin-left: 0;
}
.footer .back-top:hover,
.footer .legal-button:hover {
  color: var(--paper);
}
@media (max-width: 720px) {
  .footer-lockup {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-name {
    font-size: clamp(64px, 16vw, 104px);
  }
}
@media (max-width: 560px) {
  .footer {
    min-height: 64vh;
    padding-top: 56px;
  }
  .footer-bar {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Champ d’accès : un seul contour, aligné sur le bouton. */
.contact .form-row input {
  min-height: 50px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 3px;
  padding: 0 16px;
  font-size: 15px;
  line-height: 1.3;
}
.contact .form-row input:focus,
.contact .form-row input:focus-visible {
  outline: none;
  border-color: var(--ink);
}
.contact .form-row input[aria-invalid="true"]:focus,
.contact .form-row input[aria-invalid="true"]:focus-visible {
  border-color: var(--color-error);
}
@keyframes access-ready {
  0% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(7px);
  }
  100% {
    transform: translateX(0);
  }
}
#accessBtn.is-ready svg {
  animation: access-ready 0.55s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  #accessBtn.is-ready svg {
    animation: none;
  }
}

/* iOS dessine ↗ comme une icône dans un carré. Trait fin à la place. */
.source-button > span.source-arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0;
  line-height: 0;
  color: #a7bdcd;
}
.source-button > span.source-arrow svg {
  display: block;
  width: 13px;
  height: 13px;
}

/* Traits, pas les pictogrammes carrés d’iOS. */
svg.glyph {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: none;
  overflow: visible;
  vertical-align: -2px;
}
.stage-index svg.glyph,
figcaption a svg.glyph {
  width: 11px;
  height: 11px;
  vertical-align: -1px;
}
.query-arrow svg.glyph,
.replay svg.glyph {
  width: 14px;
  height: 14px;
  vertical-align: 0;
}
.replay > span:first-child {
  display: inline-flex;
  font-size: 0;
  line-height: 0;
}
.hero-foot > div > svg.glyph {
  color: var(--blue-text);
}
