/* ================================================================
   BASE ET VARIABLES HISTORIQUES
   Ces valeurs assurent un rendu de secours avant le thème actif.
   ================================================================ */

:root {
  --bg: #121311;
  --panel: #191a17;
  --ink: #eeeae1;
  --muted: #96978f;
  --line: #30312c;
  --accent: #c66d3b;
  --cream: #e8e2d6;
  --dark: #171815;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope,Arial,sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.shell {
  width: min(1240px,calc(100% - 64px));
  margin: auto;
}

/* Navigation principale */
.nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
}

.brand i {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid #6b6c65;
  display: grid;
  place-items: center;
  font-family: Georgia,serif;
  font-style: italic;
  font-size: 16px;
}

.nav nav {
  display: flex;
  gap: 34px;
}

/* Centre la navigation indépendamment des éléments latéraux du header. */
@media (min-width: 901px) {
  .nav nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav nav a {
  color: #aaa99f;
  text-decoration: none;
  font-size: 12px;
}

.nav nav a:hover {
  color: white;
}

.menu {
  display: none;
  background: none;
  border: 0;
}

/* Section d’introduction */
.hero {
  padding-top: 84px;
}

.eyebrow, .section-tag {
  font: 500 10px DM Mono,monospace;
  letter-spacing: .18em;
  color: #8f9088;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.eyebrow span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero > h1 {
  font-size: clamp(84px,12.5vw,176px);
  font-weight: 500;
  line-height: .72;
  letter-spacing: -.075em;
  text-align: center;
  margin: 65px 0 52px;
}

.hero > h1 em, .section h2 em, .final-cta h2 em {
  font-family: Georgia,serif;
  font-weight: 400;
  color: var(--accent);
}

.hero-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-left: 50%;
}

.hero-copy p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 510px;
  margin: 0;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 16px 18px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.primary {
  background: var(--cream);
  color: var(--dark);
}

.primary span {
  color: var(--accent);
}

.ghost {
  color: var(--ink);
  border: 1px solid #494a44;
}

/* Aperçu de l’application */
.app-stage {
  margin: 100px 0 0;
  position: relative;
}

.app-stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: 10%;
  bottom: 7%;
  left: 10%;
  height: 1px;
  border-radius: 50%;
  box-shadow: 0 30px 48px 22px color-mix(in srgb,var(--shadow) 72%,transparent);
  pointer-events: none;
}

.app-window {
  border: 1px solid #42433e;
  background: #151613;
  box-shadow: 0 40px 90px #050505;
}

.window-bar {
  height: 45px;
  border-bottom: 1px solid #343530;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 0 16px;
  font: 9px DM Mono;
  color: #85867f;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 7px;
  height: 7px;
  border: 1px solid #64655e;
  border-radius: 50%;
}

.window-title {
  text-align: center;
  letter-spacing: .12em;
}

.cube {
  color: var(--accent);
}

.window-actions {
  text-align: right;
}

.app-body {
  display: grid;
  grid-template-columns: 190px 1fr 245px;
  height: 530px;
}

.sidebar {
  border-right: 1px solid #343530;
  padding: 25px 14px;
  display: flex;
  flex-direction: column;
}

.side-title {
  font: 8px DM Mono;
  color: #6d6e68;
  letter-spacing: .12em;
  padding: 0 10px 12px;
}

.side-title.collections {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
}

.sidebar a {
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8f9089;
  font-size: 10px;
  text-decoration: none;
}

.sidebar a b {
  margin-left: auto;
  font: 8px DM Mono;
  color: #5f605a;
}

.sidebar a.active {
  background: #272823;
  color: #e4e0d7;
}

.sidebar a.active span {
  color: var(--accent);
}

