:root {
  --fond: #0c0a10;
  --carte: #17131f;
  --ligne: #2a2336;
  --texte: #f3effa;
  --texte-doux: #a9a1b8;
  --rose: #7224b4;
  --rose-fonce: #b98cf0;
  --rose-pale: rgba(114, 36, 180, 0.14);
  --police: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.page { max-width: 520px; margin: 0 auto; padding: 0 16px 48px; }

/* En-tête des sous-pages */
.entete { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 8px; }
.entete a { text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.entete img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.entete .retour { font-weight: 400; font-size: 15px; color: var(--texte-doux); }

/* Profil */
.profil { text-align: center; padding: 64px 0 32px; }
.avatar {
  width: 160px; height: 160px; margin: 0 auto 22px; border-radius: 50%;
  object-fit: cover; border: 3px solid rgba(185, 140, 240, 0.6);
  box-shadow: 0 0 24px 4px rgba(114, 36, 180, 0.55), 0 0 70px 18px rgba(114, 36, 180, 0.35), 0 0 140px 40px rgba(114, 36, 180, 0.18);
  animation: lueur 4s ease-in-out infinite;
}
@keyframes lueur {
  50% { box-shadow: 0 0 30px 6px rgba(114, 36, 180, 0.7), 0 0 90px 24px rgba(114, 36, 180, 0.42), 0 0 160px 50px rgba(114, 36, 180, 0.22); }
}
@media (prefers-reduced-motion: reduce) { .avatar { animation: none; } }
.profil h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.profil p { color: var(--texte-doux); margin-top: 8px; }

/* Boutons de liens, façon page de liens */
.lien {
  display: flex; align-items: center; gap: 14px;
  background: var(--carte); border: 1px solid var(--ligne); border-radius: 20px;
  padding: 18px 20px; margin-bottom: 12px; text-decoration: none;
  
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lien:hover { transform: translateY(-1px); border-color: rgba(114, 36, 180, 0.5); box-shadow: 0 6px 18px rgba(114, 36, 180, 0.12); }
.lien .icone {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--rose-pale); color: var(--rose-fonce);
  display: grid; place-items: center;
}
.lien .icone svg { width: 22px; height: 22px; }
.lien .texte { flex: 1; }
.lien strong { display: block; font-size: 17px; font-weight: 600; }
.lien small { display: block; font-size: 14px; color: var(--texte-doux); }
.lien .chevron { flex: none; color: var(--texte-doux); }

/* Sous-pages */
h1.titre { font-size: clamp(34px, 7vw, 46px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 56px 0 20px; }
h1.titre span { color: var(--rose-fonce); }
.intro { color: var(--texte-doux); font-size: 18px; line-height: 1.65; max-width: 34em; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 22px; }
.bloc { padding: 56px 0; border-top: 1px solid var(--ligne); }
.bloc:first-of-type { margin-top: 64px; }

.bouton {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--rose); color: #fff; padding: 16px 30px; border-radius: 999px; margin-top: 32px;
}
.bouton:hover { background: #8a3ad1; }

.liste { list-style: none; }
.liste li {
  background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px;
  padding: 16px 18px; margin-bottom: 10px;
}
.liste strong { display: block; }
.liste span { color: var(--texte-doux); font-size: 15px; }

.etapes { list-style: none; counter-reset: etape; }
.etapes li { position: relative; padding: 0 0 30px 52px; }
.etapes li:last-child { padding-bottom: 0; }
.etapes strong { display: block; margin-bottom: 4px; }
.etapes li::before {
  counter-increment: etape; content: counter(etape);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--rose); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.etapes span { color: var(--texte-doux); font-size: 15px; display: block; }

details { background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--rose-fonce); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--texte-doux); margin-top: 10px; font-size: 15px; }

.encart {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(114, 36, 180, 0.28) 0%, rgba(114, 36, 180, 0.06) 45%, var(--carte) 75%);
  border: 1px solid rgba(114, 36, 180, 0.35); border-radius: 28px;
  padding: 48px 24px 44px; margin-top: 16px;
}
.encart .mini-avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px;
  border: 2px solid rgba(185, 140, 240, 0.6);
  box-shadow: 0 0 20px 4px rgba(114, 36, 180, 0.5), 0 0 60px 14px rgba(114, 36, 180, 0.25);
}
.encart h2 { margin: 0; font-size: clamp(28px, 6vw, 36px); }
.encart p { color: var(--texte-doux); margin: 10px auto 0; max-width: 26em; }
.encart .bouton { box-shadow: 0 10px 30px rgba(114, 36, 180, 0.35); }

