/* Yodis — site vitrine.
   Une seule famille, Outfit : géométrique, proche du wordmark.
   Le point bordeaux du logo est l'élément mémorable : il a droit au seul
   moment de mouvement de la page. Tout le reste est calme. */

:root {
  --ink: #201010;
  --ink-soft: #5a4a4a;
  --paper: #f8f8f0;
  --paper-deep: #eeeae0;
  --wine: #781a32;
  --wine-soft: #a0405a;
  --line: #d9d3c8;
  --cream: #f8f8f0;
  --cream-soft: rgba(248, 248, 240, 0.62);
  --cream-faint: rgba(248, 248, 240, 0.22);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 40rem;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: var(--wine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease;
}

a:hover {
  color: var(--wine-soft);
}

:focus-visible {
  outline: 2px solid var(--wine-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----------------------------------------------------------------
   Accueil : fond sombre, le point respire
   ---------------------------------------------------------------- */

.theme-dark {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow-x: hidden;
}

/* Halo bordeaux, derrière le point, qui dérive lentement. */
.theme-dark::before {
  content: "";
  position: fixed;
  inset: -30vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at 72% 38%, rgba(120, 26, 50, 0.42), transparent 62%),
    radial-gradient(28vmax 28vmax at 20% 85%, rgba(120, 26, 50, 0.16), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate;
}

.hero,
.hero-footer {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 56rem);
  margin-inline: auto;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 10vh, 7rem) 2rem;
}

/* Le wordmark, en texte et non en image : il peut bouger lettre par lettre. */
.mark {
  margin: 0 0 1.25rem -0.04em;
  font-size: clamp(4.5rem, 17vw, 12rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.015em;
  color: var(--cream);
  display: flex;
  align-items: baseline;
}

.mark-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  animation: rise 720ms var(--ease-out) forwards;
}

.mark-letter:nth-child(1) { animation-delay: 80ms; }
.mark-letter:nth-child(2) { animation-delay: 150ms; }
.mark-letter:nth-child(3) { animation-delay: 220ms; }
.mark-letter:nth-child(4) { animation-delay: 290ms; }
.mark-letter:nth-child(5) { animation-delay: 360ms; }

/* Deux couches : l'extérieur tombe, l'intérieur respire. Deux transforms
   ne cohabitent pas sur un même élément. */
.mark-dot-wrap {
  display: inline-block;
  margin-left: 0.1em;
  opacity: 0;
  transform: translateY(-1.1em) scale(0.3);
  animation: drop 820ms var(--ease-bounce) 620ms forwards;
}

.mark-dot {
  display: block;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0.6em rgba(120, 26, 50, 0.6);
  animation: breathe 4.6s ease-in-out 1.6s infinite;
}

.tagline {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.tagline span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  animation: rise 600ms var(--ease-out) forwards;
}

.tagline span:nth-child(1) { animation-delay: 1000ms; }
.tagline span:nth-child(2) { animation-delay: 1060ms; }
.tagline span:nth-child(3) { animation-delay: 1120ms; }
.tagline span:nth-child(4) { animation-delay: 1180ms; }
.tagline span:nth-child(5) { animation-delay: 1240ms; }
.tagline span:nth-child(6) { animation-delay: 1300ms; }

.hero .body {
  margin: 0 0 2.5rem;
  max-width: var(--measure);
  font-size: 1.125rem;
  color: var(--cream-soft);
  opacity: 0;
  animation: fade 900ms ease 1700ms forwards;
}

/* « En construction » : une ligne fine qui se remplit en partie, et s'y
   tient. Pas une barre de chargement qui ment. */
.status {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: var(--measure);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fade 700ms ease 2100ms forwards;
}

.status-bar {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--cream-faint);
  position: relative;
  overflow: hidden;
}

.status-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: var(--wine-soft);
  transform-origin: left;
  transform: scaleX(0);
  animation: fill 2400ms var(--ease-out) 2300ms forwards;
}

.status-text {
  font-size: 0.95rem;
  color: var(--cream-soft);
}

.mail {
  align-self: flex-start;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  text-decoration-color: var(--wine-soft);
  text-decoration-thickness: 2px;
  opacity: 0;
  animation: fade 700ms ease 2500ms forwards;
}

.mail:hover {
  color: var(--cream);
  text-decoration-color: var(--cream);
}

.hero-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  font-size: 0.9rem;
  color: var(--cream-faint);
  opacity: 0;
  animation: fade 900ms ease 2800ms forwards;
}

.hero-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.hero-footer a {
  color: var(--cream-soft);
}

.hero-footer a:hover {
  color: var(--cream);
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drop {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0.6em rgba(120, 26, 50, 0.6); }
  50% { transform: scale(1.12); box-shadow: 0 0 1.1em rgba(120, 26, 50, 0.85); }
}

@keyframes fade {
  to { opacity: 1; }
}

@keyframes fill {
  to { transform: scaleX(1); }
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-6vmax, 5vmax); }
}

@media (prefers-reduced-motion: reduce) {
  .theme-dark::before,
  .mark-letter,
  .mark-dot-wrap,
  .mark-dot,
  .tagline span,
  .hero .body,
  .status,
  .status-bar::after,
  .mail,
  .hero-footer {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .status-bar::after {
    transform: scaleX(1);
  }
}

/* ----------------------------------------------------------------
   Pages légales : fond clair, mesure de lecture
   ---------------------------------------------------------------- */

.site-header,
.site-footer,
.legal {
  width: min(100% - 2rem, var(--measure));
  margin-inline: auto;
}

.site-header {
  padding-block: 1.5rem 1rem;
}

.site-header img {
  display: block;
  height: 2rem;
  width: auto;
}

.legal {
  flex: 1;
  padding-block: 1rem 3rem;
}

.site-footer {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: inherit;
}

.legal h1,
.legal h2 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.legal h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.75rem;
}

.legal p {
  margin: 0 0 1rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal strong {
  font-weight: 500;
}

.meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.todo {
  background: #fff1dc;
  border-left: 3px solid #d98a2b;
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
}

address {
  font-style: normal;
}
