/* ==========================================================================
   MC Pilot — site vitrine public (www.mcpilot.fr)
   Feuille de style autonome : ne partage rien avec l'application.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Couleurs de la charte MC Pilot (issues du kit graphique assets/brand) */
  --ink: #12312c;            /* vert très foncé : titres, fonds sombres */
  --green: #2f5b52;          /* vert moyen : éléments secondaires */
  --accent: #c8783f;         /* orange MC Pilot : accent, avec mesure */
  --accent-soft: #e0a370;    /* orange clair : détails sur fond sombre */
  --cream: #e3ddd2;          /* crème : texte sur fond sombre */

  /* Couleurs dérivées */
  --paper: #faf9f5;          /* fond principal, blanc cassé chaud */
  --paper-shade: #f2efe7;    /* fond de section alterné */
  --surface: #ffffff;        /* cartes et surfaces */
  --text: #223f39;           /* texte courant */
  --text-muted: #50655e;     /* texte secondaire (contraste AA sur paper) */
  --line: #e0dbcf;           /* filets et bordures */
  --line-strong: #c9c2b2;
  --accent-deep: #9d5a26;    /* orange foncé : liens et texte accentué (AA) */
  --ok: #2e6e4e;             /* état conforme dans la maquette produit */

  /* Typographie */
  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Échelle typographique */
  --fs-hero: clamp(1.9rem, 3.4vw, 2.7rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.25rem);
  --fs-h3: clamp(1.15rem, 1.8vw, 1.35rem);
  --fs-body: 1rem;
  --fs-lead: clamp(1.05rem, 1.5vw, 1.2rem);
  --fs-small: 0.875rem;

  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-section: clamp(1.2rem, 3vh, 3rem);
  /* Rayons et ombres */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 18px;
  --radius-card: 0 12px 12px 0;
  --shadow-s: 0 1px 3px rgba(18, 49, 44, 0.08);
  --shadow-m: 0 6px 24px rgba(18, 49, 44, 0.1);

  /* Divers */
  --container: 1160px;
  --header-h: 7.28rem;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

h3, h4 {
  font-weight: 700;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* Accent de caractère : serif italique, à réserver à un segment court */
.accent-em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent-deep);
}

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

img, svg {
  max-width: 100%;
  height: auto;
}

ul {
  padding-left: 1.2rem;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* --------------------------------------------------------------------------
   3. Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--green);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Variante sur fond sombre */
.on-dark .btn-outline {
  color: var(--cream);
  border-color: rgba(227, 221, 210, 0.45);
}

.on-dark .btn-outline:hover {
  border-color: var(--cream);
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. En-tête et navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-s);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 3.88rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  margin-left: auto;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 2px no-repeat;
  transition: background-size 0.2s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  background-size: 100% 2px;
}

.site-nav .btn {
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.5rem;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  display: block;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--space-3) clamp(1rem, 4vw, 2rem) var(--space-4);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-nav .btn {
    margin-top: var(--space-3);
  }
}

/* --------------------------------------------------------------------------
   5. Sections génériques
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--space-section);
}

.section-shade {
  background: var(--paper-shade);
}

.section-dark {
  background: var(--ink);
  color: var(--cream);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark p {
  color: var(--cream);
}

/* Marqueur de section inspiré du symbole directionnel du logo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-3);
  font-size: 1.414rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.section-dark .eyebrow {
  color: var(--accent-soft);
}

.section-intro {
  max-width: 46rem;
}

.section-intro .lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.section-dark .section-intro .lead {
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   6. Hero
   Composition : fond clair chaleureux ; à droite, une photographie
   d'atelier agroalimentaire posée sur un « tapis » vert sombre réduit
   (motif de trajectoire issu du logo), la fenêtre d'application MC Pilot
   au premier plan et deux cartes flottantes sobres.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-grid > *,
.split-grid > *,
.app-frame-body > * {
  min-width: 0;
}

/* Titre : sans-serif compact et contemporain ; l'accent de caractère est
   porté par un segment en serif italique souligné d'un arc de trajectoire. */
