/* Sine — site de présentation. Même signature que l'app (« Halo », thème Nuit) : fond profond, auras qui dérivent,
   verre à liseré, chiffres et titres fins en Geist, un seul vert lumineux. Tout arrive en douceur, rien n'apparaît d'un coup. */

@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --fond: #04070A;
  --texte: #F2F5F4;
  --texte2: rgba(242, 245, 244, 0.66);
  --texte3: rgba(242, 245, 244, 0.5);
  --texte4: rgba(242, 245, 244, 0.38);
  --verre: rgba(255, 255, 255, 0.06);
  --verre2: rgba(255, 255, 255, 0.025);
  --liseret: rgba(255, 255, 255, 0.11);
  --vert: #B6FFE4;
  --point: #1FE0A0;
  --bleu: #2F7BFF;
  --menthe: #9CF7DA;
  --courbe: cubic-bezier(0.16, 1, 0.3, 1);
  --courbe-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --largeur: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 400;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(31, 224, 160, 0.3); }

/* ───── Auras : trois halos flous qui dérivent lentement derrière tout ───── */
.auras { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aura { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: 0.32; will-change: transform; }
.aura-1 { background: radial-gradient(circle, var(--point) 0%, transparent 62%); left: -22vmax; top: 18vh; animation: derive1 26s ease-in-out infinite alternate; }
.aura-2 { background: radial-gradient(circle, var(--bleu) 0%, transparent 62%); right: -28vmax; top: -10vh; opacity: 0.22; animation: derive2 31s ease-in-out infinite alternate; }
.aura-3 { background: radial-gradient(circle, var(--menthe) 0%, transparent 60%); left: 30vw; bottom: -46vmax; opacity: 0.1; animation: derive3 36s ease-in-out infinite alternate; }
@keyframes derive1 { to { transform: translate(8vw, -6vh) scale(1.08); } }
@keyframes derive2 { to { transform: translate(-6vw, 10vh) scale(0.94); } }
@keyframes derive3 { to { transform: translate(-10vw, -8vh) scale(1.1); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  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 baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ───── En-tête : flotte au-dessus du contenu, son fond (flou + dégradé) arrive en fondu au défilement ───── */
.entete { position: fixed; top: 0; left: 0; right: 0; z-index: 20; }
.entete::before { content: ''; position: absolute; inset: 0 0 -36px 0; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--courbe);
  background: linear-gradient(to bottom, rgba(4, 7, 10, 0.86), rgba(4, 7, 10, 0.55) 60%, rgba(4, 7, 10, 0));
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.entete.defile::before { opacity: 1; }
.entete-interieur { position: relative; max-width: var(--largeur); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 28px; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 300; font-size: 22px; letter-spacing: -0.4px; }
.marque .mini-orbe { width: 22px; height: 22px; }
.liens { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--texte2); }
.liens a { transition: color 0.25s; }
.liens a:hover { color: var(--texte); }

/* ───── Boutons ───── */
.bouton { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  border-radius: 26px; font-size: 15px; font-weight: 500; letter-spacing: -0.1px; cursor: pointer; border: 0; font-family: inherit;
  transition: transform 0.5s var(--courbe), box-shadow 0.5s var(--courbe), background-color 0.3s; }
.bouton:active { transform: scale(0.97); transition-duration: 0.08s; }
.bouton-plein { background: var(--texte); color: var(--fond); box-shadow: 0 0 36px rgba(182, 255, 228, 0.16); }
.bouton-plein:hover { box-shadow: 0 0 46px rgba(182, 255, 228, 0.3); transform: translateY(-1px); }
.bouton-verre { background: var(--verre); color: var(--texte); border: 1px solid var(--liseret); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.bouton-verre:hover { background: rgba(255, 255, 255, 0.09); }
.bouton-petit { height: 40px; padding: 0 18px; font-size: 14px; }
/* La lueur de Sine : une comète fait le tour du contour, régulièrement (comme dans l'app). */
.lueur::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 250deg, rgba(31, 224, 160, 0.15) 290deg, var(--point) 345deg, #D8FFF0 358deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 6px rgba(31, 224, 160, 0.8)); animation: comete 4.2s var(--courbe-ios) infinite; opacity: 0; }
@keyframes comete { 0% { --angle: 0deg; opacity: 0; } 8% { opacity: 1; } 42% { --angle: 360deg; opacity: 1; } 50%, 100% { --angle: 360deg; opacity: 0; } }
.app-store .pomme { width: 18px; height: 18px; }
.bientot { display: block; margin-top: 12px; font-size: 13px; color: var(--texte3); }

/* ───── Mise en page ───── */
.section { position: relative; max-width: var(--largeur); margin: 0 auto; padding: 120px 24px; }
.surtitre { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vert); letter-spacing: 0.3px; }
.surtitre::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--point); box-shadow: 0 0 12px var(--point); }
h1, h2, h3 { font-weight: 300; margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(44px, 6.4vw, 82px); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 400; }
.chapo { font-size: clamp(17px, 1.5vw, 20px); color: var(--texte2); max-width: 34em; margin: 22px 0 0; }
.note { font-size: 14px; color: var(--texte3); }

