/* ==========================================================================
   main.css — everything that is not a token.
   Cuivre rev. 2. Order: reset · type · layout · header · hero · plate ·
   sections · footer · mobile bar · reduced motion.
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--police);
  font-size: var(--t-corps);
  font-weight: var(--gras-corps);
  line-height: var(--interligne-corps);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--cuivre-texte); }

button { font: inherit; color: inherit; }

/* Focus is visible everywhere and never removed (R-A11Y-02). */
:focus-visible {
  outline: 2px solid var(--cuivre-texte);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Type ----------------------------------------------------------------- */

h1 {
  font-size: var(--t-h1);
  font-weight: var(--gras-titre);
  line-height: var(--interligne-titre);
  letter-spacing: var(--suivi-h1);
  text-wrap: balance;
}

h2 {
  font-size: var(--t-h2);
  font-weight: var(--gras-titre);
  line-height: 1.14;
  letter-spacing: var(--suivi-h2);
}

h3 {
  font-size: var(--t-h3);
  font-weight: var(--gras-titre);
  line-height: 1.3;
  letter-spacing: var(--suivi-h3);
}

.label {
  font-size: var(--t-label);
  font-weight: var(--gras-titre);
  letter-spacing: var(--suivi-label);
  text-transform: uppercase;
  color: var(--discret);
}

/* --- Layout --------------------------------------------------------------- */

.contenu {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--marge);
}

.saut {
  position: absolute;
  left: -9999px;
  top: 0;
}
.saut:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--ligne);
  border-radius: var(--r-pilule);
  padding: 10px 18px;
  font-size: var(--t-petit);
  text-decoration: none;
}

/* --- Buttons -------------------------------------------------------------- */

.pilule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: var(--cible);
  background: var(--cuivre);
  color: var(--sur-cuivre);
  border-radius: var(--r-pilule);
  padding: 6px 6px 6px 24px;
  font-size: var(--t-petit);
  font-weight: var(--gras-titre);
  text-decoration: none;
  box-shadow: var(--ombre-cta);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pilule:hover {
  transform: translateY(-1px);
  box-shadow: var(--ombre-cta-survol);
}
.pilule i {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-pilule);
  background: var(--sur-cuivre);
  color: var(--cuivre);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 14px;
}

.pilule--petite {
  font-size: 13px;
  padding: 5px 5px 5px 16px;
  min-height: 36px;
}
.pilule--petite i { width: 26px; height: 26px; font-size: 12px; }

.fantome {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
  padding: 12px 22px;
  border-radius: var(--r-pilule);
  border: 1px solid var(--ligne-forte);
  background: rgba(251, 250, 247, 0.7);
  color: var(--encre);
  font-size: var(--t-petit);
  font-weight: var(--gras-titre);
  text-decoration: none;
  transition: border-color var(--transition-lien);
}
.fantome:hover { border-color: var(--cuivre); }

/* --- Header --------------------------------------------------------------- */

.entete {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--ligne);
  background: rgba(251, 250, 247, 0.72);
  backdrop-filter: saturate(140%) blur(6px);
}

.entete__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: var(--gras-mot);
  font-size: 15px;
  letter-spacing: var(--suivi-mot);
  text-transform: uppercase;
  color: var(--encre);
  text-decoration: none;
}
.marque svg { flex: none; }

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
}
.menu a {
  font-size: var(--t-menu);
  font-weight: var(--gras-corps);
  color: var(--doux);
  text-decoration: none;
  transition: color var(--transition-lien);
}
.menu a:hover,
.menu a[aria-current="page"] { color: var(--cuivre-texte); }

/* The burger only exists below 900px; see the media query. */
.burger {
  display: none;
  width: var(--cible);
  height: var(--cible);
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--ligne);
  border-radius: var(--r-pilule);
  cursor: pointer;
}
.burger span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--encre);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--encre);
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px var(--marge) 64px;
}

