/* ScaleSaaS — landing page */

:root {
  --bg: #0a0a0d;
  --bg-1: #0f1013;
  --bg-2: #15161b;
  --bg-3: #1d1e25;

  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.24);

  --text: #eef0f3;
  --text-2: #9ba1ad;
  --text-3: #6a707c;

  --accent: #aeb9cc;
  --accent-glow: rgba(174, 185, 204, 0.26);
  --accent-film: rgba(174, 185, 204, 0.09);

  /* Bleu foncé discret, pour la fin du titre du hero */
  --bleu: #4a6daa;
  --bleu-2: #6b8fd0;   /* bleu plus clair : cases cochées, barre de progression */
  --bleu-3: #a7bde6;   /* texte sur fond bleu */
  --bleu-line: rgba(107, 143, 208, 0.55);
  --bleu-film: rgba(74, 109, 170, 0.14);
  --bleu-glow: rgba(74, 109, 170, 0.35);

  --action: #ffffff;
  --action-texte: #0a0a0d;

  --r-s: 8px;
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Halos de couleur en haut de page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(174, 185, 204, 0.10), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(90, 120, 200, 0.08), transparent 60%);
}

/* Grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  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='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #0a0b0f; }

h1, h2 {
  font-family: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

em { font-style: normal; color: var(--accent); }
a { color: inherit; text-decoration: none; }
strong { color: var(--text); font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--edge);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--bg-3); border-color: var(--line-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--action);
  color: var(--action-texte);
  border-color: transparent;
  box-shadow: 0 10px 34px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  background: #e9edf3;
  border-color: transparent;
  box-shadow: 0 16px 42px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-lg { font-size: 16px; padding: 16px 28px; border-radius: 10px; }
.btn-arrow { transition: transform .16s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* En-tête collant */
.head-bande {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 13, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
}
.brand-logo { display: block; border-radius: 6px; }
.brand-tld { color: var(--text-3); font-weight: 600; }

.head-nav { display: flex; align-items: center; gap: 6px; }
.head-nav a {
  font-size: 14.5px;
  color: var(--text-2);
  padding: 9px 14px;
  border-radius: var(--r-s);
  transition: color .15s, background .15s, border-color .15s;
}
.head-nav a:hover { color: var(--text); background: var(--bg-2); }

.head-nav .head-connexion {
  margin-left: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  font-weight: 600;
}
.head-nav .head-connexion:hover { border-color: var(--accent); background: var(--accent-film); }

.head-nav .head-cta {
  margin-left: 8px;
  background: var(--action);
  color: var(--action-texte);
  font-weight: 600;
  box-shadow: 0 8px 26px -12px var(--accent-glow);
}
.head-nav .head-cta:hover { background: #e9edf3; color: var(--action-texte); }

/* Hero */
.hero { position: relative; padding: 104px 0 48px; }

#veins {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 700px;
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(28px, 3.5vw, 56px);
  align-items: center;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.2vw, 68px);
  letter-spacing: -0.038em;
  max-width: 15ch;
}
.hero h1 em { color: var(--bleu); }
.hero-lede {
  margin-top: 24px;
  font-size: 18px;
  color: var(--text-2);
  max-width: 52ch;
}
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Machine à écrire */
.lede-suite { display: inline; white-space: pre-wrap; }
#lede-mot { color: var(--text); font-weight: 600; }
.lede-curseur {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.16em;
  background: var(--accent);
  animation: clignote 1s steps(1) infinite;
}
@keyframes clignote { 50% { opacity: 0; } }

/* Téléphone — façon iPhone 15 */
.scene-tel { position: relative; display: flex; flex-direction: column; align-items: center; }

