/* ==========================================================================
   AYOUB KHAYATI — ayoubkh.com
   Design system : « Cabinet technologique »
   Encre profonde · Papier chaud · Cuivre brûlé
   --------------------------------------------------------------------------
   01. Tokens
   02. Reset & base
   03. Typographie
   04. Mise en page
   05. Composants
   06. En-tête / Navigation
   07. Hero & visuel conceptuel
   08. Blocs de contenu
   09. Formulaire
   10. Pied de page
   11. Mouvement
   12. Responsive & préférences
   ========================================================================== */

/* ==========================================================================
   01. TOKENS
   ========================================================================== */

:root {
  /* — Palette brute — */
  --c-ink-950: #070809;
  --c-ink-900: #0b0d10;
  --c-ink-850: #101317;
  --c-ink-800: #15181d;
  --c-ink-700: #1d2127;
  --c-ink-600: #2a2f37;

  --c-paper-50: #faf9f6;
  --c-paper-100: #f4f2ed;
  --c-paper-200: #ebe8e1;
  --c-paper-300: #dfdbd2;

  --c-copper-500: #a64b25;
  --c-copper-600: #8e3e1e;
  --c-copper-400: #cf6a3f;
  --c-copper-300: #e2794e;

  --c-petrol: #21454a;

  /* — Rôles sémantiques : thème clair (défaut) — */
  --bg: var(--c-paper-100);
  --bg-alt: var(--c-paper-50);
  --bg-deep: var(--c-ink-900);
  --surface: #fffefb;
  --surface-2: var(--c-paper-200);

  --fg: #12151a;
  --fg-strong: #05070a;
  --fg-muted: #565d67;
  --fg-faint: #8a9099;
  --fg-on-deep: #eceae5;

  --accent: var(--c-copper-500);
  --accent-hover: var(--c-copper-600);
  --accent-soft: rgba(166, 75, 37, 0.09);
  --accent-line: rgba(166, 75, 37, 0.32);

  --line: rgba(18, 21, 26, 0.13);
  --line-strong: rgba(18, 21, 26, 0.24);
  --line-faint: rgba(18, 21, 26, 0.07);

  --shadow-sm: 0 1px 2px rgba(9, 11, 14, 0.04), 0 2px 8px rgba(9, 11, 14, 0.04);
  --shadow-md: 0 2px 4px rgba(9, 11, 14, 0.04), 0 14px 40px -12px rgba(9, 11, 14, 0.14);
  --shadow-lg: 0 4px 10px rgba(9, 11, 14, 0.05), 0 34px 80px -28px rgba(9, 11, 14, 0.28);

  /* — Typographie — */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino,
    "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    Consolas, monospace;

  --fs-display: clamp(2.35rem, 1.45rem + 3.4vw, 3.85rem);
  --fs-h1: clamp(2.3rem, 1.5rem + 3.1vw, 3.9rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.1vw, 3rem);
  --fs-h3: clamp(1.18rem, 1.06rem + 0.5vw, 1.42rem);
  --fs-h4: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-lead: clamp(1.06rem, 1rem + 0.42vw, 1.28rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.6875rem;

  /* — Rythme — */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --measure: 68ch;
  --container: 1240px;
  --container-wide: 1440px;

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.42s;

  --header-h: 72px;
  color-scheme: light;
}

/* — Rôles sémantiques : thème sombre — */
[data-theme="dark"] {
  --bg: var(--c-ink-900);
  --bg-alt: var(--c-ink-850);
  --bg-deep: var(--c-ink-950);
  --surface: #14171c;
  --surface-2: #1a1e24;

  --fg: #e7e5e0;
  --fg-strong: #fbfaf8;
  --fg-muted: #9ca3ac;
  --fg-faint: #6d747d;
  --fg-on-deep: #e7e5e0;

  --accent: var(--c-copper-300);
  --accent-hover: var(--c-copper-400);
  --accent-soft: rgba(226, 121, 78, 0.11);
  --accent-line: rgba(226, 121, 78, 0.34);

  --line: rgba(231, 229, 224, 0.13);
  --line-strong: rgba(231, 229, 224, 0.26);
  --line-faint: rgba(231, 229, 224, 0.07);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 14px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.3), 0 34px 80px -28px rgba(0, 0, 0, 0.75);

  color-scheme: dark;
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection {
  background: var(--accent);
  color: #fff;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--fg-strong);
  color: var(--bg);
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: var(--sp-4);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   03. TYPOGRAPHIE
   ========================================================================== */

h1,
h2,
h3,
h4,
h5 {
  color: var(--fg-strong);
  font-weight: 400;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.018em;
  line-height: 1.07;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 550;
  letter-spacing: -0.011em;
  line-height: 1.28;
}

h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 550;
  color: var(--fg-strong);
}

em {
  font-style: italic;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.56;
  color: var(--fg-muted);
  max-width: 60ch;
  letter-spacing: -0.006em;
}

.prose {
  max-width: var(--measure);
}

.prose p + p {
  margin-top: 1.1em;
}

.prose > * + h3 {
  margin-top: 2.4em;
}

.prose h3 + p {
  margin-top: 0.7em;
}

.text-muted {
  color: var(--fg-muted);
}

.text-sm {
  font-size: var(--fs-sm);
}

/* — Libellé mono : la « signature technique » du site — */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

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

.label::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

.label--bare::before {
  display: none;
}

.label-index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* — Accent serif italique pour les mots-clés de titres — */
.accent-italic {
  font-style: italic;
  color: var(--accent);
}

/* ==========================================================================
   04. MISE EN PAGE
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: 880px;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

.section--alt {
  background: var(--bg-alt);
}

.section--deep {
  background: var(--bg-deep);
  color: var(--fg-on-deep);
}

.section--deep h2,
.section--deep h3,
.section--deep h4 {
  color: #fbfaf8;
}

.section--deep .lead,
.section--deep .text-muted {
  color: #a9aeb5;
}

.section--deep {
  --line: rgba(255, 255, 255, 0.12);
  --line-faint: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.24);
  --fg-muted: #a9aeb5;
  --fg-faint: #7c828a;
  --accent: var(--c-copper-300);
  --surface: rgba(255, 255, 255, 0.025);
}

.section-rule {
  border-top: 1px solid var(--line);
}

/* En-tête de section : filet + libellé + titre */
.section-head {
  display: grid;
  gap: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-strong);
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--sp-7);
    align-items: start;
  }
  .section-head__aside {
    padding-top: 0.5rem;
  }
}