/* 26px squares, masked so they fade before reading as graph paper (PRD §6.3).
   Hero only — the grid never continues into content sections. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--grille) 0 1px, transparent 1px var(--grille-pas)),
    repeating-linear-gradient(to bottom, var(--grille) 0 1px, transparent 1px var(--grille-pas));
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 32%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 72% at 50% 32%, #000 20%, transparent 78%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 48% at 50% 24%, rgba(168, 90, 49, 0.1), transparent 72%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--largeur);
  margin: 0 auto;
}

.sourcil {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-label);
  font-weight: var(--gras-titre);
  letter-spacing: var(--suivi-label);
  text-transform: uppercase;
  color: var(--cuivre-texte);
  margin-bottom: 22px;
}
.sourcil::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: var(--r-pilule);
  background: var(--cuivre);
}

.hero h1 {
  max-width: 16ch;
  margin: 0 auto 20px;
}

.hero__sous {
  font-size: var(--t-corps);
  color: var(--doux);
  max-width: var(--largeur-texte);
  margin: 0 auto;
}

/* Named reference line — occupies the ruled slot the stat band used to hold,
   so the hero keeps its separator between the copy and the plate. */
.reference {
  max-width: 620px;
  margin: 40px auto 0;
  padding: 15px 6px;
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  font-size: var(--t-petit);
  color: var(--doux);
}
.reference a {
  color: var(--encre);
  text-decoration: none;
  border-bottom: 1px solid var(--ligne);
}
.reference a:hover { color: var(--cuivre-texte); border-bottom-color: var(--cuivre); }

.actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.mention {
  color: var(--discret);
  text-align: center;
  margin-top: 16px;
  font-size: var(--t-note);
}

/* --- The plate ------------------------------------------------------------ */
/* The only dark object on the page (R-DS-04). Node state is a class, never
   baked markup, so a live execution can drive it later (R-DS-05).            */

.plaque {
  position: relative;
  z-index: 1;
  background: var(--plaque);
  border: 1px solid var(--plaque-bord);
  border-radius: var(--r-plate);
  margin: 44px auto 0;
  max-width: var(--largeur-plate);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--ombre-plate);
}

.plaque__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--plaque-rule);
}
.plaque__nom {
  font-size: 11.5px;
  color: var(--plaque-discret);
  letter-spacing: 0.02em;
}
.plaque__etat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-label);
  color: var(--cuivre-clair);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.plaque__etat::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--r-pilule);
  background: var(--cuivre-clair);
  opacity: 0.25;
}
.plaque__etat.est-actif::before {
  animation: pulsation 2.2s ease-in-out infinite;
}

@keyframes pulsation {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.chaine {
  display: flex;
  align-items: center;
  padding: 20px 16px;
  flex-wrap: wrap;
  row-gap: 12px;
}

.noeud {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--plaque-node);
  border: 1px solid var(--plaque-node-bord);
  color: var(--plaque-texte);
  border-radius: var(--r-node);
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.noeud b {
  display: block;
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: var(--r-pilule);
  background: var(--plaque-puce);
  transition: background-color 0.25s ease;
}
.noeud.est-actif {
  border-color: var(--cuivre);
  color: var(--plaque-texte-vif);
}
.noeud.est-actif b { background: var(--cuivre-clair); }

.fil {
  position: relative;
  width: 20px;
  height: 1px;
  flex: none;
  background: var(--plaque-fil);
}
.fil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cuivre), var(--cuivre-clair));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s linear;
}
.fil.est-actif::after { transform: scaleX(1); }

/* --- Sections ------------------------------------------------------------- */

.section {
  background: var(--surface);
  border-top: 1px solid var(--ligne);
  text-align: center;
  padding: 54px var(--marge) 58px;
}
.section--papier { background: var(--papier); }

.section__sous {
  font-size: var(--t-petit);
  color: var(--doux);
  margin: 9px auto 0;
  max-width: 52ch;
}
/* Left-aligned sections carry real paragraphs, not one-line sub-headings. */
.section--gauche .section__sous { max-width: 68ch; }
.section--gauche .video { margin-left: 0; }

.cartes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 28px;
  text-align: left;
}
.carte {
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--r-carte);
  padding: 19px 21px;
  transition: border-color var(--transition-lien);
}
.carte:hover { border-color: var(--ligne-survol); }
.section--papier .carte { background: var(--surface); }

