/* =========================================================
   Visibility Building — maquette v2 (phase 2)
   Registre : page d'accueil de Thinking Gods (thinkingods.com)
   — fond gris clair #f1f1f1, cartes #fafafa,
   — Outfit (titres) + Instrument Sans (texte) + Space Mono (étiquettes),
   — cartes 18 px, boutons 8 px, accent rare.
   Couleurs du logo (demande du client) : bleu nuit #181930 pour
   l'encre et les fonds sombres, bleu #1FABE3 en accent, #1FB4E2
   pour le pointeur et la traînée des trames de points.
   ========================================================= */
@import url("../fonts/faces.css");

:root {
  --bg: #f1f1f1;
  --ink: #181930;
  --ink-72: rgba(24, 25, 48, .74);
  --ink-50: rgba(24, 25, 48, .52);
  --hair: rgba(24, 25, 48, .14);
  --panel: #fafafa;
  --white: #ffffff;
  --dark: #181930;
  --dark-2: #23254a;
  --accent: #1fabe3;
  --cursor: #1fb4e2;
  --accent-soft: rgba(31, 171, 227, .16);

  --display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --sans: "Instrument Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 3.2vw, 56px);
  --maxw: none; /* contenu aligné sur la barre de navigation : pleine largeur moins --gutter */
  --sec: clamp(72px, 6.4vw, 92px);
  --bar-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-family: var(--mono); font-size: 12px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.muted { color: var(--ink-72); }
.eyebrow { color: var(--ink-72); margin-bottom: 14px; }
.h2 { font-family: var(--display); font-size: clamp(40px, 4.6vw, 66px); line-height: .94; letter-spacing: -.04em; max-width: 16ch; text-wrap: balance; }
.h3 { font-family: var(--display); font-size: clamp(24px, 1.7vw, 30px); line-height: 1.2; letter-spacing: -.03em; }
.intro { color: var(--ink-72); max-width: 46ch; margin-top: 26px; font-size: 17px; }

/* --------- Boutons (Space Mono, 8 px) --------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 39px; padding: 0 16px; border-radius: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--hair); background: var(--white); color: var(--ink);
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .35); }
.btn--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--dark:hover { background: var(--dark-2); border-color: var(--dark-2); }
.btn--ghost { background: var(--white); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { height: 48px; padding: 0 22px; }
.btn--pill { height: 60px; padding: 0 28px; border-radius: 999px; font-size: 12px; }
.btn--block { width: 100%; height: 54px; }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--ghost-dark { background: transparent; color: var(--bg); border-color: rgba(241, 241, 241, .28); }
.btn--ghost-dark:hover { border-color: var(--bg); }
.arrow-link { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 1px solid var(--hair); transition: border-color .3s; }
.arrow-link::after { content: "→"; transition: transform .4s var(--ease); }
.arrow-link:hover { border-color: var(--ink); }
.arrow-link:hover::after { transform: translateX(4px); }

/* --------- Barre de navigation --------- */
/* transparente en haut de page, opaque dès que l'on fait défiler (ou menu mobile ouvert) */
.bar { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--bar-h); display: flex; align-items: center; gap: 20px; padding-inline: var(--gutter); background: rgba(241, 241, 241, 0); transition: background .35s, box-shadow .4s, backdrop-filter .35s; }
.bar.is-scrolled, .bar:has([aria-expanded="true"]) { background: rgba(241, 241, 241, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--hair), 0 12px 30px -20px rgba(0, 0, 0, .25); }
.brand img { width: 140px; height: auto; }
.bar__nav { display: flex; gap: 4px; margin-left: auto; }
.bar__nav a { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 12px; border-radius: 8px; border: 1px solid transparent; transition: border-color .25s, background .25s; }
.bar__nav a:hover { border-color: var(--hair); background: var(--white); }
.bar__nav a[aria-current="page"] { border-color: var(--hair); background: var(--white); }
.bar__end { display: flex; align-items: center; gap: 10px; }
.bar__lang { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; padding: 8px 6px; color: var(--ink-72); }
.bar__lang:hover { color: var(--ink); }
.bar__menu { display: none; }
.menu { position: fixed; inset: var(--bar-h) 0 0; z-index: 55; background: var(--bg); padding: 24px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow: auto; }
.menu[hidden] { display: none; }
.menu nav a { display: block; font-family: var(--display); font-size: clamp(30px, 8vw, 48px); letter-spacing: -.04em; line-height: 1.1; padding: 10px 0; border-bottom: 1px solid var(--hair); }