.section-head h2 {
  margin-top: 0.35em;
  max-width: 22ch;
}

.section-head--center {
  text-align: center;
  justify-items: center;
  border-top: 0;
  padding-top: 0;
}

.section-head--center h2 {
  max-width: 26ch;
}

.grid {
  display: grid;
  gap: var(--sp-6);
}

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .split--sidebar {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  }
  .split--lead {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.stack {
  display: grid;
  align-content: start;
}

.stack > * + * {
  margin-top: var(--sp-4);
}

.stack--lg > * + * {
  margin-top: var(--sp-6);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* ==========================================================================
   05. COMPOSANTS
   ========================================================================== */

/* — Boutons — */
.btn {
  --btn-bg: var(--fg-strong);
  --btn-fg: var(--bg);
  --btn-line: var(--fg-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.92em 1.5em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.32s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--primary {
  --btn-bg: var(--accent);
  --btn-line: var(--accent);
  --btn-fg: #fff;
}

.btn--primary:hover {
  --btn-bg: var(--accent-hover);
  --btn-line: var(--accent-hover);
}

[data-theme="dark"] .btn--primary {
  --btn-fg: #1a0d07;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg-strong);
  --btn-line: var(--line-strong);
}

.btn--ghost:hover {
  --btn-line: var(--fg-strong);
  box-shadow: none;
}

.btn--on-deep {
  --btn-bg: transparent;
  --btn-fg: #fbfaf8;
  --btn-line: rgba(255, 255, 255, 0.28);
}

.btn--on-deep:hover {
  --btn-line: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.btn--block {
  width: 100%;
}

/* — Lien texte animé — */
.link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  color: var(--fg-strong);
  font-weight: 500;
  font-size: var(--fs-sm);
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.25s var(--ease), background-size 0.35s var(--ease-out);
}

.link:hover {
  color: var(--accent);
}

.link--reveal {
  background-size: 0% 1px;
}

.link--reveal:hover,
.link--reveal:focus-visible {
  background-size: 100% 1px;
}

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

.link__arrow {
  display: inline-block;
  font-family: var(--font-mono);
  transition: transform 0.3s var(--ease-out);
}

.link:hover .link__arrow {
  transform: translateX(3px);
}

/* — Étiquette / puce technique — */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.38em 0.7em;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* — Carte — */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.4rem, 1rem + 1.2vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card--link:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card--flat {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: var(--sp-5) 0 0;
}

/* — Liste à filets, numérotée — */
.rule-list {
  border-top: 1px solid var(--line);
}

.rule-list > li {
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-5);
}

.rule-item {
  display: grid;
  gap: var(--sp-2);
}

@media (min-width: 760px) {
  .rule-item {
    grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.3fr);
    gap: var(--sp-5);
    align-items: baseline;
  }
}

/* — Liste à cases cochées — */
.check-list {
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent-line);
  border-radius: 1px;
  background: var(--accent-soft);
}

.check-list--dash li::before {
  top: 0.78em;
  width: 10px;
  height: 1px;
  border: 0;
  background: var(--accent);
  opacity: 0.7;
  border-radius: 0;
}

/* — Bloc de chiffres / engagements — */
.stat-row {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (min-width: 700px) {
  .stat-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.stat {
  background: var(--bg);
  padding: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.section--alt .stat {
  background: var(--bg-alt);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}

.stat__label {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  line-height: 1.5;
}

/* — Citation / manifeste — */
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.15rem + 1.7vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -0.017em;
  color: var(--fg-strong);
  max-width: 34ch;
  text-wrap: balance;
}

/* — Accordéon (services, FAQ) — */
.accordion {
  border-top: 1px solid var(--line-strong);
}

.acc {
  border-bottom: 1px solid var(--line);
}

.acc__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 1.6rem;
  gap: var(--sp-3);
  align-items: center;
  padding: clamp(1.1rem, 0.9rem + 0.6vw, 1.6rem) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--fg-strong);
  transition: color 0.25s var(--ease);
}

.acc__btn:hover {
  color: var(--accent);
}

.acc__title {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 550;
  letter-spacing: -0.012em;
}

.acc__sign {
  position: relative;
  width: 14px;
  height: 14px;
  justify-self: end;
}

.acc__sign::before,
.acc__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease);
}