/* Héros */
.heros { min-height: 100svh; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; padding-top: 110px; padding-bottom: 60px; }
.heros .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }
.heros-visuel { position: relative; display: flex; justify-content: center; align-items: center; }
.heros-visuel .orbe { position: absolute; width: 460px; height: 460px; filter: blur(46px); opacity: 0.55; top: 50%; left: 50%; margin: -230px 0 0 -230px; }
.heros-visuel .halo { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 224, 160, 0.22), transparent 62%); }

/* Orbe : un disque plat dont l'intérieur bouge (jamais une boule qui tourne) */
.orbe { position: relative; border-radius: 50%; overflow: hidden; background: #3CC48C; isolation: isolate; }
.orbe span { position: absolute; width: 100%; height: 100%; border-radius: 50%; mix-blend-mode: normal; will-change: transform; }
.orbe .n1 { background: radial-gradient(circle at 50% 50%, rgba(182, 255, 228, 0.95), transparent 55%); animation: nappe1 7s ease-in-out infinite alternate; }
.orbe .n2 { background: radial-gradient(circle at 50% 50%, rgba(23, 138, 92, 0.95), transparent 55%); animation: nappe2 9s ease-in-out infinite alternate; }
.orbe .n3 { background: radial-gradient(circle at 50% 50%, rgba(127, 232, 192, 0.9), transparent 55%); animation: nappe3 11s ease-in-out infinite alternate; }
@keyframes nappe1 { from { transform: translate(-24%, -22%); } to { transform: translate(-6%, -34%); } }
@keyframes nappe2 { from { transform: translate(26%, 22%); } to { transform: translate(10%, 36%); } }
@keyframes nappe3 { from { transform: translate(4%, 30%); } to { transform: translate(24%, 12%); } }

/* Téléphone : la vraie app, dans un cadre sobre */
.telephone { position: relative; width: min(330px, 78vw); aspect-ratio: 390 / 844; border-radius: 52px; padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)); border: 1px solid var(--liseret);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.6) inset, 0 0 90px rgba(31, 224, 160, 0.12); }
.telephone img { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; }
.flotte { animation: flotte 9s ease-in-out infinite alternate; }
@keyframes flotte { from { transform: translateY(-8px); } to { transform: translateY(10px); } }

/* Trois questions */
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.carte { position: relative; padding: 30px 28px 32px; border-radius: 28px; background: linear-gradient(160deg, var(--verre), var(--verre2));
  border: 1px solid var(--liseret); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); overflow: hidden; }
.carte .icone { width: 30px; height: 30px; margin-bottom: 26px; }
.carte p { color: var(--texte2); margin: 10px 0 0; font-size: 16px; }
.carte .chiffre { font-size: 44px; font-weight: 200; letter-spacing: -0.04em; margin-bottom: 18px; }
.carte .chiffre small { font-size: 22px; color: var(--texte3); }