.swatch {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.clay {
  background: #b76539;
}

.olive {
  background: #7f8064;
}

.sand {
  background: #b6a889;
}

.grey {
  background: #656760;
}

.storage {
  margin-top: auto;
  border-top: 1px solid #30312c;
  padding: 18px 8px 0;
  font: 7px DM Mono;
  color: #696a64;
}

.storage span, .storage b {
  display: inline-block;
}

.storage b {
  float: right;
  font-weight: 400;
}

.storage i {
  display: block;
  height: 2px;
  background: #30312c;
  margin-top: 10px;
}

.storage u {
  display: block;
  width: 34%;
  height: 100%;
  background: var(--accent);
}

.library {
  padding: 28px 22px;
  min-width: 0;
}

.library-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.library small, .inspector small, .tags small {
  font: 7px DM Mono;
  color: #777871;
  letter-spacing: .14em;
}

.library h2 {
  font-size: 19px;
  margin: 7px 0 20px;
}

.view-controls {
  font: 9px DM Mono;
  color: #686963;
}

.view-controls span {
  border: 1px solid #343530;
  padding: 7px;
  margin-left: 8px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
}

.asset {
  min-width: 0;
}

.thumb {
  height: 152px;
  background-image: url('assets/folio-models.png');
  background-size: 700px auto;
  background-color: #1d1e1b;
  position: relative;
  filter: saturate(.82);
}

.asset.selected .thumb {
  outline: 1px solid var(--accent);
}

.format {
  position: absolute;
  left: 8px;
  top: 8px;
  background: #151613cc;
  padding: 5px;
  font: 6px DM Mono;
  color: #bbb8af;
}

.asset h3 {
  font-size: 10px;
  margin: 8px 0 2px;
}

.asset p {
  font: 7px DM Mono;
  color: #686963;
  margin: 0;
}

.inspector {
  border-left: 1px solid #343530;
  padding: 18px;
}

.preview {
  height: 180px;
  background-size: 720px auto;
  background-position: 4% 27%;
  margin-bottom: 22px;
}

.inspect-head {
  display: flex;
  justify-content: space-between;
}

.inspect-head h3 {
  font-size: 14px;
  margin: 7px 0 2px;
}

.inspect-head button {
  color: #888;
  background: none;
  border: 0;
}

.muted {
  font: 7px DM Mono;
  color: #676862;
}

.inspector dl {
  margin: 20px 0;
  border-top: 1px solid #30312c;
}

.inspector dl div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #2b2c28;
  padding: 9px 0;
}

.inspector dt {
  font: 6px DM Mono;
  color: #656660;
}

.inspector dd {
  font: 7px DM Mono;
  margin: 0;
  color: #aaa9a1;
}

.tags span, .tags button {
  font: 6px DM Mono;
  background: #272823;
  color: #aaa9a1;
  border: 0;
  padding: 6px;
  margin: 9px 2px 0 0;
}

.tags small {
  display: block;
}

.open-model {
  position: absolute;
  bottom: 22px;
  width: 209px;
  padding: 11px;
  background: #e4dfd4;
  border: 0;
  text-align: left;
  font-size: 9px;
}

.open-model span {
  float: right;
  color: var(--accent);
}

.inspector {
  position: relative;
}

.float-note {
  position: absolute;
  background: var(--cream);
  color: #191a17;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  box-shadow: 0 15px 40px #0007;
}

.float-note span {
  font: 30px Georgia;
}

.float-note small {
  font: 7px DM Mono;
  line-height: 1.5;
}

.note-left {
  left: -35px;
  bottom: 70px;
}

.note-right {
  right: -24px;
  top: 100px;
}

.note-right i {
  width: 24px;
  height: 24px;
  border: 1px solid #777;
  border-radius: 50%;
  position: relative;
}

.note-right i:after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  left: 8px;
  top: 8px;
}

/* Structure commune des sections de contenu */
.section {
  padding-top: 170px;
}

.section-tag {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

/* Présentation du problème et introductions éditoriales */
.problem-grid, .feature-intro, .profile-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-top: 65px;
}

.section h2, .final-cta h2 {
  font-size: clamp(48px,5.6vw,76px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.055em;
  margin: 0;
}

.problem-grid > div {
  padding-top: 12px;
  max-width: 500px;
}

.problem-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.problem-grid .lead {
  font-size: 20px;
  color: var(--ink);
  margin-top: 0;
}

.before-after {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 80px 1.3fr;
  align-items: start;
  border: 1px solid var(--line);
  padding: 26px;
}

.before-after small {
  display: block;
  min-height: 22px;
  color: var(--ink);
  font: 500 11px DM Mono,monospace;
  letter-spacing: .08em;
}

.before-after p {
  font: 9px DM Mono;
  color: #767770;
  border-bottom: 1px solid #282925;
  padding: 12px;
  margin: 0;
}

.before-after p span {
  margin-right: 12px;
}

.before-after p.same-model {
  color: var(--ink);
  background: color-mix(in srgb,var(--accent) 7%,transparent);
}

.flow-arrow {
  padding-top: 66px;
  text-align: center;
  color: var(--accent);
  font-size: 22px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
  margin-top: 16px;
}

.mini-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 507 / 578;
  object-fit: contain;
  border-radius: 4px;
}

.feature-intro p, .profile-head p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 430px;
}

/* Grille des fonctionnalités */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin-top: 75px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-list article {
  min-height: 280px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px;
  position: relative;
}

.feature-list article > span {
  font: 8px DM Mono;
  color: #666;
}