/* --------- Héros soulevé --------- */
.raise { position: relative; z-index: 2; background: var(--bg); border-radius: 0 0 28px 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .1); }
.hero { min-height: min(100svh, 1000px); display: grid; place-items: center; text-align: center; overflow: hidden; padding: calc(var(--bar-h) + 56px) var(--gutter) 72px; }
.dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* titres découpés en lettres pour l'effet d'onde */
.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }
.hero__inner { position: relative; max-width: 1320px; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; color: var(--ink); font-size: 13px; font-weight: 700; margin-bottom: 38px; }
.stats b { color: var(--accent); }
.stats i { font-style: normal; font-weight: 400; color: var(--ink-50); }
.hero__title { font-family: var(--display); font-size: clamp(52px, 9.2vw, 132px); line-height: .86; letter-spacing: -.05em; text-wrap: balance; }
/* accueil anglais : titre plus long, ramené à 3 lignes comme le titre français */
.hero__title--en { font-size: clamp(44px, 8.3vw, 120px); }
.hero__sub { max-width: 1010px; margin: 38px auto 0; font-size: 19px; font-weight: 500; line-height: 1.5; color: var(--ink); text-wrap: balance; }
.hero__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

/* --------- Sections --------- */
.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: calc(var(--sec) * .75); }
.card { background: var(--panel); border: 1px solid var(--hair); border-radius: 18px; }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.two--text { margin-top: clamp(48px, 5vw, 80px); align-items: start; }
.body-text { max-width: 62ch; }
.body-text p:first-child { font-family: var(--display); font-size: clamp(21px, 1.7vw, 26px); line-height: 1.32; letter-spacing: -.02em; }
.body-text p:last-child { color: var(--ink-72); }

/* --------- Parcours du voyageur --------- */
.journey { padding: 22px 24px 24px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .25); }
.journey__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.journey__top .mono { color: var(--ink-72); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--white); border: 1px solid var(--hair); }
.seg button { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 7px; color: var(--ink-72); transition: background .3s var(--ease), color .3s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.journey__map { position: relative; height: 320px; margin-top: 18px; background-image: radial-gradient(rgba(24, 25, 48, .16) 1px, transparent 1.2px); background-size: 18px 18px; border-radius: 12px; }
.journey__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey__lines path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; transition: stroke .4s, opacity .4s; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.node { position: absolute; width: 38%; max-width: 210px; padding: 11px 14px; background: var(--white); border: 1px solid var(--hair); border-radius: 12px; font-size: 14px; line-height: 1.35; box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .3); transition: transform .6s var(--ease), opacity .4s; }
.node .mono { display: block; font-size: 9.5px; font-weight: 700; color: var(--accent); margin-bottom: 3px; }
.node--a { left: 0; top: 18px; } .node--b { right: 0; top: 18px; } .node--c { left: 0; top: 218px; } .node--d { right: 0; top: 218px; }
.journey__core { position: absolute; left: 50%; top: 160px; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: var(--white); border: 1px solid var(--hair); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--accent-soft); transition: box-shadow .4s; }
.journey__foot { position: relative; text-align: center; margin-top: 14px; }
.journey__state { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin: 0; transition: opacity .35s, transform .45s var(--ease); }
.journey__state--before { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(6px); }
.journey__sub { margin: 8px 0 0; color: var(--ink-72); font-size: 10.5px; }
.journey[data-state="before"] .journey__lines path { stroke: var(--ink-50); stroke-dasharray: 2 14; opacity: .5; animation-play-state: paused; }
.journey[data-state="before"] .node--a { transform: translate(-4px, 22px); opacity: .6; }
.journey[data-state="before"] .node--b { transform: translate(8px, 34px); opacity: .7; }
.journey[data-state="before"] .node--c { transform: translate(16px, -18px); opacity: .55; }
.journey[data-state="before"] .node--d { transform: translate(-12px, -10px); opacity: .65; }
.journey[data-state="before"] .journey__core { box-shadow: none; }
.journey[data-state="before"] .journey__core img { filter: grayscale(1); opacity: .35; }
.journey[data-state="before"] .journey__state--after { opacity: 0; transform: translateY(-6px); }
.journey[data-state="before"] .journey__state--before { opacity: 1; transform: none; }