.hero-title {
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 3.1vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}

.hero-accent {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  color: var(--accent-deep);
  position: relative;
  white-space: nowrap;
  padding-bottom: 0.1em;
}

.hero-accent svg {
  position: absolute;
  left: 0.05em;
  right: 0.05em;
  bottom: -0.18em;
  width: calc(100% - 0.1em);
  height: 0.3em;
  overflow: visible;
}

.hero-copy .lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 30rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* Ligne de réassurance sous les CTA */
.hero-reassure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0;
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.hero-reassure li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-reassure li + li::before {
  content: "·";
  margin-inline: 0.6rem;
  color: var(--accent);
  font-weight: 700;
}

.hero-reassure-fr {
  font-weight: 600;
  color: var(--ink);
}

.hero-reassure-fr svg {
  color: var(--accent-deep);
  flex-shrink: 0;
}

/* ---- Visuel produit : photo métier + fenêtre d'application ---- */

.hero-visual {
  position: relative;
  padding: 1.5rem 0 3.25rem;
}

.hero-scene {
  position: relative;
}

/* Tapis vert sombre réduit, décalé derrière la photo */
.hero-scene-mat {
  position: absolute;
  top: -1.4rem;
  right: -1.4rem;
  width: 58%;
  height: 72%;
  background: var(--ink);
  border-radius: var(--radius-l);
  transform: rotate(2deg);
  z-index: 0;
  overflow: hidden;
}

.hero-scene-mat svg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: auto;
}

/* Photographie d'atelier : contexte agroalimentaire immédiat */
.hero-photo {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(18, 49, 44, 0.18);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Voile discret en bas à gauche : garantit la lisibilité de la fenêtre */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(205deg, rgba(18, 49, 44, 0) 48%, rgba(18, 49, 44, 0.42) 100%);
}

.hero-app {
  position: absolute;
  z-index: 2;
  left: clamp(-1.5rem, -1.5vw, -0.75rem);
  bottom: -2.25rem;
  width: min(68%, 26rem);
  font-size: 0.74rem;
  box-shadow: 0 24px 56px rgba(18, 49, 44, 0.28);
  border-color: rgba(18, 49, 44, 0.12);
}

.hero-app .app-frame-body {
  grid-template-columns: 7.5rem 1fr;
}

.hero-app .app-row .app-row-label {
  white-space: normal;
  line-height: 1.3;
}

/* Barre de navigateur */
.app-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
}

.chrome-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(227, 221, 210, 0.28);
}

.chrome-url {
  margin-inline: auto;
  padding: 0.15rem 1.2rem;
  border-radius: 999px;
  background: rgba(227, 221, 210, 0.12);
  color: rgba(227, 221, 210, 0.85);
  font-size: 0.7rem;
}

.app-side-brand {
  padding: 0.35rem 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.app-side-brand img {
  height: 1.5rem;
  width: auto;
  display: block;
}

/* Cartes flottantes : peu nombreuses, cohérentes avec le produit */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 12px 32px rgba(18, 49, 44, 0.18);
  font-size: 0.8rem;
  line-height: 1.35;
  z-index: 2;
}

.float-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.85rem;
}

.float-card span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.float-score {
  z-index: 3;
  top: -0.9rem;
  left: clamp(-1rem, -1vw, -0.25rem);
}

.float-action {
  z-index: 3;
  bottom: -3.4rem;
  right: 6%;
}

/* Anneau de conformité */
.score-ring {
  flex-shrink: 0;
}

.score-ring .ring-track {
  stroke: var(--line);
}

.score-ring .ring-value {
  stroke: var(--accent);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
}

/* Flottement très léger, uniquement si les animations sont permises */
@media (prefers-reduced-motion: no-preference) {
  .js .float-card {
    animation: hero-float 7s ease-in-out infinite alternate;
  }

  .js .float-action {
    animation-delay: 2.2s;
  }
}