.feature-icon {
  font: 28px Georgia;
  color: var(--accent);
  margin: 50px 0 24px;
}

.feature-list h3 {
  font-size: 15px;
}

.feature-list p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 270px;
}

/* Étapes du flux de travail */
.workflow {
  background: var(--cream);
  color: var(--dark);
  margin-top: 170px;
  padding-bottom: 140px;
}

.workflow .section-tag {
  border-color: #cbc5b9;
  color: #76736b;
}

.workflow h2 {
  margin-top: 65px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin-top: 80px;
  border-top: 1px solid #aaa59a;
}

.steps article {
  padding: 24px 28px 0 0;
  border-right: 1px solid #aaa59a;
  border-bottom: 1px solid #aaa59a;
  min-height: 260px;
}

.steps article + article {
  padding-left: 28px;
}

.steps article:nth-child(3n + 1) {
  padding-left: 0;
}

.step-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font: 400 30px/1 DM Mono,monospace;
  margin: 22px 0 26px;
}

.steps h3 {
  font-size: 17px;
}

.steps p {
  font-size: 12px;
  color: #747169;
  line-height: 1.7;
}

/* Profils utilisateurs */
.profile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 75px;
}

.profile-row span {
  border: 1px solid #3f403b;
  padding: 15px 18px;
  font: 9px DM Mono;
  color: #aaa9a1;
}

/* Appel à l’action final */
.final-cta {
  margin-top: 170px;
  text-align: center;
  color: var(--ink);
  padding: 100px 40px 95px;
  border-bottom: 1px solid var(--line);
}

.cta-mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto 44px;
}

.final-cta h2 {
  margin: 0 auto 42px;
  max-width: 980px;
  font-size: clamp(38px,4.4vw,60px);
}

.final-cta h2 em {
  color: var(--accent);
}

.final-download {
  display: block;
  width: fit-content;
  margin: 0 auto;
  border-radius: 7px;
  transition: transform .2s ease;
}

.final-download:hover {
  transform: translateY(-2px);
}

