/* 100 BPM, page d'atterrissage.
   Une seule feuille : elle remplace style.css et court.css.
   Nuancier A, Terrain. Police Geist hébergée ici, aucune requête vers un tiers.
   Ordre : police, socle, ouverture, blocs, bandeau de fin, petits écrans. */

@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --vert:      #4B5320;
  --vert-nuit: #2E3414;
  --kaki:      #A8AD7B;
  --sable:     #DCCFAE;
  --papier:    #F3EFE3;
  --terre:     #B5532A;
  --terre-2:   #A34823;
  --blanc:     #FFFFFF;
  --trame-claire: linear-gradient(rgba(243,239,227,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(243,239,227,0.09) 1px, transparent 1px);
  --trame-sombre: linear-gradient(rgba(46,52,20,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(46,52,20,0.07) 1px, transparent 1px);
}

/* ---------- Socle ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.125rem; line-height: 1.5;
  color: var(--vert-nuit);
  background-color: var(--papier);
  background-image: var(--trame-sombre);
  background-size: 40px 40px;
}
h1, h2, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--terre); outline-offset: 3px; }
.ouverture :focus-visible, .fin :focus-visible { outline-color: var(--papier); }
.cadre { max-width: 70rem; margin: 0 auto; }

/* ---------- Bouton ---------- */

.action {
  display: inline-flex; align-items: center; gap: 1rem;
  background: var(--terre); color: var(--blanc);
  text-decoration: none; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em;
  padding: 0.875rem 1rem 0.875rem 1.75rem; border-radius: 999px;
  box-shadow: 0 2px 0 rgba(46,52,20,0.45);
  transition: transform 0.15s ease-out, background-color 0.15s ease-out;
}
.action:hover { background: var(--terre-2); transform: translateY(-1px); }
.action:active { transform: translateY(1px); }
.fleche svg { transition: transform 0.15s ease-out; }
.action:hover .fleche svg { transform: translateX(2px); }
.fleche {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--vert-nuit);
}

/* ---------- Ouverture, sur le vert ---------- */

.ouverture {
  color: var(--papier); padding: 0 5vw;
  background-color: var(--vert);
  background-image: var(--trame-claire);
  background-size: 40px 40px;
}
.entete {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.75rem 1.5rem; padding: 1.75rem 0;
  border-bottom: 1.5px solid var(--kaki);
}
.logo {
  display: inline-flex; flex-direction: column; gap: 5px;
  font-weight: 800; font-size: 1.625rem; letter-spacing: -0.03em; line-height: 1;
}
.logo svg { display: block; width: 110px; height: 10px; }
a.logo { text-decoration: none; }
.entete.sans-filet { border-bottom: 0; }
.entete-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; font-size: 1rem; }
.langues [aria-current] { font-weight: 800; }

.tete { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2.5rem 3.5rem; padding-top: 4.5rem; }
.tete-texte { flex: 999 1 32rem; min-width: 0; display: flex; flex-direction: column; gap: 1.625rem; padding-bottom: 5rem; }
.sur { font-weight: 500; color: var(--sable); }
h1 { font-weight: 800; font-size: clamp(2rem, 10.5vw, 6.25rem); line-height: 0.98; letter-spacing: -0.045em; }
h1 .ligne { display: block; white-space: nowrap; }
h1 .mot { display: inline-block; }
@media (min-width: 56.25rem) { h1 { font-size: clamp(3.5rem, 11vw - 2.4rem, 6.25rem); } }
.chapeau { font-size: 1.3125rem; line-height: 1.45; max-width: 38.75rem; }
.action-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.action-note { font-size: 1rem; color: var(--sable); }
.tete-photo {
  flex: 0 1 15rem; width: 15rem; max-width: 16.875rem; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; opacity: 0.65;
  display: block;
}

/* ---------- Blocs, sur le papier ---------- */

.bloc { padding: 5rem 5vw 0; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.375rem); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 1.5rem; }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; }
.cartes li { background: var(--blanc); border: 1.5px solid var(--vert-nuit); padding: 1.625rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 0.625rem; transition: transform 0.15s ease-out, box-shadow 0.15s ease-out; }
@media (hover: hover) { .cartes li:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--kaki); } }
.k-situation { font-weight: 600; font-size: 1.4375rem; line-height: 1.2; letter-spacing: -0.02em; }
.k-geste { font-size: 1.0625rem; }

.bloc.sable {
  margin-top: 5rem; padding-top: 4.5rem; padding-bottom: 5rem;
  background-color: var(--sable);
  background-image: var(--trame-sombre);
  background-size: 40px 40px;
}
.reperes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1.25rem; }
.nb { white-space: nowrap; }
.reperes li { background: var(--papier); border-top: 4px solid var(--vert); padding: 1.375rem 1.5rem 1.625rem; display: flex; flex-direction: column; gap: 0.375rem; }
.t-nom { font-weight: 600; font-size: 1.25rem; color: var(--vert); }
.t-detail { font-size: 1.0625rem; }