.acc__sign::after {
  transform: rotate(90deg);
}

.acc[data-open="true"] .acc__sign::after {
  transform: rotate(0deg);
  opacity: 0;
}

.acc__panel {
  overflow: hidden;
  height: 0;
  transition: height 0.45s var(--ease-out);
}

.acc__inner {
  padding-bottom: var(--sp-6);
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 860px) {
  .acc__inner {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: var(--sp-3);
  }
  .acc__inner > * {
    grid-column: 2;
  }
}

/* — Table de comparaison / livrables — */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  text-align: left;
}

.spec-table th,
.spec-table td {
  padding: 0.95rem 1rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table thead th {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 500;
  border-bottom-color: var(--line-strong);
}

.spec-table td:first-child {
  color: var(--fg-strong);
  font-weight: 500;
  padding-right: 2rem;
}

.spec-table td:not(:first-child) {
  color: var(--fg-muted);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 640px;
}

/* — Bandeau de domaines (filet horizontal) — */
.domain-strip {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: var(--sp-7);
}

.domain-strip li {
  flex: 1 1 auto;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* ==========================================================================
   06. EN-TÊTE / NAVIGATION
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg); /* repli si color-mix() n'est pas pris en charge */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
}

@supports not (backdrop-filter: blur(1px)) {
  .header {
    background: var(--bg);
  }
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

/* — Logo — */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--fg-strong);
  transition: color 0.3s var(--ease);
}

.brand__mark .mark-a,
.brand__mark .mark-k {
  transition: stroke 0.4s var(--ease), transform 0.5s var(--ease-out);
}

.brand:hover .mark-k {
  stroke: var(--accent);
}

.brand__text {
  display: grid;
  line-height: 1;
}

/* Signature courte « AYOUB KH » : capitales espacées, la seconde
   moitié en poids léger pour créer la respiration du monogramme. */
.brand__name {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-strong);
}

.brand__name em {
  font-style: normal;
  font-weight: 300;
  color: var(--fg-muted);
}

.brand__kicker {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 4px;
}

/* — Navigation principale — */
.nav {
  display: none;
}

@media (min-width: 1000px) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 0.4rem + 1.4vw, 2.1rem);
  }
}

.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 450;
  color: var(--fg-muted);
  padding-block: 0.3rem;
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--fg-strong);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}