/* --------- Services (module tarifs) --------- */
.pricing { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pricing__intro { position: sticky; top: calc(var(--bar-h) + 40px); }
.pricing__tool { display: grid; gap: 16px; }
.pricing__card { padding: clamp(22px, 2.4vw, 36px); }
.step-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.step-row .mono { color: var(--ink-72); font-size: 10.5px; }
.step-num { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--hair); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; background: var(--white); }
.step-rule { flex: 1; height: 1px; background: var(--hair); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 28px; }
.chips button { text-align: left; padding: 14px 16px; border-radius: 10px; background: var(--bg); border: 1px solid transparent; font-size: 15.5px; transition: background .3s, border-color .3s, color .3s; }
.chips button:hover { border-color: var(--hair); background: var(--white); }
.chips button[aria-selected="true"] { background: var(--white); border-color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.srv { animation: fadeUp .5s var(--ease) both; }
.srv[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.srv__title { font-family: var(--display); font-size: clamp(28px, 2.4vw, 38px); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 16px; }
.srv p { color: var(--ink-72); }
.srv p:last-child { margin-bottom: 0; }
.ticks { margin: -6px 0 14px; color: var(--ink-72); }
.ticks li { position: relative; padding-left: 18px; margin: 4px 0; text-wrap: pretty; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.pricing__results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.result__label { margin: 0; font-size: 13.5px; color: var(--ink-72); }
.result__value { margin: 0; font-family: var(--display); font-size: clamp(38px, 3.6vw, 56px); line-height: 1; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.result__value small { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--ink-72); }
.result__note { margin: 6px 0 0; font-size: 14px; color: var(--ink-72); }
.result__link { margin-top: auto; font-family: var(--display); font-size: 21px; letter-spacing: -.02em; line-height: 1.25; display: inline-flex; gap: 12px; align-items: flex-end; justify-content: space-between; }
.result__link::after { content: "→"; font-family: var(--mono); transition: transform .4s var(--ease); }
.result__link:hover::after { transform: translateX(5px); }
[data-price-for][hidden] { display: none; }

/* --------- Secteurs (module preuve) --------- */
.raise--panel { border-radius: 0 0 28px 28px; padding-bottom: calc(var(--sec) + 8px); }
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proof__left, .proof__right { position: relative; min-height: 620px; border-radius: 18px; overflow: hidden; }
.proof__left { background: var(--white); padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .2); }
.proof__title { position: relative; font-family: var(--display); font-size: clamp(40px, 4.4vw, 63px); line-height: .92; letter-spacing: -.045em; max-width: 11ch; }
.thumbs { position: relative; flex: 1; min-height: 280px; margin: 8px 0 18px; }
.thumb { position: absolute; width: 34%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 3px solid var(--white); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); transition: transform .6s var(--ease), box-shadow .4s, filter .4s; filter: grayscale(.85) contrast(.95); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb.is-active { filter: none; transform: translateY(-6px) scale(1.04); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .5), 0 0 0 1px var(--accent); z-index: 2; }
.thumb--1 { left: 4%; top: 22%; } .thumb--2 { left: 34%; top: 2%; } .thumb--3 { left: 58%; bottom: 16%; } .thumb--4 { left: 26%; bottom: 0; }
.proof__hint { position: relative; margin: 0; }
.proof__right { background: var(--dark); color: var(--bg); padding: clamp(30px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.sector { animation: fadeUp .6s var(--ease) both; }
.sector[hidden] { display: none; }
.sector__mark { display: block; font-family: var(--display); font-size: 64px; line-height: .6; color: var(--accent); margin-bottom: 18px; }
.sector h3 { font-family: var(--display); font-size: clamp(32px, 3vw, 46px); line-height: 1.04; letter-spacing: -.035em; max-width: 16ch; }
.sector p:not(.mono) { margin-top: 22px; color: rgba(241, 241, 241, .78); max-width: 46ch; }
.sector .mono { color: rgba(241, 241, 241, .55); margin-top: 22px; }
.pager { position: absolute; left: clamp(30px, 4vw, 60px); bottom: 30px; display: flex; gap: 8px; }
.pager button { width: 7px; height: 7px; border-radius: 50%; background: rgba(241, 241, 241, .3); transition: background .3s, width .4s var(--ease); }
.pager button.is-active { width: 22px; border-radius: 4px; background: var(--accent); }
.proof__foot { margin-top: 36px; }

/* --------- Réalisations (grille de projets) --------- */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 3.6vw, 56px) clamp(20px, 2.2vw, 32px); margin-top: clamp(40px, 4vw, 64px); }
.work { display: flex; flex-direction: column; transition: opacity .45s var(--ease), filter .45s; }
.works.is-hovering .work:not(:hover) { opacity: .45; filter: grayscale(1); }
.work__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e4e4e4; }
.work__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s var(--ease); }
.work:hover .work__img img { transform: scale(1.03); }
.work__title { font-family: var(--display); font-size: 24.5px; letter-spacing: -.03em; line-height: 1.3; margin-top: 18px; }
.work__tags { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); color: var(--ink-72); font-size: 10.5px; }
.work__tags span:last-child { color: var(--ink); }
.work__img--cta { display: grid; place-items: center; background: var(--panel); border: 1px dashed rgba(24, 25, 48, .28); }
.work__img--cta span { font-family: var(--display); font-size: clamp(34px, 3.4vw, 54px); letter-spacing: -.045em; }
.work--cta:hover .work__img--cta { border-color: var(--accent); background: #f3fafd; }

/* --------- Témoignages (accueil) : guillemet repris de .sector__mark, filet et étiquettes repris de .work__tags --------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); margin-top: clamp(40px, 4vw, 64px); }
.quote { margin: 0; display: flex; flex-direction: column; padding: clamp(26px, 2.6vw, 38px); }
.quote__text { margin: 0 0 28px; }
.quote__text p { margin: 0; color: var(--ink); font-size: 16.5px; line-height: 1.6; text-wrap: pretty; }
.quote__by { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.quote__name { font-family: var(--display); font-size: 21px; letter-spacing: -.02em; }
.quote__by .mono { color: var(--ink-72); font-size: 10.5px; }

/* --------- Méthode (cartes empilées) --------- */
.stack { margin-top: clamp(40px, 4vw, 64px); display: grid; gap: 28px; }
.stack__card { position: sticky; top: calc(var(--bar-h) + 32px); display: grid; grid-template-columns: 60px 76px minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 24px; min-height: 168px; padding: 32px 40px; background: var(--panel); border: 1px solid var(--hair); border-radius: 18px; box-shadow: 0 -14px 40px rgba(0, 0, 0, .07); }
.stack__card:nth-child(2) { top: calc(var(--bar-h) + 44px); } .stack__card:nth-child(3) { top: calc(var(--bar-h) + 56px); } .stack__card:nth-child(4) { top: calc(var(--bar-h) + 68px); } .stack__card:nth-child(5) { top: calc(var(--bar-h) + 80px); }
.stack__num { color: var(--ink-72); }
.stack__icon { width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.stack__icon .acc { fill: var(--accent); stroke: none; }
.stack__icon .acc-stroke { stroke: var(--accent); }
.stack__card h3 { font-family: var(--display); font-size: clamp(26px, 2.6vw, 37px); letter-spacing: -.035em; line-height: 1.03; }
.stack__card p { margin: 0; color: var(--ink-72); font-size: 15.5px; max-width: 48ch; }

/* --------- Agence --------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: sticky; top: calc(var(--bar-h) + 32px); }
.about__photos figure { margin: 0; }
.about__photos img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.about__photos figure:first-child img { object-position: 92% 20%; }
.about__photos figure:last-child { margin-top: 48px; }
.about__photos figcaption { margin-top: 12px; color: var(--ink-72); font-size: 10.5px; }
.about__text p:not(.mono) { color: var(--ink-72); max-width: 58ch; }
.about__text .h2 { margin-bottom: 28px; max-width: 18ch; }
.label { margin-top: 34px; color: var(--ink-72); }
.rows { margin: 14px 0 30px; border-top: 1px solid var(--hair); }
.rows li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 90px; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--hair); transition: padding .35s var(--ease); }
.rows li:hover { padding-left: 8px; }
.rows__name { font-family: var(--display); font-size: 21px; letter-spacing: -.025em; }
.rows__role { font-size: 14px; color: var(--ink-72); }
.rows__val { text-align: right; color: var(--ink); }
.rows li:first-child .rows__val { color: var(--accent); font-weight: 700; }

/* --------- Ressources --------- */
.latest { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; align-items: stretch; }
.latest__intro { padding: 24px 24px 24px 0; display: flex; flex-direction: column; align-items: flex-start; }
.latest__intro .h3 { margin-bottom: 12px; max-width: 18ch; }
.latest__intro p:not(.mono) { color: var(--ink-72); font-size: 15px; max-width: 36ch; }
.latest__intro .btn { margin-top: 8px; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); overflow: hidden; transition: box-shadow .4s, transform .4s var(--ease); }
.article:hover { box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .35); transform: translateY(-2px); }
.article__img { overflow: hidden; min-height: 260px; }
.article__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.article:hover .article__img img { transform: scale(1.04); }
.article__body { padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.article__title { font-family: var(--display); font-size: clamp(24px, 2.2vw, 33px); letter-spacing: -.03em; line-height: 1.12; }

/* --------- FAQ --------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.faq .h2 { margin-bottom: 36px; }
.qa details { border-top: 1px solid var(--hair); }
.qa details:last-child { border-bottom: 1px solid var(--hair); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--display); font-size: clamp(18px, 1.45vw, 21px); letter-spacing: -.015em; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--sans); font-size: 22px; font-weight: 300; transition: transform .4s var(--ease), color .3s; }
.qa details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.qa__a { padding: 0 48px 22px 0; color: var(--ink-72); font-size: 16px; animation: fadeUp .4s var(--ease) both; }
.qa__a p:last-child { margin-bottom: 0; }

/* --------- Grand appel au contact (texte qui se remplit) --------- */
.cta { position: relative; height: 210vh; }
.cta__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--bar-h) var(--gutter) 40px; }
.cta__title { font-family: var(--display); font-size: clamp(56px, 9vw, 130px); line-height: .88; letter-spacing: -.05em; max-width: 9.5ch; }
.cta__title .w { color: rgba(24, 25, 48, .2); transition: color .25s; }
.cta__title .w.on { color: var(--ink); }
.cta__after { max-width: 680px; margin-top: 44px; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.cta.is-done .cta__after { opacity: 1; transform: none; }
.cta__after p { color: var(--ink-72); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

/* --------- Fenêtre du formulaire --------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(24, 25, 48, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .3s both; }
@keyframes fade { from { opacity: 0; } }
.modal__panel { position: relative; width: min(760px, 100%); max-height: calc(100svh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--hair); border-radius: 18px; padding: clamp(24px, 3.6vw, 44px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.modal__close { position: absolute; top: 18px; right: 18px; }
.modal__title { font-family: var(--display); font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -.04em; line-height: 1; margin: 10px 0 26px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field .mono { font-size: 10px; color: var(--ink-72); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: inherit; font-size: 15.5px; color: var(--ink); background: var(--white); border: 1px solid var(--hair); border-radius: 8px; padding: 11px 13px; transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 110px; }
.form__legal { font-size: 13px; color: var(--ink-72); margin: 18px 0; }
.form__intro { margin: -12px 0 24px; color: var(--ink-72); max-width: 58ch; }
.form__legal a { text-decoration: underline; }
.form__ok { margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--accent); color: var(--ink); }

/* --------- Pied de page sombre --------- */
.foot { position: relative; overflow: hidden; background: var(--dark); color: var(--bg); padding: clamp(72px, 7vw, 110px) 0 32px; }
/* même largeur que la barre de menu : de gouttière à gouttière */
.foot .wrap { position: relative; }
.foot__logo { width: 150px; height: auto; }
.foot__title { font-family: var(--display); font-size: clamp(40px, 5.6vw, 84px); line-height: .95; letter-spacing: -.045em; max-width: 14ch; margin: 34px 0 30px; }
.foot__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.foot__lead { color: rgba(241, 241, 241, .62); max-width: 60ch; font-size: 15px; margin: 40px 0 0; padding-bottom: 40px; }
/* deux filets pleine largeur, au-dessus et au-dessous des colonnes */
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 0 48px; border-block: 1px solid rgba(241, 241, 241, .14); }
.foot__cols .mono { color: rgba(241, 241, 241, .5); margin-bottom: 16px; font-size: 10.5px; }
.foot__cols a, .foot__cols span { display: block; margin: 0 0 10px; font-size: 15.5px; }
.foot__cols a:hover { color: var(--accent); }
.foot__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; color: rgba(241, 241, 241, .5); font-size: 10.5px; }
.foot__bottom p { margin: 0; }
.foot__bottom a:hover { color: var(--bg); }

