/* Compte à rebours — Noir & Blanc, étoiles orbitantes, curseur du site */
:root{
  --cd-bg: #000;
  --cd-fg: #fff;
  --cd-muted: #bfbfbf;
  --cd-border: #2a2a2a;
  --cd-accent: #fff; /* N&B strict */
}

*{ box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--cd-bg);
  color: var(--cd-fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  cursor: none; /* on utilise le curseur custom du site */
}

/* ===== Curseur du site (mêmes bases que le portfolio) ===== */
#curseur{
  position: fixed; top: 0; left: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  pointer-events: none; z-index: 999999999;
  transition: transform .1s ease-out;
}

/* ===== Section ===== */
.cd{
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(24px, 6vw, 48px);
  overflow: hidden;
}

/* ===== Orbits d'étoiles en monochrome (autour du centre) ===== */
.cd-orbits{
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  pointer-events: none;
  opacity: .9;
}

/* Chaque orbite est un cercle qui tourne en continu */
.orbit{
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.15);
  animation: spin linear infinite;
}
@keyframes spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* Tailles + vitesses différentes pour la profondeur */
.o1{ width: 420px; height: 420px; animation-duration: 24s; }
.o2{ width: 620px; height: 620px; animation-duration: 36s; }
.o3{ width: 820px; height: 820px; animation-duration: 48s; }

/* Petites étoiles blanches réparties sur l'orbite */
.star{
  position: absolute; width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,.6);
}
.o1 .s1{ top: -3px; left: 50%; transform: translateX(-50%); }
.o1 .s2{ right: -3px; top: 50%; transform: translateY(-50%); }
.o1 .s3{ bottom: -3px; left: 20%; }
.o1 .s4{ left: -3px; top: 20%; }

.o2 .s1{ top: -3px; left: 30%; }
.o2 .s2{ right: -3px; top: 60%; }
.o2 .s3{ bottom: -3px; left: 75%; }
.o2 .s4{ left: -3px; top: 80%; }

.o3 .s1{ top: -3px; left: 70%; }
.o3 .s2{ right: -3px; top: 25%; }
.o3 .s3{ bottom: -3px; left: 10%; }
.o3 .s4{ left: -3px; top: 50%; }

/* ===== Carte centrale ===== */
.cd-inner{
  position: relative; z-index: 1;
  width: min(980px, 92vw);
  border: 1px solid var(--cd-border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  padding: clamp(18px, 4vw, 32px);
  backdrop-filter: blur(6px);
}

.cd-context{
  margin: 0 0 14px 0;
  color: var(--cd-muted);
  line-height: 1.6;
  font-weight: 400;
}
.cd-mail{
  color: #fff; text-decoration: underline; text-underline-offset: 3px;
}

.cd-heading{
  margin: 4px 0 14px 0;
  font-weight: 700; letter-spacing: .2px;
  font-size: clamp(22px, 3.8vw, 36px);
}
.cd-heading span{
  border-bottom: 1px solid #fff;
}

.cd-row{
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2.6vw, 18px);
}
@media (max-width: 680px){
  .cd-row{ grid-template-columns: repeat(2, 1fr); }
}

.cd-box{
  border: 1px solid var(--cd-border);
  border-radius: 14px;
  padding: clamp(14px, 3vw, 20px);
  background: rgba(255,255,255,.06);
  text-align: center;
}
.cd-box span{
  display: block; font-size: clamp(34px, 7vw, 64px);
  line-height: 1; font-weight: 700; letter-spacing: .5px;
}
.cd-box small{
  display: block; margin-top: 6px; color: var(--cd-muted);
  font-size: clamp(12px, 2.4vw, 14px); font-weight: 400;
}

/* Barre de progression */
.cd-line{
  margin-top: 14px; width: 100%; height: 2px;
  background: linear-gradient(90deg, #fff 0 var(--cd-progress, 0%), rgba(255,255,255,.15) 0);
  position: relative; border-radius: 1px;
}
.cd-line::after{
  content: ""; position: absolute; top: -6px; left: calc(var(--cd-progress, 0%) - 7px);
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,.6);
}
.cd-line span{
  position: absolute; top: -32px; right: 0; color: var(--cd-muted); font-size: 13px;
}

/* Bouton "Revenir à l'accueil" (style pill bicolore) */
.cd-actions{ margin-top: 18px; display: flex; justify-content: flex-end; }
.cd-home{
  display: inline-block; padding: 14px 22px; border-radius: 999px;
  background: transparent; color: #fff; border: 1px solid #fff;
  text-decoration: none; transition: .25s ease;
}
.cd-home:hover{
  background: #fff; color: #000;
  box-shadow: 0 2px 16px -2px rgba(255,255,255,.35);
}
