/* =========================================================
   Eagle IT — Landing page styles
   Palette : corporate clair épuré (type Stripe/Notion)
   ========================================================= */

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f7f8fa;
  --c-bg-muted: #f1f3f7;
  --c-text: #0f172a;
  --c-text-soft: #475569;
  --c-text-muted: #94a3b8;
  --c-border: #e5e7eb;

  --c-primary: #1e3a8a;
  --c-primary-hover: #1e40af;
  --c-accent: #06b6d4;
  --c-accent-soft: #ecfeff;

  --c-blue-soft: #eff6ff;
  --c-green-soft: #ecfdf5;
  --c-pink-soft: #fdf2f8;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 50px -16px rgba(15, 23, 42, 0.18);

  --f-sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --f-display: "Space Grotesk", "Inter", sans-serif;

  --container: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section--muted {
  background: var(--c-bg-soft);
}

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.section__head h2 {
  margin: 12px 0 16px;
}

.section__lead {
  color: var(--c-text-soft);
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-blue-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-text);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--c-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn--ghost:hover {
  border-color: var(--c-text);
  transform: translateY(-1px);
}

.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.92);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand { display: inline-flex; align-items: center; }
.nav__logo { height: 38px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links > a {
  font-weight: 500;
  color: var(--c-text-soft);
  position: relative;
  transition: color 0.2s ease;
}
.nav__links > a:hover { color: var(--c-text); }
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--c-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }

.nav__cta { color: #fff !important; }
.nav__cta::after { display: none; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
}
.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 10vw, 140px);
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(6, 182, 212, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(30, 58, 138, 0.08), transparent 55%),
    var(--c-bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__eyebrow { margin-bottom: 22px; }

.hero__title {
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--c-text-soft);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  color: var(--c-text-soft);
  font-size: 0.95rem;
}
.hero__bullets li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__bullets svg { color: var(--c-accent); flex-shrink: 0; }

/* Visual droite */
.hero__visual {
  position: relative;
  min-height: 420px;
}

.hero__glow {
  position: absolute;
  inset: 10% 10% 10% 10%;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.25), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.hero__card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(280px, 72%);
  z-index: 1;
}
.hero__card strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.05rem;
}
.hero__card span {
  color: var(--c-text-soft);
  font-size: 0.88rem;
}
.hero__card-dot {
  width: 36px; height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: inset 0 -4px 8px rgba(255,255,255,0.25);
}

.hero__card--1 { top: 8%;  left: 4%;   }
.hero__card--2 { top: 40%; right: 2%;  }
.hero__card--3 { bottom: 6%; left: 18%; }

/* ---------- Grille produits ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon img { width: 32px; height: 32px; object-fit: contain; }
.card__icon--blue  { background: var(--c-blue-soft);  color: #1d4ed8; }
.card__icon--green { background: var(--c-green-soft); color: #047857; }
.card__icon--pink  { background: var(--c-pink-soft);  color: #be185d; }

.card__title { margin-bottom: 4px; }
.card__tag {
  color: var(--c-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card__desc {
  color: var(--c-text-soft);
  margin-bottom: 16px;
}
.card__list {
  color: var(--c-text-soft);
  font-size: 0.94rem;
  margin-bottom: 20px;
}
.card__list li {
  padding: 6px 0 6px 22px;
  position: relative;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--c-primary);
  align-self: flex-start;
  transition: transform 0.15s ease;
}
.card__link:hover { transform: translateX(3px); }

/* ---------- Fondateur ---------- */
.founder {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.founder__media {
  position: relative;
  display: flex;
  justify-content: center;
}

.founder__avatar {
  width: min(320px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  filter: grayscale(1);
}

.founder__badge {
  position: absolute;
  bottom: 6%;
  right: 4%;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--shadow);
}
.founder__badge strong {
  display: block;
  font-family: var(--f-display);
  margin-top: 4px;
}

.founder__content h2 { margin: 12px 0 20px; }
.founder__content p { color: var(--c-text-soft); }

.quote {
  margin: 24px 0 28px;
  padding: 20px 24px;
  border-left: 4px solid var(--c-accent);
  background: var(--c-accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--c-text);
  font-style: italic;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact__notice {
  font-size: 0.85rem;
  color: var(--c-text-soft);
  background: var(--c-bg-muted);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
}

/* Honeypot : caché visuellement et aux AT, mais focusable par un bot naïf */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Bouton en état envoi */
.btn.is-loading {
  opacity: 0.7;
  cursor: progress;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
  display: block;
  min-height: 18px;
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 4px;
}

/* Info contact */
.contact__info {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact__info h3 { margin-bottom: 20px; }

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--c-border);
}
.contact__list li:first-child { border-top: 0; padding-top: 0; }

.contact__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--c-blue-soft);
  color: var(--c-primary);
}

.contact__label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact__list a {
  color: var(--c-text);
  font-weight: 500;
  transition: color 0.2s ease;
}
.contact__list a:hover { color: var(--c-primary); }

/* ---------- Footer ---------- */
.footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 56px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}
.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 10px;
}
.footer__brand p {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer__links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer__links a:hover { color: #fff; }

.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #cbd5e1;
  transition: background 0.2s ease, color 0.2s ease;
}
.footer__social a:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  color: var(--c-text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: #0f172a;
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast--success::before {
  content: "✓";
  display: inline-block;
  width: 22px;
  height: 22px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  margin-right: 10px;
  font-weight: 700;
}
.toast--error {
  background: #7f1d1d;
}
.toast--error::before {
  content: "!";
  display: inline-block;
  width: 22px;
  height: 22px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  margin-right: 10px;
  font-weight: 700;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner { gap: 40px; }
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder__badge { right: 50%; transform: translateX(50%); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__links > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--c-border);
  }
  .nav__links > a:last-child { border-bottom: 0; }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 12px; text-align: center; }
  .nav__burger { display: inline-flex; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 360px; margin-top: 20px; }

  .grid--3 { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__links { justify-content: center; }
  .footer__social { justify-content: center; }
}

@media (max-width: 480px) {
  .contact__form,
  .contact__info { padding: 24px; }
  .hero__card { padding: 14px 16px; width: 78%; }
  .hero__card--3 { bottom: 0; left: 8%; }
}

/* Respecte les préférences d'animation */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