.header__actions .btn {
  display: none;
}

@media (min-width: 1000px) {
  .header__actions .btn {
    display: inline-flex;
    padding: 0.7em 1.15em;
  }
}

/* — Bouton icône (thème, menu) — */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg-strong);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.icon-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.menu-btn {
  display: inline-grid;
}

@media (min-width: 1000px) {
  .menu-btn {
    display: none;
  }
}

.menu-btn__bars {
  position: relative;
  width: 16px;
  height: 10px;
}

.menu-btn__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.2s var(--ease);
}

.menu-btn__bars span:nth-child(1) {
  top: 0;
}
.menu-btn__bars span:nth-child(2) {
  bottom: 0;
}

.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) {
  transform: translateY(4.25px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) {
  transform: translateY(-4.25px) rotate(-45deg);
}

/* — Menu mobile — */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: var(--sp-6) 0 var(--sp-8);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease-out),
    visibility 0.3s;
}

.mobile-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (min-width: 1000px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu__list {
  border-top: 1px solid var(--line);
}

.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--fg-strong);
}

.mobile-menu__list a[aria-current="page"] {
  color: var(--accent);
}

.mobile-menu__list .label-index {
  font-size: 0.6875rem;
  opacity: 0.7;
}

.mobile-menu__foot {
  margin-top: var(--sp-6);
  display: grid;
  gap: var(--sp-4);
}

/* ==========================================================================
   07. HERO & VISUEL CONCEPTUEL
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 7rem);
  overflow: hidden;
}

/* Grille technique de fond, très discrète */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-faint) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
  mask-image: radial-gradient(120% 80% at 70% 0%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 70% 0%, #000 15%, transparent 78%);
}

.hero__glow {
  position: absolute;
  top: -22vw;
  right: -12vw;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  pointer-events: none;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 14%, transparent) 0%,
    transparent 62%
  );
  opacity: 0.75;
}

[data-theme="dark"] .hero__glow {
  opacity: 0.5;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 4.5rem);
}

@media (min-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: center;
    gap: clamp(3rem, 1rem + 4vw, 5.5rem);
  }
}

.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.026em;
  line-height: 1.04;
  margin-top: var(--sp-5);
  max-width: 26ch;
}

.hero h1 .line {
  display: block;
}