/* =========================================================
   Pages internes (phase 3) : mêmes jetons, mêmes registres
   ========================================================= */
:root { --overlap: clamp(90px, 11vw, 170px); }

/* Hero de page : même panneau surélevé et même onde que l'accueil */
/* le visuel déborde du panneau sur la section suivante */
.phone { position: absolute; right: -3%; bottom: -10%; width: 23%; min-width: 120px; border-radius: 26px; overflow: hidden; border: 6px solid var(--dark); background: var(--dark); box-shadow: 0 30px 60px -24px rgba(24, 25, 48, .6); }
.phone img { width: 100%; height: auto; }
.caption { margin-top: 14px; color: var(--ink-72); font-size: 10.5px; text-align: left; }

/* En-tête de section : titre à gauche, introduction à droite */
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 5vw, 80px); align-items: end; }
.head .intro { margin-top: 0; max-width: 58ch; }
.head .intro p:last-child { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.inline-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-50); }
.inline-link:hover { text-decoration-color: var(--ink); }
.qa summary h3 { margin: 0; font: inherit; letter-spacing: inherit; }
.link-line { margin-top: 28px; }

/* Cartes métier (photo, intitulé, liste) */

/* Lignes : numéro, intitulé, texte (signes, axes, opérations) */

/* Tableau d'orientation : situation → service */
.match { width: 100%; border-collapse: collapse; margin-top: clamp(32px, 3vw, 48px); }
.match th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: var(--ink-72); padding: 0 24px 12px 0; border-bottom: 1px solid var(--ink-50); }
.match td { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--hair); vertical-align: baseline; }
.match td:first-child { width: 62%; color: var(--ink-72); }
.match td:last-child { font-family: var(--display); font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.025em; }
.match td a { display: inline-flex; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--ink-50); }
.match td a::after { content: "→"; font-family: var(--mono); font-size: 14px; transition: transform .4s var(--ease); }
.match td a:hover::after { transform: translateX(4px); }
.match tr.is-here td:last-child { color: var(--accent); }

