/* Coraxio — proposition de refonte de la page d'accueil.
   Direction « Confiance et autorité » : grande typographie, un seul accent cramoisi,
   sections racontées au fil du défilement. Chargée après site.css, dont elle reprend les jetons. */

:root {
  --crimson: #c8102e;
  --crimson-deep: #8f0b22;
  --gradient: linear-gradient(115deg, var(--crimson) 0%, var(--crimson-deep) 100%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --display: clamp(2.75rem, 8.4vw, 7.5rem);
}

/* ---------- En-tête : collé en haut, discret ---------- */
@media (min-width: 52rem) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}
.button--primary,
.button--primary:hover { box-shadow: 0 10px 28px -12px rgba(200, 16, 46, 0.75); }

/* ---------- Héros : la promesse en très grand ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); background: #0c0a0e; --focus-halo: #0c0a0e; }
.hero__glow {
  background:
    radial-gradient(46rem 30rem at 85% 20%, rgba(200, 16, 46, 0.34), transparent 70%),
    radial-gradient(30rem 22rem at 10% 110%, rgba(200, 16, 46, 0.16), transparent 70%);
}
.hero .hero__title {
  max-width: none;
  font-size: var(--display);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero__title .ln { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .ln > span { display: inline-block; }
.hero__title .ln + .ln > span { color: var(--accent); }
.motion-ok .hero__title .ln > span { animation: rise 1.1s var(--ease-out) both; }
.motion-ok .hero__title .ln + .ln > span { animation-delay: 0.12s; }
@keyframes rise { from { transform: translateY(105%); } }

.hero .hero__grid {
  margin-top: clamp(2rem, 5vw, 4rem);
  gap: var(--s-48);
  align-items: start;
}
@media (min-width: 64rem) {
  .hero .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}
.hero__copy .hero__lede { margin-top: var(--s-24); font-size: 1.2rem; }
.hero__copy .hero__actions { margin-top: var(--s-32); }
.hero .motion-toggle { position: static; order: 3; justify-self: end; margin-top: var(--s-16); }
.hero .hero__visual { height: 14rem; margin-bottom: calc(var(--s-24) * -1); }
@media (min-width: 64rem) {
  .hero .hero__visual { height: 18rem; margin: -9rem -2rem calc(var(--s-48) * -1) -2rem; }
}

/* Preuves : une rangée de chiffres séparés par des filets */
.proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 56rem) { .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proof > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--s-4);
  min-width: 0;
  padding: var(--s-24) var(--s-16) 0 0;
}
.proof dd {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.proof dd { overflow-wrap: anywhere; }
.proof dd abbr { text-decoration: none; }
.proof dt { color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- Grand bandeau : les services en très grand ---------- */
.ticker.marquee {
  padding-block: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  color: var(--text);
  border-block: 1px solid var(--border);
}
.marquee .ticker__list {
  gap: 0;
  padding: 0;
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.marquee .ticker__list li { gap: 0; }
.marquee .ticker__list li::after {
  content: "";
  flex: none;
  width: 0.38em;
  height: 0.38em;
  margin-inline: 0.5em;
  background: var(--crimson);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.marquee .ticker__list li:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.motion-ok .marquee .ticker__track { animation-duration: 40s; }
html:not(.motion-ok) .marquee .ticker__list li:nth-child(even),
.motion-paused .marquee .ticker__list li:nth-child(even) { color: var(--text); -webkit-text-stroke: 0; }
html:not(.motion-ok) .marquee .ticker__list,
.motion-paused .marquee .ticker__list { font-size: clamp(1.5rem, 4vw, 2.5rem); }
@media (forced-colors: active) {
  .marquee .ticker__list li:nth-child(even) { color: CanvasText; -webkit-text-stroke: 0; }
}

/* ---------- Titres de section plus affirmés ---------- */
#contenu .section__title {
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
#contenu .section__head { max-width: 52rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
#contenu .section { padding-block: clamp(4rem, 10vw, 8rem); }

/* ---------- Services : grandes lignes, aperçu qui suit le curseur ---------- */
#services .wrap { position: relative; }
.svc { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.svc > li { margin: 0; }
.svc__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-8) var(--s-24);
  align-items: center;
  padding-block: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 56rem) {
  .svc__row { grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr); }
}
.svc__icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.svc__title {
  font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  transition: transform 0.5s var(--ease-out), color 0.3s ease;
}
.svc__text { grid-column: 2; margin: 0; color: var(--text-muted); max-width: 38ch; }
@media (min-width: 56rem) { .svc__text { grid-column: 3; } }
@media (hover: hover) {
  .svc__row:hover .svc__title { transform: translateX(0.4em); color: var(--accent); }
  .svc__row:hover .svc__icon { background: var(--crimson); border-color: var(--crimson); color: #ffffff; }
}
.svc__preview {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 13rem;
  height: 13rem;
  overflow: clip;
  border-radius: 24px;
  background: var(--gradient);
  box-shadow: 0 30px 60px -30px rgba(200, 16, 46, 0.8);
  pointer-events: none;
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.3s ease, scale 0.45s var(--ease-out);
}
.svc__preview.is-on { opacity: 1; scale: 1; }
.svc__strip {
  display: flex;
  flex-direction: column;
  translate: 0 calc(var(--idx, 0) * -13rem);
  transition: translate 0.5s var(--ease-out);
}
.svc__strip svg {
  flex: none;
  width: 13rem;
  height: 13rem;
  padding: 3.5rem;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: none), (prefers-reduced-motion: reduce) { .svc__preview { display: none; } }

/* ---------- Offres : cartes qui s'empilent au défilement ---------- */
.deck { display: grid; gap: var(--s-24); margin: 0; padding: 0; list-style: none; }
.deck > li { margin: 0; }
@media (min-width: 56rem) {
  .deck { gap: 6vh; }
  .deck__item { position: sticky; top: calc(6rem + var(--n, 0) * 1.5rem); }
  .deck__item:nth-child(2) { --n: 1; }
  .deck__item:nth-child(3) { --n: 2; }
}
.deck__card {
  display: grid;
  overflow: clip;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-raised);
  box-shadow: 0 -20px 60px -40px rgba(0, 0, 0, 0.5);
  transform-origin: 50% 0;
  scale: var(--s, 1);
}
@media (min-width: 56rem) { .deck__card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.deck__card--main { border-color: var(--crimson); }
.deck__body {
  display: grid;
  align-content: start;
  gap: var(--s-16);
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.deck__body .offer__tag { justify-self: start; margin: 0; }
.deck__title {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.deck__for { margin: 0; color: var(--text-muted); font-size: 1.125rem; max-width: 46ch; }
.deck__price {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.deck__price small { display: block; margin-top: var(--s-4); font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; color: var(--text-muted); }
.deck__body .offer__list { margin-block: var(--s-8); }
.deck__body .button { justify-self: start; }
.deck__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  background: var(--surface-2);
}
@media (max-width: 55.99rem) { .deck__img { order: -1; aspect-ratio: 3 / 2; height: auto; min-height: 0; } }
.deck + .offers__note { margin-top: var(--s-48); }

/* ---------- Méthode : une ligne qui se remplit au fil des étapes ---------- */
.method {
  overflow: clip;
  background: #0c0a0e;
  --text: var(--dark-text);
  --text-muted: var(--dark-muted);
  --border: var(--dark-border);
  --border-strong: #8a8299;
}
.method__grid { display: grid; gap: var(--s-48); }
@media (min-width: 64rem) {
  .method__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-80); align-items: start; }
  .method__aside { position: sticky; top: 7rem; }
}
.method__photo { display: block; width: 100%; height: auto; margin-top: var(--s-32); border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; }
.flow {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0;
  padding: 0 0 0 4.5rem;
  list-style: none;
  counter-reset: flow;
}
.flow::before,
.flow::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 2px;
  margin-left: -1px;
  background: var(--border);
}
.flow::after {
  background: var(--crimson);
  transform-origin: 50% 0;
  transform: scaleY(var(--p, 1));
}
.motion-ok .flow::after { transform: scaleY(var(--p, 0)); }
.flow__step { position: relative; counter-increment: flow; margin: 0; }
.flow__step::before {
  content: counter(flow);
  position: absolute;
  top: 0;
  left: -4.5rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: #0c0a0e;
  font-weight: 700;
  font-feature-settings: "tnum";
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.flow__step.is-on::before,
html:not(.motion-ok) .flow__step::before { background: var(--crimson); border-color: var(--crimson); color: #ffffff; }
.flow__step h3 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 700; letter-spacing: -0.035em; margin-bottom: var(--s-8); }
.flow__step p { margin: 0; color: var(--text-muted); max-width: 48ch; }
.flow .step__icon { display: none; }

/* ---------- Périmètre ---------- */
.chip--in svg { background: var(--crimson); }

/* ---------- Avantages : grille éditoriale ---------- */
.perk:nth-child(n) { --perk: var(--crimson); }
.perk { border-radius: 24px; }
@media (min-width: 64rem) {
  .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .perk:nth-child(1), .perk:nth-child(2) { grid-column: span 2; padding: var(--s-32); }
  .perk:nth-child(1) .perk__title, .perk:nth-child(2) .perk__title { font-size: 1.5rem; }
}
.perk:nth-child(1) { background: var(--gradient); border-color: transparent; color: #ffffff; }
.perk:nth-child(1) p { color: rgba(255, 255, 255, 0.92); }
.perk:nth-child(1) .perk__icon { background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.photo-banner { border-radius: 28px; overflow: clip; }

/* ---------- Questions : titre fixe à gauche, réponses à droite ---------- */
@media (min-width: 64rem) {
  #questions .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 var(--s-80); align-items: start; }
  #questions .section__head { grid-row: 1 / span 2; position: sticky; top: 7rem; grid-template-columns: minmax(0, 1fr); }
  #questions .section__head .section__art { grid-column: 1; grid-row: auto; max-width: 22rem; margin-top: var(--s-16); }
  #questions .faq { grid-template-columns: minmax(0, 1fr); }
}
.faq__item[open] {
  background:
    linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box,
    var(--gradient) border-box;
  box-shadow: 0 24px 50px -34px rgba(200, 16, 46, 0.7);
}

/* ---------- Rendez-vous : appel final en très grand ---------- */
#rendez-vous .section__title { font-size: clamp(2.75rem, 7.4vw, 6.5rem); }

/* ---------- Pied de page : la signature en très grand ---------- */
.site-footer .site-footer__word {
  margin: clamp(2rem, 6vw, 4rem) 0 0;
  padding-bottom: clamp(1rem, 3vw, 2rem);
  user-select: none;
}
@media (forced-colors: active) { .site-footer .site-footer__word { display: none; } }
@media print { .svc__preview, .site-footer .site-footer__word { display: none; } .deck__item { position: static; } }

/* En-têtes avec illustration : toute la largeur, l'image à droite */
#contenu .section__head--art { max-width: none; }
#questions .section__head--art { max-width: 52rem; }

/* ---------- Périmètre : trois engagements mis en avant ---------- */
.promise {
  display: grid;
  gap: var(--s-16);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 56rem) { .promise { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promise > li {
  display: grid;
  align-content: start;
  gap: var(--s-8);
  min-width: 0;
  margin: 0;
  padding: var(--s-32);
  border-radius: 24px;
  background: var(--gradient);
  color: #ffffff;
  transition: transform 0.4s var(--ease-out);
}
.promise > li:nth-child(2) { background: #a50d26; }
.promise > li:nth-child(3) { background: #7a0a1d; }
.promise svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--s-8);
  padding: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.promise strong { font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.15; letter-spacing: -0.03em; }
.promise span { color: rgba(255, 255, 255, 0.92); }
@media (hover: hover) { .promise > li:hover { transform: translateY(-6px) rotate(-0.6deg); } }
.motion-ok .promise[data-reveal] > li { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s var(--ease-out); }
.motion-ok .promise[data-reveal].is-visible > li { opacity: 1; transform: none; }
.motion-ok .promise[data-reveal] > li:nth-child(2) { transition-delay: 0.1s; }
.motion-ok .promise[data-reveal] > li:nth-child(3) { transition-delay: 0.2s; }
@media (forced-colors: active) { .promise > li { border: 1px solid CanvasText; } }

.site-footer { padding-top: 0; }

/* ---------- Pied de page : bandeau d'appel animé et signature qui s'allume ---------- */
.footer-cta {
  display: block;
  overflow: clip;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
  border-block: 1px solid var(--dark-border);
  background: #16121a;
  color: var(--dark-text);
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.footer-cta:hover { background: #1e1924; }
.footer-cta__track { display: flex; width: max-content; }
.footer-cta__track > span {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  white-space: nowrap;
}
.footer-cta__track > span::before { content: attr(data-t); }
.footer-cta__track > span:nth-child(even)::before { color: var(--dark-muted); }
.footer-cta:hover .footer-cta__track > span:nth-child(even)::before { color: var(--dark-text); }
.footer-cta__track > span::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin-inline: 0.55em;
  background: var(--crimson);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.motion-ok .footer-cta__track { animation: ticker 90s linear infinite; }
.motion-ok .footer-cta:hover .footer-cta__track { animation-play-state: paused; }
.motion-paused .footer-cta__track { animation: none !important; }
.footer-cta:focus-visible { outline-offset: -6px; }
@media (forced-colors: active) { .footer-cta { border-block: 1px solid CanvasText; } }

.site-footer__word svg { display: block; width: 100%; height: auto; overflow: visible; }
.site-footer__word g {
  fill: transparent;
  stroke: var(--dark-muted, #b4aec3);
  stroke-width: 1px;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: fill 0.5s ease, stroke 0.5s ease, transform 0.5s var(--ease-out);
}
.site-footer__word path { vector-effect: non-scaling-stroke; }
.site-footer__word g.is-lit,
html:not(.motion-ok) .site-footer__word g,
.motion-paused .site-footer__word g { fill: var(--crimson); stroke: var(--crimson); }
@media (hover: hover) {
  .motion-ok .site-footer__word g:hover { transform: translateY(-6%) rotate(-4deg); fill: #ffffff; stroke: #ffffff; }
}
@media print { .footer-cta { display: none; } }



/* Accroche du titre principal : dit en clair le métier, pour les visiteurs et les moteurs de recherche */
.hero .hero__title .hero__kicker {
  margin-bottom: var(--s-16);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--dark-muted);
}