.tel {
  position: relative;
  width: min(268px, 100%);
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(150deg, #3b3e46, #16171b 32%, #2a2c33 62%, #0f1013);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: levitation 6s ease-in-out infinite;
  will-change: transform;
}

/* Boutons latéraux : action, volume +/−, veille */
.tel-bouton {
  position: absolute;
  width: 3px;
  background: linear-gradient(90deg, #1b1c21, #34363d);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.tel-b-gauche { left: -4px; border-right: 0; border-radius: 3px 0 0 3px; }
.tel-b-droite {
  right: -4px;
  border-left: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(270deg, #1b1c21, #34363d);
}
.tel-b-action { top: 84px;  height: 26px; }
.tel-b-vol-1  { top: 128px; height: 44px; }
.tel-b-vol-2  { top: 182px; height: 44px; }
.tel-b-veille { top: 150px; height: 72px; }

/* Écran : ratio réel de l'iPhone 15, liseré noir autour */
.tel-ecran {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1179 / 2556;
  border-radius: 41px;
  box-shadow: 0 0 0 5px #000;
  background:
    radial-gradient(280px 220px at 20% 8%, rgba(96, 118, 210, 0.34), transparent 70%),
    radial-gradient(260px 240px at 90% 42%, rgba(150, 96, 200, 0.20), transparent 70%),
    linear-gradient(180deg, #0e111c, #06070d);
}

/* Dynamic Island */
.tel-ile {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 24px;
  border-radius: 999px;
  background: #000;
  z-index: 3;
}
.tel-ile::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 9px;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1c2340, #05060c 70%);
}

.tel-statut {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 25px;
  margin-top: 10px;
  padding: 0 16px;
  color: #fff;
}
.tel-statut-icones { display: flex; align-items: center; gap: 4px; }
.tel-statut svg { height: 10px; width: auto; }
.tel-statut svg { display: block; }
.tel-ico-reseau rect { fill: #fff; }
.tel-ico-wifi path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.tel-ico-wifi .plein { fill: #fff; stroke: none; }
.tel-ico-batterie .contour { fill: none; stroke: #fff; stroke-opacity: 0.45; stroke-width: 1; }
.tel-ico-batterie .charge { fill: #fff; }
.tel-ico-batterie .plein { fill: #fff; fill-opacity: 0.45; }

.tel-cadenas { display: block; margin: 16px auto 0; color: rgba(255, 255, 255, 0.9); }

.tel-date {
  margin-top: 6px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.82);
}
.tel-heure {
  text-align: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 62px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  opacity: 0.94;
  margin: 2px 0 26px;
}

/* Bas de l'écran verrouillé : lampe, appareil photo, barre d'accueil */
.tel-bas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  padding: 0 26px;
}
.tel-raccourci {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  color: #fff;
}
.tel-barre {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 88px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.notifs { display: grid; gap: 9px; position: relative; }
.notif {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  animation: notif-entre 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) backwards;
}
.notif:nth-child(1) { animation-delay: 0.25s; }
.notif:nth-child(2) { animation-delay: 0.5s; }
.notif:nth-child(2) { opacity: 0.78; }

.notif-neuve {
  animation: notif-tombe 0.44s cubic-bezier(0.18, 0.9, 0.28, 1), notif-eclat 1.1s ease-out 0.3s;
  animation-delay: 0s, 0.3s;
}
.notif-neuve .notif-ico { animation: notif-pastille 0.6s ease-out 0.12s backwards; }
.notif-sort {
  animation: notif-part 0.42s cubic-bezier(0.4, 0, 0.9, 0.4) forwards;
  pointer-events: none;
}

.notif-ico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #635bff;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.notif-txt { min-width: 0; }
.notif-tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  margin-bottom: 2px;
}
.notif-tete span { font-weight: 700; color: #fff; letter-spacing: 0.01em; }
.notif-tete em { color: rgba(255, 255, 255, 0.5); font-size: 10.5px; white-space: nowrap; }
.notif-corps {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
  overflow-wrap: anywhere;
}
.notif-corps strong { color: #fff; font-weight: 700; }

.tel-ombre {
  display: block;
  width: 190px;
  height: 22px;
  margin-top: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent);
  filter: blur(9px);
  animation: ombre 6s ease-in-out infinite;
}
.tel-legende {
  margin-top: 16px;
  font-family: "Spline Sans Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}

@keyframes levitation {
  0%, 100% { transform: translateY(-12px) rotate(-1.4deg); }
  50%      { transform: translateY(12px) rotate(1.4deg); }
}
@keyframes ombre {
  0%, 100% { transform: scale(0.86); opacity: 0.5; }
  50%      { transform: scale(1.06); opacity: 0.8; }
}
@keyframes notif-entre {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
}
@keyframes notif-tombe {
  from { opacity: 0; transform: translateY(-22px) scale(0.94); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
@keyframes notif-eclat {
  from { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.34); }
  to   { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.09); }
}
@keyframes notif-part {
  from { opacity: 0.78; transform: none; }
  to   { opacity: 0; transform: translateY(14px) scale(0.96); }
}
@keyframes notif-pastille {
  from { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  to   { transform: none; opacity: 1; }
}

/* Ruban d'outils */
.outils { margin-top: 46px; min-width: 0; max-width: 100%; }
.outils-titre {
  font-family: "Spline Sans Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 16px;
}
.outils-piste {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.outils-file {
  display: flex;
  width: max-content;
  list-style: none;
  animation: defile 26s linear infinite;
}
/* Pastille d'outil : logo + nom, la couleur de la marque apparaît au survol */
.outil {
  --marque: #fff;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: 14px;
  padding: 11px 20px 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: var(--edge);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.outil:hover {
  color: var(--text);
  border-color: var(--marque);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  transform: translateY(-2px);
}

.ico {
  flex: none;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  transition: background-color .2s ease;
}
.outil:hover .ico { background-color: var(--marque); }

.ico-claude     { --logo: url("logos/claude.svg"); }
.ico-github     { --logo: url("logos/github.svg"); }
.ico-vercel     { --logo: url("logos/vercel.svg"); }
.ico-supabase   { --logo: url("logos/supabase.svg"); }
.ico-stripe     { --logo: url("logos/stripe.svg"); }
.ico-googlemaps { --logo: url("logos/googlemaps.svg"); }

.outil:has(.ico-claude)     { --marque: #d97757; }
.outil:has(.ico-supabase)   { --marque: #3ecf8e; }
.outil:has(.ico-stripe)     { --marque: #7a73ff; }
.outil:has(.ico-googlemaps) { --marque: #4285f4; }

.outils-piste:hover .outils-file { animation-play-state: paused; }
@keyframes defile {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.outils-lecture {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Bandeau de chiffres */
.strip {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip div { padding: 26px 22px; border-right: 1px solid var(--line); }
.strip div:last-child { border-right: none; }
.strip b {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
.strip span { font-size: 13.5px; color: var(--text-3); }

/* FAQ */
.section { padding: 104px 0; }
.section-head { max-width: 62ch; }
.section h2 { margin-top: 16px; font-size: clamp(30px, 3.6vw, 46px); }

.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color .15s;
}
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1.6px solid var(--text-3);
  border-bottom: 1.6px solid var(--text-3);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq-list details p { padding-bottom: 26px; color: var(--text-2); max-width: 78ch; font-size: 15.5px; }

/* Pied de page */
.site-foot {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-3);
}
.site-foot a:hover { color: var(--text); }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div:nth-child(2) { border-right: none; }
  .strip div:nth-child(1), .strip div:nth-child(2) { border-bottom: 1px solid var(--line); }

  .head-nav a:not(.head-cta):not(.head-connexion) { display: none; }
  .head-nav a { white-space: nowrap; }
  .head-nav .head-connexion { margin-left: 0; padding: 8px 11px; font-size: 13px; }
  .head-nav .head-cta { margin-left: 0; padding: 8px 12px; font-size: 13px; }
  .brand { gap: 8px; }
  .brand-mot { display: none; }
  .brand-logo { width: 26px; height: 26px; }

  .section { padding: 76px 0; }
  .wrap { padding: 0 20px; }
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 72px 0 40px; }
}
@media (max-width: 620px) {
  .outils { margin-top: 34px; }
  .outil { padding: 9px 16px 9px 13px; font-size: 15px; margin-right: 10px; }
  .ico { width: 19px; height: 19px; }
}

/* Accessibilité : moins d'animations */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .outils-file { animation: none; }
  .lede-curseur { display: none; }
}