/* Liste numérotée sur deux colonnes */
.feats { counter-reset: f; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin-top: clamp(36px, 3.6vw, 56px); border-top: 1px solid var(--hair); }
.feats li { counter-increment: f; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--hair); font-size: 16.5px; text-wrap: pretty; }
.feats li::before { content: counter(f, decimal-leading-zero); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--accent); padding-top: 4px; }
.feats strong { font-weight: 600; }
.note { margin: 24px 0 0; max-width: 72ch; font-size: 15px; color: var(--ink-72); }
.feats--one { grid-template-columns: 1fr; margin-top: 14px; }

/* Formules et tarifs */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 4vw, 64px); }

/* Étude de cas : texte et relevé de chiffres */
/* Chiffre clé posé sur le visuel du hero */
.source { font-size: 13px; color: var(--ink-72); }
.names { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 16px; font-family: var(--display); font-size: 19px; letter-spacing: -.01em; }
.subhead { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin: 40px 0 0; }

/* Portrait d'un membre de l'équipe */

/* Liste de contrôles (visuel de la page Maintenance) */

/* Liens vers les autres pages */
.links { border-top: 1px solid var(--hair); }
.links a { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--hair); transition: padding .35s var(--ease); }
.links a:hover { padding-left: 10px; }
.links__name { font-family: var(--display); font-size: clamp(21px, 1.9vw, 28px); letter-spacing: -.03em; }
.links__meta { color: var(--ink-72); }
.links a::after { content: "→"; font-family: var(--mono); text-align: right; transition: transform .4s var(--ease); }
.links a:hover::after { transform: translateX(4px); }

