/* Lumière immersive, typographie généreuse et changements de surface discrets. */
body { background: var(--paper); }
.header { position: absolute; height: auto; top: 32px; border: 0; gap: 18px; }
.header .brand { margin-right: auto; }
.desktop-nav { gap: 26px; padding: 5px 24px; background: #f4f3eee8; border: 1px solid #fff5; border-radius: 10px; color: var(--deep); backdrop-filter: blur(14px); }
.desktop-nav a, .desktop-nav a:hover { color: var(--deep); font-size: 13px; }
.header-contact { background: #201b33e8; border: 1px solid #d6cef03b; border-radius: 9px; padding: 12px 18px; color: var(--paper); font-size: 13px; }
.header-contact span { margin-left: 16px; color: var(--sand); }
.opening { margin: 12px; border-radius: 22px; background: var(--deep); position: relative; overflow: clip; isolation: isolate; }
.atmosphere { height: 100svh; position: sticky; top: 0; margin-bottom: -100svh; z-index: -1; pointer-events: none; overflow: clip; }
.atmosphere canvas, .atmosphere-fallback, .atmosphere-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.atmosphere canvas { display: block; opacity: 0; transition: opacity var(--duration-entrance) var(--ease-standard); }
.atmosphere.is-ready canvas { opacity: 1; }
.atmosphere-fallback { background: radial-gradient(ellipse at 92% 22%,#b397c8 0,transparent 48%),radial-gradient(ellipse at 18% 88%,#d98b7390,transparent 42%),linear-gradient(155deg,#322244 4%,#7f5ba3 45%,#2c203d 60%,#aa86a4 100%); }
.atmosphere-shade { background: linear-gradient(90deg,#100d2157,#100d2133 76%),linear-gradient(0deg,#0f0e173d,transparent 30%); }
.hero { height: auto; min-height: calc(100svh - 24px); max-height: none; background: none; overflow: visible; }
.hero::after { display: none; }
/* Les retraits suivent la hauteur d’écran, sans plancher fixe : le contenu seul fixe la hauteur
   minimale, et l’action principale reste au-dessus de la ligne de flottaison. */
.hero-content { padding: 162px calc(var(--gutter) - 12px) 36px; padding-top: clamp(128px, 18svh, 162px); display: flex; flex-direction: column; height: auto; min-height: inherit; pointer-events: auto; }
.hero-kicker { font: 11px/1.5 'JetBrains Mono',monospace; color: var(--paper); letter-spacing: .035em; margin-bottom: 32px; }
.hero-kicker .signal { background: var(--sand); box-shadow: none; border-radius: 0; }
.hero h1 { font-family: Figtree,Arial,sans-serif; font-weight: 400; font-size: clamp(70px,8.4vw,148px); font-size: clamp(70px,min(8.4vw,16svh),148px); letter-spacing: -.065em; line-height: 1.02; max-width: none; }
/* La description passe au-dessus des actions dès que la place manque, sans se réduire à une colonne étroite. */
.hero-footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 50px; padding-top: clamp(48px, 10svh, 96px); }
.hero-description { color: var(--paper); font-size: clamp(18px,1.6vw,25px); line-height: 1.35; flex: 1 1 400px; max-width: 520px; margin: 0; letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; flex: none; }
.hero .button { margin: 0; background: #201b33e8; color: var(--paper); border: 1px solid #f4f3ee26; font-weight: 400; min-height: 56px; padding-left: 20px; }
.hero .button-light { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 600; }
.hero .button-arrow { background: var(--sand); color: var(--deep); border-radius: 5px; }
/* Le lien secondaire occupe la hauteur du bouton : textes centrés, soulignement aligné sur son bord bas. */
.hero-secondary { align-self: stretch; gap: 24px; padding-bottom: 0; }
.motion-toggle { margin: 0; color: var(--paper); background: #201b33b3; border-color: #f4f3ee80; border-radius: 8px; }
@media (hover: hover) {
  .hero .button-light:hover { background: #fff; }
  .hero .button-light:hover .button-arrow { background: var(--sand); }
}
.opening-stage { padding: 100px calc(var(--gutter) - 12px) 90px; }
.opening-label { display: flex; align-items: center; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid #f4f3ee47; margin-bottom: 54px; }
.opening-label .section-tag { font: 11px/1.5 'JetBrains Mono',monospace; }
.opening-label .section-tag i { background: var(--sand); }
/* Fond propre : le lien garde son contraste sans le voile de lecture, absent en mouvement réduit. */
.opening-skip { display: inline-flex; gap: 16px; align-items: center; font-size: 12px; min-height: 44px; white-space: nowrap; }
/* Sans mouvement, le voile de lecture de l’ouverture n’existe pas : le lien reçoit son propre fond.
   Avec le mouvement, ce fond le ferait paraître accroché sous l’en-tête compact. */
@media (prefers-reduced-motion: reduce) { .opening-skip { background: #0f0e1773; border-radius: 8px; padding-inline: 12px; } }
.opening-skip .icon { width: 18px; height: 18px; }
.opening-panels { width: 68%; margin-left: auto; }
.opening-panel { margin-bottom: 80px; }
.opening-panel:last-child { margin-bottom: 0; }
.opening-verb { display: block; color: #f1cab8; font: 12px/1.5 'JetBrains Mono',monospace; margin-bottom: 28px; }
.opening-panel h2 { font: 400 clamp(36px,4.35vw,74px)/1.08 Figtree,Arial,sans-serif; letter-spacing: -.045em; margin-bottom: 32px; }
.opening-panel p { font-size: 18px; color: var(--paper); line-height: 1.5; }
/* 88 px : l’en-tête compact, rappelé au défilement vers le haut, ne recouvre pas le rail. */
.opening-story.is-pinned .opening-stage { position: sticky; top: 0; height: 100svh; padding-top: 88px; }
.opening-story.is-pinned .opening-panels { display: grid; }
.opening-story.is-pinned .opening-panel { grid-area: 1/1; margin: 0; }
/* Voile de lecture : il accompagne l’arrivée des énoncés, du côté où ils se posent (--opening-veil, opening-story.js). */
.atmosphere::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg,#0f0e17 6%,#0f0e1700 66%); opacity: calc(var(--opening-veil, 0) * .34); }
@media (max-width: 899px) { .atmosphere::after { background: #0f0e17; opacity: calc(var(--opening-veil, 0) * .2); } }
/* Rail de lecture : la bordure basse de l’étiquette se remplit avec le récit épinglé. */
.opening-label { position: relative; }
.opening-story.is-pinned .opening-label::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg,var(--light),var(--sand)); clip-path: inset(0 calc((1 - var(--opening-story-progress, 0)) * 100%) 0 0); }
/* Étapes écrites, créées par opening-story.js (aria-hidden : les verbes sont déjà dans les énoncés).
   Toutes en Paper pour rester lisibles sur le fond ; l’étape courante se signale par son soulignement Sandstone. */
.opening-steps { display: none; align-items: center; margin: 0 0 0 auto; padding: 0 clamp(24px, 4vw, 64px) 0 0; list-style: none; font: 11px/1.5 'JetBrains Mono',monospace; color: var(--paper); white-space: nowrap; }
.opening-steps li { text-decoration: underline 2px transparent; text-underline-offset: 7px; }
.opening-steps li + li::before { content: '·'; display: inline-block; margin-inline: 12px; }
.opening-steps li[data-current] { text-decoration-color: var(--sand); }
@media (min-width: 1100px) { .opening-story.is-pinned .opening-steps { display: flex; } }
@media (prefers-reduced-motion: no-preference) {
  .opening-steps li { transition: text-decoration-color var(--duration-ui) var(--ease-standard); }
}
.intro { position: relative; border-radius: 24px 24px 0 0; margin-top: -12px; }
.section-pad { padding-block: clamp(84px,8.3vw,135px); }
.intro h2, .approach h2 { font-family: Figtree,Arial,sans-serif; font-weight: 400; letter-spacing: -.05em; line-height: 1.07; }
.product { margin: 12px; border-radius: 22px; padding-inline: calc(var(--gutter) - 12px); }
.product-heading h2 { font-family: Figtree,Arial,sans-serif; font-weight: 400; letter-spacing: -.045em; }
.editorial-image-window { border-radius: 12px; }
.convictions { background: var(--paper); }
.conviction-grid { gap: 2px; }
.conviction-grid article { border: 0; padding: 32px 28px; min-height: 320px; background: #e8e3ef; }
.conviction-grid article:nth-child(2) { background: var(--deep); color: var(--paper); }
.conviction-grid article:nth-child(2) p { color: var(--mist); }
.conviction-grid article:nth-child(2) .conviction-icon { color: var(--light); }
.conviction-grid article:nth-child(3) { background: #ddd4eb; }
.conviction-grid article:nth-child(4) { background: #ead4c9; }
.conviction-icon { margin-bottom: 64px; }
.contact-section { margin: 12px; border-radius: 22px; padding-inline: calc(var(--gutter) - 12px); }
.contact-section h2 { font-family: Figtree,Arial,sans-serif; font-weight: 400; letter-spacing: -.055em; }
.footer { background: var(--paper); color: var(--body); }
.footer .brand { color: var(--deep); }
.footer .brand-arrow::before { background: var(--deep); }
.footer .brand-arrow { color: var(--paper); }
@media (min-width: 1800px) { .hero-content { padding-top: clamp(128px, 18svh, 185px); } }
@media (max-width: 1100px) {
  .desktop-nav { gap: 20px; padding-inline: 18px; }
  .header { gap: 12px; }
  .header-contact { font-size: 12px; padding-inline: 14px; }
  .header-contact span { margin-left: 8px; }
  .hero h1 { font-size: clamp(70px,8.7vw,110px); font-size: clamp(70px,min(8.7vw,16svh),110px); }
  .hero-footer { gap: 24px 26px; }
  .hero-description { max-width: 460px; }
  .hero-actions { gap: 8px 20px; }
  .hero .button { font-size: 13px; }
  .opening-panels { width: 75%; }
  .conviction-grid article { padding: 28px 22px; }
}
@media (max-width: 850px) {
  .header { top: 25px; }
  .header .brand { margin-right: auto; }
  .menu-toggle { background: #201b33e8; border: 1px solid #d6cef03b; border-radius: 8px; }
  .mobile-menu { top: 96px; left: 12px; right: 12px; border-radius: 12px; }
  .hero-content { padding-top: 170px; }
  .hero h1 { font-size: clamp(66px,9.7vw,88px); text-wrap: balance; }
  /* « La méthode / des grands, » : la première ligne masquée se coupe toujours au même endroit. */
  .hero h1 .motion-line:first-child { max-width: 6.4em; }
  .hero-footer { flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 80px; }
  .hero-actions { width: 100%; justify-content: flex-start; }
  .hero-actions .motion-toggle { margin-left: auto; }
  .hero-description { flex: none; max-width: 470px; font-size: 22px; }
  .opening-panels { width: 100%; }
  .opening-stage { padding-block: 75px; }
  .opening-panel h2 { font-size: clamp(36px,6vw,54px); }
  .opening-label { margin-bottom: 40px; }
  .conviction-grid { gap: 2px; }
  .conviction-grid article { min-height: 300px; }
  .conviction-icon { margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .opening { margin: 8px; border-radius: 16px; }
  .header { top: 24px; padding-inline: 26px; }
  .header-contact { display: none; }
  .hero { height: auto; min-height: calc(100svh - 16px); }
  .hero-content { padding: 145px 20px 26px; padding-top: clamp(112px, 18svh, 145px); }
  /* Même étiquette que « Notre but » (11 px, approche .035em). */
  .hero-kicker { font-size: 11px; margin-bottom: 28px; gap: 7px; }
  /* Minimum mobile de la charte (49 px) ; l’exception sous 360 px suit le bloc. */
  .hero h1 { font-size: clamp(49px,13.1vw,74px); line-height: 1.03; letter-spacing: -.065em; }
  .hero-footer { padding-top: clamp(40px, 8svh, 80px); gap: 26px; }
  .hero-description { font-size: 19px; line-height: 1.4; max-width: 340px; }
  .hero-actions { gap: 12px 16px; }
  .hero .button { flex: 1 1 100%; min-height: 52px; font-size: 13px; padding-left: 16px; gap: 10px; }
  .motion-toggle { min-width: 44px; min-height: 44px; }
  .opening-stage { padding: 50px 20px 65px; }
  .opening-label { gap: 10px; align-items: flex-start; padding-bottom: 24px; }
  .opening-label .section-tag { font-size: 11px; max-width: 160px; }
  .opening-label .section-tag i { flex: none; }
  .opening-skip { font-size: 10px; gap: 5px; min-width: 84px; margin-top: -13px; }
  .opening-panel { margin-bottom: 70px; }
  .opening-verb { font-size: 11px; margin-bottom: 22px; }
  .opening-panel h2 { font-size: clamp(30px,8.7vw,47px); margin-bottom: 22px; }
  .opening-panel h2 br { display: none; }
  .opening-panel p { font-size: 16px; }
  .opening-panel p br { display: none; }
  .section-pad { padding-block: 70px; }
  .product { margin: 8px; border-radius: 16px; padding-inline: 20px; }
  .intro h2, .approach h2 { font-size: 46px; }
  .conviction-grid { grid-template-columns: 1fr; }
  .conviction-grid article { min-height: 0; padding: 30px 26px; }
  .conviction-icon { margin-bottom: 35px; }
  .conviction-grid p { font-size: 16px; }
  .contact-section { margin: 8px; border-radius: 16px; padding-inline: 20px; }
  .contact-section h2 { font-size: 43px; }
}
/* Sous 360 px, 41 px gardent « à votre mesure. » sur une ligne et l’action principale au-dessus du pli. */
@media (max-width: 359px) {
  .hero h1 { font-size: 41px; }
}
/* Bureaux bas : le héros remplit l’écran sans le dépasser (aucun plancher de hauteur). */
@media (max-height: 640px) and (min-width: 601px) {
  .hero-content { padding-top: 145px; }
  .hero h1 { font-size: 76px; }
}
/* Téléphone en paysage : le titre entier tient dans le premier écran, l’action arrive au premier défilement. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero, .hero-content { min-height: 0; }
  .hero-content { padding-top: 104px; }
  .hero h1 { font-size: clamp(49px, 13svh, 56px); }
  .hero-footer { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce), print {
  .opening-story { height: auto !important; }
  .opening-story.is-pinned .opening-stage { position: static; height: auto; }
  .opening-story.is-pinned .opening-panels { display: block; }
  .opening-panel { opacity: 1 !important; visibility: visible !important; translate: none !important; }
  .opening-story.is-pinned .opening-panel { margin-bottom: 70px; }
  .atmosphere canvas { transition: none; }
  .atmosphere::after { display: none; }
}

@media print {
  .atmosphere canvas { display: none; }
  /* Les fonds ne s’impriment pas : les textes clairs du héros passent en Encre. */
  .hero-kicker, .hero h1, .hero-description { color: var(--ink); }
}
/* Énoncé « Agir » : l’équilibrage couperait « Une IA qui vous / connaît. » de 361 à 599 px. */
@media (min-width: 361px) and (max-width: 599px) { .opening-panel-act h2 { text-wrap: pretty; } }
