:root {
  --bg: #fafbfc;
  --text: #0b1220;
  --muted: #5b667a;
  --primary: #ff6b2c;
  --primary-light: #ff8a50;
  --danger: #ef4444;
  --surface: #f4f6f9;
  --border: #e3e8ef;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 18, 32, 0.12);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --dur: 0.28s;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 520px at 88% -8%, rgba(255, 138, 80, 0.14), transparent 55%),
    radial-gradient(900px 480px at 4% 100%, rgba(255, 107, 44, 0.09), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.hero {
  background:
    radial-gradient(ellipse 90% 70% at 78% 0%, rgba(255, 138, 80, 0.16), transparent 52%),
    radial-gradient(ellipse 80% 60% at 8% 100%, rgba(255, 107, 44, 0.1), transparent 48%),
    #ffffff;
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 232, 239, 0.92);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav-bar:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: #3d4a5c;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nav-links a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 6px;
}

.hero-content {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.25rem);
}

/* Mockup « ordinateur » — capture sur l’écran */
.hero-mockup {
  margin-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.25rem);
  max-width: min(980px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.hero-device {
  margin: 0;
  max-width: 100%;
}

.hero-device__hinge {
  perspective: 1400px;
  transform-style: preserve-3d;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-device__hinge {
    transform: rotateX(6deg);
    transform-origin: 50% 0;
    transition: transform 0.55s var(--ease);
  }

  .hero-mockup:hover .hero-device__hinge {
    transform: rotateX(3deg);
  }
}

.hero-device__lid {
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
  box-shadow:
    0 28px 70px rgba(11, 18, 32, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-device__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #151d2e 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(51, 65, 85, 0.85);
}

.hero-device__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.hero-device__dot--r {
  background: #ff5f57;
}

.hero-device__dot--y {
  background: #febc2e;
}

.hero-device__dot--g {
  background: #28c840;
}

.hero-device__url {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  margin: 0 4px;
  background: rgba(2, 6, 23, 0.65);
  border-radius: 8px;
  border: 1px solid #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-device__screen {
  margin: 0;
  padding: 10px 10px 12px;
  background: #020617;
  line-height: 0;
}

.hero-device__screen img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-device__base {
  position: relative;
  margin: 0 auto;
  width: min(82%, 640px);
  height: 14px;
  margin-top: 0;
  background: linear-gradient(180deg, #475569 0%, #1e293b 40%, #0f172a 100%);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 32px rgba(11, 18, 32, 0.14);
}

.hero-device__base::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 28%;
  min-width: 72px;
  max-width: 140px;
  height: 5px;
  background: linear-gradient(90deg, transparent, #cbd5e1 20%, #e2e8f0 50%, #cbd5e1 80%, transparent);
  border-radius: 999px;
  opacity: 0.65;
}

@media (prefers-reduced-motion: reduce) {
  .hero-device__hinge {
    transform: none;
  }
}

@media (max-width: 680px) {
  .hero-device__url {
    font-size: 0.62rem;
    padding: 5px 8px;
  }

  .hero-device__chrome {
    padding: 10px;
  }

  .hero-device__screen {
    padding: 8px;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(255, 107, 44, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7f2, #ffefe6);
  box-shadow: var(--shadow-sm);
}

h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.05rem, 4.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

h1 span {
  color: var(--primary);
}

.lead {
  margin-top: 1.25rem;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.08rem;
  font-weight: 500;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), filter var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 107, 44, 0.28);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: #fff4ef;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 107, 44, 0.12);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}

.btn-ghost:hover {
  border-color: #cfd6df;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost:active {
  transform: translateY(0);
}

.section {
  padding: clamp(3.5rem, 8vw, 5.75rem) 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.2;
}

.section-intro {
  margin: 0.85rem 0 2rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
}

.section-hint {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.92;
}

.block-mt {
  margin-top: 1rem;
}

code {
  font-size: 0.92em;
  background: #fff4ef;
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  border: 1px solid #ffd3c2;
}

.media-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.media-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 44, 0.35);
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
  transition: transform calc(var(--dur) * 1.1) var(--ease);
  background: #0b1220;
}

.media-card img:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--primary);
}

.media-card:hover img {
  transform: scale(1.02);
}

.media-card figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--border);
  letter-spacing: -0.015em;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.86);
  z-index: 9999;
  padding: 1.25rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  width: min(1280px, 96vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.45);
  background: #0f172a;
}

.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 10px;
  padding: 0.15rem 0.45rem;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.06);
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

/* Espace entre le titre et la grille (ex. section comparaison) */
.section-alt .container > h2 + .grid {
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.65rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 44, 0.28);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card p,
.card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.card-accent {
  border-left: 5px solid var(--danger);
}

.card-strong {
  border-left: 5px solid var(--primary);
  background: linear-gradient(180deg, #fff, #fff9f5);
}

.cta {
  background: linear-gradient(180deg, #fff8f2 0%, #ffffff 100%);
  border-top: 1px solid rgba(255, 107, 44, 0.18);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.cta p {
  color: var(--muted);
  margin: 1rem auto 1.75rem;
  max-width: 520px;
  font-size: 1.0625rem;
  font-weight: 500;
}

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  padding: 1.75rem 0 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.footer-brand {
  margin: 0;
  color: #64748b;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-contact {
  margin: 0;
  color: #64748b;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: right;
}

.footer-contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-contact a:hover {
  color: var(--primary);
  border-bottom-color: rgba(255, 107, 44, 0.45);
}

.footer-contact a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-sep {
  margin: 0 0.45rem;
  color: #cbd5e1;
  font-weight: 500;
}

@media (max-width: 920px) {
  .cards-3,
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card,
  .media-card,
  .media-card img,
  .nav-links a,
  .lightbox-close,
  .footer-contact a {
    transition-duration: 0.01ms !important;
  }

  .btn-primary:hover,
  .btn-outline:hover,
  .btn-ghost:hover,
  .card:hover,
  .media-card:hover,
  .media-card:hover img,
  .nav-links a:hover {
    transform: none;
  }
}

@media (max-width: 680px) {
  .cards-2,
  .cards-3,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 2.8rem 0 3.2rem;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-contact {
    text-align: left;
  }

}