/* Étapes courtes en ligne */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 4vw, 64px); }
.steps li { padding: 26px 24px 28px; }
.steps .mono { color: var(--accent); font-weight: 700; }
.steps h3 { font-family: var(--display); font-size: 23px; letter-spacing: -.025em; line-height: 1.12; margin: 18px 0 10px; }
.steps p { margin: 0; color: var(--ink-72); font-size: 15.5px; }

/* Cartes de contact */
.form-card { padding: clamp(24px, 3.4vw, 52px); }

/* Champs du formulaire : aides et cases à cocher */
.field__help { font-size: 12.5px; line-height: 1.4; color: var(--ink-72); }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 7px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid var(--hair); border-radius: 8px; background: var(--white); font-size: 14.5px; transition: border-color .25s; }
.check:hover { border-color: var(--ink-50); }
.check input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.check:has(input:checked) { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }

/* Texte long (politique de confidentialité) */
.doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: calc(var(--bar-h) + 32px); }
.toc .mono { color: var(--ink-72); margin-bottom: 14px; }
.toc a { display: block; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 14.5px; line-height: 1.35; color: var(--ink-72); transition: color .25s, padding .3s var(--ease); }
.toc a:hover { color: var(--ink); padding-left: 6px; }
.prose { max-width: 74ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--display); font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -.035em; line-height: 1.08; margin: 64px 0 18px; scroll-margin-top: calc(var(--bar-h) + 24px); }
.prose h3 { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; line-height: 1.2; margin: 32px 0 10px; }
.prose p, .prose li, .prose td { color: var(--ink-72); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0 0 1em; }
.prose ul li { position: relative; padding-left: 18px; margin: 6px 0; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.prose th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; color: var(--ink-72); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ink-50); }
.prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose code { font-family: var(--mono); font-size: .86em; padding: 1px 5px; border-radius: 4px; background: var(--white); border: 1px solid var(--hair); }
/* Informations à compléter par le client : visibles dans la maquette */
.todo { display: inline; padding: 1px 7px; border: 1px dashed var(--accent); border-radius: 5px; background: var(--accent-soft); color: var(--ink); font-family: var(--mono); font-size: .78em; letter-spacing: .04em; }
.todo--block { display: block; padding: 18px 20px; text-align: center; }