/* --- Footer --------------------------------------------------------------- */

.pied {
  background: var(--papier);
  border-top: 1px solid var(--ligne);
  padding: 52px 0 34px;
  font-size: var(--t-menu);
  color: var(--doux);
}

.pied__haut {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
}

.pied__mot { max-width: 34ch; }
.pied__mot p {
  margin-top: 14px;
  color: var(--doux);
  line-height: 1.55;
}

.pied h2 {
  font-size: var(--t-label);
  font-weight: var(--gras-titre);
  letter-spacing: var(--suivi-label);
  text-transform: uppercase;
  color: var(--discret);
  margin-bottom: 14px;
}

.pied__titre-2 { margin-top: 22px; }

.pied li + li { margin-top: 9px; }
.pied li a,
.pied__mot a {
  color: var(--doux);
  text-decoration: none;
  transition: color var(--transition-lien);
}
.pied li a:hover,
.pied__mot a:hover { color: var(--cuivre-texte); }

/* Footer link icons: Tabler outline SVGs (MIT), inlined so there is no icon
   dependency. Drawn in currentColor, so they follow the link colour and its
   copper hover without a rule of their own. */
.pied li a svg {
  display: inline-block; /* the reset makes every svg a block — that broke the line */
  width: 1.15em;
  height: 1.15em;
  margin-right: 8px;
  vertical-align: -0.22em;
}

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--ligne);
  font-size: var(--t-note);
  color: var(--discret);
}

/* --- Sticky mobile CTA bar (R-HOME-01) ------------------------------------ */
/* Hidden until the hero CTAs scroll out of view; main.js flips the class.     */

.barre-mobile {
  display: none;
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  gap: 10px;
  padding: 10px var(--marge) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid var(--ligne);
  transform: translateY(110%);
  /* visibility, not just transform: off-screen is not out of the tab order,
     and two invisible focusable links at the end of the page is a trap.
     It holds `visible` for the whole slide, so the animation is unaffected. */
  visibility: hidden;
  transition: transform 0.2s ease, visibility 0.2s;
}
.barre-mobile.est-visible {
  transform: translateY(0);
  visibility: visible;
}
.barre-mobile .pilule,
.barre-mobile .fantome {
  flex: 1;
  justify-content: center;
  padding-left: 16px;
  padding-right: 16px;
}
.barre-mobile .pilule i { display: none; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .burger { display: inline-flex; }

  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--ligne);
    padding: 6px var(--marge) 18px;
  }
  .menu.est-ouvert { display: flex; }
  .menu a {
    display: flex;
    align-items: center;
    min-height: var(--cible);
    font-size: 15px;
    border-bottom: 1px solid var(--ligne);
  }
  .menu .pilule {
    border-bottom: none;
    justify-content: center;
    margin-top: 14px;
  }

  .pied__haut { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --marge: 20px; }

  h1 { font-size: var(--t-h1-mobile); letter-spacing: -1.2px; }
  h2 { font-size: 26px; letter-spacing: -1px; }

  .hero { padding: 48px var(--marge) 52px; }

  .actions { flex-direction: column; align-items: stretch; }
  .actions .pilule,
  .actions .fantome { justify-content: center; }

  .chaine { padding: 16px 14px; }
  .fil { width: 14px; }

  .cartes { grid-template-columns: 1fr; }

  .pied__haut { grid-template-columns: 1fr; gap: 26px; }

  .barre-mobile { display: flex; }
  /* Clears the fixed bar: its own height, plus the home-indicator inset the
     bar itself pads for. env() resolves to 0 where there is no inset. */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* --- Reduced motion (R-DS-08) ---------------------------------------------
   Handled from the top: the plate is served in its final lit state with no
   transition, and nothing else moves.                                        */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .plaque__etat::before { opacity: 1; }
}

/* ==========================================================================
   PHASE 2 — section patterns.
   Everything below is composed from the tokens above. No new colours.
   ========================================================================== */

/* --- Shared section furniture --------------------------------------------- */

.section--gauche { text-align: left; }
.section__tete { max-width: 60ch; }
.section--gauche .section__sous { margin-left: 0; margin-right: 0; }

