/* ==========================================================================
   Nodaly Digital — feuille de styles
   Tokens et composants reproduits depuis l'export Claude Design (Bento Grid).
   ========================================================================== */

/* --------------------------------------------------------------- 1. Polices
   Auto-hébergées (pas d'appel à Google Fonts : RGPD + performance).
   Manrope est une police variable : un seul fichier couvre les graisses 400-800.
   --------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- 2. Tokens */
:root {
  /* Surfaces */
  --bg: #0A0A0B;
  --surface: #111113;
  --surface-sunken: #0E0E10;
  --surface-deep: #0B0B0C;
  --surface-raised: #17171A;
  --surface-pill: #1C1C20;
  --surface-row: #141416;

  /* Bordures */
  --border: #232327;
  --border-strong: #2A2A2F;
  --border-hover: #3A3A41;
  --ring-outer: #1E1E22;
  --ring-inner: #26262A;

  /* Accent */
  --accent: #FF5A1F;
  --accent-bright: #FF6A2B;
  --accent-soft: #FF8A57;
  --accent-tile-bg: #1C1410;
  --accent-tile-border: #3A2013;
  --accent-glow-16: rgba(255, 90, 31, .16);
  --accent-glow-18: rgba(255, 90, 31, .18);
  --accent-glow-20: rgba(255, 90, 31, .20);
  --accent-glow-22: rgba(255, 90, 31, .22);
  --accent-glow-00: rgba(255, 90, 31, 0);

  /* Texte */
  --text: #F4F4F5;
  --text-soft: #D4D4D8;
  --text-muted: #A1A1AA;
  --text-dim: #8B8B93;
  --text-placeholder: #5E5E66;

  /* États */
  --ok: #34D399;
  --ok-glow: rgba(52, 211, 153, .55);
  --ok-glow-0: rgba(52, 211, 153, 0);
  --danger: #F87171;

  /* Rayons */
  --r-card: 24px;
  --r-inner: 18px;
  --r-tile: 16px;
  --r-field: 14px;
  --r-btn: 12px;
  --r-chip: 10px;
  --r-pill: 999px;

  /* Rythme */
  --gap: 16px;
  --shell-max: 1440px;

  /* Typo fluide : les valeurs hautes correspondent au dessin en 1440 px */
  --fs-h1: clamp(2.25rem, 4.72vw, 4.25rem);
  --fs-h2: clamp(1.5rem, 2.1vw, 1.875rem);
  --fs-h2-sm: clamp(1.375rem, 1.95vw, 1.75rem);
  --fs-h2-lg: clamp(1.75rem, 2.8vw, 2.5rem);
  --fs-lead: clamp(1rem, 1.25vw, 1.125rem);
  --fs-eyebrow: clamp(.6875rem, .9vw, .8125rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------- 3. Réglages */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

a { color: var(--accent-bright); }
a:hover { color: var(--accent-soft); }

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

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

/* Les cibles d'ancre ne passent plus sous la barre collante */
#accueil, #services, #produits, #portfolio, #apropos, #contact, #contenu {
  scroll-margin-top: 84px;
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 100;
  transform: translate(-50%, -180%);
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--r-btn);
  transition: transform .18s var(--ease);
}
.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--bg);
}

/* ------------------------------------------------------- 4. Coquille, grille */
.shell {
  position: relative;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 32px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Halo diffus en haut de page */
.shell::before {
  content: '';
  position: absolute;
  left: 12.5%;
  top: -260px;
  /* 12.5% + 87.5% = 100% : le halo s'arrête pile au bord de la coquille.
     Une largeur plus grande le ferait déborder et créerait une barre de
     défilement horizontale sous 1000 px. */
  width: min(900px, 87.5%);
  height: 620px;
  background: radial-gradient(closest-side, var(--accent-glow-16), var(--accent-glow-00));
  pointer-events: none;
  z-index: 0;
}

.bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

/* Empans de la grille bento du dessin */
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* Hauteurs de rangée du dessin, converties en plancher souple */
.bento--hero    { min-height: 470px; }
.bento--offer   { min-height: 430px; }
.bento--proof   { min-height: 320px; }
.bento--contact { min-height: 400px; }

/* -------------------------------------------------------------- 5. Cartes */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.card > * { position: relative; z-index: 1; }
.card--pad-lg { padding: 40px; }
.card--pad-md { padding: 28px; }
.card--pad-contact { padding: 36px; }
.card--split { justify-content: space-between; }
.card--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  justify-content: space-between;
}

/* Décors internes : anneaux et halos */
.decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}
.decor--ring-1 {
  right: -120px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid var(--ring-outer);
}
.decor--ring-2 {
  right: -60px;
  bottom: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid var(--ring-inner);
}
.decor--glow-hero {
  right: 0;
  bottom: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(closest-side, var(--accent-glow-22), var(--accent-glow-00));
}
.decor--glow-tr {
  right: -90px;
  top: -90px;
  width: 340px;
  height: 340px;
  background: radial-gradient(closest-side, var(--accent-glow-16), var(--accent-glow-00));
}
.decor--glow-top {
  left: 50%;
  top: -40px;
  width: 260px;
  height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-glow-18), var(--accent-glow-00));
}
.decor--glow-bl {
  left: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(closest-side, var(--accent-glow-20), var(--accent-glow-00));
}

