/* Page d'accueil publique : chargée uniquement sur cette page. */
.page-accueil {
  --soleil: #f59e0b;
  --corail: #f97316;
  --creme: #fff7ed;
  --encre: #134e4a;
}
@media (prefers-color-scheme: dark) {
  .page-accueil { --creme: #1c1917; --encre: #ccfbf1; }
}
.vitrine { max-width: 64rem; margin: 0 auto; padding: 0 16px 32px; overflow-x: hidden; }

/* Héros */
.heros { position: relative; display: grid; gap: 28px; padding: 28px 0 12px; align-items: center; }
.heros-texte { position: relative; z-index: 1; }
.etiquette {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--creme); color: var(--corail); font-weight: 700; font-size: 0.85rem;
}
.heros h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.1; margin: 0 0 14px; color: var(--encre); letter-spacing: -0.02em; }
.accroche { font-size: 1.1rem; color: var(--discret); margin: 0 0 22px; max-width: 34rem; }
.appels { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0; }
.bouton-grand { min-height: 52px; padding: 14px 24px; font-size: 1.05rem; font-weight: 700; border-radius: 14px; box-shadow: 0 6px 0 #0b5d56; transition: transform 0.15s, box-shadow 0.15s; }
.bouton-grand:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #0b5d56; }
.bouton-grand:active { transform: translateY(4px); box-shadow: 0 2px 0 #0b5d56; }
.lien-discret { font-weight: 600; }

/* Sur mobile : petit, pâle et derrière le texte pour ne jamais gêner la lecture. */
.soleil { position: absolute; z-index: 0; width: 96px; top: -18px; right: -34px; opacity: 0.35; }
.soleil circle { fill: var(--soleil); }
.soleil .rayons { stroke: var(--soleil); stroke-width: 5; stroke-linecap: round; transform-origin: 60px 60px; animation: tourner 24s linear infinite; }

/* Aperçu du tableau */
.apercu {
  position: relative; z-index: 1; background: var(--fond); border: 2px solid var(--encre);
  border-radius: 22px; padding: 16px; box-shadow: 8px 8px 0 var(--soleil);
  animation: flotter 6s ease-in-out infinite; max-width: 26rem; justify-self: center; width: 100%;
}
.apercu-entete { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; margin-bottom: 8px; }
.apercu-total { font-weight: 400; color: var(--discret); font-size: 0.9rem; }
.apercu-total strong { color: var(--succes); }
.apercu ul { list-style: none; margin: 0; padding: 0; }
.ligne { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-top: 1px dashed var(--bordure); }
.ligne.nouveau { background: var(--creme); border-radius: 12px; border-top-color: transparent; }
.maison { font-size: 1.5rem; }
.ligne-texte { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ligne-texte small { color: var(--discret); }
.pastille { padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.pastille-paye { background: #dcfce7; color: #166534; }
.pastille-partiel { background: #fef3c7; color: #92400e; }
.pastille-retard { background: #fee2e2; color: #991b1b; }
.pastille-valider { background: var(--corail); color: #fff; animation: pulser 2s ease-in-out infinite; }

/* Étapes */
.etapes, .atouts { padding: 36px 0 8px; }
.etapes h2, .atouts h2, .final h2 { font-size: 1.6rem; color: var(--encre); margin: 0 0 18px; }
.etapes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: etape; }
.etape { position: relative; padding: 20px 18px 18px; border-radius: 20px; background: var(--creme); counter-increment: etape; }
.etape::before {
  content: counter(etape); position: absolute; top: -12px; left: 18px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.etape svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.etape h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.etape p, .atout p { margin: 0; color: var(--discret); }

/* Atouts */
.puces-modes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.puces-modes li { padding: 6px 14px; border-radius: 999px; border: 2px solid var(--encre); font-weight: 700; }
.puces-modes li:nth-child(1) { background: #dbeafe; color: #1e3a8a; border-color: #1e3a8a; }
.puces-modes li:nth-child(2) { background: #fef9c3; color: #713f12; border-color: #713f12; }
.puces-modes li:nth-child(3) { background: #dcfce7; color: #14532d; border-color: #14532d; }
.puces-modes li:nth-child(4) { background: #f3e8ff; color: #581c87; border-color: #581c87; }
.grille-atouts { display: grid; gap: 14px; }
.atout { padding: 18px; border: 1px solid var(--bordure); border-radius: 18px; transition: transform 0.2s; }
.atout:hover { transform: rotate(-1deg) translateY(-3px); }
.emoji { font-size: 2rem; }
.atout h3 { margin: 6px 0; font-size: 1.05rem; }

/* Appel final */
.final {
  margin-top: 36px; padding: 32px 20px; border-radius: 26px; text-align: center;
  background: var(--accent); color: #fff;
}
.final h2 { color: #fff; }
.final p { margin: 0 0 20px; opacity: 0.9; }
.bouton-clair { background: #fff; color: var(--accent); box-shadow: 0 6px 0 var(--soleil); }
.bouton-clair:hover { box-shadow: 0 8px 0 var(--soleil); }
.bouton-clair:active { box-shadow: 0 2px 0 var(--soleil); }
.pied { text-align: center; padding: 24px 0 0; font-size: 0.9rem; }

/* Apparitions décalées */
.apparition { opacity: 0; animation: apparaitre 0.5s ease-out forwards; }
.delai-1 { animation-delay: 0.3s; }
.delai-2 { animation-delay: 0.6s; }
.delai-3 { animation-delay: 0.9s; }
.delai-4 { animation-delay: 1.6s; }

@keyframes apparaitre { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes flotter { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(0.5deg); } }
@keyframes pulser { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes tourner { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .page-accueil *, .page-accueil *::before { animation: none !important; transition: none !important; }
  .apparition { opacity: 1; }
}

@media (min-width: 48rem) {
  .heros { grid-template-columns: 1.1fr 1fr; padding-top: 48px; }
  .soleil { right: auto; left: 46%; top: 0; width: 140px; opacity: 0.9; }
  .etapes ol { grid-template-columns: repeat(3, 1fr); }
  .grille-atouts { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .grille-atouts { grid-template-columns: repeat(4, 1fr); }
}