.section__pied {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--ligne);
  font-size: var(--t-petit);
  color: var(--doux);
}

.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.haut-28 { margin-top: 28px; }

/* Placeholder for content Oussama supplies later (PRD §13). Deliberately
   visible: a slot that looks finished never gets filled. */
.slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
  border: 1px dashed var(--ligne-forte);
  border-radius: var(--r-carte);
  background: var(--papier);
  color: var(--discret);
  font-size: var(--t-note);
  text-align: center;
}
.slot::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: var(--r-pilule);
  background: var(--ligne-forte);
}
.section--papier .slot { background: var(--surface); }
.slot--fin { min-height: 78px; }

/* --- Cards ---------------------------------------------------------------- */

.texte { color: var(--doux); line-height: 1.5; margin: 0 0 8px; }
.carte h3 { margin-bottom: 8px; }
.carte .texte:last-child { margin-bottom: 0; }

/* --- Automations showcased on a case-study page ----------------------------
   A workflow canvas is 3000px wide and 550-1300 tall. Fitting that to a phone
   column would render the nodes 40px tall and unreadable, so the canvas keeps a
   fixed HEIGHT and scrolls sideways instead — node labels stay legible at every
   width, and swiping a diagram is a familiar gesture.                        */

.autos { display: grid; gap: 13px; margin-top: 28px; }

.auto {
  background: var(--surface);
  border: 1px solid var(--ligne);
  border-radius: var(--r-carte);
  overflow: hidden;
  text-align: left;
}
.section--papier .auto { background: var(--papier); }

.auto__tete { display: flex; align-items: baseline; gap: 11px; padding: 21px 23px 0; }
.auto__num {
  flex: none;
  font-size: 12px;
  font-weight: var(--gras-titre);
  font-variant-numeric: tabular-nums;
  color: var(--cuivre-texte);
}
.auto__tete h3 { margin: 0; }
.auto__texte {
  margin: 8px 23px 17px;
  padding-left: 23px;                 /* aligns under the title, past the number */
  font-size: var(--t-petit);
  color: var(--doux);
  max-width: 70ch;
}

.flux { margin: 0; border-top: 1px solid var(--ligne); }
.flux__zone {
  display: flex;                      /* centres a diagram narrower than the card
                                         and still scrolls one that is wider */
  overflow-x: auto;
  overflow-y: hidden;
  background: #F5F5F5;                /* the n8n canvas grey, so no seam shows */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;     /* swiping the diagram must not page-back */
}
.flux__zone img { display: block; height: 300px; width: auto; max-width: none; margin: 0 auto; }
.flux__zone::-webkit-scrollbar { height: 8px; }
.flux__zone::-webkit-scrollbar-thumb { background: var(--ligne-forte); border-radius: 4px; }
.flux__zone::-webkit-scrollbar-track { background: var(--papier); }
@media (max-width: 720px) {
  .auto__tete { padding: 18px 17px 0; }
  .auto__texte { margin: 7px 17px 15px; padding-left: 0; }
  .flux__zone img { height: 210px; }
}

/* --- Example: pain -> outcome, each with its clip (HOME-03) ---------------- */

.exemple {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--ligne);
  border-radius: var(--r-carte);
  overflow: hidden;
  text-align: left;
  transition: border-color var(--transition-lien);
}
.exemple:hover { border-color: var(--ligne-survol); }
.exemple__texte { flex: 1; padding: 21px 22px 23px; }
.exemple h3 { margin-bottom: 7px; }
.exemple p { font-size: var(--t-petit); color: var(--doux); margin: 0; }
/* No media in these cards. The full process is shown on the case-study pages,
   where there is room to do it properly (decided 2026-09-03). */

/* --- Method steps (HOME-06) ------------------------------------------------ */