/* Cadeaux */
.grand-cadeau { width: 84px; margin: 36px auto 0; filter: drop-shadow(0 0 28px rgba(114, 36, 180, 0.55)); }
details.cadeau { padding: 0; border-radius: 20px; margin-bottom: 12px; }
details.cadeau summary {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 400;
}
details.cadeau summary::after { content: "›"; font-size: 24px; color: var(--texte-doux); transition: transform 0.2s ease; }
details.cadeau[open] summary::after { content: "›"; transform: rotate(90deg); color: var(--rose-fonce); }
details.cadeau[open] { border-color: rgba(114, 36, 180, 0.45); }
.icone-cadeau {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--rose-pale); color: var(--rose-fonce); display: grid; place-items: center;
}
.icone-cadeau svg { width: 22px; height: 22px; }
.titre-cadeau { flex: 1; }
.titre-cadeau .mot { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--rose-fonce); }
.titre-cadeau strong { display: block; font-size: 17px; font-weight: 600; margin-top: 2px; }
.contenu { padding: 0 20px 20px; }
.contenu > p { color: var(--texte-doux); font-size: 15px; }
.prompt {
  margin-top: 14px; background: var(--fond); border: 1px solid var(--ligne); border-radius: 12px;
  padding: 14px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; max-height: 240px; overflow: auto;
}
.copier {
  margin-top: 12px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--rose); color: #fff; border: 0; padding: 10px 20px; border-radius: 999px;
}
.contenu ol { margin: 12px 0 0 20px; color: var(--texte-doux); font-size: 15px; }
.contenu ol li { margin-bottom: 6px; }
.contenu ol a { color: var(--rose-fonce); }

footer { text-align: center; color: var(--texte-doux); font-size: 14px; padding-top: 40px; }
footer nav { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
footer a { color: var(--texte-doux); }

/* Domaines automatisables */
.domaines { display: grid; gap: 10px; margin-top: 16px; }
.domaine { background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; padding: 16px 18px; }
.domaine strong { display: block; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { font-size: 15px; padding: 8px 16px; border-radius: 999px; background: var(--rose-pale); color: var(--rose-fonce); }
@media (min-width: 640px) { .domaines { grid-template-columns: 1fr 1fr; } }

/* Formulaire de message sur l'accueil */
.lien-message { margin-bottom: 12px; }
.lien-message summary { list-style: none; cursor: pointer; margin-bottom: 0; }
.lien-message summary::-webkit-details-marker { display: none; }
.lien-message summary::after { content: none; }
.lien-message[open] summary { border-color: rgba(114, 36, 180, 0.5); border-radius: 20px 20px 0 0; }
.lien-message[open] .chevron { transform: rotate(90deg); color: var(--rose-fonce); }
.lien-message .chevron { transition: transform 0.2s ease; }
.formulaire {
  background: var(--carte); border: 1px solid rgba(114, 36, 180, 0.5); border-top: 0;
  border-radius: 0 0 20px 20px; padding: 6px 20px 22px;
}
.formulaire label { display: block; font-size: 14px; font-weight: 600; margin-top: 14px; }
.formulaire input, .formulaire textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; font-weight: 400;
  color: var(--texte); background: var(--fond); border: 1px solid var(--ligne); border-radius: 12px; padding: 12px 14px;
}
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--rose); }
.formulaire .bouton { border: 0; cursor: pointer; font: inherit; font-weight: 600; width: 100%; margin-top: 18px; }
.formulaire .etat { font-size: 14px; color: var(--texte-doux); text-align: center; margin-top: 10px; min-height: 1em; }
details.lien-message { background: none; border: 0; padding: 0; border-radius: 0; }
.lien-message summary.lien { font-weight: 400; margin-bottom: 0; }
.lien-message summary::after, .lien-message[open] summary::after { content: none; }

/* Formulaire projet dans l'encart final */
.formulaire-projet { background: none; border: 0; padding: 8px 0 0; text-align: left; max-width: 420px; margin: 18px auto 0; }

.page-message { margin-top: 40px; }
.page-message h1 { font-size: clamp(26px, 6vw, 32px); font-weight: 700; letter-spacing: -0.02em; }

