:root {
  --vert: #0c383e;
  --blanc: #fff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --cycle: 27s;
  --voile: 0;
}

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

html, body { height: 100%; margin: 0; }

body {
  min-height: 100svh;
  background: var(--vert);
  color: var(--blanc);
  font-family: var(--serif);
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

/* Fond : trois collages qui se fondent l'un dans l'autre */
.fond { position: fixed; inset: 0; overflow: hidden; background: var(--vert); }

.calque {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fondu var(--cycle) ease-in-out infinite;
  will-change: opacity, filter;
}
.calque img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: derive var(--cycle) ease-in-out infinite alternate;
  will-change: transform;
}
.c1 { animation-delay: -3s; }
.c2 { animation-delay: calc(var(--cycle) / 3 - 3s); }
.c3 { animation-delay: calc(var(--cycle) / 3 * 2 - 3s); }
.c1 img { object-position: 50% 50%; }
.c2 img { object-position: 50% 40%; }
.c3 img { object-position: 50% 35%; }

/* Voile vert : réglable via --voile (0 = aucun filtre, 1 = filtre plein) */
.voile {
  position: absolute;
  inset: 0;
  background: var(--vert);
  opacity: var(--voile);
}

main {
  position: relative;
  text-shadow: 0 0 14px rgba(0,0,0,.45), 0 0 3px rgba(0,0,0,.35);
  z-index: 1;
  width: min(92vw, 40rem);
  padding: 2rem 0;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.logo { margin: 0; line-height: 0; }
.logo img { width: clamp(11rem, 34vw, 17rem); height: auto; display: block; }

.baseline {
  margin: .9rem 0 0;
  font-style: italic;
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: .01em;
}

.bientot {
  margin: 0;
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.porteurs {
  margin: 1.6rem 0 0;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.6;
}

.porteurs a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  padding: .35rem .15rem;
}
.porteurs a:hover { text-decoration-thickness: 2px; }
.porteurs a:focus-visible { outline: 2px solid var(--blanc); outline-offset: 3px; border-radius: 2px; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Cycle de 3 collages : entrée, maintien, sortie en recouvrement avec le suivant */
@keyframes fondu {
  0%     { opacity: 0; filter: blur(8px); }
  11%    { opacity: 1; filter: blur(0); }
  33.3%  { opacity: 1; filter: blur(0); }
  44.3%  { opacity: 0; filter: blur(8px); }
  100%   { opacity: 0; filter: blur(8px); }
}
@keyframes derive {
  from { transform: scale(1.04); }
  to   { transform: scale(1.14); }
}

/* Mouvement réduit : un seul collage, fixe */
@media (prefers-reduced-motion: reduce) {
  .calque, .calque img { animation: none; filter: none; }
  .c1 { opacity: 1; }
  .c2, .c3 { display: none; }
}

.legal {
  position: fixed;
  left: 50%;
  bottom: calc(.75rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1;
  color: var(--blanc);
  font-size: .85rem;
  text-underline-offset: .2em;
  padding: .6rem .8rem;
  text-shadow: 0 0 6px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.6);
  white-space: nowrap;
}
.legal:focus-visible { outline: 2px solid var(--blanc); outline-offset: 2px; }

/* Page texte (mentions légales) */
.texte { display: block; place-items: unset; }
.texte main { text-align: left; justify-items: start; margin: 0 auto; padding: 3rem 0 5rem; gap: 1rem; line-height: 1.6; }
.texte h1 { font-style: italic; font-weight: 400; font-size: 2rem; margin: 0 0 .5rem; }
.texte h2 { font-size: 1.15rem; margin: 1.5rem 0 .25rem; }
.texte p { margin: 0; max-width: 60ch; }
.texte a { color: inherit; text-underline-offset: .2em; }
.texte .retour { margin-top: 2rem; }