/* Sous-titre de positionnement : serif, entre le titre et le chapô */
.hero__claim {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(1.06rem, 0.98rem + 0.42vw, 1.3rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.hero__lead {
  margin-top: var(--sp-4);
  max-width: 52ch;
}

.hero__cta {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__meta {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

/* — Panneau conceptuel « fiche d'audit » — */
.panel-stack {
  position: relative;
  perspective: 1400px;
}

.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}

.panel__title {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.panel__ref {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
}

.panel__body {
  padding: 1.1rem 1.1rem 1.25rem;
}

.pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: pulse 2.8s var(--ease-out) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Lignes de contrôle avec jauge segmentée */
.audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line-faint);
}

.audit-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.audit-row__name {
  font-size: var(--fs-xs);
  color: var(--fg);
  letter-spacing: -0.003em;
}

.audit-row__note {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
  display: block;
  margin-top: 2px;
}

.meter {
  display: flex;
  gap: 3px;
  flex: none;
}

.meter i {
  display: block;
  width: 15px;
  height: 5px;
  border-radius: 1px;
  background: var(--line);
  transform: scaleX(0.2);
  transform-origin: left;
  opacity: 0;
  animation: meterIn 0.55s var(--ease-out) forwards;
}

.meter i.on {
  background: var(--accent);
}

.meter i:nth-child(1) {
  animation-delay: 0.15s;
}
.meter i:nth-child(2) {
  animation-delay: 0.22s;
}
.meter i:nth-child(3) {
  animation-delay: 0.29s;
}
.meter i:nth-child(4) {
  animation-delay: 0.36s;
}
.meter i:nth-child(5) {
  animation-delay: 0.43s;
}

@keyframes meterIn {
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Carte flottante « feuille de route » */
.panel--float {
  position: relative;
  margin: -1.5rem 0 0 auto;
  width: min(78%, 340px);
  background: var(--bg-deep);
  color: var(--fg-on-deep);
  border-color: rgba(255, 255, 255, 0.14);
  z-index: 2;
}

.panel--float .panel__bar {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.panel--float .panel__title {
  color: #b6bbc2;
}

.panel--float .panel__ref {
  color: #7c828a;
}

.roadmap {
  display: grid;
  gap: 0.6rem;
}

.roadmap li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  font-size: var(--fs-xs);
  color: #c6cad0;
}

.roadmap__step {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--c-copper-300);
  border: 1px solid rgba(226, 121, 78, 0.35);
  border-radius: 2px;
  padding: 0.2em 0.42em;
  line-height: 1;
}

.roadmap__track {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 0.9rem;
  position: relative;
  overflow: hidden;
}

.roadmap__track::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  background: var(--c-copper-300);
  transform-origin: left;
  animation: track 1.4s var(--ease-out) 0.5s forwards;
  transform: scaleX(0);
}

@keyframes track {
  to {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   08. BLOCS DE CONTENU
   ========================================================================== */

/* — Grille d'expertises (bordures partagées, pas de cartes flottantes) — */
.expertise-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (min-width: 680px) {
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .expertise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.expertise {
  position: relative;
  background: var(--bg);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.15rem);
  display: grid;
  gap: 0.6rem;
  align-content: start;
  transition: background-color 0.35s var(--ease);
}

.section--alt .expertise {
  background: var(--bg-alt);
}

.expertise::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.expertise:hover::after {
  transform: scaleX(1);
}

.expertise:hover {
  background: var(--surface);
}

.expertise__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: 0.3rem;
}

.expertise h3 {
  font-size: 1.08rem;
}

.expertise p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

.expertise__tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.expertise__tags li {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* — Méthode : étapes à filets verticaux — */
.method {
  display: grid;
  gap: 0;
  counter-reset: step;
}

@media (min-width: 900px) {
  .method {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 1px solid var(--line);
  }
}

.step {
  position: relative;
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .step {
    padding: var(--sp-6) clamp(1.2rem, 1rem + 1vw, 2rem);
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }
}

.step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-4);
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

.step__out {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-faint);
  line-height: 1.7;
}

/* — Frise verticale détaillée (page Méthode) — */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 2rem;
  width: 1px;
  background: var(--line);
}

@media (min-width: 860px) {
  .timeline::before {
    left: 8.5rem;
  }
}

.phase {
  position: relative;
  padding: 0 0 clamp(2.5rem, 2rem + 2vw, 4rem) var(--sp-6);
}

@media (min-width: 860px) {
  .phase {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    padding-left: 0;
    gap: clamp(2rem, 1rem + 2vw, 3.5rem);
  }
  .phase__body {
    padding-left: 0;
  }
}

.phase__marker {
  position: relative;
}

.phase__marker::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-6));
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  transform: translateX(-4px);
}

@media (min-width: 860px) {
  .phase__marker::before {
    left: auto;
    right: -3.5rem;
    transform: translateX(50%);
  }
}

.section--alt .phase__marker::before {
  background: var(--bg-alt);
}

.phase__num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.phase__dur {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--fg-faint);
}

.phase__body h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  margin-bottom: 0.6rem;
}

.phase__body > p {
  color: var(--fg-muted);
  max-width: 58ch;
}

.phase__cols {
  margin-top: var(--sp-5);
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 620px) {
  .phase__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mini-head {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

/* — Missions / cas d'usage : dossiers éditoriaux — */
.case {
  display: grid;
  gap: var(--sp-5);
  padding-block: clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  border-top: 1px solid var(--line);
}

@media (min-width: 940px) {
  .case {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 1rem + 3vw, 4rem);
  }
}

.case__aside {
  display: grid;
  gap: var(--sp-4);
  align-content: start;
}

.case__ref {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.case h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.95rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.14;
}

.case__profile {
  display: grid;
  gap: 0.5rem;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}

.case__profile dt {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.case__profile dd {
  margin: 0 0 0.55rem;
}

.case__body {
  display: grid;
  gap: var(--sp-5);
}

.case__block h4 {
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.case__block p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

.case__result {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.case__result p {
  color: var(--fg);
}

/* — Référence client nommée (avec accord écrit) — */
.reference {
  display: grid;
  gap: var(--sp-5);
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem) 0 clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem)
    clamp(1.2rem, 1rem + 1vw, 2rem);
  border-left: 2px solid var(--accent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .reference {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    align-items: start;
  }
}

.reference__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.05rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--fg-strong);
  margin-top: 0.55rem;
}

.reference__meta {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-faint);
  line-height: 1.8;
}

