@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

.skip-nav {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden; z-index: 9999;
}
.skip-nav:focus {
  position: fixed; left: 1rem; top: 0; width: auto; height: auto;
  overflow: visible; background: #3b82f6; color: #fff; padding: 0.65rem 1.25rem;
  border-radius: 0 0 0.5rem 0.5rem; font-weight: 700; font-size: 0.9rem;
  text-decoration: none;
}

/* ------------------------------
   FOND
------------------------------ */
body {
  min-height: 100vh;
  background: #07111f;
  color: #f8fafc;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  width: 650px; height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  filter: blur(65px);
  top: -200px; left: -200px;
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  width: 550px; height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.11) 0%, transparent 70%);
  filter: blur(75px);
  bottom: -180px; right: -180px;
  animation: drift 14s ease-in-out infinite alternate-reverse;
  pointer-events: none; z-index: 0;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(55px,40px) scale(1.1); }
}

/* ------------------------------
   TOPNAV
------------------------------ */
/* .topnav, .topnav-brand/-logo/-links/-download/-hamburger : voir css/topnav.css (partagé) */
/* Neutralise le a:hover global (souligne tout le texte par défaut) : le logo/nom
   du site a son propre style de survol (halo + couleur), pas un simple trait. */
.topnav-brand:hover { text-decoration: none; color: #93c5fd; }
.topnav-brand:hover .topnav-logo { filter: drop-shadow(0 0 10px rgba(59,130,246,0.9)) brightness(1.1); }
.topnav-logo { transition: filter 0.2s; }
.topnav-cta {
  background: linear-gradient(135deg,#3b82f6,#6366f1) !important;
  color: #fff !important; font-weight: 700 !important;
  box-shadow: 0 2px 12px rgba(59,130,246,0.3) !important;
  border: none !important;
}
.topnav-cta:hover { filter: brightness(1.08) !important; transform: translateY(-1px); }

/* ------------------------------
   PAGE
------------------------------ */
.page-wrapper {
  max-width: 112rem;
  margin: 0 auto;
  padding: 7.5rem 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }

h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
  color: #f8fafc;
}
.hero-title-grad {
  background: linear-gradient(270deg, #93c5fd 0%, #a78bfa 25%, #f472b6 50%, #a78bfa 75%, #93c5fd 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGradShift 5s ease infinite;
  display: inline-block;
}
@keyframes heroGradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.subtitle {
  color: #f1f5f9;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  max-width: 760px;
}

/* ------------------------------
   NAVIGATION RAPIDE
------------------------------ */
.quick-nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.quick-nav a {
  color: #f1f5f9;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.quick-nav a:hover {
  color: #e2e8f0;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

/* ------------------------------
   INFO IMPORT (comment ça marche)
------------------------------ */
.info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}
.info-card h2 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3b82f6;
  margin-bottom: 1rem;
}
.info-card .tip:first-of-type { margin-top: 0; }

/* ------------------------------
   PLATEFORME
------------------------------ */
.platform {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  margin-bottom: 1.75rem;
  overflow: hidden;
  backdrop-filter: blur(8px);
  scroll-margin-top: 5.5rem;
  transition: border-color 0.2s, background 0.2s;
}
.platform:target {
  border-color: rgba(59,130,246,0.4);
  background: rgba(59,130,246,0.05);
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.platform-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.platform-icon svg { width: 20px; height: 20px; }

.platform-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #e2e8f0;
}

.platform-hint {
  font-size: 0.78rem;
  color: #f1f5f9;
  margin-top: 0.2rem;
}

.video-link {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #60a5fa;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
}
.video-link:hover { background: rgba(59,130,246,0.18); text-decoration: none; }
.video-link--inline {
  margin-left: 0.6rem;
  vertical-align: middle;
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
}
.video-link.disabled {
  color: #64748b;
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.07);
  cursor: default;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.badge-csv  { background: rgba(34,197,94,0.15);  color: #4ade80; }
.badge-ical { background: rgba(168,85,247,0.15); color: #c084fc; }

.type-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.type-row h3 { margin-bottom: 0; }
.type-block + .type-block {
  margin-top: 1.75rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ------------------------------
   ÉTAPES
------------------------------ */
.steps-body { padding: 1.5rem; }
.steps-body h3 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.875rem;
  align-items: flex-start;
}
.step:last-of-type { margin-bottom: 0; }

.step-num {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.step-text {
  font-size: 0.9rem;
  color: #f1f5f9;
  line-height: 1.65;
}
.step-text strong { color: #e2e8f0; }
.step-text code {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  padding: 0.1rem 0.45rem;
  border-radius: 0.3rem;
  font-size: 0.82rem;
  font-family: 'Consolas', monospace;
}

.path {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  color: #f1f5f9;
  font-family: 'Consolas', monospace;
  margin-bottom: 1.25rem;
}
.path span { color: #f1f5f9; }
.path strong { color: #7dd3fc; }

.tip {
  background: rgba(59,130,246,0.08);
  border-left: 3px solid #3b82f6;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #93c5fd;
  margin-top: 1.25rem;
  line-height: 1.6;
}
.tip strong { color: #bfdbfe; }

.warn {
  background: rgba(245,158,11,0.08);
  border-left: 3px solid #f59e0b;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #fcd34d;
  margin-top: 1.25rem;
  line-height: 1.6;
}

/* ------------------------------
   CTA
------------------------------ */
.import-cta {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
}
.import-cta h3 { font-size: 1rem; font-weight: 700; color: #e2e8f0; margin-bottom: 0.3rem; }
.import-cta p  { font-size: 0.85rem; color: #f1f5f9; }

.btn-primary {
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.45);
  filter: brightness(1.08);
  text-decoration: none;
}

/* ------------------------------
   RESPONSIVE - MOBILE
------------------------------ */
/* Media query mobile .topnav-hamburger/.topnav-links : voir css/topnav.css (partagé) */

@media (max-width: 520px) {
  h1 { font-size: 1.75rem; }
  .page-wrapper { padding: 5.25rem 1rem 4rem; }
  .steps-body { padding: 1.1rem; }
  .platform-header { padding: 1rem 1.1rem; flex-wrap: wrap; }
  .video-link { margin-left: 0; }
  .import-cta { padding: 1.25rem; flex-direction: column; align-items: stretch; }
  .btn-primary { text-align: center; white-space: normal; }
}

@media (max-width: 380px) {
  h1 { font-size: 1.5rem; }
}