.etapes {
  counter-reset: etape;
  display: grid;
  gap: 1px;
  background: var(--ligne);
  border: 1px solid var(--ligne);
  border-radius: var(--r-carte);
  overflow: hidden;
  margin-top: 28px;
}
.etape {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  padding: 22px 24px;
  text-align: left;
}
.section--papier .etape { background: var(--papier); }
.etape::before {
  content: counter(etape);
  font-size: var(--t-stat);
  font-weight: var(--gras-titre);
  letter-spacing: var(--suivi-h2);
  font-variant-numeric: tabular-nums;
  color: var(--cuivre-texte);
  line-height: 1;
}
.etape h3 { margin-bottom: 6px; }
.etape p { font-size: var(--t-petit); color: var(--doux); margin: 0; }
.etape__note {
  display: inline-block;
  margin-top: 10px;
  font-size: var(--t-note);
  color: var(--cuivre-texte);
  font-weight: var(--gras-titre);
}

/* --- Packages, as a ladder (HOME-07) -------------------------------------- */

.paliers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 28px;
  align-items: stretch;
}
.palier {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--ligne);
  border-radius: var(--r-carte);
  padding: 24px 23px 26px;
  text-align: left;
}
.section--papier .palier { background: var(--papier); }
.palier--milieu { border-color: var(--cuivre); }
.palier__rang {
  font-size: var(--t-label);
  font-weight: var(--gras-titre);
  letter-spacing: var(--suivi-label);
  text-transform: uppercase;
  color: var(--discret);
  margin-bottom: 12px;
}
.palier--milieu .palier__rang { color: var(--cuivre-texte); }
.palier h3 { margin-bottom: 9px; }
.palier > p { font-size: var(--t-petit); color: var(--doux); margin: 0 0 16px; }
.palier ul { font-size: var(--t-petit); color: var(--doux); margin-top: auto; }
.palier li { padding-left: 20px; position: relative; }
.palier li + li { margin-top: 8px; }
.palier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: var(--r-pilule);
  border: 1.5px solid var(--cuivre);
}

/* --- Two columns: for whom, not for whom (HOME-08) ------------------------ */

.colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 28px; }
.colonne {
  background: var(--surface);
  border: 1px solid var(--ligne);
  border-radius: var(--r-carte);
  padding: 24px 23px 26px;
  text-align: left;
}
.section--papier .colonne { background: var(--papier); }
.colonne h3 { margin-bottom: 16px; }
.colonne li {
  position: relative;
  padding-left: 26px;
  font-size: var(--t-petit);
  color: var(--doux);
  line-height: 1.5;
}
.colonne li + li { margin-top: 12px; }
.colonne li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: var(--gras-titre);
}
.colonne--oui li::before { content: "\2713"; color: var(--cuivre-texte); }
.colonne--non li::before { content: "\2715"; color: var(--discret); }

/* --- FAQ. <details> is native, keyboard-accessible and needs no JS. -------- */

.faq { margin-top: 28px; text-align: left; border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--cible);
  padding: 18px 2px;
  cursor: pointer;
  font-size: var(--t-h3);
  font-weight: var(--gras-titre);
  letter-spacing: var(--suivi-h3);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: var(--gras-corps);
  color: var(--cuivre-texte);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p {
  padding: 0 2px 20px;
  max-width: 68ch;
  font-size: var(--t-petit);
  color: var(--doux);
}

/* --- Proof cards (HOME-05) and the case-study index ----------------------- */

.preuve {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--ligne);
  border-radius: var(--r-carte);
  overflow: hidden;
  text-align: left;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition-lien);
}
.preuve:hover { border-color: var(--cuivre); }
.section--papier .preuve { background: var(--papier); }
.preuve__texte { padding: 23px 23px 25px; }
.preuve__client {
  font-size: var(--t-label);
  font-weight: var(--gras-titre);
  letter-spacing: var(--suivi-label);
  text-transform: uppercase;
  color: var(--discret);
  margin-bottom: 11px;
}
.preuve h3 { margin-bottom: 9px; }
.preuve__texte p { font-size: var(--t-petit); color: var(--doux); margin: 0; }
.preuve__lien {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ligne);
  font-size: var(--t-petit);
  font-weight: var(--gras-titre);
  color: var(--cuivre-texte);
}
.preuve__lien::after { content: "\00a0\2192"; }

/* --- Video facade. Never autoplays; poster then click (R-PERF-04/05). ----- */

