/* Aid'up : page de construction à la racine, avant l'ouverture du site (vague 5, reprise vague 9 « Souffle »).
   CSS seul : aucun script, aucun canvas, aucune opacité partielle, aucune ressource externe. Palette et police du site,
   copiées ici parce que cette feuille se dépose seule. Deux nappes de lumière dérivent (38 et 47 s) et respirent sur
   10 s ; le titre se dévoile (jamais plus de 42 % masqué), un arc de sauge se trace sous lui. Le repère reste seul,
   sans perle derrière lui (03.12.2026).
   Pause (WCAG 2.2.2) : le lien « Mettre le mouvement en pause » vise #calme ; html:has(#calme:target) met en pause les
   seules boucles (les nappes) ; les entrées, courtes, finissent toujours dans leur état final.
   À la remise, le dépôt du site remplace index.html, assets/favicon.svg et assets/polices/ ; ce fichier est retiré
   (docs/liste-avant-ouverture.md). */

@font-face{
  font-family:"Atkinson Hyperlegible Next";
  src:url("polices/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Atkinson Hyperlegible Next";
  src:url("polices/AtkinsonHyperlegibleNext-SemiBold.woff2") format("woff2");
  font-weight:600; font-style:normal; font-display:swap;
}

:root{
  --fond:         #F7F2EA; /* lin */
  --texte-doux:   #5B524A; /* taupe */
  --accent-fonce: #3F5A3D; /* sauge profonde */
  --sortie-douce: cubic-bezier(.2,.7,.2,1);
  --rideau:       cubic-bezier(.45,0,.2,1);
  --police: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body{
  margin:0;
  min-height:100vh;
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:24px 16px;
  background:var(--fond);
  color:var(--texte-doux);
  font-family:var(--police);
  font-size:1.125rem;
  line-height:1.5;
  text-align:center;
  overflow-x:hidden;
}

/* Deux nappes (pêche claire et sable) et un voile de sauge, fixes, derrière le contenu */
body::before, body::after{ content:""; position:fixed; inset:-25%; z-index:0; pointer-events:none; }
body::before{
  background:
    radial-gradient(38% 34% at 30% 34%, rgba(243,211,191,.85), rgba(243,211,191,0) 70%),
    radial-gradient(36% 32% at 72% 70%, rgba(234,223,207,.9), rgba(234,223,207,0) 70%);
}
body::after{ background:radial-gradient(30% 28% at 70% 28%, rgba(228,236,223,.9), rgba(228,236,223,0) 70%); }

main{ position:relative; z-index:1; width:100%; max-width:34rem; }

.repere{
  position:relative;
  display:block;
  margin:0 auto 42px;
  width:64px;
  height:64px;
}

h1{
  position:relative;
  margin:0 0 22px;
  color:var(--accent-fonce);
  font-size:clamp(2.25rem, 9vw, 4rem);
  font-weight:600;
  line-height:1.1;
  letter-spacing:-.01em;
}
/* Arc de sauge sous le titre : bordure basse courbe, dévoilée de gauche à droite */
h1::after{
  content:""; position:absolute; left:22%; right:22%; bottom:-.32em; height:.4em;
  border-bottom:2px solid #8FA88A; border-radius:0 0 50% 50% / 0 0 100% 100%;
}

p{
  margin:0 auto;
  max-width:26rem;
  color:var(--texte-doux);
  font-size:clamp(1.125rem, 3.4vw, 1.375rem);
  text-wrap:balance;
}

/* Lien de pause, puis de reprise : seulement quand un mouvement existe */
.mouvement{ margin-top:28px; font-size:1rem; }
.mouvement a{
  display:inline-flex; align-items:center; min-height:44px; padding:0 .4rem;
  color:var(--accent-fonce); text-decoration-thickness:1px; text-underline-offset:4px;
}
.mouvement a:focus-visible{ outline:3px solid var(--accent-fonce); outline-offset:2px; border-radius:6px; }
.mouvement .reprise{ display:none; }
html:has(#calme:target) .mouvement .arret{ display:none; }
html:has(#calme:target) .mouvement .reprise{ display:inline-flex; }

@media (prefers-reduced-motion:no-preference){
  body::before{ animation:derive-a 38s ease-in-out infinite alternate, souffle-nappe 10s ease-in-out infinite; }
  body::after{ animation:derive-b 47s ease-in-out infinite alternate, souffle-nappe 10s ease-in-out infinite; }
  /* Entrées en « backwards » : après leur fin, l'état final est le style de base (aucun clip-path qui reste). */
  h1{ animation:rideau 1.1s var(--rideau) .2s backwards; }
  h1::after{ animation:arc 1.6s var(--rideau) .7s backwards; }
  h1 + p{ animation:monte 1s var(--sortie-douce) .7s backwards; }
  html:has(#calme:target) body::before, html:has(#calme:target) body::after{ animation-play-state:paused; }
}
@keyframes derive-a{ from{ transform:rotate(0deg) translate(0, 0); } to{ transform:rotate(8deg) translate(4%, 3%); } }
@keyframes derive-b{ from{ transform:rotate(0deg) translate(0, 0); } to{ transform:rotate(-10deg) translate(-4%, 2%); } }
@keyframes souffle-nappe{ 0%, 100%{ scale:1; } 40%{ scale:1.06; } }
@keyframes rideau{ from{ clip-path:inset(0 0 42% 0); translate:0 12px; } to{ clip-path:inset(-.2em); translate:none; } }
@keyframes arc{ from{ clip-path:inset(0 100% 0 0); } to{ clip-path:inset(0); } }
@keyframes monte{ from{ transform:translateY(12px); } to{ transform:translateY(0); } }

@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{ animation:none !important; transition:none !important; }
  .mouvement{ display:none; }
}
