:root {
  --orange: rgb(242, 177, 56);
  --navy: rgb(17, 29, 50);
  --card: rgb(20, 33, 56);
  --cream: rgb(250, 247, 241);
  --grey: rgb(122, 122, 122);
  --text: rgb(204, 204, 204);
  --text-soft: rgb(194, 194, 194);
  --headline: 44px;
  --gutter: 30px;
  --spring: cubic-bezier(.22, 1.15, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; background: #000; }
body {
  position: relative; z-index: 0; margin: 0; overflow-x: clip; color: var(--text);
  font-family: Poppins, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; }
h1, h2, h3, p, figure, blockquote { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.page-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }

/* Apparition au défilement */
.js [data-reveal] { opacity: 0; transform: translateY(150px); }
.js [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .9s ease, transform 1s var(--spring);
  transition-delay: var(--reveal-delay, .15s);
}

/* En-tête */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 112px; padding: 0 60px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.header-fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
}
.header-logo { justify-self: start; }
.header-logo img { width: 76px; height: 61px; }
.main-nav {
  position: relative; display: flex; align-items: center; gap: 32px; height: 68px; padding: 0 32px;
  border-radius: 50px; background: rgba(23, 23, 23, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.main-nav a { position: relative; z-index: 1; color: var(--grey); line-height: 1.1; white-space: nowrap; transition: color .25s; }
.main-nav a:hover { color: var(--text); }
.main-nav a.is-active { color: var(--cream); }
.nav-pill {
  position: absolute; top: 18px; left: 0; width: 0; height: 31px; border-radius: 30px;
  background: var(--orange); opacity: 0;
  transition: transform .35s var(--spring), width .35s var(--spring), opacity .2s;
}
.header-cta {
  justify-self: end; display: inline-flex; align-items: center; height: 53px; padding: 0 28px;
  border-radius: 50px; background: var(--orange); color: rgb(13, 13, 13);
  font-weight: 500; line-height: 1.3; transition: transform .2s, filter .2s;
}
.header-cta:hover { transform: scale(1.03); filter: brightness(1.05); }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; height: 741px; overflow: visible; }
.hero-media { position: absolute; inset: -146px 0 auto; height: 964px; overflow: hidden; background: #000 }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-fade {
  position: absolute; left: 0; right: 0; top: 136px; height: 612px; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
}
.hero-content { position: absolute; inset: 276px 0 auto; text-align: center; }
.hero-title { display: flex; flex-direction: column; align-items: center; }
.hero-logo svg { width: 373px; height: 139px; max-width: 100%; overflow: visible; }
.hero-subtitle {
  margin-top: 14px; font-size: 44px; line-height: 1; letter-spacing: -.03em; color: #fff;
  background: linear-gradient(0deg, rgb(163, 163, 163) 0%, rgb(255, 255, 255) 50.8%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Logos */
.ticker { position: relative; height: 173px; overflow: hidden; background: #000; display: flex; align-items: center; }
.ticker-track { display: flex; flex: none; animation: ticker 29.39s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: running; }
.ticker-run { display: flex; align-items: center; gap: 80px; padding-right: 80px; flex: none; }
.ticker-run img { flex: none; object-fit: contain; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Titres de section */
.eyebrow { font-size: 24px; line-height: 1.2; letter-spacing: -.03em; color: var(--orange); text-align: center; }
.headline {
  font-size: var(--headline); line-height: 1.2; letter-spacing: -.03em; color: var(--text); text-align: center;
  background: linear-gradient(24deg, rgb(255, 255, 247) 0%, rgba(255, 255, 247, .34) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Services */
.services { position: relative; padding: 127px var(--gutter) 0; }
.section-fade {
  position: absolute; top: -6px; left: 0; right: 0; height: 233px; pointer-events: none;
  background: linear-gradient(rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
}
.intro { position: relative; max-width: 840px; margin: 0 auto; }
.service-grid {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 438px));
  justify-content: center; gap: 44px 85px; margin-top: 61px;
}
.service img { width: auto; height: 51px; }
.service h3 { margin-top: 10px; font-size: 24px; line-height: 1.2; letter-spacing: -.03em; color: var(--orange); }
.service p { margin-top: 10px; line-height: 1.6; color: var(--text-soft); }
.service:nth-child(even) { --reveal-delay: .3s; }

/* Comparateur */
.player-anchor { position: relative; padding-top: 85px; scroll-margin-top: -85px; }
.player-wrap { width: min(894px, 100%); aspect-ratio: 16 / 9; margin: 0 auto; --reveal-delay: .3s; }
.player {
  position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; color: #fff; outline: none;
  user-select: none; -webkit-user-select: none; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.player:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.player video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.player-mono {
  position: absolute; top: 0; bottom: 0; right: 0; z-index: 2; pointer-events: none;
  -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1);
}
.player-slider {
  position: absolute; top: 0; bottom: 0; z-index: 3; width: 32px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; cursor: ew-resize; touch-action: none;
}
.player-line { position: absolute; top: 0; bottom: 0; width: 4px; background: var(--orange); }
.player-handle {
  position: relative; flex: none; width: 40px; height: 40px; border: 3px solid var(--orange); border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px var(--orange); color: var(--orange);
  display: flex; align-items: center; justify-content: center; gap: 2px;
}
.player-handle svg { flex: none; }
.player-label {
  position: absolute; top: 10px; z-index: 4; padding: 6px 12px; border-radius: 6px; background: rgba(0, 0, 0, .6);
  font-size: 13px; font-weight: 700; pointer-events: none;
}
.player-label.left { left: 10px; transform-origin: top left; }
.player-label.right { right: 10px; transform-origin: top right; }
.player-progress {
  position: absolute; left: 12px; right: 12px; bottom: 40px; z-index: 5; height: 20px;
  display: flex; align-items: center; cursor: pointer; touch-action: none;
}
.player-bar { position: relative; width: 100%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.player-buffered, .player-played { position: absolute; top: 0; left: 0; bottom: 0; width: 0; border-radius: 3px; }
.player-buffered { background: rgba(255, 255, 255, .25); }
.player-played { background: var(--orange); }
.player-knob {
  position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border: 2px solid var(--orange); border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
}
.player-controls {
  position: absolute; left: 12px; right: 12px; bottom: 8px; z-index: 5; display: flex;
  align-items: center; justify-content: space-between; font-size: 12px;
}
.player-buttons { display: flex; align-items: center; gap: 12px; }
.player-buttons button { padding: 1px 6px; border: 0; background: none; font-size: 16px; line-height: 1; }
.player-buttons input { width: 100px; accent-color: var(--orange); }
.player-time { font-variant-numeric: tabular-nums; }
.player-status {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); pointer-events: none;
}
.player-status[hidden] { display: none; }
.player-spinner {
  width: 28px; height: 28px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--orange);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Chiffres */
.stats-line {
  width: min(1280px, 100%); height: 1px; margin: 52px auto 0; opacity: .3;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 53.6%, rgba(255, 255, 255, 0));
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 342px)); justify-content: center; margin-top: 50px; --reveal-delay: .2s; }
.stat { position: relative; min-height: 137px; padding: 0 8px; text-align: center; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; opacity: .3;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 49.5%, rgba(255, 255, 255, 0));
}
.stat-value {
  font-size: 70px; line-height: 1.05; letter-spacing: -.02em; color: var(--text);
  background: linear-gradient(24deg, rgb(255, 255, 247) 0%, rgba(255, 255, 247, .34) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { margin-top: 12px; font-family: Inter, sans-serif; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; color: var(--grey); }
.stat-note { font-family: Inter, sans-serif; font-style: italic; line-height: 1.3; letter-spacing: -.01em; color: var(--grey); }

/* Outils */
.tools { padding: 106px var(--gutter) 110px; }
.tools-headline { letter-spacing: 0; }
.tool-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 31px;
  max-width: 956px; margin: 60px auto 0;
}
.tool-card {
  grid-column: span 2; min-height: 273px; padding: 40px; border-radius: 30px; background: var(--orange);
  transition: transform .25s;
}
.tool-card:nth-child(n+4) { grid-column: span 3; min-height: 210px; padding-right: 20px; }
.tool-card:nth-child(-n+3) h3 { min-height: 62px; }
.tool-card h3 {
  font-size: 26px; line-height: 1.2; letter-spacing: -.02em;
  background: linear-gradient(0deg, rgb(17, 29, 50) 0%, rgb(37, 76, 143) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tool-card p {
  margin-top: 16px; font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em;
  background: linear-gradient(24deg, rgb(84, 108, 140) 0%, rgb(17, 29, 50) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* À propos */
.about { position: relative; padding: 24px var(--gutter) 58px; }
.about-grid {
  display: grid; grid-template-columns: 406px minmax(0, 466px); justify-content: center; gap: 56px;
}
.about-photo { height: 551px; overflow: hidden; border-radius: 15px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 19%; }
.about-text .headline { text-align: left; }
.about-text h3 { margin-top: 27px; font-size: 24px; line-height: 1.2; letter-spacing: -.03em; color: var(--orange); }
.about-text p { margin-top: 30px; font-size: 19px; line-height: 1.6; color: var(--text); }
.about-text h3 + p { margin-top: 0; }
.posters { position: relative; width: 294px; height: 392px; margin: 106px auto 0; }
.poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 15px;
  transition: transform 1s var(--spring);
}
.poster-1 { z-index: 1; transform: translateY(-24px) rotate(-30deg); }
.poster-2 { z-index: 2; transform: translateY(-16px) rotate(-20deg); }
.poster-3 { z-index: 3; transform: translateY(-8px) rotate(-10deg); }
.js .posters:not(.is-visible) .poster { transform: none; }

/* Témoignages */
.testimonials { position: relative; z-index: 1; padding: 0 0 70px; overflow: hidden; }
.testimonials .headline { padding: 0 var(--gutter); }
.carousel { margin-top: 31px; }
.carousel-track {
  display: flex; gap: 43px; padding: 0; height: 260px; align-items: stretch; touch-action: pan-y; cursor: grab;
  transition: transform .6s var(--spring); will-change: transform;
}
.carousel-track.is-dragging { cursor: grabbing; transition: none; }
.quote-card {
  flex: 0 0 418px; padding: 20px; border-radius: 20px; background: var(--card); display: flex; flex-direction: column;
  transform: scale(.8); transition: transform .6s var(--spring); user-select: none; -webkit-user-select: none;
}
.quote-card.is-before { transform-origin: right center; }
.quote-card.is-after { transform-origin: left center; }
.quote-card.is-current { transform: none; }
.quote-card blockquote {
  flex: 1; display: flex; align-items: center; justify-content: center; font-size: 18.56px; line-height: 1.4;
  letter-spacing: -.01em; color: rgb(184, 184, 184); text-align: center;
}
.quote-card figcaption { font-family: Inter, sans-serif; font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.quote-name, .quote-company { display: block; }
.quote-name { color: var(--orange); }
.quote-company { color: rgb(183, 184, 184); }
.carousel-dots { display: flex; justify-content: center; margin-top: 40px; }
.carousel-dots button { padding: 0 5px; height: 10px; border: 0; background: none; }
.carousel-dots span { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--cream); opacity: .3; transition: opacity .25s; }
.carousel-dots button.is-active span { opacity: 1; }

/* Contact */
.contact { position: relative; padding: 0 var(--gutter) 100px; }
.contact-card { width: min(929px, 100%); margin: 0 auto; padding: 100px 126px; border-radius: 15px; background: var(--orange); }
.contact-form .eyebrow { color: var(--navy); }
.contact-form .headline { background-image: linear-gradient(24deg, rgb(28, 110, 217) 0%, rgb(17, 29, 50) 100%); }
.contact-form label { display: block; font-family: Inter, sans-serif; font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 39px 0 19px; }
.contact-form input:not(.visually-hidden), .contact-form textarea {
  display: block; width: 100%; margin-top: 10px; padding: 12px; border: 0; border-radius: 10px; background: rgb(238, 238, 238);
  color: var(--navy); font: 400 14px/16px Inter, sans-serif;
}
.contact-form input:not(.visually-hidden) { height: 40px; }
.contact-form textarea { height: 160px; resize: vertical; }
.contact-form ::placeholder { color: #999; }
.form-footer { display: flex; align-items: center; gap: 20px; margin-top: 19px; }
.form-footer button {
  flex: none; width: 116px; height: 40px; border: 0; border-radius: 10px; background: var(--navy); color: #fff;
  font: 400 14px/1.2 Inter, sans-serif; transition: opacity .2s;
}
.form-footer button:hover { opacity: .85; }
.form-footer button:disabled { opacity: .6; cursor: progress; }
.form-status { font: 500 14px/1.3 Inter, sans-serif; color: var(--navy); }

.form-privacy { margin-top: 16px; font: 400 12px/1.4 Inter, sans-serif; color: var(--navy); }
.form-privacy a { text-decoration: underline; }

/* Pied de page et mentions légales */
.contact { padding-bottom: 60px; }
.site-footer { padding: 0 var(--gutter) 40px; text-align: center; font: 400 13px/1.4 Inter, sans-serif; color: var(--grey); }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 60px; }
.legal-back { color: var(--text-soft); }
.legal-back:hover { color: var(--orange); }
.legal-content { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 100px; }
.legal-content .headline { text-align: left; }
.legal-content h2 { margin-top: 40px; font-size: 24px; line-height: 1.2; letter-spacing: -.03em; color: var(--orange); }
.legal-content p { margin-top: 12px; line-height: 1.6; color: var(--text-soft); }
.legal-content p a { color: var(--orange); text-decoration: underline; overflow-wrap: anywhere; }
.legal-content mark { padding: 1px 6px; border-radius: 4px; background: var(--orange); color: var(--navy); }
.legal-second-title { margin-top: 80px; scroll-margin-top: 30px; }
.legal-updated { margin-top: 50px !important; font-size: 13px; color: var(--grey) !important; }

/* Écrans intermédiaires */
@media (max-width: 1100px) {
  .site-header { padding: 0 30px; }
  .main-nav { gap: 20px; padding: 0 20px; }
  .header-cta { padding: 0 20px; }
  .about-grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; }
  .contact-card { padding: 80px 60px; }
}

/* Tablette et mobile */
@media (max-width: 860px) {
  :root { --headline: 30px; --gutter: 20px; }
  html { scroll-padding-top: 84px; }
  .js [data-reveal] { transform: translateY(60px); }
  .site-header { height: 84px; padding: 0 20px; grid-template-columns: auto 1fr auto; gap: 14px; }
  .header-logo img { width: 56px; height: 45px; }
  .header-cta { grid-column: 3; height: 44px; padding: 0 18px; font-size: 14px; }
  .menu-toggle {
    grid-column: 2; justify-self: end; display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border: 0; border-radius: 50%; background: rgba(23, 23, 23, .6);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .menu-toggle span { height: 2px; border-radius: 2px; background: var(--cream); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute; top: 84px; left: 20px; right: 20px; display: none; height: auto; padding: 10px;
    flex-direction: column; align-items: stretch; gap: 2px; border-radius: 22px; background: rgba(23, 23, 23, .95);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 16px; border-radius: 14px; color: var(--text); }
  .main-nav a.is-active { background: var(--orange); }
  .nav-pill { display: none; }

  .hero { height: 620px; }
  .hero-media { inset: 0 0 auto; height: 700px; }
  .hero-fade { top: 90px; height: 610px; }
  .hero-content { inset: 240px 20px auto; }
  .hero-logo svg { width: 250px; height: 93px; }
  .hero-subtitle { margin-top: 10px; font-size: 29px; }

  .ticker { height: 110px; }
  .ticker-run img { width: auto; max-height: 56px; }
  .ticker-run { gap: 50px; padding-right: 50px; }

  .services { padding-top: 80px; }
  .eyebrow { font-size: 20px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 44px; }
  .player-anchor { padding-top: 56px; scroll-margin-top: -56px; }
  .player-wrap { width: calc(100% + 2 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); }
  .player-progress { bottom: 32px; }
  .player-buttons input { width: 64px; }
  .player-label { font-size: 12px; padding: 4px 8px; }
  .player-handle { width: 34px; height: 34px; }
  .stats-line { margin-top: 40px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 44px; }
  .stat { min-height: 0; }
  .stat + .stat::before { display: none; }
  .stat-value { font-size: 56px; }
  .stat-label { font-size: 18px; }

  .tools { padding: 80px var(--gutter); }
  .tools-headline br { display: none; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 40px; }
  .tool-card, .tool-card:nth-child(n+4) { grid-column: auto; min-height: 0; padding: 30px 28px; border-radius: 24px; }
  .tool-card:nth-child(-n+3) h3 { min-height: 0; }

  .about { padding-top: 0; padding-bottom: 50px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about-photo { height: 440px; }
  .about-text p { font-size: 17px; }
  .posters { width: 230px; height: 306px; margin-top: 70px; }

  .carousel { margin-top: 28px; }
  .quote-card { flex-basis: min(350px, calc(100vw - 40px)); }
  .quote-card blockquote { font-size: 17px; }
  .carousel-track { gap: 12px; height: 300px; }

  .contact { padding-bottom: 40px; }
  .legal-header { padding: 20px; }
  .legal-header img { width: 56px; height: 45px; }
  .legal-content { padding-top: 20px; padding-bottom: 60px; }
  .contact-card { padding: 50px 22px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 30px; }
  .form-footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .js [data-reveal], .js [data-reveal].is-visible { opacity: 1; transform: none; transition: none; }
  .poster, .carousel-track, .quote-card { transition: none; }
}