.final-download:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Pied de page */
footer {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p, footer a {
  font: 500 12px DM Mono,monospace;
  color: #777870;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-credit {
  margin: 0;
}

.footer-credit a {
  color: inherit;
  font: inherit;
}

/* Animation d’apparition au défilement */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .72s cubic-bezier(.22,1,.36,1),transform .72s cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Entrée légèrement séquencée des blocs de fonctionnement. */
.workflow-merged.reveal .steps article {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .55s ease,transform .55s cubic-bezier(.22,1,.36,1);
}

.workflow-merged.visible .steps article {
  opacity: 1;
  transform: none;
}

.workflow-merged.visible .steps article:nth-child(2) { transition-delay: 45ms; }
.workflow-merged.visible .steps article:nth-child(3) { transition-delay: 90ms; }
.workflow-merged.visible .steps article:nth-child(4) { transition-delay: 135ms; }
.workflow-merged.visible .steps article:nth-child(5) { transition-delay: 180ms; }
.workflow-merged.visible .steps article:nth-child(6) { transition-delay: 225ms; }

/* Retour visuel très discret sur les éléments interactifs ou comparables. */
.format-list span,
.pricing-comparison tbody tr {
  transition: color .2s ease,background-color .2s ease;
}

.format-list span:hover {
  color: var(--ink);
}

.pricing-comparison tbody tr:hover {
  background: color-mix(in srgb,var(--ink) 3%,transparent);
}

/* Adaptation pour tablettes */
@media (max-width: 900px) {
  .shell {
    width: min(100% - 36px,680px);
  }
  .nav nav {
    display: none;
  }
  .menu {
    display: block;
  }
  .menu span {
    display: block;
    width: 22px;
    height: 1px;
    background: #ddd;
    margin: 6px;
  }
  .hero {
    padding-top: 60px;
  }
  .hero > h1 {
    font-size: 20vw;
    margin: 50px 0 45px;
  }
  .hero-copy {
    margin: 0;
    grid-template-columns: 1fr;
  }
  .app-stage {
    margin-top: 65px;
  }
  .app-body {
    grid-template-columns: 140px 1fr;
    height: 480px;
  }
  .inspector {
    display: none;
  }
  .library {
    padding: 20px 14px;
  }
  .thumb {
    height: 130px;
  }
  .float-note {
    display: none;
  }
  .problem-grid, .feature-intro, .profile-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .before-after {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    padding: 20px;
    transform: rotate(90deg);
  }
  .feature-list {
    grid-template-columns: repeat(2,1fr);
  }
  .steps {
    grid-template-columns: repeat(2,1fr);
  }
  .steps article {
    border-bottom: 1px solid #aaa59a;
  }
  .steps article:nth-child(odd) {
    padding-left: 0;
  }
  .steps article:nth-child(even) {
    padding-left: 28px;
  }
  .section {
    padding-top: 120px;
  }
}

/* Adaptation pour téléphones */
@media (max-width: 600px) {
  .shell {
    width: calc(100% - 28px);
  }
  .nav {
    height: 72px;
  }
  .hero > h1 {
    font-size: 20vw;
    line-height: .8;
    letter-spacing: -.06em;
  }
  .hero-copy p {
    font-size: 16px;
  }
  .actions {
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
  .app-stage {
    margin-left: -14px;
    margin-right: -14px;
    overflow: hidden;
  }
  .app-window {
    width: 780px;
    transform: scale(.62);
    transform-origin: top left;
    margin-bottom: -185px;
  }
  .note-left, .note-right {
    display: none;
  }
  .section {
    padding-top: 95px;
  }
  .section h2, .final-cta h2 {
    font-size: 42px;
  }
  .problem-grid .lead {
    font-size: 18px;
  }
  .before-after {
    margin-top: 55px;
    padding: 16px;
  }
  .mini-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .feature-list article {
    min-height: 240px;
  }
  .feature-icon {
    margin: 35px 0 20px;
  }
  .workflow {
    margin-top: 100px;
    padding-bottom: 90px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps article, .steps article + article {
    min-height: auto;
    padding: 22px 0 30px;
    border-right: 0;
  }
  .steps article:nth-child(odd),
  .steps article:nth-child(even) {
    padding-left: 0;
  }
  .step-symbol {
    margin: 28px 0 15px;
  }
  .final-cta {
    width: 100%;
    padding: 70px 22px;
    margin-top: 110px;
  }
  .final-cta h2 {
    font-size: 38px;
  }
  footer {
    height: 180px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

/* Ajustements de l’identité visuelle de Klay */
:root {
  --bg: #111214;
  --ink: #e7e1d8;
  --accent: #c6866b;
  --cream: #e7e1d8;
  --mineral: #6b7a6f;
}

.brand {
  gap: 11px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 10px #0004;
}

.hero > h1 {
  font-size: clamp(104px,15vw,208px);
  line-height: .78;
  letter-spacing: -.085em;
}

.window-title {
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-transform: none;
}

.window-title img {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  box-shadow: 0 2px 6px #0008;
}

.cta-mark {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 17px;
  margin: 0 auto 50px;
  box-shadow: 0 14px 30px #4b261c55;
}

.product-shot {
  display: block;
  width: calc(100% + 80px);
  height: auto;
  margin-left: -40px;
}

@media (max-width: 900px) {
  .product-shot {
    width: calc(100% + 36px);
    margin-left: -18px;
  }
  .app-stage {
    overflow: visible;
  }
}

@media (max-width: 600px) {
  .product-shot {
    width: 170%;
    margin-left: -35%;
    max-width: none;
  }
  .app-stage {
    margin-bottom: 0;
  }
}

/* Respect des préférences d’accessibilité liées aux animations */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .workflow-merged.reveal .steps article {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .format-list span,
  .pricing-comparison tbody tr {
    transition: none;
  }
}

@media (max-width: 900px) {
  .nav nav.mobile-open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    flex-direction: column;
    gap: 0;
    background: #171815;
    border: 1px solid var(--line);
    padding: 12px;
    box-shadow: 0 18px 50px #0008;
  }
  .nav nav.mobile-open a {
    padding: 14px;
    font-size: 13px;
  }
  .menu {
    padding: 10px;
    cursor: pointer;
  }
}

/* ================================================================
   THÈMES KLAY
   Le thème clair est utilisé par défaut ; le thème sombre adapte les
   contrastes tout en conservant la même identité visuelle.
   ================================================================ */

:root, [data-theme="light"] {
  --bg: #f5f2ec;
  --panel: #ede8df;
  --ink: #443d35;
  --muted: #7f776e;
  --line: #ddd7ce;
  --accent: #c6866b;
  --cream: #e5d0b9;
  --dark: #443d35;
  --surface: #faf8f4;
  --soft: #ebe3d9;
  --shadow: #6d594024;
  --texture-cover: rgba(245,242,236,.8);
}

[data-theme="dark"] {
  --bg: #111214;
  --panel: #1b1c1b;
  --ink: #e8e2d9;
  --muted: #9a9891;
  --line: #30312e;
  --accent: #c6866b;
  --cream: #e5d0b9;
  --dark: #171815;
  --surface: #191a18;
  --soft: #22231f;
  --shadow: #0009;
  --texture-cover: rgba(17,18,20,.92);
}

/* Texture béton : très légère en clair, plus visible en sombre */
body {
  background-color: var(--bg);
  background-image: linear-gradient(var(--texture-cover),var(--texture-cover)),url('assets/concrete-wall.png');
  background-repeat: repeat;
  background-size: auto,597px 545px;
  background-attachment: fixed;
  color: var(--ink);
  transition: background-color .35s ease,color .35s ease;
}

.grain {
  display: none;
}

.nav {
  border-color: var(--line);
}

.brand {
  color: var(--ink);
}

.nav nav a {
  color: var(--muted);
}

.nav nav a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* Sélecteur de langue */
.language-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font: 500 11px DM Mono,monospace;
}

.language-switch button {
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color .2s ease;
}

.language-switch button:hover,
.language-switch button.active {
  color: var(--ink);
}

.language-switch button.active {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

/* Bouton de changement de thème */
.theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s ease,border-color .25s ease,transform .25s ease;
}

.theme-toggle:hover {
  transform: rotate(8deg);
  border-color: var(--accent);
}

.theme-toggle span {
  grid-area: 1/1;
  font-size: 16px;
  line-height: 1;
  transition: opacity .25s ease,transform .25s ease;
}

.theme-toggle .moon {
  opacity: 0;
  transform: scale(.55) rotate(-30deg);
}

[data-theme="dark"] .theme-toggle .sun {
  opacity: 0;
  transform: scale(.55) rotate(30deg);
}

[data-theme="dark"] .theme-toggle .moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.eyebrow, .section-tag {
  color: var(--muted);
}

.hero > h1 {
  color: var(--ink);
}

.primary {
  background: var(--ink);
  color: var(--bg);
}

.ghost {
  color: var(--ink);
  border-color: var(--line);
}

.product-shot {
  transition: opacity .2s ease;
}

.float-note {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 15px 40px var(--shadow);
}

.problem-grid p, .feature-intro p, .profile-head p, .feature-list p {
  color: var(--muted);
}

.problem-grid .lead {
  color: var(--ink);
}

.before-after, .feature-list, .feature-list article, .profile-row span {
  border-color: var(--line);
}

.before-after {
  background: color-mix(in srgb,var(--surface) 58%,transparent);
}

.before-after p {
  color: var(--muted);
  border-color: var(--line);
}

.workflow {
  background: var(--soft);
  color: var(--ink);
}

.workflow .section-tag, .steps, .steps article {
  border-color: color-mix(in srgb,var(--ink) 18%,transparent);
}

.workflow .section-tag, .steps p {
  color: var(--muted);
}

.final-cta h2 em {
  color: var(--accent);
}

footer p, footer a {
  color: color-mix(in srgb,var(--ink) 72%,transparent);
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav nav.mobile-open {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: 0 18px 50px var(--shadow);
  }
  .menu span {
    background: var(--ink);
  }
}

@media (max-width: 600px) {
  .nav-actions {
    margin-left: auto;
    margin-right: 4px;
    gap: 12px;
  }
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
  }
}

/* ================================================================
   HERO ÉDITORIAL
   Composition compacte inspirée d’une couverture de magazine.
   ================================================================ */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: 46px;
}

/* Badge Mac App Store centré au-dessus de la composition du hero. */
.hero-download {
  position: relative;
  z-index: 4;
  display: block;
  width: fit-content;
  margin: 0 auto clamp(22px,2.5vw,34px);
  border-radius: 7px;
  transition: transform .2s ease,opacity .2s ease;
}

.hero-download:hover {
  transform: translateY(-2px);
}

.hero-download:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.app-store-badge {
  display: none;
  width: clamp(156px,12vw,172px);
  height: auto;
}

html[lang="fr"][data-theme="light"] .app-store-badge--fr-light,
html[lang="fr"][data-theme="dark"] .app-store-badge--fr-dark,
html[lang="en"][data-theme="light"] .app-store-badge--en-light,
html[lang="en"][data-theme="dark"] .app-store-badge--en-dark {
  display: block;
}

.hero-editorial {
  position: relative;
  z-index: 2;
  isolation: isolate;
  min-height: clamp(150px,17vw,220px);
  display: grid;
  grid-template-columns: minmax(0,1.34fr) minmax(280px,.66fr);
  gap: clamp(10px,1.8vw,26px);
  align-items: end;
  padding: 8px 0 0;
}

.hero-editorial h1 {
  position: relative;
  z-index: 3;
  margin: 0;
  color: var(--ink);
  font-size: clamp(112px,16.5vw,218px);
  font-weight: 500;
  line-height: .72;
  letter-spacing: -.085em;
  text-align: center;
  transform: translate(3%,var(--hero-title-shift,0px));
}

.hero-y {
  font: inherit;
  color: inherit;
}

.hero-tagline {
  position: relative;
  z-index: 0;
  margin: 0 0 clamp(28px,3vw,44px);
  color: var(--ink);
  font-size: clamp(34px,4.1vw,58px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.06em;
  text-align: left;
  transform: translateY(var(--hero-copy-shift,0px));
  pointer-events: none;
}

.hero-tagline span {
  display: block;
  white-space: nowrap;
}

.hero-tagline span:first-child {
  max-width: none;
}

.hero-tagline span:last-child {
  margin-left: 0;
  color: inherit;
}

.hero .app-stage {
  z-index: 1;
  margin-top: -24px;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 34px;
  }

  .hero-download {
    margin-bottom: 20px;
  }

  .hero-editorial {
    min-height: clamp(132px,20vw,175px);
    grid-template-columns: minmax(0,1.2fr) minmax(220px,.8fr);
    gap: 12px;
    padding-top: 4px;
  }

  .hero-editorial h1 {
    font-size: clamp(94px,20vw,145px);
  }

  .hero-tagline {
    margin-bottom: 28px;
    font-size: clamp(27px,5vw,38px);
  }

  .hero .app-stage {
    margin-top: -18px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 26px;
  }

  .hero-download {
    margin-bottom: 14px;
  }

  .hero-editorial {
    min-height: 190px;
    grid-template-columns: minmax(0,1.18fr) minmax(125px,.82fr);
    gap: 12px;
    align-items: center;
    padding-top: 10px;
  }

  .hero-editorial h1 {
    font-size: 28vw;
    text-align: center;
    transform: translateX(2%);
  }

  .hero-tagline {
    margin-bottom: 30px;
    font-size: clamp(20px,5.6vw,28px);
  }

  .hero .app-stage {
    margin-top: -20px;
  }

  .hero .product-shot {
    width: 132%;
    margin-left: -16%;
  }
}

/* ================================================================
   TARIFS ET COMPARATIF
   ================================================================ */

.pricing-intro {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: end;
  padding-top: 65px;
}

.pricing-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px,5.6vw,76px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.055em;
}