.video {
  max-width: 720px;
  margin: 28px auto 0;
  border-radius: var(--r-carte);
  overflow: hidden;
  border: 1px solid var(--ligne);
  background: var(--plaque);
}
.video video { width: 100%; }

/* --- Prose, for the legal pages ------------------------------------------- */

.prose { max-width: 70ch; text-align: left; }
.prose h2 { font-size: var(--t-h3); letter-spacing: var(--suivi-h3); margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: var(--t-petit); color: var(--doux); }
.prose p + p { margin-top: 12px; }
.prose ul { margin-top: 12px; }
.prose li { position: relative; padding-left: 18px; }
.prose li + li { margin-top: 8px; }
.prose li::before { content: "\2014"; position: absolute; left: 0; color: var(--discret); }
.prose dl { margin: 12px 0 0; font-size: var(--t-petit); }
.prose dt { font-weight: var(--gras-titre); color: var(--encre); margin-top: 12px; }
.prose dd { margin: 3px 0 0; color: var(--doux); }

/* --- Breadcrumb ------------------------------------------------------------ */

.ariane {
  font-size: var(--t-note);
  color: var(--discret);
  padding-top: 22px;
}
.ariane a { color: var(--discret); text-decoration: none; }
.ariane a:hover { color: var(--cuivre-texte); }
.ariane span { margin: 0 7px; }

/* --- Form (wired to n8n in Phase 3) --------------------------------------- */

.formulaire { display: grid; gap: 16px; max-width: 520px; text-align: left; }
.champ { display: grid; gap: 7px; }
.champ label { font-size: var(--t-note); font-weight: var(--gras-titre); color: var(--encre); }
.champ .aide { font-size: var(--t-note); color: var(--discret); font-weight: var(--gras-corps); }
.champ input,
.champ textarea {
  font: inherit;
  font-size: var(--t-petit);
  color: var(--encre);
  background: var(--surface);
  border: 1px solid var(--ligne-forte);
  border-radius: 8px;
  padding: 12px 14px;
  min-height: var(--cible);
  width: 100%;
  transition: border-color var(--transition-lien);
}
.champ textarea { min-height: 130px; resize: vertical; }
.champ input:focus,
.champ textarea:focus { border-color: var(--cuivre); }
.champ input:user-invalid,
.champ textarea:user-invalid { border-color: #9a2f21; }
/* Honeypot: off-screen, never announced, never tabbable (R-INT-06). */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__note { font-size: var(--t-note); color: var(--discret); }
/* Errors are announced, and never colour-only (R-A11Y-03). */
.formulaire__erreur {
  font-size: var(--t-petit);
  color: #8c2b1e;
  background: #f7e9e6;
  border: 1px solid #e2c4be;
  border-radius: 8px;
  padding: 11px 14px;
}

/* --- Closing CTA band (HOME-10) ------------------------------------------- */

.final { text-align: center; }
.final .actions { margin-top: 28px; }

/* --- Responsive additions -------------------------------------------------- */

@media (max-width: 900px) {
  .paliers, .grille-3 { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .grille-2, .colonnes { grid-template-columns: 1fr; }
  .etape { grid-template-columns: 40px 1fr; gap: 14px; padding: 20px; }
  .etape::before { font-size: 22px; }
  .faq summary { font-size: 17px; }
}

/* --- Inner-page hero. Same grid and same rhythm, shorter, no plate. ------- */

.hero--court { padding-top: 54px; padding-bottom: 50px; }
.hero--court h1 { max-width: 20ch; font-size: 42px; letter-spacing: -1.6px; }
.hero--court .hero__sous { max-width: 54ch; }
.slot--video { min-height: 280px; }

@media (max-width: 767px) {
  .hero--court { padding-top: 40px; padding-bottom: 40px; }
  .hero--court h1 { font-size: var(--t-h1-mobile); letter-spacing: -1.2px; }
}

/* --- Cal.com embed (page /reserver) --------------------------------------- */

.cal-embed {
  min-height: 620px;
  margin-top: 28px;
  border: 1px solid var(--ligne);
  border-radius: var(--r-carte);
  background: var(--surface);
  overflow: hidden;
}
