/* ============================================================
   QUI SÈME LE VENT — page de pause
   Palette : kraft, encre, terracotta, olive, moutarde, teal
   ============================================================ */

:root{
  --kraft:      #efe4ce;
  --kraft-deep: #e4d5b3;
  --ink:        #322a20;
  --ink-soft:   #6b6152;
  --terracotta: #c4633e;
  --terracotta-deep: #a34e30;
  --olive:      #6e7c4d;
  --mustard:    #d99a35;
  --teal:       #3f6e68;
  --rose:       #c97b76;

  --serif: "Playfair display", Georgia, serif;
  --sans:  "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--kraft);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* subtle paper grain, evokes the kraft pochettes */
.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: radial-gradient(var(--kraft-deep) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}

.grain::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 45%, rgba(50,42,32,.08) 100%);
}

/* ---------------- seeds carried by the wind ---------------- */
.seeds{
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.seed{
  position: absolute;
  bottom: -5%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0;
  animation: drift linear infinite;
}

.seed::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 16px;
  height: 1px;
  background: linear-gradient(to right, currentColor, transparent);
  color: inherit;
  transform: translateY(-50%) rotate(4deg);
}

.s1{ left: 4%;  background: var(--terracotta); animation-duration: 26s; animation-delay: -2s; }
.s2{ left: 14%; background: var(--olive);      animation-duration: 32s; animation-delay: -14s; width:4px; height:4px; }
.s3{ left: 24%; background: var(--mustard);    animation-duration: 22s; animation-delay: -8s; }
.s4{ left: 38%; background: var(--teal);       animation-duration: 30s; animation-delay: -20s; width:5px; height:5px; }
.s5{ left: 50%; background: var(--rose);       animation-duration: 24s; animation-delay: -4s; }
.s6{ left: 62%; background: var(--terracotta); animation-duration: 34s; animation-delay: -26s; width:4px; height:4px; }
.s7{ left: 72%; background: var(--olive);      animation-duration: 20s; animation-delay: -11s; }
.s8{ left: 82%; background: var(--mustard);    animation-duration: 28s; animation-delay: -6s; width:5px; height:5px; }
.s9{ left: 90%; background: var(--teal);       animation-duration: 25s; animation-delay: -18s; }
.s10{left: 96%; background: var(--rose);       animation-duration: 31s; animation-delay: -1s; width:4px; height:4px; }

@keyframes drift{
  0%   { transform: translate(0,0) rotate(0deg);      opacity: 0; }
  8%   { opacity: .3; }
  50%  { transform: translate(8vw,-55vh) rotate(140deg); }
  92%  { opacity: .18; }
  100% { transform: translate(16vw,-110vh) rotate(280deg); opacity: 0; }
}

/* ---------------------- main content ---------------------- */
.page{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  padding: 4vh 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- enseigne suspendue : le logo se balance ---------- */
.sign{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.peg{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 1px 2px rgba(50,42,32,.35);
  z-index: 2;
}

.rope{
  width: 2px;
  height: 16px;
  background: var(--ink-soft);
  z-index: 2;
}

.logo-frame{
  display: block;
  transform-origin: 50% 0%;
  animation:
    swing-in 2s cubic-bezier(.32,1.4,.44,1) both,
    idle-sway 4.4s ease-in-out 2s infinite;
}

.logo{
  display: block;
  width: 108px;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(50,42,32,.28));
}

.shadow{
  width: 60px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: rgba(50,42,32,.18);
  filter: blur(2.5px);
  animation:
    shadow-in 2s cubic-bezier(.32,1.4,.44,1) both,
    shadow-sway 4.4s ease-in-out 2s infinite;
}

@keyframes swing-in{
  0%   { transform: rotate(0deg); }
  12%  { transform: rotate(-18deg); }
  28%  { transform: rotate(13deg); }
  44%  { transform: rotate(-9deg); }
  60%  { transform: rotate(6deg); }
  75%  { transform: rotate(-3deg); }
  90%  { transform: rotate(1.5deg); }
  100% { transform: rotate(0deg); }
}

@keyframes idle-sway{
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-4deg); }
  75%      { transform: rotate(4deg); }
}

@keyframes shadow-in{
  from{ opacity: 0; transform: scaleX(.4); }
  to  { opacity: 1; transform: scaleX(1); }
}

@keyframes shadow-sway{
  0%, 100% { transform: translateX(0) scaleX(1); }
  25%      { transform: translateX(7px) scaleX(.82); }
  75%      { transform: translateX(-7px) scaleX(.82); }
}

.title{
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.9rem, 5.2vw, 2.9rem);
  line-height: 1.2;
  margin: 0 0 .6rem;
  color: var(--ink);
  position: relative;
  animation: rise-in .9s .1s ease-out both;
}

.brush{
  display: block;
  width: min(280px, 70%);
  height: 16px;
  margin: .35rem auto 0;
  overflow: visible;
}

.brush path{
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 1.1s .7s cubic-bezier(.4,0,.2,1) forwards;
}

.lede{
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 2.25rem;
  animation: rise-in .9s .2s ease-out both;
}

.imageDec { 
  margin: auto;
  display: flex;
  justify-content: center;
  margin-bottom: .6rem;
  animation: rise-in .9s .3s ease-out both;
}

@keyframes breathe{
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.caption{
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-weight: bold;
  margin: 0 0 2.5rem;
  animation: rise-in .9s .35s ease-out both;
}

.actions{
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  justify-content: center;
  animation: rise-in .9s .4s ease-out both;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn svg{ width: 18px; height: 18px; fill: currentColor; flex: none; }

.btn-primary{
  background: var(--terracotta);
  color: var(--kraft);
}
.btn-primary:hover{ background: var(--terracotta-deep); transform: translateY(-2px); }

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--kraft); transform: translateY(-2px); }

.btn:focus-visible{
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------------------- footer ---------------------- */
.site-footer{
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: var(--ink-soft);
  font-size: .8rem;
}

.site-footer p{ margin: .15rem 0; }

.site-footer .brand{
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-size: .95rem;
}

/* ---------------------- entrance ---------------------- */
@keyframes rise-in{
  from{ opacity: 0; transform: translateY(10px); }
  to  { opacity: 1; transform: translateY(0); }
}

@keyframes draw{
  to{ stroke-dashoffset: 0; }
}

/* ---------------------- small screens ---------------------- */
@media (max-width: 420px){
  .btn{ padding: .75rem 1.1rem; font-size: .9rem; }
}

/* ---------------------- reduced motion ---------------------- */
@media (prefers-reduced-motion: reduce){
  .title, .lede, .caption, .actions{ animation: none; }
  .logo-frame, .shadow{ animation: none; }
  .seed{ animation: none; opacity: 0; }
  .brush path{ animation: none; stroke-dashoffset: 0; }
  .btn{ transition: none; }
}
