:root {
  --nuit: #0b0f23;
  --violet: #6e4cff;
  --lavande: #a78bfa;
  --turquoise: #3fd7c6;
  --lilas: #d7caff;
  --fond: #f3f2ff;
  --carte: #ffffff;
  --bordure: #dfe1ee;
  --texte: #0b0f23;
  --texte-doux: #536174;
  --accent: #6e4cff;
  --puce: #ece8ff;
  --puce-texte: #4f2db7;
  --degrade: linear-gradient(110deg, #6e4cff, #a78bfa 58%, #3fd7c6);
  --anneau: conic-gradient(from 220deg, #6e4cff, #a78bfa, #3fd7c6, #6e4cff);
  --voile:
    radial-gradient(circle at 88% 8%, rgba(167, 139, 250, 0.55), transparent 30%),
    radial-gradient(circle at 12% 96%, rgba(63, 215, 198, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(11, 15, 35, 0.35), rgba(11, 15, 35, 0.78));
  --titre: Manrope, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #080b1a;
    --carte: #15182f;
    --bordure: #282c4a;
    --texte: #ffffff;
    --texte-doux: #c8ccda;
    --accent: #a78bfa;
    --puce: #241d4d;
    --puce-texte: #d7caff;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, #6e4cff 9%, transparent), transparent 28rem),
    var(--fond);
  color: var(--texte);
  font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-underline-offset: 3px; }
strong { font-weight: 800; }
p { margin-bottom: 0.9rem; text-wrap: pretty; }
ul, ol { padding-left: 1.2rem; margin-bottom: 0.9rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--accent); }


.hero {
  color: #fff;
  background: var(--voile), var(--nuit) url("/brand/accueil-aurore-silhouette.jpg") center 35% / cover no-repeat;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(2.2rem, 6vw, 3.6rem);
}
.hero-barre {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 0.9rem 0 clamp(1.8rem, 6vw, 3.2rem);
}
.hero-barre a { display: inline-flex; }
.hero-barre img { display: block; width: 104px; height: auto; }
.hero-barre span { margin-left: auto; color: #c8ccda; font-size: 0.8rem; }
.logo-papier { display: none !important; }
.hero-barre .hero-retour {
  margin-left: auto;
  min-height: 44px;
  align-items: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}
.hero-barre .hero-retour + span { display: none; }
@media print {
  .hero-barre .hero-retour { display: none; }
  .hero-barre .hero-retour + span { display: inline; }
}
.hero-contenu { max-width: 760px; margin: 0 auto; }
.sur-titre {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lilas);
  margin-bottom: 0.7rem;
}
.hero h1 {
  font-family: var(--titre);
  font-size: clamp(2.3rem, 8vw, 3.9rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 13ch;
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(11, 15, 35, 0.35);
}
.hero h1 em { font-style: normal; color: var(--lilas); }
.hero .chapeau {
  max-width: 46ch;
  margin: 1rem 0 1.4rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 650;
  color: #f3f2ff;
  text-shadow: 0 2px 14px rgba(11, 15, 35, 0.45);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--nuit);
  background: #fff;
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 0.55rem 1.05rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(11, 15, 35, 0.28);
  transition: transform 0.15s ease;
}
.bouton:hover { transform: translateY(-2px); }
.bouton.fantome { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); box-shadow: none; }
.bouton.plein { color: #fff; background: var(--violet); border-color: var(--violet); box-shadow: 0 10px 26px rgba(110, 76, 255, 0.3); }
.bouton svg { width: 20px; height: 20px; }


main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.2rem) 1rem 4rem;
}
.carte {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 20px;
  padding: clamp(1.1rem, 4vw, 1.8rem);
  margin-bottom: 1.2rem;
  box-shadow: 0 12px 34px rgba(11, 15, 35, 0.06);
}
h2 {
  font-family: var(--titre);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}
h2 .sur-titre { color: var(--accent); margin-bottom: 0.35rem; font-family: inherit; letter-spacing: 0.16em; }
h3 { font-family: var(--titre); font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.petit { font-size: 0.88rem; color: var(--texte-doux); }
blockquote {
  margin: 0 0 0.9rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid transparent;
  border-image: var(--degrade) 1;
  color: var(--texte-doux);
  font-style: italic;
}
blockquote cite { display: block; margin-top: 0.3rem; font-size: 0.85rem; font-style: normal; }

.puces { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.3rem 0 0.8rem; padding: 0; list-style: none; }
.puces li {
  margin: 0;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: var(--puce);
  color: var(--puce-texte);
  font-size: 0.86rem;
  font-weight: 700;
}
.puces li.recommande { background: none; border: 1px dashed var(--lavande); }
.etiquette-liste { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texte-doux); }


.etapes { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.etape {
  position: relative;
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0.9rem;
  padding: 0 0 1.3rem;
}
.etape::before {
  content: "";
  position: absolute;
  left: 2.3rem;
  top: 2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(180deg, var(--lavande), transparent);
  opacity: 0.5;
}
.etape:last-child { padding-bottom: 0; }
.etape:last-child::before { display: none; }
.duree {
  justify-self: center;
  align-self: start;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--degrade);
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(110, 76, 255, 0.25);
}
.etape p, .etape ul { margin-bottom: 0.4rem; }
.etape p:last-child, .etape ul:last-child { margin-bottom: 0; }
.phrase {
  display: block;
  margin: 0.25rem 0;
  padding: 0.45rem 0.8rem;
  border-radius: 12px;
  background: var(--puce);
  color: var(--puce-texte);
  font-weight: 700;
}


