
:root {
    --bg-main: #05070a;
    --bg-card: rgba(7, 11, 18, 0.96);
    --primary: #29ccbe;
    --primary-soft: rgba(41,204,190,0.08);
    --primary-strong: #1ce0d0;
    --text-main: #f5f5f5;
    --text-muted: #aeb3c1;
    --border-soft: rgba(41,204,190,0.35);
    --accent: #2fffdc;
}

* {
    box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;

  /* Fond global */
  background-color: #02070b;
  background-image:
      radial-gradient(circle at 0 0, rgba(0, 255, 209, 0.22) 0, transparent 55%),
      radial-gradient(circle at 100% 0, rgba(64, 176, 255, 0.18) 0, transparent 55%),
      radial-gradient(circle at 50% 110%, rgba(0, 255, 209, 0.16) 0, transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;   /* 💡 c’est ça qui donne l’effet “texte qui bouge sur fond fixe” */
  background-size: cover;

  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-inner {
    position: relative;
    z-index: 1;
}

/* Header + nav */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: linear-gradient(180deg, rgba(5,7,10,0.96), rgba(5,7,10,0.82));
    border-bottom: 1px solid rgba(41,204,190,0.3);
}
header.scrolled .logo-mark{
    filter:
      drop-shadow(0 0 14px rgba(0, 255, 204, .45))
      drop-shadow(0 0 34px rgba(0, 255, 204, .22));
  }
.nav {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-strong);
    box-shadow: 0 0 15px rgba(41,204,190,0.6);
}

.logo-wrap{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(0,0,0,.35);
  }
  
  .logo-wrap::before{
    content:"";
    position:absolute;
    inset:-10px;                 /* étend le halo */
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0,255,204,.25), transparent 60%);
    filter: blur(6px);
    pointer-events:none;
  }

.brand-name {
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
}

.nav-links a {
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    border-radius: 999px;
    padding: 9px 20px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border 0.18s ease, color 0.18s ease;
    background: none;
    color: var(--text-main);
}

.btn-outline {
    border-color: rgba(255,255,255,0.22);
}

.btn-outline:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(41,204,190,0.45);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #020305;
    box-shadow: 0 0 18px rgba(41,204,190,0.6);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 26px rgba(41,204,190,0.9);
}

.nav-toggle {
    display: none;
    border: none;
    background: none;
    color: var(--text-main);
    font-size: 22px;
    cursor: pointer;
}

/* Hero */
#hero {
    position: relative;
    min-height: 82vh;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.7fr);
    gap: 32px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 22px 64px;
}

.hero-copy h1 {
    font-size: clamp(32px, 4vw, 40px);
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--primary-strong), #40a2ff);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 22px;
    max-width: 480px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.badge {
    border-radius: 999px;
    border: 1px solid rgba(41,204,190,0.5);
    padding: 4px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: rgba(8,13,20,0.8);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-note {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-note span {
    color: var(--primary-strong);
}

.hero-visual {
    position: relative;
    padding: 20px;
}

.hero-card {
    position: relative;
    border-radius: 20px;
    padding: 18px 18px 16px;
    background: radial-gradient(circle at 0 0, rgba(41,204,190,0.25) 0, rgba(4,7,10,0.95) 40%);
    border: 1px solid rgba(41,204,190,0.4);
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
}

.hero-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(3, 18, 15, 0.9);
    border: 1px solid rgba(41,204,190,0.6);
}

.hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #3bffb8;
    box-shadow: 0 0 8px rgba(64,255,189,0.9);
}

.hero-mini-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    margin-bottom: 12px;
    font-size: 11px;
}

.metric-card {
    border-radius: 12px;
    padding: 8px 10px;
    background: radial-gradient(circle at 0 0, rgba(41,204,190,0.2) 0, rgba(4,7,10,0.98) 60%);
    border: 1px solid rgba(41,204,190,0.35);
}

.metric-label {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metric-value {
    font-weight: 600;
    font-size: 13px;
}

.hero-flow {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(115, 135, 160, 0.5);
    font-size: 11px;
    color: var(--text-muted);
}

.hero-flow strong {
    color: var(--primary-strong);
}

.hero-orbits {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(41,204,190,0.4);
    mix-blend-mode: screen;
}

.orbit.orbit-1 {
    width: 220px;
    height: 220px;
    right: -40px;
    top: -20px;
}
.orbit.orbit-2 {
    width: 160px;
    height: 160px;
    left: -30px;
    bottom: -10px;
    border-color: rgba(88, 176, 255, 0.5);
}

.floating-chip {
    position: absolute;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(5,10,18,0.96);
    border: 1px solid rgba(41,204,190,0.5);
    color: var(--text-muted);
    backdrop-filter: blur(10px);
}

.chip-1 {
    top: -6px;
    right: 18px;
}

.chip-2 {
    bottom: 20px;
    left: -2px;
}

.chip-1 span,
.chip-2 span {
    color: var(--primary-strong);
    font-weight: 600;
}

/* Sections génériques */
section {
  padding: 26px 22px 40px;
  max-width: 1120px;
  margin: 0 auto;
  scroll-margin-top: 80px; /* compense la hauteur du header sticky */
}

.section-header {
    max-width: 780px;
    margin: 0 auto 30px;
}

.section-kicker {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-strong);
    margin-bottom: 8px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.section-title span {
    color: var(--primary-strong);
}

.section-lead {
    font-size: 15px;
    color: var(--text-muted);
}

/* Grilles, cartes */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 26px;
}

