/* Manrope (licence SIL OFL 1.1), hébergée sur le site : aucun appel à un service tiers. */
@font-face{font-family:Manrope;font-style:normal;font-weight:400 800;font-display:swap;src:url('./fonts/manrope-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Manrope;font-style:normal;font-weight:400 800;font-display:swap;src:url('./fonts/manrope-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Service B2B — fond blanc, dessin génératif, filets noirs. */
:root {
  --fond: #ffffff;
  --encre: #0d0c11;
  --texte: #3a3742;
  --discret: #6b6772;
  --filet: #0d0c1126;
  --violet: #7828ed;
  --violet-fonce: #5f17c9;
  --orange: #f04e1a;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --marge: 44px;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--fond); scroll-behavior: smooth; }
body { background: var(--fond); color: var(--encre); font-family: Manrope, system-ui, sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; border-radius: 4px; }
section[id] { scroll-margin-top: 24px; }
.evitement { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--encre); color: #fff; padding: 12px 18px; font-weight: 700; }
.evitement:focus { left: 12px; top: 12px; }

/* En-tête */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px var(--marge); }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -1px; text-decoration: none; }
.marque svg { width: 30px; height: 30px; flex: none; }
.marque b { color: var(--violet); font-weight: 800; }
.entete nav { display: flex; gap: 34px; font-size: 15px; font-weight: 600; }
.entete nav a { text-decoration: none; }
.entete nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.ecrire { font-size: 15px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--encre); padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.ecrire:hover { background: var(--encre); color: #fff; }

/* Scène : le dessin reste à l'écran pendant que la page défile. */
.parcours { position: relative; }
.js .parcours { height: 340vh; }
.scene { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.js .scene { position: sticky; top: 0; height: 100vh; height: 100svh; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.voile { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #ffffffeb 0, #ffffff00 130px), linear-gradient(90deg, #fffffff5 0%, #ffffffeb 34%, #ffffff00 60%); }
.bribes { position: absolute; inset: 0; pointer-events: none; }
.bribes span { position: absolute; left: 0; top: 0; white-space: nowrap; font-style: italic; font-weight: 500; color: var(--encre); opacity: 0; will-change: transform, opacity; }
.scene .entete { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }

.textes { position: absolute; z-index: 4; left: var(--marge); bottom: 96px; width: min(640px, 46vw); }
.temps { position: absolute; left: 0; bottom: 0; width: 100%; will-change: opacity, transform; }
.pour { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--discret); }
h1, .grand { font-weight: 800; font-size: clamp(42px, 5.4vw, 84px); line-height: 0.98; letter-spacing: -0.045em; margin: 18px 0 24px; text-wrap: balance; }
.grand em { font-style: normal; color: var(--orange); }
.chapo { font-size: 19px; max-width: 28em; color: var(--texte); }
.actions { display: flex; align-items: center; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.bouton { display: inline-block; background: var(--violet); color: #fff; font-weight: 800; font-size: 17px; padding: 16px 26px; border-radius: 999px; text-decoration: none; }
.bouton:hover { background: var(--violet-fonce); }
.lien { font-weight: 700; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.lien:hover { color: var(--violet); }

/* La demande complète : nette, elle, contrairement au reste. */
.fiche { position: absolute; z-index: 4; right: var(--marge); top: 50%; width: min(430px, 34vw); transform: translateY(-50%); background: #fff; border: 1.5px solid var(--encre); border-radius: 6px; padding: 22px 24px 20px; will-change: opacity, transform; }
.fiche header { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; padding-bottom: 14px; border-bottom: 1.5px solid var(--encre); }
.fiche .ligne { padding: 15px 0; border-bottom: 1px solid var(--filet); }
.fiche .ligne small { display: block; font-family: var(--mono); font-size: 12px; color: #5d584f; margin-bottom: 3px; }
.fiche .ligne strong { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.fiche sup { font-size: 0.6em; }
.fiche footer { display: flex; align-items: center; gap: 10px; padding-top: 16px; font-weight: 800; font-size: 16px; }
.fiche footer i { width: 12px; height: 12px; border-radius: 50%; background: var(--violet); }
.signature { position: absolute; z-index: 4; left: var(--marge); bottom: 30px; right: var(--marge); display: flex; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 12px; color: var(--discret); }

/* Avant le premier calcul, et sans script : seul le premier temps est affiché. */
.js #temps-b, .js #temps-c, .js .fiche { opacity: 0; visibility: hidden; }
html:not(.js) #temps-b, html:not(.js) #temps-c, html:not(.js) .fiche, html:not(.js) #indice, html:not(.js) .numero-dessin { display: none; }

/* Blocs de la page */
.bloc { margin: 0 var(--marge); padding: 110px 0 96px; }
.bloc + .bloc { border-top: 1.5px solid var(--encre); }
.surtitre { font-family: var(--mono); font-size: 13px; color: var(--discret); margin-bottom: 18px; }
.bloc h2 { font-weight: 800; font-size: clamp(34px, 4vw, 58px); letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.bloc h2 em { font-style: normal; color: var(--violet); }

/* Ce que nous automatisons */
.offres h2 { max-width: 12em; margin-bottom: 40px; }
.offre { display: grid; grid-template-columns: 90px minmax(0, 0.9fr) minmax(0, 1.3fr) 110px; gap: 28px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--filet); }
.offres h2 + .offre { border-top: 1.5px solid var(--encre); }
.offre .num { font-family: var(--mono); font-size: 14px; color: var(--orange); }
.offre h3 { font-weight: 800; font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -0.035em; line-height: 1.05; }
.offre p { color: var(--texte); }
.offre p a { font-weight: 700; text-underline-offset: 4px; }
.etat { font-family: var(--mono); font-size: 13px; color: var(--discret); text-align: right; white-space: nowrap; }
.etat.pret { color: var(--violet); font-weight: 700; }
.limites { padding-top: 28px; border-top: 1.5px solid var(--encre); font-size: 19px; max-width: 34em; }

/* Devis clair en exemple */
.exemple { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.exemple h2 { margin-bottom: 22px; }
.exemple .chapo { margin-bottom: 30px; }
.pas { list-style: none; padding: 0; border-top: 1px solid var(--filet); }
.pas li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--filet); font-weight: 700; font-size: 18px; }
.pas span { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--orange); flex: none; }
.film { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1.5px solid var(--encre); border-radius: 6px; background: #fff; }
.legende { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--discret); }

/* Méthode */
.methode h2 { margin-bottom: 44px; max-width: 14em; }
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--encre); list-style: none; padding: 0; }
.etapes li { padding: 26px 28px 8px 0; }
.etapes li + li { border-left: 1px solid var(--filet); padding-left: 28px; }
.etapes span { display: block; font-family: var(--mono); font-size: 13px; color: var(--orange); margin-bottom: 34px; }
.etapes h3 { font-weight: 800; font-size: 24px; letter-spacing: -0.03em; margin-bottom: 10px; }
.etapes p { color: var(--texte); font-size: 16px; }

/* Questions */
.questions { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.questions > div > p:last-child { margin-top: 22px; color: var(--texte); max-width: 22em; }
.liste-questions { border-top: 1.5px solid var(--encre); }
details { border-bottom: 1px solid var(--filet); }
summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; padding: 22px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 22px; color: var(--violet); flex: none; }
details[open] summary::after { content: "−"; }
details p { color: var(--texte); padding: 0 48px 24px 0; max-width: 38em; }

/* Contact */
.contact h2 { font-size: clamp(42px, 6.4vw, 104px); letter-spacing: -0.05em; line-height: 0.96; max-width: 9em; }
.contact .chapo { margin-top: 28px; max-width: 32em; }
.contact .adresse { font-family: var(--mono); font-size: 14px; color: var(--discret); }
.contact .interlocuteur { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--filet); max-width: 32em; color: var(--texte); }
.contact .interlocuteur strong { color: var(--encre); }

/* Pied de page */
.pied { margin: 0 var(--marge); padding: 30px 0 40px; border-top: 1.5px solid var(--encre); display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.pied p { flex: 1; font-size: 14px; color: var(--discret); min-width: 16em; }
.pied nav { display: flex; gap: 26px; font-size: 14px; font-weight: 700; }
.pied nav a { text-underline-offset: 5px; }

/* Mentions légales */
.entete.page { border-bottom: 1.5px solid var(--encre); margin: 0 var(--marge); padding-left: 0; padding-right: 0; }
.legal { margin: 0 var(--marge); padding: 80px 0 96px; max-width: 46em; }
.legal h1 { font-size: clamp(36px, 4.4vw, 62px); margin: 18px 0 20px; }
.legal-intro { font-size: 19px; color: var(--texte); }
.legal h2 { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; margin: 56px 0 16px; padding-top: 22px; border-top: 1.5px solid var(--encre); }
.legal p { color: var(--texte); margin-bottom: 14px; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; }
.legal dt, .legal dd { padding: 12px 0; border-bottom: 1px solid var(--filet); }
.legal dt { font-family: var(--mono); font-size: 13px; color: var(--discret); padding-top: 15px; }
.legal dd { color: var(--texte); }
.todo { font-family: var(--mono); font-size: 12px; color: var(--orange); border: 1px solid var(--orange); border-radius: 4px; padding: 2px 7px; margin-right: 8px; white-space: nowrap; }
.legal-back { display: inline-block; margin-top: 40px; font-weight: 700; text-underline-offset: 6px; text-decoration-thickness: 2px; }

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

@media (max-width: 860px) {
  :root { --marge: 20px; }
  .entete { padding-top: 18px; padding-bottom: 18px; }
  .entete nav { display: none; }
  .ecrire { padding: 8px 14px; font-size: 14px; }
  .voile { background: linear-gradient(180deg, #fffffff2 0%, #ffffffd9 38%, #ffffff00 66%); }
  .textes { right: var(--marge); width: auto; top: 96px; bottom: auto; }
  html:not(.js) .textes { position: relative; left: 0; top: 0; margin: 0 var(--marge); padding: 96px 0 80px; }
  .temps { bottom: auto; top: 0; }
  html:not(.js) .temps { position: static; }
  h1, .grand { font-size: clamp(38px, 11.4vw, 54px); margin: 14px 0 18px; }
  .chapo { font-size: 17px; }
  .bouton { padding: 14px 22px; font-size: 16px; }
  .fiche { left: var(--marge); width: auto; top: auto; bottom: 78px; transform: none; padding: 16px 18px 14px; }
  .fiche .ligne { padding: 10px 0; }
  .fiche .ligne strong { font-size: 17px; }
  .signature { bottom: 20px; font-size: 11px; }
  .signature > span:last-child { display: none; }
  .bloc { padding: 64px 0 56px; }
  .offre { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .etat { text-align: left; }
  .limites { font-size: 17px; }
  .exemple, .questions { grid-template-columns: 1fr; gap: 36px; }
  .etapes { grid-template-columns: 1fr; }
  .etapes li, .etapes li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--filet); }
  .etapes span { margin-bottom: 12px; }
  summary { font-size: 18px; }
  details p { padding-right: 0; }
  .legende { flex-direction: column; gap: 2px; }
  .legal { padding: 48px 0 64px; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dt { border-bottom: 0; padding-bottom: 0; }
  .legal dd { padding-top: 4px; }
}
