/* Scolea — feuille de style */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --grey: #5e5e5e;
  --grey-dark: #a3a3a3;
  --line: #e6e6e6;
  --line-dark: #262626;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }

::selection { background: var(--black); color: var(--white); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* En-tête */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.92); }

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

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.logo--small { font-size: 17px; margin-right: 10px; }

.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a {
  text-decoration: none;
  color: var(--grey);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: color .3s, background-size .5s var(--ease);
}
.nav a:hover { color: var(--black); background-size: 100% 1px; }

.nav .nav__cta {
  color: var(--black);
  padding: 9px 18px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background-image: none;
  transition: background .3s, color .3s;
}
.nav .nav__cta:hover { background: var(--black); color: var(--white); }

/* Typo commune */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 1s var(--ease) calc(var(--d, 0ms) + 100ms);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* Hero */

.hero {
  padding: clamp(80px, 14vw, 170px) 0 clamp(72px, 10vw, 130px);
}

.hero h1 {
  font-size: clamp(2.8rem, 8.4vw, 7rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 13ch;
}

.hero__lead {
  margin-top: 36px;
  max-width: 560px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--grey);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
}

.btn {
  display: inline-block;
  padding: 16px 28px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: var(--white); color: var(--black); }

.link {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}
.link span { display: inline-block; transition: transform .2s; }
.link:hover span { transform: translateX(4px); }

/* Bandeau publics */

.audience {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audience__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 14px;
  color: var(--grey);
}
.audience__list li { white-space: nowrap; }

/* Sections */

.section { padding: clamp(80px, 11vw, 150px) 0; }

.section__head { margin-bottom: clamp(48px, 6vw, 80px); }

.section--line { border-top: 1px solid var(--line); }

.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--dark .eyebrow { color: var(--grey-dark); }

/* Services */

.services { position: relative; }
.services::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--black); }

.service {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: baseline;
  position: relative;
  padding: 34px 0;
}
.service::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }

.service__num {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--grey);
}

.service h3 { font-size: clamp(20px, 2vw, 26px); }

.service p { color: var(--grey); max-width: 52ch; }

/* Pourquoi nous */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(48px, 8vw, 120px);
}

.large {
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.5;
  margin-bottom: 48px;
}

.points { display: grid; gap: 0; }
.points div { position: relative; padding: 26px 0; }
.points div::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line-dark); }
.points dt { font-weight: 600; margin-bottom: 6px; }
.points dd { color: var(--grey-dark); }

/* Méthode */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.steps li { position: relative; padding-top: 26px; }
.steps li::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--black); }

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 30px;
  border: 1px solid var(--black);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
}

.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--grey); font-size: 16px; }

/* FAQ */

.faq { position: relative; }
.faq::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--black); }

.faq details { position: relative; }
.faq details::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }

.faq summary {
  position: relative;
  padding: 26px 48px 26px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .5s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 48px 28px 0;
  color: var(--grey);
  max-width: 60ch;
}

/* Contact */

.contact {
  padding: clamp(90px, 13vw, 170px) 0;
  background: var(--black);
  color: var(--white);
}
.contact .eyebrow { color: var(--grey-dark); }

.contact h2 { max-width: 14ch; }

.contact__lead {
  margin-top: 28px;
  max-width: 520px;
  font-size: 18px;
  color: var(--grey-dark);
}

.contact__mail {
  display: inline-block;
  margin-top: 56px;
  font-size: clamp(1.6rem, 5.2vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-decoration: none;
  padding-bottom: 8px;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--white), var(--white)) 0 100% / 100% 2px no-repeat;
  transition: background-size 1.2s var(--ease) calc(var(--d, 0ms) + 300ms), opacity .3s;
}
.contact__mail:hover { opacity: .7; }

/* Pied de page */

.footer {
  background: var(--black);
  color: var(--grey-dark);
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer .logo { color: var(--white); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

/* FAQ : ouverture en douceur (navigateurs compatibles) */

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .6s var(--ease), content-visibility .6s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* Apparitions au défilement (activées seulement si le JavaScript tourne) */

.js [data-reveal]:not([data-reveal="line"]):not([data-split]) {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  filter: blur(6px);
  transition:
    opacity 1.1s var(--ease) var(--d, 0ms),
    transform 1.3s var(--ease) var(--d, 0ms),
    filter 1.1s var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-in:not([data-reveal="line"]):not([data-split]) {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Titres : chaque mot monte derrière un masque */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .12em 0 .1em;
  margin: -.12em 0 -.1em;
}
.w__i { display: inline-block; }
.js [data-split] .w__i {
  transform: translate3d(0, 110%, 0) rotate(2deg);
  transform-origin: left bottom;
  transition: transform 1.25s var(--ease) calc(var(--d, 0ms) + var(--i, 0) * 60ms);
}
.js [data-split].is-in .w__i { transform: none; }

/* Filets qui se tracent de gauche à droite */
.services::before,
.service::after,
.points div::before,
.steps li::before,
.faq::before,
.faq details::after { transform-origin: left; }

.js .eyebrow[data-reveal]::before,
.js .services[data-reveal]::before,
.js .service[data-reveal]::after,
.js .points div[data-reveal]::before,
.js .steps li[data-reveal]::before,
.js .faq[data-reveal]::before,
.js .faq details[data-reveal]::after {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease) var(--d, 0ms);
}
.js .eyebrow[data-reveal]::before { transition-delay: calc(var(--d, 0ms) + 100ms); }

.js .is-in.eyebrow::before,
.js .services.is-in::before,
.js .service.is-in::after,
.js .points div.is-in::before,
.js .steps li.is-in::before,
.js .faq.is-in::before,
.js .faq details.is-in::after { transform: scaleX(1); }

/* Adresse mail : le soulignement se trace après l'apparition */
.js .contact__mail[data-reveal] {
  background-size: 0 2px;
  transition:
    opacity 1.1s var(--ease) var(--d, 0ms),
    transform 1.3s var(--ease) var(--d, 0ms),
    filter 1.1s var(--ease) var(--d, 0ms),
    background-size 1.4s var(--ease) calc(var(--d, 0ms) + 500ms);
}
.js .contact__mail.is-in { background-size: 100% 2px; }

/* Responsive */

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav a:not(.nav__cta) { display: none; }
  .service { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .audience__list { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .hero__actions { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
