/* Ascendia Web — noir #090909, gris #e4e1d9, orange #a3141c.
   Inspiré de l'esprit DeepBook : fond noir, une couleur vive, grotesque 500 à −2 %, coins de 4 px,
   illustrations isométriques sur cartes blanches. */

:root {
  --black: #090909;
  --grey: #c4c0b6;
  --cream: #e4e1d9;
  --orange: #a3141c;
  --white: #e4e1d9;
  --panel: #141414;
  --panel-2: #1d1d1c;
  --mute: #a8a398;
  --line: rgba(228, 225, 217, 0.14);
  --line-2: rgba(228, 225, 217, 0.26);
  --r: 4px;
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --red-text: #e0545a;           /* rouge lisible pour du texte sur fond sombre (≥4.5:1) */
  --red-hover: #bd1a23;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);          /* ease-out fort (Emil) */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gut: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color: var(--grey); scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; scrollbar-color: #3a3936 var(--black); accent-color: var(--orange); }
body { margin: 0; font: 400 1.0625rem/1.55 var(--font); background: var(--black); color: var(--grey); -webkit-font-smoothing: antialiased; overflow-x: hidden; caret-color: var(--red-text); }
::selection { background: var(--orange); color: var(--cream); }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #3a3936; border-radius: 5px; border: 2px solid var(--black); }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }
a { text-underline-offset: 0.2em; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--white); font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--orange); color: var(--cream); border-radius: var(--r); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }
/* ---------- boutons : pression au clic (scale 0.97), survol seulement avec une souris ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: var(--r); font: 500 0.9375rem/1 var(--font); cursor: pointer; border: 0;
  transition: transform 160ms var(--ease), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--orange { background: var(--orange); color: var(--cream); }
.btn--white { background: var(--white); color: var(--black); }
.btn--dark { background: var(--panel-2); color: var(--white); border: 1px solid var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .btn--orange:hover { background: var(--red-hover); }
  .btn--white:hover { background: #f4f2ed; }
  .btn--dark:hover { border-color: var(--grey); }
}
.btn--full { width: 100%; }

/* ---------- navigation flottante ---------- */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; pointer-events: none; padding-inline: var(--gut); }
.nav__bar {
  pointer-events: auto; display: flex; align-items: center; gap: 28px; width: min(100%, 760px);
  padding: 6px 6px 6px 16px; border-radius: 8px; background: rgba(20, 19, 22, 0.82);
  border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; color: var(--white); letter-spacing: -0.02em; }
