/* ============================================================
   style.css — EPEKEINA · epekeina.fr
   Feuille de style unique pour les deux pages :
     - index.html   (<body class="accueil">)
     - contact.php  (<body class="contact">)
   Palette : fond #000000 · nuit #10141b · crème #e7dfc9 · or #e8a33d
   ============================================================ */

/* ---------- Jetons de design (partagés) ---------- */
:root {
  --bg: #000000;
  --nuit: #10141b;
  --ink: #e7dfc9;
  --ink-dim: rgba(231, 223, 201, 0.55);
  --line: rgba(231, 223, 201, 0.22);
  --gold: #e8a33d;
  --gold-hover: #f2be6a;
  --erreur: #e0785f;
  --fonte: 'Futura', 'Century Gothic', 'Avenir Next', 'Trebuchet MS', sans-serif;
}

/* ---------- Base (partagée) ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--fonte);
  background: var(--bg);
  color: var(--ink);
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { position: relative; z-index: 1; }

/* ---------- Ciel étoilé tuilable (512×512, sans halos) — partagé ---------- */
#sky {
  position: fixed;
  top: 0; left: 0;
  width: calc(100vw + 512px);
  height: calc(100vh + 512px);
  z-index: 0;
  pointer-events: none;
  animation: drift 180s linear infinite;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-512px, -512px); }
}
@media (prefers-reduced-motion: reduce) {
  #sky { animation: none; }
}

/* Apparition douce du contenu — partagée */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

footer {
  position: fixed;
  bottom: 1.4rem;
  left: 0; right: 0;
  z-index: 1;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: rgba(231, 223, 201, 0.35);
}
footer a { color: inherit; text-decoration: none; }

/* ============================================================
   PAGE D'ACCUEIL — index.html (body.accueil)
   ============================================================ */

/* Contenu centré verticalement et horizontalement dans la page */
body.accueil {
  display: grid;
  place-items: center;
}

body.accueil main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  padding: 4rem 1.5rem;
  text-align: center;
  animation: fadeUp 1.4s ease both;
}

/* --- Wordmark --- */
.logo { width: min(520px, 92vw); height: auto; display: block; }
.logo text { user-select: none; }

/* --- Ruban doré + étoile à 4 branches (Zubenelgenubi) --- */
.ribbon { width: min(360px, 70vw); height: 18px; display: block; }
.ribbon .band {
  stroke: var(--gold); stroke-width: 1; opacity: 0.9;
}
.ribbon .star { fill: var(--gold); }

.tagline {
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-indent: 0.42em; /* compense la dernière lettre */
}
.slogan {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  font-style: italic;
}

/* --- Boutons-pilules (Bandcamp, Instagram, YouTube, Contact) --- */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.6rem;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.links a svg { width: 16px; height: 16px; flex: none; }
.links a svg * { transition: stroke 0.35s ease, fill 0.35s ease; }
.links a:hover, .links a:focus-visible {
  color: var(--gold);
  border-color: rgba(232, 163, 61, 0.55);
  transform: translateY(-2px);
  outline: none;
}
.links a:hover svg *, .links a:focus-visible svg * { stroke: var(--gold); }
.links a:hover .yt-play, .links a:focus-visible .yt-play { fill: var(--gold); }
.links a:hover .ig-dot, .links a:focus-visible .ig-dot { fill: var(--gold); }
.links a:hover .bc-diamond, .links a:focus-visible .bc-diamond { fill: var(--gold); }

@media (max-width: 560px) {
  .links { flex-direction: column; align-items: stretch; }
  .links a { justify-content: center; }
}

/* ============================================================
   PAGE CONTACT — contact.php (body.contact)
   ============================================================ */

body.contact main {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.retour {
  display: inline-block;
  color: var(--ink);
  opacity: 0.6;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.25s, color 0.25s;
}
.retour:hover { opacity: 1; color: var(--gold); }

body.contact header { margin-top: 34px; text-align: center; }
.icone-a { width: 60px; height: 60px; display: block; margin: 0 auto 22px; }
body.contact h1 {
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
}
.intro {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

/* --- Formulaire --- */
body.contact form {
  margin-top: 44px;
  background: rgba(16, 20, 27, 0.75);
  border: 1px solid rgba(231, 223, 201, 0.12);
  border-radius: 6px;
  padding: 30px 30px 34px;
  text-align: left;
}
.champ { margin-bottom: 24px; }
.champ label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.champ input, .champ textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(231, 223, 201, 0.35);
  color: var(--ink);
  font-family: var(--fonte);
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 8px 2px;
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
}
.champ input:focus, .champ textarea:focus { border-color: var(--gold); }
.champ textarea { min-height: 120px; }
.requis::after { content: " *"; color: var(--gold); }

/* Piège à robots : invisible pour les humains */
.piege {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* --- Captcha --- */
.captcha {
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px dashed rgba(231, 223, 201, 0.18);
}
.captcha-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.captcha-ligne { display: flex; gap: 14px; align-items: center; }
#captcha-img {
  background: var(--nuit);
  border: 1px solid rgba(231, 223, 201, 0.25);
  border-radius: 4px;
  flex: none;
  cursor: pointer;
}
#captcha-rep {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(231, 223, 201, 0.35);
  color: var(--ink);
  font-family: var(--fonte);
  font-size: 15px;
  padding: 8px 2px;
  outline: none;
  transition: border-color 0.25s;
}
#captcha-rep:focus { border-color: var(--gold); }
.captcha-aide {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.05em;
  opacity: 0.55;
}
.captcha-aide button {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--fonte);
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0;
  text-decoration: underline dotted;
}

.erreur {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--erreur);
}

/* --- Bouton Envoyer : même esprit que les boutons-pilules de l'accueil --- */
#envoyer {
  display: block;
  margin: 26px auto 0;
  background: transparent;
  color: var(--gold);
  font-family: var(--fonte);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease;
}
#envoyer:hover { background: var(--gold); color: var(--nuit); }
#envoyer:disabled { opacity: 0.4; cursor: wait; }

/* --- Confirmation --- */
#succes {
  margin-top: 44px;
  padding: 40px 30px;
  text-align: center;
  background: rgba(16, 20, 27, 0.75);
  border: 1px solid rgba(232, 163, 61, 0.35);
  border-radius: 6px;
}
#succes .coche { font-size: 30px; color: var(--gold); }
#succes h2 {
  margin-top: 14px;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
}
#succes p {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.7;
}

/* --- Alternative email direct --- */
.direct {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0.75;
}
#mel-direct {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted rgba(232, 163, 61, 0.6);
}
#mel-direct:hover { color: var(--gold-hover); }

}