/* ----------------------------------------------------------- 6. Typographie */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-eyebrow);
  color: var(--accent-bright);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow--dim { color: var(--text-dim); }
.eyebrow--ink { color: inherit; font-weight: 500; }

.headline {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 17ch;
}
.headline .accent { color: var(--accent); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 62ch;
}

.section-title {
  margin-top: 8px;
  font-size: var(--fs-h2);
  letter-spacing: -.025em;
  font-weight: 700;
}
.section-title--sm { font-size: var(--fs-h2-sm); }
.section-title--lg {
  margin-top: 10px;
  font-size: var(--fs-h2-lg);
  letter-spacing: -.03em;
  line-height: 1.05;
}

.card-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 48ch;
}

/* -------------------------------------------------------------- 7. Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover {
  background: var(--accent-bright);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn--ghost {
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 600;
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface-pill);
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.btn--ink {
  align-self: flex-start;
  padding: 12px 18px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.btn--ink:hover {
  background: var(--surface-raised);
  color: var(--text);
  transform: translateY(-2px);
}
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--block { width: 100%; height: 50px; padding: 0; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------- 8. Barre de nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  background: rgba(10, 10, 11, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--r-pill);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface-raised); }
.nav-links a[aria-current='true'] { color: var(--text); background: var(--surface-pill); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-raised); }
.nav-toggle svg { pointer-events: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }

/* ----------------------------------------------------------- 9. Bloc hero */
.hero { justify-content: space-between; gap: 28px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-soft);
}

.dot {
  display: block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ok);
}
.dot--pulse { animation: ndPulse 2s infinite; }

@keyframes ndPulse {
  0%   { box-shadow: 0 0 0 0 var(--ok-glow); }
  70%  { box-shadow: 0 0 0 9px var(--ok-glow-0); }
  100% { box-shadow: 0 0 0 0 var(--ok-glow-0); }
}

.hero-copy { display: flex; flex-direction: column; gap: 20px; }

/* -------------------------------------------------- 10. Colonne de droite */
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack > .card--grow { flex: 1 1 auto; }

.identity { display: flex; align-items: center; gap: 14px; }
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7A2A0E);
  color: var(--bg);
  font-weight: 800;
  font-size: 20px;
}
.identity-name { font-weight: 700; font-size: 17px; }
.identity-role { font-size: 13px; color: var(--text-dim); }

.tile-list { display: flex; flex-direction: column; gap: 10px; }

.tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-field);
  font-size: 14px;
  color: var(--text-soft);
}
.tile svg { flex-shrink: 0; }

.tile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-field);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.tile-link:hover {
  background: var(--surface-pill);
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.tile-link svg { flex-shrink: 0; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}
.chip {
  padding: 8px 14px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-chip);
}

.stack-label { margin-bottom: 14px; }

/* ----------------------------------------------------------- 11. Services */
.services { gap: 22px; }
.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.service:hover { border-color: var(--accent-tile-border); background: #121013; }

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--accent-tile-bg);
  border: 1px solid var(--accent-tile-border);
  border-radius: var(--r-chip);
}
.service-text { min-width: 0; }
.service-name { display: block; font-weight: 700; font-size: 15px; }
.service-desc { display: block; margin-top: 2px; font-size: 13px; color: var(--text-dim); }

/* ------------------------------------------------- 12. Produits micro-SaaS */
.products { gap: 20px; }
.products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.products-more { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.products-more:hover { color: var(--accent-soft); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  flex: 1 1 auto;
}

.mockup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: var(--r-inner);
  transition: border-color .2s var(--ease), transform .25s var(--ease);
}
.mockup:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.mockup-bar { display: flex; gap: 5px; }
.mockup-bar i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.mockup-bar i:nth-child(1) { background: #FF5F57; }
.mockup-bar i:nth-child(2) { background: #FEBC2E; }
.mockup-bar i:nth-child(3) { background: #28C840; }

.mockup-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.mockup-metric-label { font-size: 12px; color: var(--text-dim); }
.mockup-metric-value { font-size: 20px; font-weight: 700; }

.mockup-chart { width: 100%; height: 70px; }

.mockup-rows { display: flex; flex-direction: column; gap: 8px; }
.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface-row);
  border-radius: var(--r-chip);
  font-size: 12px;
}
.state-on { color: var(--ok); }
.state-wait { color: var(--accent-bright); }

.mockup-name { margin-top: auto; font-size: 14px; font-weight: 700; }
.mockup-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
}
.mockup-link:hover { color: var(--accent-bright); }
.mockup-link svg { flex-shrink: 0; color: var(--accent-bright); }
.mockup-desc { font-size: 12px; color: var(--text-dim); }