.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.375rem), 1fr)); gap: 1.25rem; }
.etapes li { position: relative; padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; }
.etapes li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--vert); transform-origin: left; }
.e-nom { font-weight: 800; font-size: 1.625rem; letter-spacing: -0.025em; }
.e-detail { font-size: 1.0625rem; }

.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr)); background: var(--blanc); border: 1.5px solid var(--vert-nuit); margin-top: 2.25rem; }
.formats li { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.f-nom { font-weight: 600; font-size: 1.1875rem; }
.f-prix { font-weight: 800; font-size: 1.875rem; letter-spacing: -0.03em; color: var(--vert); }
.f-prix small { font-size: 0.55em; font-weight: 600; letter-spacing: 0; }
.f-detail { font-size: 1rem; }

/* ---------- Bandeau de fin, sur le vert nuit ---------- */

.fin {
  color: var(--papier); padding: 3.5rem 3rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.75rem 3rem;
  background-color: var(--vert-nuit);
  background-image: var(--trame-claire);
  background-size: 40px 40px;
}
.fin-texte { flex: 1 1 23.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.fin h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.02; margin-bottom: 0; }
.fin-note { color: var(--sable); }
.fin-action { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.fin-action .action { margin-bottom: 0.5rem; }
.fin-mail { font-size: 1rem; display: flex; align-items: center; gap: 1.1rem; }
.reseau { display: inline-flex; color: var(--papier); transition: opacity 0.15s ease-out; }
.reseau:hover { opacity: 0.75; }

.pied { padding: 1.5rem 5vw 2.5rem; font-size: 0.9375rem; }

/* ---------- Mentions légales ---------- */

.legal { padding: 3.5rem 5vw 4.5rem; }
.legal .cadre { max-width: 44rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.05; letter-spacing: -0.035em; }
.legal h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin: 2.25rem 0 0.5rem; }
.legal p { font-size: 1.0625rem; }
.legal p + p { margin-top: 0.6rem; }

/* ---------- Petits écrans ---------- */

@media (max-width: 46rem) {
  .tete { padding-top: 3rem; }
  .tete-texte { padding-bottom: 1rem; gap: 1.25rem; }
  .chapeau { font-size: 1.1875rem; }
  .tete-photo { width: 11rem; flex-basis: 11rem; }
  .bloc { padding-top: 3.5rem; }
  .bloc.sable { margin-top: 3.5rem; padding-top: 3.25rem; padding-bottom: 3.5rem; }
  .fin { padding: 2.5rem 1.5rem; }
  .action { font-size: 1.125rem; }
}

/* ---------- Mouvement ----------
   Discret : opacité et déplacement seulement, une demi-seconde au plus par élément.
   L'ouverture se joue en CSS. Les blocs se révèlent au défilement grâce au petit
   script de la page ; sans lui, ou si le visiteur a demandé moins d'animations,
   tout est affiché d'emblée. */

@keyframes monte { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes apparait { from { opacity: 0; } to { opacity: 0.65; } }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .sur, h1 .mot, .chapeau, .action-ligne { animation: monte 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  h1 .ligne:nth-child(1) .mot:nth-child(1) { animation-delay: 0.06s; }
  h1 .ligne:nth-child(1) .mot:nth-child(2) { animation-delay: 0.14s; }
  h1 .ligne:nth-child(2) .mot { animation-delay: 0.22s; }
  .chapeau { animation-delay: 0.32s; }
  .action-ligne { animation-delay: 0.4s; }
  .tete-photo { animation: apparait 0.8s ease-out 0.3s both; }
  .logo path { stroke-dasharray: 1; animation: trace 0.9s ease-out 0.2s both; }

  html.anime .rev { transition: opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 45ms); }
  html.anime .rev:not(.vu) { opacity: 0; transform: translateY(8px); }
  .etapes li::before { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 45ms + 0.1s); }
  html.anime .etapes li.rev:not(.vu)::before { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .action, .cartes li, .fleche svg { transition: none; }
  .action:hover, .action:active, .cartes li:hover, .action:hover .fleche svg { transform: none; }
}

/* ---------- Impression ---------- */

@media print {
  body, .ouverture, .bloc.sable, .fin { background: none !important; color: #000; }
  .sur, .action-note, .fin-note { color: #000; }
  .tete-photo { mix-blend-mode: normal; opacity: 1; }
  .action { background: none; color: #000; box-shadow: none; border: 1.5px solid #000; }
  .fleche, .langues { display: none; }
  .logo path { stroke: #000; }
  html.anime .rev { opacity: 1 !important; transform: none !important; }
  html.anime .etapes li::before { transform: none !important; }
  .cartes li, .reperes li, .formats { break-inside: avoid; }
}