/* Cartes de service cliquables (page À propos) */

/* Blog */

/* Équipe (page À propos) */

/* --------- Apparitions --------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.is-capture .reveal { opacity: 1; transform: none; transition: none; }
.is-capture .cta { height: auto; }
.is-capture .cta__sticky { position: relative; height: auto; padding-block: 140px; }
.is-capture .cta__title .w { color: var(--ink); }
.is-capture .cta__after { opacity: 1; transform: none; }
.is-capture .stack__card { position: relative; top: 0; }
.is-capture *, .is-capture *::before, .is-capture *::after { animation: none !important; transition: none !important; }

/* --------- Pointeur (effet Thinking Gods) --------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  /* seul le point bleu reste visible : ni flèche, ni main, ni curseur texte */
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  .has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 150; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--cursor); pointer-events: none; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, opacity .3s; }
  .has-cursor .cursor.is-big { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(31, 180, 226, .28); }
  .has-cursor .cursor.is-hidden { opacity: 0; }
}

/* --------- Adaptations --------- */
/* Grands écrans : les conteneurs suivent le menu, le texte courant garde une longueur de ligne lisible.
   :where() = spécificité nulle, les max-width déjà définies restent prioritaires. */
@media (min-width: 1601px) {
  :where(main p:not(.mono, .names, .refs2__small, .urlmap__foot, .prose *, .journey__foot *), main .ticks li) { max-width: 74ch; }
}