@keyframes hero-float {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 36rem;
  }

  .hero-visual {
    max-width: 40rem;
  }
}

@media (max-width: 700px) {
  .hero-visual {
    padding: 1rem 0 0;
  }

  .hero-scene-mat {
    display: none;
  }

  .hero-app {
    position: static;
    width: auto;
    margin: -2.5rem 0.75rem 0;
    font-size: 0.78rem;
  }

  .float-card {
    position: static;
    display: inline-flex;
    margin: 0.8rem 0.8rem 0 0;
  }
}

@media (max-width: 560px) {
  .hero-app .app-frame-body {
    grid-template-columns: 1fr;
  }
}

/* ---- Bande de bénéfices : transition claire entre le hero et la suite ---- */

.benefits-band {
  background: var(--cream);
  color: var(--text);
  border-block: 1px solid var(--line);
  padding-block: clamp(1.25rem, 2.5vw, 1.9rem);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-4);
}

.benefit-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.benefit-item p {
  margin: 0;
}

.benefit-item svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--accent-deep);
}

.benefit-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.benefit-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (min-width: 961px) {
  .benefit-item + .benefit-item {
    border-left: 1px solid rgba(18, 49, 44, 0.14);
    padding-left: var(--space-4);
  }
}

/* --------------------------------------------------------------------------
   7. Maquette produit (hero)
   Composition d'interface réaliste : mêmes concepts que l'application
   (inspection, statuts conforme / écart, photos, synchronisation).
   -------------------------------------------------------------------------- */

.app-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  overflow: hidden;
  font-size: 0.8rem;
}

.app-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
}

.app-frame-bar img {
  height: 1.15rem;
  width: auto;
}

.app-frame-bar .app-url {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(227, 221, 210, 0.75);
}

.app-frame-body {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
}

.app-sidebar {
  background: var(--paper-shade);
  border-right: 1px solid var(--line);
  padding: 0.9rem 0;
}

