/* =========================================================================
   Clément Thiriet, sites web pour professionnels
   Identité : encre bleu nuit sur verre froid, un seul accent (rouge sceau),
   Archivo en largeur étendue pour les titres.
   ========================================================================= */

:root {
  --ink: #0e1726;
  --ink-70: #3b4a63;
  --ink-45: #6c7a91;
  --glass: #e8ecf1;
  --surface: #ffffff;
  --line: #d2d9e3;
  --line-soft: #e4e9ef;
  --deep: #131f35;
  --deep-line: rgba(232, 236, 241, 0.16);
  --seal: #b3253f;

  --shell: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --rhythm: clamp(72px, 9vw, 120px);
  --radius: 5px;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--glass);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Typographie ------------------------------------------------------- */

.display {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.04;
}

.eyebrow {
  font-stretch: 125%;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-70);
}

/* --- Ossature ---------------------------------------------------------- */

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

.section {
  padding-block: var(--rhythm);
}

/* Sépare deux blocs qui partagent le même fond, sans changer leur rythme. */
.section--ruled {
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 7vw, 88px);
}

.section-head {
  max-width: 34rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  margin-top: 14px;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-70);
}

.band {
  background: var(--deep);
  color: #e6eaf1;
}

.band .eyebrow {
  color: #8fa0bb;
}

.band .section-head h2 {
  color: #fff;
}

.band .section-head p {
  color: #b9c4d5;
}

/* --- Barre de navigation ----------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(232, 236, 241, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.is-stuck {
  border-bottom-color: var(--line);
}

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

.nav__name {
  font-stretch: 125%;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav__seal {
  width: 9px;
  height: 9px;
  background: var(--seal);
  border-radius: 1px;
  flex: none;
}

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

.nav__links a {
  font-size: 0.875rem;
  color: var(--ink-70);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--ink);
}

/* --- Boutons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: #1c2c47;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn__arrow {
  font-size: 0.9em;
  transition: transform 0.15s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  padding-top: clamp(56px, 8vw, 92px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.hero h1 {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.02;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  max-width: 22ch;
  margin-top: 20px;
  text-wrap: balance;
}

.hero__lede {
  margin-top: 24px;
  max-width: 40rem;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Signature : la frise du modèle ------------------------------------ */

.track {
  margin-top: clamp(56px, 7vw, 84px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 0;
}

.track__step {
  position: relative;
  padding: 26px 24px 4px 0;
}

/* Le trait de progression : plein pour ce qui se fait une fois,
   pointillé sur le dernier segment, car l'abonnement ne s'arrête pas. */
.track__step::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline: 0;
  height: 2px;
  background: var(--ink);
  transform-origin: left center;
}

/* L'abonnement ne s'arrête pas : son segment sort du cadre et s'estompe. */
.track__step:last-child::before {
  inset-inline-end: calc(-1 * var(--gutter));
  background: repeating-linear-gradient(
    to right,
    var(--ink-45) 0 7px,
    transparent 7px 13px
  );
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent);
  mask-image: linear-gradient(to right, #000 55%, transparent);
}

.track__marker {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--glass);
  border: 2px solid var(--ink);
}

.track__step:first-child .track__marker {
  background: var(--seal);
  border-color: var(--seal);
}

.track__when {
  display: block;
  font-stretch: 125%;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.track__what {
  display: block;
  margin-top: 8px;
  font-stretch: 110%;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.track__detail {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 26ch;
}

/* --- Présentation ------------------------------------------------------- */

.intro {
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.portrait {
  position: relative;
}

.portrait img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  filter: saturate(0.94);
}

.portrait figcaption {
  margin-top: 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-45);
}

.portrait figcaption strong {
  display: block;
  color: var(--ink);
  font-stretch: 115%;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.intro__body p + p {
  margin-top: 18px;
}

.intro__body p:first-child {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.intro__body p:not(:first-child) {
  color: var(--ink-70);
  max-width: 42rem;
}

.creds {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.creds li {
  font-size: 0.8125rem;
  color: var(--ink-70);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

.creds a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
}

.creds a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* --- Arguments ---------------------------------------------------------- */

.args {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 44px);
}

.args__item {
  border-top: 1px solid var(--deep-line);
  padding-top: 20px;
}

.args__item h3 {
  font-stretch: 118%;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
  color: #fff;
}

.args__item p {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #b9c4d5;
}

/* --- Encart de contraste ------------------------------------------------ */

.aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--seal);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 32px);
  max-width: 46rem;
}

.aside--spaced {
  margin-top: clamp(40px, 5vw, 64px);
}

.aside h3 {
  font-stretch: 118%;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.aside p {
  margin-top: 12px;
  color: var(--ink-70);
}

/* --- Tarifs ------------------------------------------------------------- */

.terms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 46rem;
  margin-bottom: 36px;
}