/* Fonctions : texte et capture, en alternance */
.fonction { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.fonction.inverse .texte { order: 2; }
.fonction .visuel { display: flex; justify-content: center; position: relative; }
.fonction .visuel::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(31, 224, 160, 0.13), transparent 65%); pointer-events: none; }
.points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.points li { display: flex; gap: 14px; align-items: flex-start; color: var(--texte2); font-size: 16px; }
.points li svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.points li strong { color: var(--texte); font-weight: 400; }

/* Sine Pro */
.pro { text-align: center; }
.pro .orbe { width: 116px; height: 116px; margin: 0 auto 34px; box-shadow: 0 0 90px rgba(31, 224, 160, 0.35); }
.pro .chapo { margin-left: auto; margin-right: auto; }
.avantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 54px auto 0; max-width: 980px; text-align: left; }
.avantage { padding: 24px; border-radius: 24px; background: linear-gradient(160deg, var(--verre), var(--verre2)); border: 1px solid var(--liseret); }
.avantage svg { width: 26px; height: 26px; margin-bottom: 22px; }
.avantage p { margin: 0; font-size: 16px; }

/* Principes */
.principes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }

/* Appel final */
.appel { text-align: center; padding-top: 140px; padding-bottom: 150px; }
.appel .chapo { margin-left: auto; margin-right: auto; }
.appel .actions { margin-top: 38px; display: flex; flex-direction: column; align-items: center; }

/* Pied de page */
.pied { border-top: 1px solid var(--liseret); }
.pied-interieur { max-width: var(--largeur); margin: 0 auto; padding: 44px 24px 56px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; font-size: 14px; color: var(--texte3); }
.pied nav { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.pied nav a:hover { color: var(--texte); }

/* ───── Apparition : en sortant d'un léger flou, montée, cascade (comme Cascade dans l'app) ───── */
[data-revele] { opacity: 0; transform: translateY(22px); filter: blur(8px);
  transition: opacity 0.9s var(--courbe), transform 0.9s var(--courbe), filter 0.9s var(--courbe); transition-delay: calc(var(--rang, 0) * 70ms); }
[data-revele].vu { opacity: 1; transform: none; filter: none; }

/* ───── Pages légales ───── */
.legal { max-width: 760px; margin: 0 auto; padding: 150px 24px 100px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); }
.legal .maj { color: var(--texte3); font-size: 14px; margin-top: 14px; }
.legal h2 { font-size: 24px; margin: 54px 0 14px; letter-spacing: -0.02em; font-weight: 400; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--texte2); font-size: 16px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--vert); border-bottom: 1px solid rgba(182, 255, 228, 0.3); }
.legal .bloc { padding: 22px 24px; border-radius: 22px; background: linear-gradient(160deg, var(--verre), var(--verre2)); border: 1px solid var(--liseret); margin: 18px 0; }
.legal .bloc p { margin: 4px 0; }
.a-completer { color: #FFD9A8; background: rgba(255, 196, 120, 0.1); border-radius: 6px; padding: 1px 6px; font-size: 0.95em; }

/* ───── Téléphone (écrans étroits) ───── */
@media (max-width: 900px) {
  .liens { display: none; }
  .entete .bouton-petit { margin-left: auto; }
  .section { padding: 84px 22px; }
  .heros { grid-template-columns: 1fr; text-align: left; padding-top: 120px; min-height: auto; gap: 70px; }
  .heros-visuel .orbe { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
  .questions, .principes { grid-template-columns: 1fr; }
  .avantages { grid-template-columns: 1fr 1fr; }
  .fonction { grid-template-columns: 1fr; gap: 48px; padding-top: 40px; padding-bottom: 40px; }
  .fonction.inverse .texte { order: 0; }
  .pied nav { margin-left: 0; }
}
@media (max-width: 520px) { .avantages { grid-template-columns: 1fr; } .telephone { border-radius: 44px; } .telephone img { border-radius: 35px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-revele] { opacity: 1; transform: none; filter: none; }
}