.pill-title {
    position: relative;
    padding-left: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.pill-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

p {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-main);
    margin: 0 0 10px;
}

ul {
    margin: 0;
    padding-left: 18px;
    list-style: none;
}
ul li {
    position: relative;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-muted);
}
ul li::before {
    content: "•";
    position: absolute;
    left: -12px;
    color: var(--primary-strong);
}

.check-list li::before {
    content: "✓";
}

.card {
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 16px 18px 18px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.card.em {
    border-color: var(--border-soft);
    background: linear-gradient(145deg, rgba(5,8,14,0.98), rgba(6,16,18,0.98));
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 22, 32, 0.9);
    border: 1px solid rgba(90, 110, 140, 0.6);
    font-size: 11px;
    color: var(--text-muted);
}

.tag--bright {
    border-color: rgba(41,204,190,0.8);
    color: var(--primary-strong);
}

/* Comment fonctionne MessIA */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
}

.step {
    text-align: left;
    border-radius: 14px;
    padding: 12px 12px 14px;
    background: radial-gradient(circle at 0 0, rgba(41,204,190,0.18) 0, rgba(5,9,15,0.98) 55%);
    border: 1px solid rgba(41,204,190,0.35);
    font-size: 13px;
}

.step-number {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Sécurité */
.security-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr;
    gap: 24px;
}

.security-list li {
    margin-bottom: 7px;
}

/* Cas d’usage */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}

.usecase-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

/* CTA */
.cta-block {
    text-align: center;
    padding: 30px 22px 40px;
    border-radius: 20px;
    background: radial-gradient(circle at 0 0, rgba(41,204,190,0.22) 0, rgba(6,10,16,1) 55%);
    border: 1px solid rgba(41,204,190,0.6);
    box-shadow: 0 0 35px rgba(0,0,0,0.8);
}

.cta-block p {
    max-width: 620px;
    margin: 0 auto 18px;
    color: var(--text-muted);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
}

.contact-form {
    display: grid;
    gap: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field label {
    font-size: 12px;
    color: var(--text-muted);
}

.field input,
.field textarea {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 9px 12px;
    background: rgba(7,10,16,0.96);
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field textarea {
    border-radius: 14px;
    min-height: 120px;
    resize: vertical;
    padding-top: 9px;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--primary-strong);
    box-shadow: 0 0 0 1px rgba(41,204,190,0.4);
}

.contact-side p {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-side ul {
    margin-top: 8px;
}

footer {
    text-align: center;
    padding: 18px 12px 26px;
    font-size: 12px;
    color: var(--text-muted);
}

footer a {
    color: var(--primary-strong);
}

/* Effets scroll / reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Responsive */

@media (max-width: 900px) {
    .page-shell {
        margin: 0 8px 40px;
        border-radius: 18px;
    }
    #hero {
        grid-template-columns: minmax(0,1fr);
        padding-top: 26px;
    }
    .hero-visual {
        order: -1;
    }
    .nav-links {
        display: none;
        position: absolute;
        flex-direction: column;
        top: 48px;
        right: 12px;
        padding: 10px 12px;
        background: rgba(4,7,12,0.98);
        border-radius: 14px;
        border: 1px solid rgba(41,204,190,0.4);
        box-shadow: 0 0 20px rgba(0,0,0,0.75);
    }
    .nav-links.nav-open {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .steps {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .security-grid,
    .grid-2,
    .contact-grid {
        grid-template-columns: minmax(0,1fr);
    }
    .usecase-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    section {
        padding-inline: 18px;
    }
    .steps {
        grid-template-columns: minmax(0,1fr);
    }
    .usecase-grid {
        grid-template-columns: minmax(0,1fr);
    }
    .hero-badges {
        gap: 6px;
    }
    .hero-copy h1 {
        font-size: 28px;
    }
}

main {
  position: relative;
  z-index: 1;
}

.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-strong);
  box-shadow: 0 0 15px rgba(41,204,190,0.6);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

header.scrolled .logo-circle {
  box-shadow: 0 0 26px rgba(41,204,190,0.95);
  transform: scale(1.05);
}

/* Micro-parallax sur certaines cartes */
.hero-card,
.cta-block {
    transform: translateY(var(--parallax, 0px));
    transition: transform 0.25s ease-out;
}

.alert {
  max-width: 1120px;
  margin: 10px auto 0;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  font-size: 13px;
  line-height: 1.5;

  background: rgba(7, 12, 18, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.alert-success {
  border-color: rgba(41,204,190,0.8);
  box-shadow: 0 0 22px rgba(41,204,190,0.5);
}

.alert-error {
  border-color: rgba(255, 94, 94, 0.85);
  box-shadow: 0 0 22px rgba(255, 94, 94, 0.45);
}

.alert-text {
  color: var(--text-main);
}

.alert-close {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.18s ease, transform 0.18s ease;
}

.alert-close:hover {
  color: var(--primary-strong);
  transform: scale(1.1);
}