.de {
  color: #fff;
  background: var(--voile), linear-gradient(145deg, #0b0f23, #40298f 64%, #147d80);
  border: none;
}
.de h2 { color: #fff; }
.de h2 .sur-titre { color: var(--lilas); }
.de p { color: #e6e3ff; }
.de-tirage {
  display: none;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.de-tirage.visible { display: flex; }
.de-anneau {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: var(--anneau);
}
.de-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid #1d1a4a;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: var(--degrade);
}
.de-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.de-qui { flex: 1; min-width: 0; }
.de-nom { font-family: var(--titre); font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.de-sport { font-size: 0.88rem; color: #c8ccda; }
.de-tirage a { color: #fff; font-weight: 800; white-space: nowrap; }
.de-bouton svg { transition: transform 0.5s ease; }
.de-bouton.roule svg { transform: rotate(360deg); }

.devoir {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--carte), var(--carte)) padding-box,
    var(--degrade) border-box;
}

.signature {
  margin-top: 2rem;
  color: var(--texte-doux);
  font-size: 0.9rem;
  text-align: center;
}
.imprime-seulement { display: none; }


.bloc {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 20px;
  padding: 1.1rem 1.2rem 0.5rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 12px 34px rgba(11, 15, 35, 0.06);
  break-inside: avoid;
}
.bloc h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; }
.numero {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--degrade);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}
.champ { margin-bottom: 0.9rem; break-inside: avoid; }
.champ-titre { font-weight: 700; }
.diapo { font-weight: 400; color: var(--texte-doux); font-size: 0.88rem; }
.ligne { border-bottom: 1.5px solid var(--bordure); height: 2rem; }
.cases { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.2rem; }
.cases.pile { display: grid; gap: 0.25rem; }
.case::before { content: "○ "; color: var(--accent); font-weight: 800; }
.coupe { border: none; border-top: 2px dashed var(--bordure); margin: 1.4rem 0; }
.carte-souper-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.carte-souper-tete h2 { display: block; }
.carte-souper-tete img { width: 70px; height: auto; }
@media screen and (prefers-color-scheme: dark) {
  .carte-souper-tete img { content: url("/brand/logo-inspo-dark.png"); }
}

@media (max-width: 480px) {
  .etape { grid-template-columns: 1fr; gap: 0.35rem; }
  .etape::before { display: none; }
  .duree { justify-self: start; }
  .de-tirage { flex-wrap: wrap; }
}


@media print {
  @page { margin: 1.2cm 1.5cm; }
  :root { --texte: #0b0f23; --texte-doux: #444; --bordure: #b9bccb; --carte: #fff; --puce: #fff; --puce-texte: #0b0f23; --accent: #0b0f23; }
  body { background: #fff; color: #0b0f23; font-size: 10pt; line-height: 1.35; }
  body::before {
    content: "";
    display: block;
    height: 4px;
    margin-bottom: 0.5rem;
    background: var(--degrade);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .hero { background: none; color: #0b0f23; padding: 0; }
  .hero-barre { padding: 0 0 0.4rem; max-width: none; }
  .hero-barre span { color: #444; }
  .logo-ecran { display: none !important; }
  .logo-papier { display: block !important; width: 84px !important; }
  .hero-contenu { max-width: none; }
  .sur-titre { color: #444; margin-bottom: 0.2rem; }
  .hero h1 { font-size: 20pt; max-width: none; text-shadow: none; }
  .hero h1 em { color: #6e4cff; }
  .hero .chapeau { color: #333; text-shadow: none; font-size: 10.5pt; margin: 0.3rem 0 0.4rem; max-width: none; font-weight: 400; }
  main { max-width: none; padding: 0; }
  .carte, .bloc { border: 1px solid #b9bccb; box-shadow: none; border-radius: 12px; padding: 0.6rem 0.8rem 0.3rem; margin-bottom: 0.6rem; }
  .devoir { background: none; border: 1px solid #b9bccb; }
  h2 { font-size: 13pt; margin-bottom: 0.3rem; }
  h3 { font-size: 11pt; margin-bottom: 0.1rem; }
  li { margin-bottom: 0.15rem; }
  .puces li { border: 1px solid #b9bccb; padding: 0 0.5rem; font-size: 9pt; }
  .etape { padding-bottom: 0.45rem; grid-template-columns: 4.2rem 1fr; }
  .etape::before { display: none; }
  .duree { background: none; color: #0b0f23; border: 1.5px solid #6e4cff; box-shadow: none; padding: 0.05rem 0.5rem; }
  .etape p, .etape ul { margin-bottom: 0.15rem; }
  .phrase { background: none; border: 1px solid #b9bccb; padding: 0.15rem 0.6rem; margin: 0.15rem 0; }
  .numero { -webkit-print-color-adjust: exact; print-color-adjust: exact; width: 1.5rem; height: 1.5rem; font-size: 9pt; }
  .ligne { border-color: #999; height: 1.5rem; }
  .champ { margin-bottom: 0.45rem; }
  a { color: inherit; text-decoration: none; }
  .ecran-seulement, .actions, .signature, .de { display: none !important; }
  .imprime-seulement { display: block; }
  .saut { break-before: page; }
}

@media print { .pied-nav { display: none !important; } }
