/* =========================================================================
   Driveo — Page "Site en construction"
   Thème enfant Divi (divi-child)
   Aucune dépendance externe · Police système · Fond sombre + accent #2233FF
   ========================================================================= */

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --bg:            #0a0a0a;
  --bg-deep:       #070708;
  --bg-elev:       rgba(255, 255, 255, 0.045);
  --accent:        #2233ff;
  --accent-bright: #3344ff;
  --accent-tint:   rgba(34, 51, 255, 0.22);

  --text:          #f4f5f7;
  --text-soft:     #c9ced6;
  --text-muted:    #9aa0aa;
  --text-dim:      #6b7079;
  --text-faint:    #5e636c;

  --border:        rgba(255, 255, 255, 0.12);
  --border-soft:   rgba(255, 255, 255, 0.06);

  --radius:        14px;
  --radius-pill:   999px;

  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --font:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                   Helvetica, Arial, sans-serif;
}

/* ---------- Reset -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

::selection { background: rgba(34, 51, 255, 0.35); color: #fff; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid rgba(34, 51, 255, 0.85);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Background atmosphere ---------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #0d0d12 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

.bg__glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.bg__glow--one {
  top: -22%;
  right: -12%;
  width: 62vw;
  height: 62vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle at center,
              rgba(34, 51, 255, 0.30) 0%,
              rgba(34, 51, 255, 0.08) 42%,
              transparent 68%);
  animation: drift-a 17s ease-in-out infinite;
}

.bg__glow--two {
  bottom: -26%;
  left: -14%;
  width: 56vw;
  height: 56vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle at center,
              rgba(34, 51, 255, 0.22) 0%,
              rgba(22, 30, 150, 0.06) 46%,
              transparent 72%);
  animation: drift-b 21s ease-in-out infinite;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 38%, #000 28%, transparent 76%);
          mask-image: radial-gradient(ellipse 78% 68% at 50% 38%, #000 28%, transparent 76%);
}

.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 28%,
              transparent 38%, rgba(0, 0, 0, 0.55) 100%);
}

/* Film grain — couche fixe, non interactive (perf safe) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout shell (centrage vertical parfait) -------------------- */
.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: clamp(2rem, 5vh, 3.5rem);
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 5vw, 2rem);
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.25rem, 3.2vw, 1.85rem);
  width: 100%;
  max-width: 640px;
}

/* Entrée en cascade (stagger) */
.content > *,
.footer {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.85s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
.footer { --i: 8; }

/* ---------- Logo --------------------------------------------------------- */
.logo { position: relative; }

.logo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130%;
  height: 240%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(34, 51, 255, 0.20), transparent 62%);
  filter: blur(14px);
  z-index: -1;
}

.logo img {
  width: clamp(180px, 40vw, 290px);
  animation: float 7s ease-in-out infinite;
}

/* ---------- Badge statut ------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.9rem 0.42rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c2c8ff;
  background: rgba(34, 51, 255, 0.08);
  border: 1px solid rgba(34, 51, 255, 0.28);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.badge__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 1.9s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ---------- Titre + sous-titre ------------------------------------------ */
.title {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
}

.subtitle {
  max-width: 46ch;
  font-size: clamp(0.97rem, 2.4vw, 1.125rem);
  line-height: 1.62;
  color: var(--text-muted);
}

/* ---------- Barre de progression ---------------------------------------- */
.progress {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.progress__track {
  position: relative;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* Remplissage de base discret */
.progress__track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34, 51, 255, 0.20), rgba(34, 51, 255, 0.05));
}

/* Reflet lumineux en boucle (shimmer) — hardware accelerated */
.progress__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, transparent,
              var(--accent) 35%, #5d6bff 50%, var(--accent) 65%, transparent);
  box-shadow: 0 0 16px rgba(34, 51, 255, 0.40);
  transform: translateX(-130%);
  will-change: transform;
  animation: sweep 2.1s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.progress__meta .progress__pct { color: #aeb6ff; font-weight: 600; }

/* ---------- Formulaire de notification ---------------------------------- */
.notify {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.notify__label {
  padding-left: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.notify__field { display: flex; gap: 0.5rem; }

.notify__field input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.notify__field input::placeholder { color: var(--text-dim); }
.notify__field input:focus {
  outline: none;
  border-color: rgba(34, 51, 255, 0.8);
  background: rgba(34, 51, 255, 0.06);
  box-shadow: 0 0 0 3px var(--accent-tint), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.notify__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 1.3rem;
  white-space: nowrap;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(34, 51, 255, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s var(--ease), background 0.25s, box-shadow 0.25s;
}
.notify__btn:hover {
  background: var(--accent-bright);
  box-shadow: 0 10px 26px -8px rgba(34, 51, 255, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.notify__btn:active { transform: translateY(1px) scale(0.985); }
.notify__btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.notify__btn:hover svg { transform: translateX(3px); }

.notify__note {
  padding-left: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  transition: color 0.25s;
}
.notify__note.is-success { color: #7fe0a8; }

/* ---------- Réseau social ----------------------------------------------- */
.social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.25s;
}
.social__link svg { width: 20px; height: 20px; transition: transform 0.25s var(--ease); }
.social__link:hover { color: #fff; }
.social__link:hover svg { transform: scale(1.1); }

/* ---------- Pied de page ------------------------------------------------- */
.footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer__sep { width: 4px; height: 4px; border-radius: 50%; background: #3a3e46; }

/* ---------- Animations --------------------------------------------------- */
@keyframes rise { to { opacity: 1; transform: none; } }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@keyframes sweep {
  0%   { transform: translateX(-130%); }
  100% { transform: translateX(360%); }
}

@keyframes ping {
  0%        { transform: scale(1);   opacity: 0.7; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50%      { transform: translate3d(-5%, -4%, 0) scale(1); }
}

/* ---------- Responsive --------------------------------------------------- */
/* Tablette (< 768px) */
@media (max-width: 767px) {
  .bg__grid { background-size: 52px 52px; }
}

/* Mobile (< 480px) */
@media (max-width: 479px) {
  .content { gap: 1.2rem; }

  .notify__field { flex-direction: column; }
  .notify__btn { width: 100%; justify-content: center; }

  .progress__meta { font-size: 0.7rem; }

  .footer { flex-wrap: wrap; justify-content: center; }
}

/* Très petits écrans */
@media (max-width: 340px) {
  .badge { font-size: 0.66rem; letter-spacing: 0.06em; }
}

/* ---------- Accessibilité : mouvement réduit ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .content > *,
  .footer { opacity: 1 !important; transform: none !important; }
}