.terms__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.terms__tag {
  display: inline-block;
  font-stretch: 125%;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 3px;
  background: var(--glass);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.terms__card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-70);
}

.terms__card strong {
  color: var(--ink);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}

.plan--featured {
  border-color: var(--ink);
  box-shadow: 0 18px 44px -26px rgba(14, 23, 38, 0.55);
}

.plan__badge {
  position: absolute;
  top: -11px;
  left: 26px;
  background: var(--seal);
  color: #fff;
  font-stretch: 125%;
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 3px;
}

.plan__name {
  font-stretch: 125%;
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.plan__for {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-70);
  min-height: 3.4em;
}

.plan__prices {
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}

.plan__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.plan__row + .plan__row {
  margin-top: 10px;
}

.plan__label {
  font-size: 0.8125rem;
  color: var(--ink-45);
}

.plan__value {
  font-stretch: 118%;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  text-align: right;
}

.plan__value--main {
  font-size: 1.625rem;
}

.plan__unit {
  font-stretch: normal;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-45);
}

.plan__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan__features li {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-70);
}

.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--ink-45);
}

.plan__features li.is-carry {
  color: var(--ink);
  font-weight: 500;
  padding-left: 0;
  margin-bottom: 3px;
}

.plan__features li.is-carry::before {
  display: none;
}

.plan__foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-45);
}

.fineprint {
  margin-top: 28px;
  font-size: 0.8125rem;
  color: var(--ink-45);
  max-width: 46rem;
}

/* --- Parrainage --------------------------------------------------------- */

.referral {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 40px);
  max-width: 46rem;
}

.referral__side h3 {
  font-stretch: 118%;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.referral__side ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.referral__side li {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-70);
}

.referral__side strong {
  color: var(--ink);
  font-weight: 500;
}

/* --- Contact ------------------------------------------------------------ */

.contact {
  max-width: 34rem;
}

.contact h2 {
  font-stretch: 125%;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #fff;
  margin-top: 18px;
}

.contact__mail {
  display: inline-block;
  margin-top: 30px;
  font-stretch: 118%;
  font-weight: 600;
  font-size: clamp(1.1875rem, 2.6vw, 1.75rem);
  letter-spacing: -0.022em;
  color: #fff;
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--seal);
  transition: border-color 0.15s ease;
}

.contact__mail:hover {
  border-bottom-color: #fff;
}

.foot {
  border-top: 1px solid var(--deep-line);
  padding-block: 26px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: #8fa0bb;
}

/* --- Apparition au défilement ------------------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Séquence d'ouverture : la frise se trace, les repères se posent. */
.js .hero .track__step::before {
  transform: scaleX(0);
  animation: draw 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.js .hero .track__marker {
  opacity: 0;
  animation: pop 0.4s ease forwards;
}

.js .hero .track__step:nth-child(1)::before {
  animation-delay: 0.25s;
}
.js .hero .track__step:nth-child(2)::before {
  animation-delay: 0.5s;
}
.js .hero .track__step:nth-child(3)::before {
  animation-delay: 0.75s;
}
.js .hero .track__step:nth-child(1) .track__marker {
  animation-delay: 0.3s;
}
.js .hero .track__step:nth-child(2) .track__marker {
  animation-delay: 0.55s;
}
.js .hero .track__step:nth-child(3) .track__marker {
  animation-delay: 0.8s;
}

@keyframes draw {
  to {
    transform: scaleX(1);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Adaptations -------------------------------------------------------- */

@media (max-width: 900px) {
  .plans,
  .args,
  .referral,
  .terms {
    grid-template-columns: 1fr;
  }

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

  .portrait {
    max-width: 200px;
  }

  .track {
    grid-template-columns: 1fr;
    border-top: none;
    padding-left: 22px;
  }

  .track__step {
    padding: 0 0 28px 0;
  }

  .track__step:last-child {
    padding-bottom: 0;
  }

  .track__step::before {
    inset-block-start: 6px;
    inset-block-end: -6px;
    inset-inline: auto;
    left: -22px;
    width: 2px;
    height: auto;
    transform-origin: top center;
  }

  .track__step:last-child::before {
    inset-inline-end: auto;
    inset-block-end: calc(-1 * var(--rhythm) / 2);
    background: repeating-linear-gradient(
      to bottom,
      var(--ink-45) 0 7px,
      transparent 7px 13px
    );
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
  }

  .track__marker {
    top: 1px;
    left: -27px;
  }

  .js .hero .track__step::before {
    transform: scaleY(0);
  }

  @keyframes draw {
    to {
      transform: scaleY(1);
    }
  }
}

@media (max-width: 620px) {
  .nav__links {
    gap: 18px;
  }

  .nav__links .nav__hide-sm {
    display: none;
  }

  .plan__for {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .hero .track__step::before {
    transform: none;
  }

  .js .hero .track__marker {
    opacity: 1;
  }
}
