/* ══════════════════════════════════════════════════
   ParcSync — Landing page
   Identité visuelle reprise du dashboard (thème sombre)
   ══════════════════════════════════════════════════ */

:root {
  /* Couleurs de marque */
  --bg:         #0f1620;
  --bg-alt:     #0c121b;   /* fond de section alternée */
  --carte:      #1a2433;
  --carte-bord: #26344a;
  --texte:      #e6edf5;
  --texte-doux: #8da2bd;
  --vert:       #2ecc71;
  --rouge:      #e74c3c;
  --accent:     #3fa9f5;

  /* Mise en page */
  --largeur-max: 1120px;
  --gouttiere:   24px;
  --rayon:       14px;
  --transition:  .18s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Conteneur centré ── */
.conteneur {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* ── Rythme vertical des sections ── */
.section { padding-block: 88px; }
.section:nth-of-type(even) { background: var(--bg-alt); }

/* ══════════════════ NAVBAR ══════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 22, 32, .8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--carte-bord);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}
.logo__marque { height: 30px; width: auto; }
.nav__liens {
  display: flex;
  gap: 22px;
  margin-inline: auto;
  font-size: 15px;
  color: var(--texte-doux);
}
.nav__actions { display: flex; gap: 12px; }

/* ══════════════════ BOUTONS ══════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn--principal { background: var(--accent); color: #07121f; }
.btn--principal:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn--secondaire {
  background: transparent;
  color: var(--texte);
  border: 1px solid var(--carte-bord);
}
.btn--secondaire:hover { border-color: var(--accent); }

/* ══════════════════ HERO ══════════════════ */
.hero {
  padding-block: 96px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Halo de marque en arrière-plan */
.hero::before {
  content: "";
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 760px; height: 480px;
  background: radial-gradient(closest-side, rgba(63,169,245,.22), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; }

.logo__marque { filter: drop-shadow(0 0 8px rgba(63,169,245,.5)); }

/* Pastille « eyebrow » */
.pastille {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(63,169,245,.1);
  border: 1px solid rgba(63,169,245,.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.pastille__point {
  width: 7px; height: 7px;
  background: var(--vert);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(46,204,113,.6);
  animation: pouls 2s infinite;
}
@keyframes pouls {
  0%   { box-shadow: 0 0 0 0 rgba(46,204,113,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

.hero__titre {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.texte-degrade {
  background: linear-gradient(120deg, var(--accent), var(--vert));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__accroche {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--texte-doux);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.btn--grand { padding: 14px 26px; font-size: 16px; }

.hero__preuve { font-size: 14px; color: var(--texte-doux); margin-bottom: 56px; }

/* ── Aperçu produit (fenêtre + mock dashboard) ── */
.apercu {
  max-width: 900px;
  margin-inline: auto;
  background: var(--carte);
  border: 1px solid var(--carte-bord);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}
.apercu__barre {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--carte-bord);
}
.apercu__feu { width: 11px; height: 11px; border-radius: 50%; background: var(--carte-bord); }
.apercu__feu:nth-child(1) { background: #e74c3c; }
.apercu__feu:nth-child(2) { background: #f39c12; }
.apercu__feu:nth-child(3) { background: #2ecc71; }
.apercu__url {
  margin-left: 14px;
  font-size: 12px;
  color: var(--texte-doux);
  font-family: "Consolas", monospace;
}
.apercu__corps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
  text-align: left;
}

.mini-carte {
  background: var(--bg);
  border: 1px solid var(--carte-bord);
  border-radius: 10px;
  padding: 14px;
}
.mini-carte--alerte { border-color: #f39c12; }
.mini-carte__badge {
  display: inline-block;
  background: rgba(243,156,18,.18);
  color: #f39c12;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.mini-carte__titre { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.mini-carte__sous  { font-size: 12px; color: var(--texte-doux); margin-bottom: 12px; }
.mini-ports { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.mini-ports--grise { filter: grayscale(1) brightness(.6); }
.mini-ports .p { aspect-ratio: 1; border-radius: 3px; }
.mini-ports .p.up   { background: var(--vert); }
.mini-ports .p.down { background: var(--rouge); opacity: .5; }

@media (max-width: 720px) {
  .apercu__corps { grid-template-columns: 1fr; }
}

/* ══════════════════ CARTES / GRILLE ══════════════════ */
.carte {
  background: var(--carte);
  border: 1px solid var(--carte-bord);
  border-radius: var(--rayon);
  padding: 24px;
}
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

/* ══════════════════ TITRES DE SECTION ══════════════════ */
.section-titre {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}
.section-intro {
  color: var(--texte-doux);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

/* ══════════════════ GRILLE 3 COLONNES ══════════════════ */
.grille--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grille--3 { grid-template-columns: 1fr; } }

.conteneur--etroit { max-width: 760px; }

/* ══════════════════ CONFIANCE ══════════════════ */
.confiance { padding-block: 56px; }
.confiance__intro {
  text-align: center;
  color: var(--texte-doux);
  font-size: 15px;
  margin-bottom: 32px;
}
.confiance__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-cle { text-align: center; }
.stat-cle__valeur {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--vert));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-cle__label { font-size: 13px; color: var(--texte-doux); }
@media (max-width: 720px) { .confiance__stats { grid-template-columns: repeat(2, 1fr); } }

/* ══════════════════ CARTES (problème / fonctions) ══════════════════ */
.carte { transition: var(--transition); }
.carte--fonction:hover,
.carte--probleme:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.carte__icone { font-size: 30px; margin-bottom: 14px; }
.carte__icone--rond {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(63,169,245,.1);
  border: 1px solid rgba(63,169,245,.25);
  border-radius: 12px;
  font-size: 24px;
}
.carte__titre { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.carte__texte { color: var(--texte-doux); font-size: 15px; }

/* ══════════════════ ÉTAPES ══════════════════ */
.etape {
  position: relative;
  background: var(--carte);
  border: 1px solid var(--carte-bord);
  border-radius: var(--rayon);
  padding: 28px 24px 24px;
}
.etape__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: linear-gradient(120deg, var(--accent), var(--vert));
  color: #07121f;
  font-weight: 800;
  font-size: 20px;
  border-radius: 50%;
  margin-bottom: 16px;
}

/* ══════════════════ FAQ ══════════════════ */
.faq__liste { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--carte);
  border: 1px solid var(--carte-bord);
  border-radius: 12px;
  padding: 4px 20px;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: var(--transition);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  color: var(--texte-doux);
  padding: 0 0 18px;
  font-size: 15px;
}

/* ══════════════════ CTA FINAL ══════════════════ */
.cta-boite {
  background: linear-gradient(135deg, rgba(63,169,245,.12), rgba(46,204,113,.08));
  border: 1px solid rgba(63,169,245,.3);
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
}
.cta-boite__titre { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin-bottom: 12px; }
.cta-boite__texte { color: var(--texte-doux); margin-bottom: 28px; }
.cta-boite__form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.champ {
  background: var(--bg);
  border: 1px solid var(--carte-bord);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--texte);
  font-size: 15px;
  min-width: 260px;
}
.champ:focus { outline: none; border-color: var(--accent); }
.cta-boite__note { font-size: 13px; color: var(--texte-doux); }

.cta-boite__statut {
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--texte-doux);
}
.cta-boite__statut--ok     { color: var(--vert); }
.cta-boite__statut--erreur { color: #f39c12; }

/* Champ piège anti-spam (Netlify honeypot) — invisible pour les humains */
.cache-bot { display: none; }

/* ══════════════════ FOOTER ══════════════════ */
.pied {
  border-top: 1px solid var(--carte-bord);
  padding-block: 40px;
  color: var(--texte-doux);
  font-size: 14px;
}
.pied__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pied__baseline { margin-top: 6px; font-size: 13px; }
.pied__auteur { margin-top: 4px; font-size: 13px; }
.pied__auteur strong { color: var(--texte); font-weight: 600; }
.pied__liens { display: flex; gap: 20px; }
.pied__liens a:hover { color: var(--accent); }
.pied__legal { font-size: 13px; }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 720px) {
  .section { padding-block: 60px; }
  .nav__liens { display: none; }
}