.pricing-intro h2 em {
  font-family: Georgia,serif;
  font-weight: 400;
  color: var(--accent);
}

.pricing-copy {
  max-width: 470px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.billing-switch {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  padding: 4px;
  border: 1px solid var(--line);
  background: color-mix(in srgb,var(--surface) 68%,transparent);
}

.billing-switch button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 9px DM Mono,monospace;
  cursor: pointer;
  transition: background .2s ease,color .2s ease;
}

.billing-switch button:hover {
  color: var(--ink);
}

.billing-switch button.active {
  background: var(--ink);
  color: var(--bg);
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  width: min(100%,1060px);
  margin: 70px auto 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.plan-card {
  min-height: 310px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb,var(--surface) 54%,transparent);
}

.plan-pro {
  background: color-mix(in srgb,var(--accent) 14%,var(--surface));
}

.plan-lifetime {
  background: color-mix(in srgb,var(--ink) 5%,var(--surface));
}

.plan-label {
  color: var(--muted);
  font: 500 9px DM Mono,monospace;
  letter-spacing: .14em;
}

.plan-pro .plan-label {
  color: var(--accent);
}

.plan-lifetime .plan-label {
  color: var(--ink);
}

.plan-card h3 {
  margin: 34px 0 4px;
  color: var(--ink);
  font-size: clamp(48px,5vw,70px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.065em;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
  font: 9px DM Mono,monospace;
}

.plan-button {
  margin-top: auto;
  padding: 14px 17px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.plan-pro .plan-button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.plan-lifetime .plan-button {
  border-color: var(--accent);
}

.plan-card .billing-switch {
  width: 100%;
  margin: 18px 0;
}

.plan-card .billing-switch button {
  min-height: 38px;
}

.comparison-wrap {
  width: min(100%,1060px);
  margin: 70px auto 0;
  overflow-x: auto;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pricing-comparison {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--ink);
}

.pricing-comparison th,
.pricing-comparison td {
  height: 62px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.pricing-comparison th {
  color: var(--muted);
  font: 500 10px DM Mono,monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pricing-comparison th:first-child,
.pricing-comparison td:first-child {
  width: 40%;
  text-align: left;
}

.pricing-comparison th:nth-child(2),
.pricing-comparison th:nth-child(3),
.pricing-comparison td:nth-child(2),
.pricing-comparison td:nth-child(3) {
  width: 30%;
}

.pricing-head-row th {
  height: 250px;
  padding: 28px 26px;
  vertical-align: bottom;
  background: color-mix(in srgb,var(--surface) 56%,transparent);
}

.pricing-head-row th:first-child {
  vertical-align: bottom;
}

.pricing-head-row .pro-column-head {
  background: color-mix(in srgb,var(--accent) 14%,var(--surface));
}

.pricing-head-row th:nth-child(2) .plan-label {
  margin-bottom: 48px;
}

.pricing-head-row .plan-label {
  font-size: 11px;
}

.pricing-head-row .plan-label,
.pricing-head-row strong,
.pricing-head-row small {
  display: block;
}

.pricing-head-row strong {
  margin: 24px 0 5px;
  color: var(--ink);
  font: 500 clamp(40px,4vw,58px)/.9 Manrope,Arial,sans-serif;
  letter-spacing: -.065em;
  text-transform: none;
}

.pricing-head-row small {
  min-height: 26px;
  color: var(--muted);
  font: 400 10px/1.4 DM Mono,monospace;
  letter-spacing: 0;
  text-transform: none;
}

.pricing-head-row .billing-switch {
  grid-template-columns: repeat(3,1fr);
  margin-top: 17px;
}

.pricing-head-row .billing-switch button {
  min-height: 40px;
  padding: 7px 6px;
  font-size: 9px;
}

.pricing-head-row .pro-column-head strong {
  margin-top: 19px;
}

.pricing-comparison td {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.pricing-comparison td:first-child {
  color: var(--ink);
}

.pricing-comparison th + th,
.pricing-comparison td + td {
  border-left: 1px solid var(--line);
}

.pricing-comparison tbody tr:last-child td {
  border-bottom: 0;
}

.included {
  color: var(--accent);
  font-size: 19px;
}

@media (max-width: 900px) {
  .pricing-intro {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 55px;
  }

  .billing-switch {
    max-width: 560px;
  }

  .pricing-plans {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-top: 52px;
  }

  .comparison-wrap {
    margin-top: 52px;
  }

  .plan-card {
    min-height: 220px;
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .pricing-intro {
    padding-top: 42px;
  }

  .pricing-intro h2 {
    font-size: 42px;
  }

  .billing-switch {
    grid-template-columns: repeat(2,1fr);
  }

  .pricing-plans {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .comparison-wrap {
    margin-top: 38px;
  }

  .plan-card {
    min-height: 245px;
  }

  .plan-button {
    width: 100%;
    text-align: center;
  }

  .comparison-wrap {
    margin-right: -14px;
  }
}

/* Contrôle de thème superposé à l’aperçu de l’application */
.preview-theme-toggle {
  position: absolute;
  z-index: 8;
  top: 7px;
  right: -24px;
  width: 92px;
  height: 44px;
  display: block;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(145deg,color-mix(in srgb,var(--surface) 92%,white),color-mix(in srgb,var(--surface) 88%,black));
  border-color: color-mix(in srgb,var(--ink) 22%,transparent);
  box-shadow: inset 2px 2px 5px color-mix(in srgb,var(--ink) 10%,transparent),inset -2px -2px 5px color-mix(in srgb,var(--surface) 70%,white),0 12px 30px var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.preview-theme-toggle::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 3px;
  left: 3px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg,color-mix(in srgb,var(--ink) 78%,white),var(--ink));
  box-shadow: inset 1px 1px 1px color-mix(in srgb,white 28%,transparent),inset -2px -2px 3px color-mix(in srgb,black 24%,transparent),0 5px 10px var(--shadow);
  transition: transform .28s ease,background-color .28s ease;
}

.preview-theme-toggle:hover {
  transform: none;
}

[data-theme="dark"] .preview-theme-toggle::before {
  transform: translateX(48px);
}

.preview-theme-toggle span,
.preview-theme-toggle .sun,
.preview-theme-toggle .moon,
[data-theme="dark"] .preview-theme-toggle .sun,
[data-theme="dark"] .preview-theme-toggle .moon {
  position: absolute;
  z-index: 1;
  top: 3px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  opacity: 1;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  line-height: 1;
  transform: none;
  transition: color .25s ease;
}

.preview-theme-toggle .sun,
[data-theme="dark"] .preview-theme-toggle .sun {
  left: 3px;
}

.preview-theme-toggle .moon,
[data-theme="dark"] .preview-theme-toggle .moon {
  right: 3px;
  padding-left: 2px;
}

.preview-theme-toggle .sun,
[data-theme="dark"] .preview-theme-toggle .moon {
  color: var(--bg);
}

[data-theme="dark"] .preview-theme-toggle .sun {
  color: var(--muted);
}

@media (max-width: 900px) {
  .preview-theme-toggle {
    top: 5px;
    right: -3px;
  }
}

@media (max-width: 600px) {
  .preview-theme-toggle {
    top: 3px;
    right: 7px;
    width: 84px;
    height: 40px;
  }

  .preview-theme-toggle::before {
    left: 3px;
    width: 34px;
    height: 34px;
  }

  [data-theme="dark"] .preview-theme-toggle::before {
    transform: translateX(44px);
  }

  .preview-theme-toggle span,
  .preview-theme-toggle .sun,
  .preview-theme-toggle .moon,
  [data-theme="dark"] .preview-theme-toggle .sun,
  [data-theme="dark"] .preview-theme-toggle .moon {
    width: 34px;
    height: 34px;
  }

  .preview-theme-toggle .sun,
  [data-theme="dark"] .preview-theme-toggle .sun {
    left: 3px;
  }

  .preview-theme-toggle .moon,
  [data-theme="dark"] .preview-theme-toggle .moon {
    right: 3px;
  }
}

/* Fonctionnalités et fonctionnement réunis dans un bento éditorial */
.workflow-merged {
  margin-top: 0;
  padding: 0 0 54px;
  color: var(--ink);
}

.workflow-merged .steps {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin-top: 0;
  border: 0;
  align-items: stretch;
}

.workflow-merged .steps article {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  background: color-mix(in srgb,var(--surface) 72%,transparent);
  box-shadow: 0 12px 34px color-mix(in srgb,var(--shadow) 28%,transparent);
}

.workflow-merged .steps article:nth-child(2) {
  background: color-mix(in srgb,var(--accent) 10%,var(--surface));
}

.workflow-merged .steps article:nth-child(5) {
  background: color-mix(in srgb,var(--ink) 5%,var(--surface));
}

.workflow-merged .steps article:nth-child(6) {
  background: color-mix(in srgb,var(--accent) 8%,var(--surface));
}

.workflow-merged .step-symbol {
  margin: 18px 0 26px;
}

.workflow-merged .steps p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .workflow-merged {
    padding-bottom: 34px;
  }

  .workflow-merged .steps {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
  }

  .workflow-merged .steps article,
  .workflow-merged .steps article:nth-child(n) {
    grid-column: span 1;
    min-height: 260px;
    padding: 26px;
    transform: none;
  }
}

@media (max-width: 600px) {
  .workflow-merged {
    margin: 0;
    padding-bottom: 18px;
  }

  .workflow-merged .steps {
    grid-template-columns: 1fr;
  }

  .workflow-merged .steps article,
  .workflow-merged .steps article:nth-child(n) {
    min-height: 225px;
    padding: 24px;
  }
}

/* ================================================================
   FORMATS 3D
   Une lecture technique compacte, intégrée au rythme éditorial.
   ================================================================ */

.formats-intro {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: end;
}

.formats-intro p {
  max-width: 500px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.problem-grid .model-grouping {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.problem-grid .model-grouping strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.025em;
}

.format-board {
  margin-top: 28px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.format-color-key {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  padding-bottom: 28px;
  color: var(--muted);
  font: 500 8px DM Mono,monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.format-color-key > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.format-color-key i {
  font: 600 12px Manrope,Arial,sans-serif;
  letter-spacing: -.04em;
}

.preview-color {
  color: var(--accent);
}

.print-mark {
  color: var(--ink);
  font-family: Georgia,serif !important;
  font-size: 23px !important;
}

.format-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px clamp(14px,1.8vw,28px);
}

.format-list span {
  position: relative;
  color: color-mix(in srgb,var(--ink) 58%,transparent);
  font: 500 clamp(30px,3.9vw,56px)/1.04 Manrope,Arial,sans-serif;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.format-list .is-preview {
  color: var(--accent);
}

.format-list .is-print {
  padding-right: .18em;
}

.format-list .is-print::after {
  content: '*';
  position: absolute;
  top: -.12em;
  right: 0;
  color: var(--ink);
  font: 400 .58em Georgia,serif;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .formats-intro {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .format-board {
    margin-top: 28px;
  }
}

@media (max-width: 600px) {
  .format-board {
    margin-top: 24px;
    padding-top: 20px;
  }

  .format-list span {
    font-size: clamp(29px,9.2vw,40px);
  }

}