.app-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-sidebar li {
  padding: 0.45rem 1rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.app-sidebar li.is-active {
  color: var(--ink);
  font-weight: 600;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

.app-main {
  padding: 1rem 1.2rem 1.2rem;
}

.app-main-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.app-main-head h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin: 0;
}

.app-main-head .app-sub {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(46, 110, 78, 0.12);
  color: var(--ok);
}

.app-badge::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.app-rows {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.app-row:last-child {
  border-bottom: none;
}

.app-row .app-row-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-chip {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.app-chip-ok {
  background: rgba(46, 110, 78, 0.12);
  color: var(--ok);
}

.app-chip-nc {
  background: rgba(200, 120, 63, 0.16);
  color: var(--accent-deep);
}

.app-chip-na {
  background: var(--paper-shade);
  color: var(--text-muted);
}

.app-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.app-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.app-score {
  font-weight: 700;
  color: var(--ink);
}

.app-action-note {
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .app-frame-body {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0;
  }

  .app-sidebar ul {
    display: flex;
  }

  .app-side-brand {
    display: none;
  }

  .app-sidebar li.is-active {
    border-left: none;
    border-bottom: 2px solid var(--accent);
  }
}

/* --------------------------------------------------------------------------
   8. Problèmes / bénéfices
   -------------------------------------------------------------------------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-5);
  margin-top: var(--space-5);
}

.pain-item {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Marqueur « écart » : croix orange sobre */
.pain-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--accent-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3.3 2.2 8 6.9l4.7-4.7 1.1 1.1L9.1 8l4.7 4.7-1.1 1.1L8 9.1l-4.7 4.7-1.1-1.1L6.9 8 2.2 3.3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3.3 2.2 8 6.9l4.7-4.7 1.1 1.1L9.1 8l4.7 4.7-1.1 1.1L8 9.1l-4.7 4.7-1.1-1.1L6.9 8 2.2 3.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pain-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
}

@media (max-width: 700px) {
  .pain-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.value-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.value-item .value-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(47, 91, 82, 0.1);
  color: var(--green);
}

.value-item:nth-child(3n+2) .value-icon {
  background: rgba(200, 120, 63, 0.12);
  color: var(--accent-deep);
}

.value-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.value-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   9. Modules
   -------------------------------------------------------------------------- */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.modules-grid > * {
  min-width: 0;
}

.module-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.module-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}

.module-card.module-featured {
  grid-column: span 3;
  background: linear-gradient(160deg, var(--surface) 55%, rgba(47, 91, 82, 0.06));
}

/* Carte de clôture pleine largeur : disposition horizontale */
.module-card.module-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.module-card.module-wide .module-icon {
  margin-bottom: 0;
}

.module-card.module-wide .module-body {
  flex: 1;
  min-width: 16rem;
}

.module-card.module-wide p {
  margin-bottom: 0;
}

.module-card.module-wide .module-benefit {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  flex-basis: 14rem;
}

@media (max-width: 640px) {
  .module-card.module-wide {
    flex-direction: column;
    align-items: flex-start;
  }

  .module-card.module-wide .module-benefit {
    flex-basis: auto;
  }
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background: rgba(200, 120, 63, 0.12);
  color: var(--accent-deep);
}

/* Variation des pastilles pour éviter la répétition mécanique */
.module-card:not(.module-featured):nth-child(2n) .module-icon {
  background: rgba(47, 91, 82, 0.1);
  color: var(--green);
}

.module-card:not(.module-featured):nth-child(2n+1) .module-icon {
  background: var(--cream);
  color: var(--ink);
}

.module-featured .module-icon {
  background: rgba(200, 120, 63, 0.14);
  color: var(--accent-deep);
}

/* Mini-aperçu produit dans les cartes vedettes */
.module-preview {
  margin-bottom: var(--space-3);
  font-size: 0.72rem;
}

.app-chip-prog {
  background: rgba(47, 91, 82, 0.12);
  color: var(--green);
}

.module-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.module-card p {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.module-benefit {
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
}

@media (max-width: 1024px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .module-card,
  .module-card.module-featured {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   10. Cycle transversal
   -------------------------------------------------------------------------- */

.cycle-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4) var(--space-3);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: cycle;
}

/* Ligne de trajectoire reliant les étapes (grands écrans) */
.cycle-list::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 1rem;
  right: 12%;
  border-top: 2px dashed var(--line-strong);
}

.cycle-step {
  counter-increment: cycle;
  position: relative;
  padding-right: var(--space-2);
}

/* Point d'étape sur la trajectoire */
.cycle-step::before {
  content: counter(cycle);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Point d'arrivée : plein, comme le repère orange du logo */
.cycle-step:last-child::before {
  background: var(--accent);
  color: #fff;
}

.cycle-step strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.cycle-step span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .cycle-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .cycle-list::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .cycle-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .cycle-list {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   11. Terrain, profils
   -------------------------------------------------------------------------- */

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: var(--space-5);
}

@media (max-width: 880px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: var(--space-3);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 5.9-4.2 4.8a.75.75 0 0 1-1.1.03L4.3 8.6a.75.75 0 1 1 1.06-1.06l1.5 1.5 3.7-4.2a.75.75 0 0 1 1.13.99z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 5.9-4.2 4.8a.75.75 0 0 1-1.1.03L4.3 8.6a.75.75 0 1 1 1.06-1.06l1.5 1.5 3.7-4.2a.75.75 0 0 1 1.13.99z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.check-list strong {
  color: var(--ink);
}

/* Scène terrain : mobile posé sur un panneau crème */
.terrain-stage {
  background: var(--cream);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.terrain-stage .app-frame {
  max-width: 22rem;
  margin-inline: auto;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.profile-card {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius-card);
}

.profile-card:nth-child(4) {
  border-left-color: var(--accent);
}

.profile-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.profile-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.profiles-note {
  margin-top: var(--space-4);
  color: var(--text-muted);
  max-width: 46rem;
}

/* --------------------------------------------------------------------------
   12. Sécurité (fond sombre)
   -------------------------------------------------------------------------- */

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

@media (max-width: 900px) {
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

.security-item {
  padding: var(--space-4);
  background: rgba(227, 221, 210, 0.06);
  border: 1px solid rgba(227, 221, 210, 0.16);
  border-radius: var(--radius-m);
}

.security-item h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.security-item p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--cream);
}

.security-item .security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-s);
  background: rgba(224, 163, 112, 0.15);
  color: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   13. À propos, CTA final
   -------------------------------------------------------------------------- */

.about-inner {
  max-width: 46rem;
}

.about-inner .lead {
  font-size: var(--fs-lead);
}

.section-cream {
  background: var(--cream);
}

/* Sur fond sombre, l'accent serif passe en orange clair pour le contraste */
.accent-em-dark {
  color: var(--accent-soft);
}

.cta-final {
  text-align: center;
}

.cta-arc {
  display: inline-block;
  margin-bottom: var(--space-2);
}

.section-cream .lead {
  color: var(--text);
}

.cta-final .cta-inner {
  max-width: 40rem;
  margin-inline: auto;
}

.cta-final .hero-actions {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   14. Pied de page
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: var(--space-6) var(--space-4);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(227, 221, 210, 0.18);
}

.footer-brand img {
  height: 2rem;
  width: auto;
  margin-bottom: var(--space-3);
}

.footer-brand p {
  color: rgba(227, 221, 210, 0.8);
  max-width: 22rem;
  margin: 0;
}

.footer-brand .footer-fr {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: var(--space-3);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.88rem;
}

.footer-brand .footer-fr svg {
  color: var(--accent-soft);
  flex-shrink: 0;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: var(--space-3);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  padding-top: var(--space-4);
  color: rgba(227, 221, 210, 0.65);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* --------------------------------------------------------------------------
   15. Pages intérieures (contact, légal)
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--space-4);
}

.page-head .lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 42rem;
}