/* Étapes en frise verticale */
.etapes li { padding: 0 0 34px 60px; }
.etapes li::before {
  width: 38px; height: 38px; font-size: 16px;
  background: linear-gradient(135deg, #b98cf0, #7224b4);
  box-shadow: 0 0 0 5px var(--fond), 0 0 18px 2px rgba(114, 36, 180, 0.55);
  z-index: 1;
}
.etapes li::after {
  content: ""; position: absolute; left: 18px; top: 38px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, rgba(114, 36, 180, 0.7), rgba(114, 36, 180, 0.12));
}
.etapes li:last-child::after { display: none; }
.etapes strong { font-size: 18px; padding-top: 6px; }

/* Page dédiée à un cadeau */
.icone-page { width: 64px; height: 64px; margin: 40px auto 0; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, #b98cf0, #7224b4); color: #fff; box-shadow: 0 0 28px rgba(114, 36, 180, 0.45); }
.icone-page svg { width: 30px; height: 30px; }
.titre-cadeau-page { text-align: center; margin: 16px auto 8px; font-size: clamp(28px, 7vw, 40px); }
.contenu-page { background: var(--carte); border: 1px solid var(--ligne); border-radius: 20px; padding: 6px 20px 22px; margin: 24px 0 8px; }
.contenu-page .prompt { max-height: 220px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.contenu-page .copier { width: 100%; padding: 14px 20px; font-size: 16px; }

/* Icônes réseaux (page de liens) */
.reseaux { display: flex; justify-content: center; gap: 18px; margin-top: 18px; }
.reseaux a { color: var(--texte); opacity: .85; transition: opacity .15s, color .15s; }
.reseaux a:hover { opacity: 1; color: var(--rose-fonce); }
.reseaux svg { width: 24px; height: 24px; display: block; }
.profil h1 { font-size: 26px; }
.profil h1 .sep { color: var(--rose-fonce); font-weight: 400; margin: 0 2px; }

/* Page cadeaux : carrousel horizontal (glisser) */
h1.titre.titre-cadeaux { text-align: center; font-size: 34px; margin: 2px 0 6px; }
p.intro.intro-cadeaux { text-align: center; margin: 0 auto 24px; font-size: 16px; }
.carrousel {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  padding-bottom: 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  scrollbar-width: thin; scrollbar-color: var(--rose) var(--ligne);
}
.carrousel::-webkit-scrollbar { height: 6px; }
.carrousel::-webkit-scrollbar-track { background: var(--ligne); border-radius: 99px; margin: 0 16px; }
.carrousel::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 99px; }
.carte-cadeau {
  flex: 0 0 calc(50% - 6px); scroll-snap-align: start; text-decoration: none;
  display: flex; flex-direction: column; gap: 8px;
}
.carte-cadeau img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 1px solid var(--ligne); background: var(--carte); }
.carte-cadeau strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.vide { text-align: center; background: var(--carte); border: 1px solid var(--ligne); border-radius: 20px; padding: 22px 20px; margin-bottom: 16px; }
.vide strong { display: block; font-size: 17px; font-weight: 600; color: var(--texte); }
.vide span { display: block; margin-top: 4px; font-size: 14px; color: var(--texte-doux); }
.vide[hidden] { display: none; }

/* Bulle WhatsApp flottante, animée pour être bien visible */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 70px; height: 70px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: wa-saut 3s ease-in-out infinite;
}
.whatsapp::before, .whatsapp::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid #25d366; animation: wa-onde 2s ease-out infinite; pointer-events: none;
}
.whatsapp::after { animation-delay: 1s; }
.whatsapp:hover { animation-play-state: paused; transform: scale(1.08); }
.whatsapp svg { width: 38px; height: 38px; position: relative; }
@keyframes wa-onde { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes wa-saut {
  0%, 70%, 100% { transform: translateY(0) rotate(0); }
  75% { transform: translateY(-8px) rotate(-10deg); }
  80% { transform: translateY(0) rotate(8deg); }
  85% { transform: translateY(-4px) rotate(-6deg); }
  90% { transform: translateY(0) rotate(0); }
}
@media (prefers-reduced-motion: reduce) { .whatsapp, .whatsapp::before, .whatsapp::after { animation: none; } }
body { padding-bottom: 90px; }