.nav__logo svg { width: 22px; height: 22px; color: var(--orange); }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a, .nav__menu a:not(.btn) { font-size: 0.875rem; font-weight: 500; color: var(--grey); transition: color 200ms ease; }
.nav__links { gap: 8px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: var(--r); }
.nav__links a.is-current { color: var(--white); background: var(--panel-2); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--white); } }
.nav__cta { height: 40px; padding: 0 16px; font-size: 0.875rem; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: var(--panel-2); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--white); transition: transform 0.3s var(--ease); }
.nav__toggle span:first-child { top: 18px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__menu { pointer-events: auto; width: min(100%, 760px); margin-top: 8px; padding: 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 4px; }
.nav__menu a:not(.btn) { padding: 14px 8px; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
.nav__menu .btn { margin-top: 8px; }

/* ---------- héro ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: end center; padding: 140px var(--gut) 12vh; overflow: hidden; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, var(--black) 20%, transparent); pointer-events: none; }
.hero__content { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 22px; max-width: 1100px; }
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 7rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero__lead { max-width: 52ch; font-size: clamp(1rem, 1.2vw + 0.375rem, 1.1875rem); color: var(--grey); }
.hero .btns { justify-content: center; margin-top: 6px; }

/* ---------- démarche collante ---------- */
.story { position: relative; height: 340vh; padding: 0 var(--gut); }
.story__sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; padding: 96px 0 24px; max-width: 1400px; margin-inline: auto; }
.story__panel { position: relative; background: var(--orange); color: var(--cream); display: grid; grid-template-rows: auto 1fr auto; padding: 40px; border-radius: var(--r) 0 0 var(--r); overflow: hidden; }
.corner { position: absolute; font: 400 1.25rem/1 var(--mono); color: var(--cream); opacity: 0.7; }
.corner--tl { top: 14px; left: 16px; } .corner--tr { top: 14px; right: 16px; } .corner--bl { bottom: 14px; left: 16px; } .corner--br { bottom: 14px; right: 16px; }
.story__kicker { text-align: center; font: 500 1rem/1.2 var(--font); color: var(--cream); letter-spacing: -0.01em; }
.story__texts { position: relative; display: grid; align-items: center; }
.story__text { grid-area: 1 / 1; text-align: center; display: grid; justify-items: center; gap: 18px; opacity: 0; transform: translateY(16px); filter: blur(4px); transition: opacity 450ms var(--ease), transform 450ms var(--ease), filter 450ms var(--ease); pointer-events: none; }
.story__text.is-active { opacity: 1; transform: none; filter: none; }
.story__text.is-past { transform: translateY(-16px); }
.story__num { font: 500 0.875rem/1 var(--mono); padding: 6px 10px; border: 1px solid rgba(228, 225, 217, .45); border-radius: var(--r); }
.story__text h3 { color: var(--cream); font-size: clamp(2.125rem, 3.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; }
.story__text p { max-width: 34ch; font-size: 1.125rem; color: rgba(228, 225, 217, 0.88); }
.story__dots { display: flex; justify-content: center; gap: 4px; }
.story__dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.story__dot i { display: block; width: 8px; height: 4px; border-radius: 2px; background: rgba(228, 225, 217, 0.4); transition: width 250ms var(--ease), background 200ms ease; }
.story__dot.is-active i { width: 32px; background: var(--cream); }
.story__dot:focus-visible { outline-color: var(--cream); }
.story__stage {
  position: relative; display: grid; place-items: center; border-radius: 0 var(--r) var(--r) 0; border: 1px solid var(--line); border-left: 0;
  background-color: var(--black);
  background-image: radial-gradient(circle, rgba(228, 225, 217, 0.35) 1.2px, transparent 1.4px);
  background-size: 48px 48px; background-position: center;
}
.story__card { position: relative; width: min(78%, 520px); aspect-ratio: 1; background: var(--white); border-radius: var(--r); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.story__art { position: absolute; inset: 8%; opacity: 0; transform: scale(0.95) translateY(10px); filter: blur(4px); transition: opacity 450ms var(--ease), transform 600ms var(--ease), filter 450ms var(--ease); }
.story__art.is-active { filter: none; }
.story__art.is-active { opacity: 1; transform: none; }

/* ---------- sections ---------- */
.section { padding: clamp(96px, 12vw, 160px) 0; }
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.head h2, .price h2 { font-size: clamp(2.375rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
.head__lead { font-size: clamp(1rem, 1vw + 0.5rem, 1.1875rem); max-width: 52ch; color: var(--grey); }

/* bento des services */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.card { position: relative; grid-column: span 3; display: grid; align-content: start; gap: 12px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card--big { grid-column: span 6; padding: 0; }
.card:not(.card--big):not(.card--wide) { grid-column: span 4; }
@media (min-width: 901px) and (max-width: 1180px) { .card:not(.card--big):not(.card--wide) { grid-column: span 4; } }
.card__art { height: clamp(240px, 26vw, 360px); margin: 24px 24px 0; }
.card__body { padding: 8px 28px 28px; display: grid; gap: 10px; }
.card h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.card p { color: var(--mute); }
.card__icon { width: 40px; height: 40px; margin-bottom: 20px; color: var(--cream); opacity: 0.85; }
.card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bar-btn { margin-top: 12px; display: flex; align-items: stretch; height: 56px; border-radius: var(--r); overflow: hidden; font-weight: 500; color: var(--cream); background: var(--orange); transition: background-color 200ms ease, transform 160ms var(--ease); }
.bar-btn:active { transform: scale(0.99); }
.bar-btn span { flex: 1; display: flex; align-items: center; justify-content: flex-end; padding: 0 20px; }
.bar-btn i { width: 56px; display: grid; place-items: center; box-shadow: inset 1px 0 0 rgba(9, 9, 9, 0.45); transition: transform 200ms var(--ease); }
.bar-btn i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .bar-btn:hover { background: var(--red-hover); }
  .bar-btn:hover i svg { transform: translateX(3px); transition: transform 200ms var(--ease); }
}

/* bande décodée */
.ticker { display: grid; grid-template-columns: repeat(4, 1fr); }
.ticker__cell { display: grid; align-content: space-between; gap: 48px; min-height: 220px; padding: 28px; }
.ticker__cell b { font: 500 clamp(2rem, 3.6vw, 3.5rem)/1 var(--font); letter-spacing: -0.03em; }
.ticker__cell span { font: 500 0.9375rem/1.4 var(--font); position: relative; padding-right: 20px; }
.ticker__cell span::after { content: ""; position: absolute; right: 0; top: 4px; width: 7px; height: 7px; background: currentColor; }
.ticker__cell--orange { background: var(--orange); color: var(--cream); }
.ticker__cell--black { background: var(--black); color: var(--white); border-block: 1px solid var(--line); }
.ticker__cell--grey { background: var(--grey); color: var(--black); }
.ticker__cell--white { background: var(--white); color: var(--black); }

/* prix */
.price__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.price__grid > div:first-child { display: grid; gap: 22px; }
h2 em { font-style: normal; color: var(--red-text); }
.price__art { aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: end; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq .head { margin: 0; position: sticky; top: 120px; }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item h3 { font-size: inherit; }
.acc__q { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font: 500 clamp(1.125rem, 1vw + 0.5rem, 1.375rem)/1.3 var(--font); color: var(--white); letter-spacing: -0.01em; transition: color 0.2s; }
@media (hover: hover) and (pointer: fine) { .acc__q:hover { color: var(--red-text); } }
.acc__q:focus-visible { outline: 2px solid var(--red-text); outline-offset: 4px; }
.acc__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: var(--r); background: var(--panel-2); transition: background-color 200ms ease, transform 250ms var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--white); transform: translate(-50%, -50%); transition: transform 250ms var(--ease), background-color 200ms ease; }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.open .acc__icon { background: var(--orange); transform: rotate(180deg); }
.acc__item.open .acc__icon::before, .acc__item.open .acc__icon::after { background: var(--cream); }
.acc__item.open .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease); }
.acc__item.open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; opacity: 0; transition: opacity 200ms ease; }
.acc__item.open .acc__a > div { opacity: 1; transition-delay: 60ms; }
.acc__a p { padding: 0 60px 26px 0; color: var(--grey); max-width: 60ch; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .head { margin: 0; }
.contact__art { width: min(100%, 360px); aspect-ratio: 1; margin-top: 24px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.field { display: grid; gap: 8px; }
.field--full, .form .btn, .form__note { grid-column: 1 / -1; }
.field label { font: 500 0.875rem/1.2 var(--font); color: var(--grey); }
.field input, .field textarea { width: 100%; padding: 14px; font: 400 1rem/1.4 var(--font); color: var(--white); background: var(--black); border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color 0.2s, box-shadow 0.2s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(163, 20, 28, 0.2); }
.field [aria-invalid="true"] { border-color: #ff5a5a; }
.field__err { font-size: 0.875rem; color: #ff8a7a; }
.form__note { font-size: 0.875rem; color: var(--mute); }

/* fin */
.outro { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 120px var(--gut); }
.outro__bars { position: absolute; inset: 0; width: 100%; height: 100%; }
.outro__content { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 20px; }
.outro h2 { font-size: clamp(3rem, 9vw, 9.375rem); line-height: 0.95; letter-spacing: -0.04em; }
.outro .btns { justify-content: center; margin-top: 8px; }

/* pied de page */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer__links { display: flex; gap: 24px; margin-left: auto; }
.footer__links { gap: 8px 20px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; color: var(--grey); position: relative; }
.footer__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--red-text); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover::after { transform: scaleX(1); } }
.footer__legal { width: 100%; font: 400 0.8125rem/1.4 var(--font); color: var(--mute); }

/* ---------- illustrations isométriques ---------- */
.iso svg { width: 100%; height: 100%; overflow: visible; }
.iso .fl { animation: iso-float 4s ease-in-out infinite; }
.iso .fl2 { animation: iso-float 4s ease-in-out -2s infinite; }
.iso .rise { animation: iso-rise 3.2s var(--ease) infinite alternate; }
.iso .blink { animation: iso-blink 2.4s ease-in-out infinite; }
@keyframes iso-float { 50% { transform: translateY(-8px); } }
@keyframes iso-rise { from { transform: translateY(14px); } to { transform: translateY(-12px); } }
@keyframes iso-blink { 50% { opacity: 0.45; } }
.iso .fl, .iso .fl2, .iso .rise, .iso .blink { animation-play-state: paused; }
.iso.is-live .fl, .iso.is-live .fl2, .iso.is-live .rise, .iso.is-live .blink { animation-play-state: running; }

/* ---------- entrées : un seul moment par groupe, court, depuis un état presque visible ---------- */
.js [data-in] { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0s); }
.js [data-in].in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; opacity: 0; transform: translateY(0.4em); filter: blur(10px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); transition-delay: calc(var(--i) * 60ms + 150ms); }
.ready [data-split] .w { opacity: 1; transform: none; filter: none; }

/* ---------- tailles ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .story { height: auto; padding: 80px var(--gut); }
  .story__sticky { position: static; height: auto; grid-template-columns: 1fr; padding: 0; }
  .story__panel { border-radius: var(--r) var(--r) 0 0; min-height: 420px; }
  .story__stage { border-radius: 0 0 var(--r) var(--r); border-left: 1px solid var(--line); border-top: 0; padding: 40px 0; }
  .story__card { width: min(86%, 420px); }
  .bento { grid-template-columns: 1fr; }
  .card, .card--big { grid-column: auto; }
  .ticker { grid-template-columns: 1fr 1fr; }
  .price__grid, .faq, .contact { grid-template-columns: 1fr; }
  .price__art { justify-self: center; max-width: 420px; }
  .faq .head { position: static; }
}
@media (max-width: 560px) {
  .hero { padding-bottom: 72px; }
  .hero .btns, .outro .btns { width: 100%; }
  .hero .btns .btn, .outro .btns .btn { flex: 1 1 100%; }
  .ticker { grid-template-columns: 1fr; }
  .ticker__cell { min-height: 160px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .acc__a p { padding-right: 0; }
  .footer__links { margin-left: 0; flex-wrap: wrap; }
}

/* mouvement réduit : plus de déplacement, seulement des fondus courts (Emil : moins, pas zéro) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color !important; transition-duration: 150ms !important; transition-delay: 0s !important; }
  .js [data-in], .js [data-split] .w, .story__text, .story__art { transform: none !important; filter: none !important; }
  .js [data-split] .w { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* contours des illustrations sur fond sombre */
.card .iso svg, .price__art svg, .contact__art svg { stroke: rgba(228, 225, 217, 0.6); }

/* courriel à copier (section contact) */
.mail { display: grid; gap: 10px; margin-top: 8px; }
.mail__label { font: 500 0.875rem/1.2 var(--font); color: var(--grey); }
.mail__row { display: flex; align-items: stretch; width: fit-content; max-width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.mail__addr { display: flex; align-items: center; padding: 0 18px; min-height: 52px; font: 500 clamp(1.0625rem, 1vw + 0.625rem, 1.375rem)/1 var(--font); color: var(--white); letter-spacing: -0.01em; user-select: all; overflow-wrap: anywhere; transition: color 0.2s; }
@media (hover: hover) and (pointer: fine) { .mail__addr:hover { color: var(--red-text); } .mail__copy:hover { background: #2a2a28; } }
.mail__copy { flex: none; border: 0; border-left: 1px solid var(--line-2); padding: 0 20px; min-height: 52px; background: var(--panel-2); color: var(--cream); font: 500 0.9375rem/1 var(--font); cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease); }
.mail__copy:active { transform: scale(0.97); }
.mail__copy.is-done { background: #1f6b3a; }
.mail__status { min-height: 1em; font-size: 0.875rem; color: var(--mute); }


/* ---------- revue apple-hig ---------- */
/* Contraste accru (accessibility.md › Vision : « provides a higher contrast color scheme when Increase Contrast is turned on ») */
@media (prefers-contrast: more) {
  :root { --grey: #e4e1d9; --mute: #d6d2c8; --line: rgba(228, 225, 217, 0.4); --line-2: rgba(228, 225, 217, 0.6); --red-text: #ff7b80; }
  .card, .form, .mail__row, .nav__bar { border-color: var(--line-2); }
}
/* Transparence réduite : barre de navigation opaque */
@media (prefers-reduced-transparency: reduce) {
  .nav__bar { background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Indications dans les champs (writing.md › Show hints in text fields) */
.field input::placeholder, .field textarea::placeholder { color: var(--mute); opacity: 1; }


/* ---------- illustrations de la démarche : crochet qui se dessine, loupe qui agrandit les icônes ---------- */
.iso .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: iso-draw 3.2s var(--ease) infinite; }
@keyframes iso-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 30% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.iso .mag { animation: iso-mag 7.5s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
@keyframes iso-mag {
  0%, 22% { transform: translate(0, 0); }
  33%, 55% { transform: translate(var(--m2x), var(--m2y)); }
  66%, 88% { transform: translate(var(--m3x), var(--m3y)); }
  100% { transform: translate(0, 0); }
}
.iso .zi { transform-box: fill-box; transform-origin: center; animation: iso-zoom 7.5s var(--ease) infinite; }
.iso .zi2 { animation-delay: -5.025s; }
.iso .zi3 { animation-delay: -2.55s; }
@keyframes iso-zoom { 0%, 22% { transform: scale(1.22); } 28%, 94% { transform: scale(1); } 100% { transform: scale(1.22); } }
.iso .draw, .iso .mag, .iso .zi { animation-play-state: paused; }
.iso.is-live .draw, .iso.is-live .mag, .iso.is-live .zi { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .iso .draw { stroke-dashoffset: 0; } }

/* ---------- étape 2 : crayon qui coche les 4 cases ---------- */
.iso .pen { animation: iso-pen 8s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes iso-pen {
  0% { transform: translate(var(--p8x), var(--p8y)); }
  6% { transform: translate(0, 0); }
  15% { transform: translate(var(--p1x), var(--p1y)); }
  21% { transform: translate(var(--p2x), var(--p2y)); }
  30% { transform: translate(var(--p3x), var(--p3y)); }
  36% { transform: translate(var(--p4x), var(--p4y)); }
  45% { transform: translate(var(--p5x), var(--p5y)); }
  51% { transform: translate(var(--p6x), var(--p6y)); }
  60% { transform: translate(var(--p7x), var(--p7y)); }
  70%, 100% { transform: translate(var(--p8x), var(--p8y)); }
}
.iso .ck .draw { animation-duration: 8s; animation-timing-function: linear; }
.iso .ck1 .draw { animation-name: iso-ck1; }
.iso .ck2 .draw { animation-name: iso-ck2; }
.iso .ck3 .draw { animation-name: iso-ck3; }
.iso .ck4 .draw { animation-name: iso-ck4; }
@keyframes iso-ck1 { 0%, 6% { stroke-dashoffset: 1; opacity: 1; } 15%, 90% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes iso-ck2 { 0%, 21% { stroke-dashoffset: 1; opacity: 1; } 30%, 90% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes iso-ck3 { 0%, 36% { stroke-dashoffset: 1; opacity: 1; } 45%, 90% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes iso-ck4 { 0%, 51% { stroke-dashoffset: 1; opacity: 1; } 60%, 90% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.iso .pen { animation-play-state: paused; }
.iso.is-live .pen { animation-play-state: running; }

/* ---------- bulle de discussion (contact) : les trois points sautent l'un après l'autre ---------- */
.iso .hop { animation: iso-hop 1.4s var(--ease) infinite; animation-play-state: paused; }
.iso.is-live .hop { animation-play-state: running; }
.iso .hop2 { animation-delay: 0.16s; }
.iso .hop3 { animation-delay: 0.32s; }
@keyframes iso-hop { 0%, 40%, 100% { transform: translateY(0); } 18% { transform: translateY(-7px); } }

/* contour noir subtil sur les formes blanches des illustrations posées sur fond sombre */
:is(.card, .price__art, .contact__art) .iso polygon:is([fill="#f6f4ef"], [fill="#e4e1d9"], [fill="#c9c5bb"]),
:is(.price__art, .contact__art) polygon:is([fill="#f6f4ef"], [fill="#e4e1d9"], [fill="#c9c5bb"]) { stroke: rgba(9, 9, 9, 0.6); }

/* ---------- grande carte « Site sécuritaire » ---------- */
.card--wide { grid-column: span 12 !important; padding: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.card--wide .card__art { height: clamp(260px, 26vw, 380px); margin: 24px; }
.card--wide .card__body { padding: 40px 48px 40px 8px; gap: 16px; }
.card--wide h3 { font-size: clamp(1.75rem, 2.2vw + 0.5rem, 2.5rem); line-height: 1.08; letter-spacing: -0.03em; }
.card--wide .card__body > p:not(.secure__tag) { font-size: 1.0625rem; color: var(--grey); max-width: 46ch; }
.secure__tag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(47, 154, 85, 0.14); color: #6fd896; font: 500 0.875rem/1 var(--font); }
.secure__tag svg, .form__secure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.secure__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.secure__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--white); font-size: 1rem; line-height: 1.45; }
.secure__check { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #2f9a55; position: relative; }
.secure__check::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid #f6f4ef; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.form__secure { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.875rem; color: #6fd896; }
@media (max-width: 900px) {
  .card--wide { grid-template-columns: 1fr; }
  .card--wide .card__body { padding: 8px 24px 32px; }
}
@media (max-width: 900px) { .bento > .card { grid-column: auto !important; } }

/* ---------- entrée de la section Services : les cartes montent en décalé ---------- */
.js #services .card[data-in] { transform: translateY(32px) scale(0.97); transition-duration: 750ms; }
.js #services .card[data-in].in { transform: none; }
#services .bento > .card:nth-child(1) { transition-delay: 180ms; }
#services .bento > .card:nth-child(2) { transition-delay: 270ms; }
#services .bento > .card:nth-child(3) { transition-delay: 360ms; }
#services .bento > .card:nth-child(4) { transition-delay: 430ms; }
#services .bento > .card:nth-child(5) { transition-delay: 500ms; }
#services .bento > .card:nth-child(6) { transition-delay: 590ms; }

/* courriel sous le titre de la FAQ */
.faq__mail { color: var(--white); font-weight: 500; text-decoration: underline; text-decoration-color: var(--red-text); text-underline-offset: 0.25em; text-decoration-thickness: 2px; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .faq__mail:hover { color: var(--red-text); } }

/* ---------- formulaire : piège à robots, consentement, envoi ---------- */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__consent { grid-column: 1 / -1; margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--mute); }
.form__consent a, .footer__legal a { color: var(--grey); text-decoration: underline; text-underline-offset: 0.2em; }
.form .btn:disabled { opacity: 0.75; cursor: default; }
.form.is-sent .form__note { color: #6fd896; }

/* ---------- pages secondaires : politique de confidentialité, merci, 404 ---------- */
.nav__back { height: 40px; padding: 0 16px; font-size: 0.875rem; margin-left: auto; }
.legal { padding: 140px 0 96px; }
.legal__wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 12px; }
.legal__date { color: var(--mute); font-size: 0.875rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--grey); line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal a { color: var(--white); text-decoration: underline; text-decoration-color: var(--red-text); text-underline-offset: 0.2em; }
.legal strong { color: var(--white); font-weight: 500; }
.legal--center { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.legal--center .legal__wrap { display: grid; justify-items: center; gap: 18px; }
.legal--center .btns { justify-content: center; margin-top: 12px; }
.legal--center a.btn { text-decoration: none; }
.legal__icon { width: 64px; height: 64px; border-radius: 50%; background: #2f9a55; display: grid; place-items: center; }
.legal__icon svg { width: 34px; height: 34px; fill: none; stroke: #f6f4ef; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.legal__code { font: 500 clamp(5rem, 14vw, 9rem)/1 var(--font); color: var(--orange); letter-spacing: -0.05em; }

/* ---------- démarche sur téléphone et tablette : même défilement par étapes que sur ordinateur ---------- */
@media (max-width: 900px) {
  .story { height: 300vh; padding: 0 var(--gut); }
  .story__sticky { position: sticky; top: 0; height: 100svh; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 76px 0 16px; }
  .story__panel { min-height: 0; grid-template-rows: auto auto auto; gap: 12px; padding: 24px 20px 8px; }
  .story__text { gap: 12px; }
  .story__text h3 { font-size: clamp(1.75rem, 7.4vw, 2.5rem); }
  .story__text p { font-size: 1rem; }
  .story__stage { padding: 16px 0; min-height: 0; container-type: size; }
  .story__card { width: min(80cqw, 88cqh); }
}