.reference__lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  letter-spacing: -0.006em;
  color: var(--fg);
}

.reference__lead + p {
  margin-top: 0.9rem;
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

.reference__tags {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.reference__note {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--fg-faint);
}

/* — Bloc « pourquoi » alterné — */
.diff {
  display: grid;
  gap: 1px;
  background: var(--line);
}

@media (min-width: 780px) {
  .diff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.diff__cell {
  background: var(--bg);
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem);
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.section--alt .diff__cell {
  background: var(--bg-alt);
}

.section--deep .diff,
.section--deep .stat-row {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
}

.section--deep .diff__cell,
.section--deep .stat {
  background: var(--bg-deep);
}

.diff__cell p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

/* — CTA de fin de page — */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(90% 120% at 15% 50%, #000 5%, transparent 70%);
  -webkit-mask-image: radial-gradient(90% 120% at 15% 50%, #000 5%, transparent 70%);
}

.cta-band__inner {
  position: relative;
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
  }
}

.cta-band h2 {
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.15rem);
  max-width: 24ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* — Fil d'Ariane — */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.55rem;
  opacity: 0.5;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
}

/* — En-tête de page interne — */
.page-head {
  position: relative;
  padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-head__inner {
  position: relative;
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 960px) {
  .page-head__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    align-items: end;
  }
}

.page-head h1 {
  margin-top: var(--sp-5);
  max-width: 20ch;
}

.page-head__lead {
  padding-bottom: 0.4rem;
}

/* — Index latéral collant (page Services) — */
.side-index {
  display: none;
}

@media (min-width: 1060px) {
  .side-index {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
    align-self: start;
  }
}

.side-index__list {
  border-top: 1px solid var(--line);
}

.side-index__list a {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.side-index__list a:hover,
.side-index__list a.is-active {
  color: var(--fg-strong);
}

.side-index__list a.is-active .label-index {
  color: var(--accent);
}

/* — Bloc service détaillé — */
.service {
  padding-block: clamp(3rem, 2.2rem + 3vw, 5.5rem);
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}

.service:first-child {
  padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.service__head {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.service__head h2 {
  font-size: clamp(1.65rem, 1.3rem + 1.6vw, 2.5rem);
  max-width: 24ch;
}

.service__grid {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 900px) {
  .service__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  }
}

.service__panel {
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.service__panel + .service__panel {
  margin-top: var(--sp-4);
}

.deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

/* — Bandeau de réassurance — */
.assurance {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

@media (min-width: 760px) {
  .assurance {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.assurance__cell {
  background: var(--bg);
  padding: var(--sp-5) var(--sp-5) var(--sp-5) 0;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

@media (min-width: 760px) {
  .assurance__cell {
    padding: var(--sp-5) var(--sp-5);
  }
  .assurance__cell:first-child {
    padding-left: 0;
  }
}

.section--alt .assurance__cell {
  background: var(--bg-alt);
}

.assurance__cell h4 {
  font-size: 0.9375rem;
}

.assurance__cell p {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  line-height: 1.6;
}

/* — Profil / à propos — */
.portrait {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  display: grid;
  gap: var(--sp-4);
}

.portrait__mark {
  width: 56px;
  height: 56px;
  color: var(--fg-strong);
}

/* Portrait photographique, en remplacement du monogramme */
.portrait__photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  filter: saturate(0.92) contrast(1.02);
}

.portrait__rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.portrait__rows div {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: var(--sp-4);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-faint);
  font-size: var(--fs-xs);
}

.portrait__rows dt {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding-top: 0.25em;
}

.portrait__rows dd {
  margin: 0;
  color: var(--fg);
  text-align: right;
}

/* — Valeurs — */
.values {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (min-width: 720px) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.value {
  background: var(--bg);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.section--alt .value {
  background: var(--bg-alt);
}

.value p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

/* ==========================================================================
   09. FORMULAIRE
   ========================================================================== */

.form {
  display: grid;
  gap: var(--sp-5);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field > label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--fg-strong);
  letter-spacing: -0.002em;
}

.field .req {
  color: var(--accent);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--fg-strong);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease);
  appearance: none;
}

.field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.3' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field--row {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 620px) {
  .field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4);
  }
}

.field__hint {
  font-size: 0.75rem;
  color: var(--fg-faint);
}

.field__error {
  font-size: 0.75rem;
  color: var(--accent);
  display: none;
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea,
.field[data-invalid="true"] select {
  border-color: var(--accent);
}

.field[data-invalid="true"] .field__error,
.consent[data-invalid="true"] .field__error {
  display: block;
}

.consent[data-invalid="true"] .field__error {
  margin-top: 0.3rem;
}

.consent[data-invalid="true"] input[type="checkbox"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 0.22rem;
  accent-color: var(--accent);
  cursor: pointer;
  flex: none;
}

.consent label {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

.form__status {
  font-size: var(--fs-xs);
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  color: var(--fg-strong);
  display: none;
}

.form__status[data-visible="true"] {
  display: block;
}

/* — Coordonnées — */
.contact-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.contact-list > li {
  display: grid;
  gap: 0.3rem;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt,
.contact-list__k {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.contact-list__v {
  font-size: 1.05rem;
  color: var(--fg-strong);
  font-weight: 450;
  letter-spacing: -0.008em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3em 0.55em;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--fg-faint);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

/* ==========================================================================
   10. PIED DE PAGE
   ========================================================================== */

.footer {
  background: var(--bg-deep);
  color: var(--fg-on-deep);
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  padding-bottom: var(--sp-6);
  --line: rgba(255, 255, 255, 0.12);
  --line-faint: rgba(255, 255, 255, 0.07);
  --fg-muted: #9aa0a8;
  --fg-faint: #757b83;
  --fg-strong: #fbfaf8;
  --accent: var(--c-copper-300);
}

.footer__top {
  display: grid;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.85fr));
    gap: clamp(2rem, 1rem + 3vw, 4rem);
  }
}

.footer .brand__mark {
  color: #fbfaf8;
}

.footer .brand__name {
  color: #fbfaf8;
}

.footer .brand__name em {
  color: #9aa0a8;
}

.footer__baseline {
  margin-top: var(--sp-5);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.4;
  color: #d8d5d0;
  max-width: 30ch;
  letter-spacing: -0.012em;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--sp-4);
}

.footer__col ul {
  display: grid;
  gap: 0.65rem;
}

.footer__col a,
.footer__col span {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  transition: color 0.22s var(--ease);
}

.footer__col a:hover {
  color: #fbfaf8;
}

.footer__bottom {
  padding-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--fg-faint);
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__bottom a:hover {
  color: #fbfaf8;
}

/* Nom complet : signature discrète, réservée au bas du pied de page */
.footer__signature {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.footer__signature strong {
  font-weight: 500;
  color: #cfccc6;
  letter-spacing: 0.01em;
}

.footer__locale {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer__locale span[aria-current] {
  color: #fbfaf8;
}

.footer__locale i {
  opacity: 0.35;
  font-style: normal;
}

/* ==========================================================================
   11. MOUVEMENT
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal="line"] {
  transform: none;
  clip-path: inset(0 100% 0 0);
  opacity: 1;
  transition: clip-path 0.9s var(--ease-out);
}

[data-reveal="line"].is-in {
  clip-path: inset(0 0 0 0);
}

.hero h1 .line {
  overflow: hidden;
}

.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: lineUp 0.95s var(--ease-out) forwards;
}

.hero h1 .line:nth-child(1) > span {
  animation-delay: 0.05s;
}
.hero h1 .line:nth-child(2) > span {
  animation-delay: 0.16s;
}
.hero h1 .line:nth-child(3) > span {
  animation-delay: 0.27s;
}

@keyframes lineUp {
  to {
    transform: none;
  }
}

.fade-up {
  animation: fadeUp 0.9s var(--ease-out) both;
}

.d-1 {
  animation-delay: 0.12s;
}
.d-2 {
  animation-delay: 0.24s;
}
.d-3 {
  animation-delay: 0.36s;
}
.d-4 {
  animation-delay: 0.48s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   12. RESPONSIVE & PRÉFÉRENCES
   ========================================================================== */

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .panel--float {
    width: 100%;
    margin-left: 0;
  }
  .domain-strip li {
    flex: 1 1 100%;
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--line-faint);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .hero h1 .line > span {
    transform: none;
  }
}

@media print {
  .header,
  .footer,
  .mobile-menu,
  .cta-band,
  .hero__glow,
  .hero__grid {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.7em;
    color: #555;
  }
}