@media (max-width: 1240px) {
  .bar__nav { display: none; }
  .bar__menu { display: inline-flex; }
  .bar__end { margin-left: auto; }
}
@media (max-width: 960px) {
  .two, .pricing, .proof, .about, .latest, .faq, .quotes { grid-template-columns: 1fr; }
  .pricing__intro, .about__photos { position: relative; top: 0; }
  .proof__left, .proof__right { min-height: 520px; }
  .stack__card { grid-template-columns: auto 1fr; gap: 14px 18px; padding: 26px; min-height: 0; }
  .stack__num { grid-column: 1; grid-row: 1; }
  .stack__icon { grid-column: 2; grid-row: 1; justify-self: end; width: 40px; height: 40px; }
  .stack__card h3 { grid-column: 1 / -1; grid-row: 2; }
  .stack__card p { grid-column: 1 / -1; grid-row: 3; }
  .about__photos { max-width: 560px; }
  .latest__intro { padding: 0 0 12px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .head, .doc { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .toc { position: relative; top: 0; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  :root { --bar-h: 62px; }
  .brand img { width: 118px; }
  .bar .btn--dark { display: none; }
  .hero { padding-top: calc(var(--bar-h) + 36px); }
  .stats { font-size: 11px; gap: 4px 10px; }
  .hero__sub { font-size: 17px; }
  .chips { grid-template-columns: 1fr; }
  .pricing__results { grid-template-columns: 1fr; }
  .node { width: 44%; font-size: 12.5px; padding: 9px 10px; }
  .journey { padding: 18px; }
  .works { grid-template-columns: 1fr; }
  .thumb { width: 44%; }
  .thumb--1 { left: 0; top: 14%; } .thumb--2 { left: 50%; top: 0; } .thumb--3 { left: 54%; bottom: 20%; } .thumb--4 { left: 4%; bottom: 0; }
  .rows li { grid-template-columns: 1fr auto; }
  .rows__role { display: none; }
  .article { grid-template-columns: 1fr; }
  .article__img { min-height: 0; aspect-ratio: 16 / 9; }
  .form__grid { grid-template-columns: 1fr; }
  .cta { height: 170vh; }
  .btn--pill { height: 52px; font-size: 11px; padding: 0 20px; white-space: normal; text-align: center; }
  .foot__cols { grid-template-columns: 1fr; }
  .feats, .steps { grid-template-columns: 1fr; }
  .match, .match tbody, .match tr, .match td { display: block; width: 100%; }
  .match thead { display: none; }
  .match tr { padding: 18px 0; border-bottom: 1px solid var(--hair); }
  .match td { padding: 0; border: 0; }
  .match td:first-child { width: 100%; margin-bottom: 8px; }
  .phone { right: -2%; bottom: -14%; width: 30%; border-width: 4px; border-radius: 16px; }
  .links a { grid-template-columns: minmax(0, 1fr) 24px; }
  .links__meta { grid-column: 1; grid-row: 2; font-size: 10px; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { display: none; }
  .prose td { padding: 4px 0; border: 0; }
  .prose tr { padding: 12px 0; border-bottom: 1px solid var(--hair); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .cta { height: auto; } .cta__sticky { position: relative; height: auto; padding-block: 120px; }
  .cta__title .w { color: var(--ink); } .cta__after { opacity: 1; transform: none; }
}