.legal-content {
  max-width: 46rem;
  padding-bottom: var(--space-section);
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: var(--space-5);
}

.legal-content .todo-field {
  background: rgba(200, 120, 63, 0.1);
  border-left: 3px solid var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   16. Formulaire de contact
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: var(--space-section);
  align-items: start;
}

@media (max-width: 880px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  margin-bottom: var(--space-3);
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-field .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #b3341f;
}

.field-error {
  display: none;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #b3341f;
  font-weight: 600;
}

.form-field.has-error .field-error {
  display: block;
}

.consent-field {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.consent-field input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--green);
}

.consent-field label {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Champ anti-robot : hors écran, jamais affiché */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: var(--space-3);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-s);
  font-size: 0.95rem;
  display: none;
}

.form-status.is-error {
  display: block;
  background: rgba(179, 52, 31, 0.08);
  border: 1px solid rgba(179, 52, 31, 0.35);
  color: #892918;
}

.form-status.is-success {
  display: block;
  background: rgba(46, 110, 78, 0.1);
  border: 1px solid rgba(46, 110, 78, 0.35);
  color: var(--ok);
}

.form-status.is-sending {
  display: block;
  background: var(--paper-shade);
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.contact-aside h2 {
  font-size: 1.25rem;
}

.contact-aside p {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   17. Animations d'apparition
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Sans JavaScript ou avec animations réduites : tout reste visible */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .module-card:hover {
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* --------------------------------------------------------------------------
   18. Badges "Bientôt" sur les cartes de modules.
   -------------------------------------------------------------------------- */

/*  
--brand-accent: #E0A370;   
--brand-accent-deep: #C8783F;
*/

.module-card {
  position: relative;
}

.module-status-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;

  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 6px 12px;
  border-radius: 999px;

  /*background: #E0A370;*/
  color: #C8783F;
  border: 1px solid #C8783F;

  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;

  box-shadow: 0 3px 10px rgba(200, 120, 63, 0.20);
}

.module-status-soon svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke-width: 2.2;
  flex: 0 0 auto;
}