/* --------------------------------------------------------- 13. Portfolio */
.portfolio-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-tile);
  color: var(--text);
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.portfolio-link:hover {
  background: var(--surface-raised);
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.portfolio-link-inner { display: flex; align-items: center; gap: 14px; min-width: 0; }
.portfolio-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--text);
  border-radius: var(--r-chip);
  color: var(--bg);
  font-weight: 800;
  font-size: 20px;
}
.portfolio-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.portfolio-label strong { font-weight: 700; font-size: 15px; }
.portfolio-label span { font-size: 12px; color: var(--text-dim); }
.portfolio-link svg { flex-shrink: 0; }

/* ------------------------------------------------------------ 14. À propos */
.about-copy { display: flex; flex-direction: column; gap: 10px; }
.about-title {
  font-size: clamp(1.25rem, 1.6vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.about-text { font-size: 14px; line-height: 1.55; color: var(--text-muted); }

/* --------------------------------------------------------------- 15. Audit */
.audit-copy { display: flex; flex-direction: column; gap: 10px; }
.audit-title {
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}

/* ------------------------------------------------------------- 16. Contact */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
}
.contact-details a {
  align-self: flex-start;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}
.contact-details a:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.contact-details .row { display: flex; align-items: center; gap: 8px; }

.form { gap: 14px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--grow { flex: 1 1 auto; }
.field > label { font-size: 12px; color: var(--text-dim); }
.field .req { color: var(--accent-bright); }

.input,
.textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--surface-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-btn);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea {
  height: auto;
  min-height: 110px;
  flex: 1 1 auto;
  padding: 14px;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder { color: var(--text-placeholder); }
.input:hover,
.textarea:hover { border-color: var(--border-hover); }
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-18);
}
.input[aria-invalid='true'],
.textarea[aria-invalid='true'] { border-color: var(--danger); }

.field-error { font-size: 12px; color: var(--danger); }
.field-error:empty { display: none; }

.form-status { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.form-status:empty { display: none; }
.form-status[data-state='ok'] { color: var(--ok); }
.form-status[data-state='error'] { color: var(--danger); }

/* --------------------------------------------------------------- 17. Footer */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--accent-soft); }

/* -------------------------------------------- 17 bis. Pages de contenu texte */
.prose {
  position: relative;
  z-index: 1;
  max-width: 78ch;
}
.prose h1 {
  font-size: var(--fs-h2-lg);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.prose h2 {
  margin-top: 36px;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.prose p,
.prose li {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
.prose ul { margin: 0; padding-left: 20px; }
.prose strong { color: var(--text-soft); font-weight: 600; }
.prose .updated {
  margin-top: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
}
.back-link:hover { color: var(--accent-soft); }

/* ----------------------------------------------------- 18. Apparition douce */
/* Masquage conditionné à la présence de JS : sans script, tout reste visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------- 19. Points de rupture */

/* Écrans intermédiaires : on garde le bento, on resserre les marges */
@media (max-width: 1180px) {
  .shell { padding: 24px 28px 32px; }
  .card { padding: 26px; }
  .card--pad-lg { padding: 30px; }
  .card--pad-contact { padding: 28px; }
  .bento--hero { min-height: 0; }
}

/* Tablette : les rangées se réorganisent, la nav passe en menu */
@media (max-width: 1024px) {
  /* Pas de position:relative ici : .nav est déjà en sticky, qui sert
     d'ancrage au menu déroulant. Le passer en relative le décollerait. */
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 30;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-tile);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  }
  .nav.is-open .nav-links a { padding: 12px 14px; border-radius: var(--r-chip); }
  /* Le CTA de la barre reste masqué : le hero et la carte Audit le portent déjà. */

  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
  .bento--proof .col-3 { grid-column: span 6; }
  .bento--hero .stack { flex-direction: row; }
  .bento--hero .stack > .card { flex: 1 1 0; }
  .bento--offer,
  .bento--proof,
  .bento--contact { min-height: 0; }
  .headline { max-width: 24ch; }
}

/* Mobile */
@media (max-width: 720px) {
  :root { --gap: 12px; --r-card: 20px; }

  .shell { padding: 16px 16px 28px; }

  .card,
  .card--pad-lg,
  .card--pad-md,
  .card--pad-contact { padding: 22px 20px; }

  .bento--hero .stack { flex-direction: column; }
  /* Annule le partage de place du palier tablette : en colonne, une base de 0
     écraserait les cartes à la hauteur d'une ligne et tronquerait leur contenu. */
  .bento--hero .stack > .card { flex: 0 1 auto; }
  .bento--hero .stack > .card--grow { flex: 1 1 auto; }

  .bento--proof .col-3 { grid-column: span 12; }
  .product-grid,
  .form-grid { grid-template-columns: minmax(0, 1fr); }

  .headline { max-width: none; }
  .hero { gap: 22px; }
  .actions .btn { flex: 1 1 auto; }
  .products-head { align-items: flex-start; }
  .footer { justify-content: flex-start; }
  .brand { font-size: 17px; }
}

@media (max-width: 400px) {
  .identity { gap: 12px; }
  .avatar { width: 48px; height: 48px; font-size: 18px; }
}

/* --------------------------------------------- 20. Préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .shell::before,
  .decor,
  .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .card { background: #fff; border-color: #ccc; break-inside: avoid; }
}
