/* ============================================================
   PROLIVE SAS — feuille de style unique
   Sombre, éditorial, une seule couleur. Aucune ressource externe :
   les polices sont servies depuis assets/fonts/.
   ============================================================ */

/* ---------- Polices auto-hébergées (OFL 1.1) ---------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-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: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-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: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/space-mono-400-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: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/space-mono-400-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: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-mono-700-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: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-mono-700-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;
}

:root {
  /* Neutres chauds « atelier de nuit » — volontairement distincts des
     thèmes sombres bleutés des outils de développement. */
  --bg: #131110;
  --surface: #1a1815;
  --border: #322d26;
  --text: #ece8e1;
  --text-2: #cfc9bf;
  --muted: #a69e91;

  /* Un seul accent : orange brûlé (décision du 02/09/2026, issu de la
     maquette Claude Design V1). Texte sombre dessus. */
  --accent: #f2612e;
  --accent-soft: rgba(242, 97, 46, 0.45);
  --on-accent: #140a05;

  /* Section inversée (bloc de conversion) : l'ivoire du texte devient fond. */
  --light-bg: #ece8e1;
  --light-text: #131110;
  --light-muted: #5a544b;
  --light-border: #cfc9bf;

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 66ch;
  --radius: 4px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Base ---------- */

h1, h2, h3 {
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.022em;
}

h3 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p, ul, ol { margin: 0 0 1.1em; }

/* Les emails, URLs et mots longs ne débordent jamais de leur conteneur */
p, li, a { overflow-wrap: break-word; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

strong { font-weight: 700; }

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

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

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

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

/* La flèche de la marque : dessinée, pas tirée de la police (aucun sous-ensemble
   ne couvre U+2192). Prend la couleur du texte courant. */
.arrow,
.method-arrow,
.card-link::after {
  display: inline-block;
  width: 0.95em;
  height: 0.6em;
  vertical-align: -0.02em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%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 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.method-arrow { color: var(--accent); margin: 0 0.1em; }

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ---------- Accessibilité clavier ---------- */

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* Un conteneur-prose garde la largeur de grille : le contenu se limite à la
   mesure de lecture mais reste aligné sur le bord gauche, comme les heros. */
.container.prose { max-width: 1100px; }
.container.prose > * { max-width: var(--measure); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  line-height: 1.3;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  filter: none;
  border-color: var(--muted);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.035em;
}
.brand:hover { text-decoration: none; }
.brand-dot { color: var(--accent); }

.site-footer .brand { margin-bottom: 0.25rem; }

.method-sig {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.method-sig .method-arrow { margin: 0 0.35em; }

/* La signature de méthode en bandeau : version pleine voix du motif du footer */
.method-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0.5rem 0 0;
}

.method-strip .method-intro {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-right: 0.25rem;
}

.method-strip .method-arrow { width: 1.1em; height: 0.7em; }

/* Faits du cas réel : le vocabulaire de la proof-bar, empilé */
.case-facts {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.case-facts > div {
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.case-facts > div:first-child { border-top: none; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
  margin-left: auto;
}

/* Sous 600 px : marque + bouton sur la première rangée, liens sur la seconde */
@media (max-width: 600px) {
  .header-inner { row-gap: 0.6rem; }
  .header-cta { order: 2; margin-left: auto; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; }
}

.site-nav a:not(.btn) {
  color: var(--muted);
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current] {
  color: var(--text);
  text-decoration: none;
}

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

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section + .section { border-top: 1px solid var(--border); }

.hero {
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

/* Les preuves suivent le hero de près, séparées par un filet comme le reste de la page */
.hero + .section {
  border-top: 1px solid var(--border);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero h1 {
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

.hero .lead {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  line-height: 1.35;
  color: var(--text-2);
  max-width: 40ch;
  margin-bottom: 2.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

/* Ligne mono qui accompagne le bouton du hero : l'offre d'entrée en un coup d'œil */
.hero-tag {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
}
.hero-tag:hover { color: var(--text); text-decoration: none; }
/* Le dernier mot et la flèche restent soudés : la flèche ne part jamais seule à la ligne */
.hero-tag-end { white-space: nowrap; }

/* ---------- Bandeau de preuves ---------- */

.proof-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.proof-bar > div {
  padding: 1.35rem 1.5rem;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-top: -1px;
  margin-left: -1px;
}

.proof-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.proof-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ---------- Constats : trois phrases en grand ---------- */

.statements {
  display: grid;
  gap: 1.75rem;
  max-width: 30em;
  margin: 0;
}

.statements p {
  font-size: clamp(1.35rem, 2.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
  margin: 0;
}

/* ---------- Liste des services (rangées éditoriales) ---------- */

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
}

.service-row .service-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.35rem;
  margin: 0;
}

.service-row h3 { margin-bottom: 0.4rem; }

.service-row .service-body p {
  color: var(--text-2);
  max-width: var(--measure);
}

@media (min-width: 760px) {
  .service-row {
    grid-template-columns: 3.5rem minmax(0, 15rem) 1fr;
    gap: 1.5rem 2.5rem;
    padding: 2.5rem 0;
  }
  .service-row h3 { margin-bottom: 0; }
}


/* ---------- Liens de lecture (flèche) ---------- */

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
}

.card-link::after {
  content: "";
  margin-left: 0.4em;
}

@media (hover: hover) {
  @media (prefers-reduced-motion: no-preference) {
    .card-link::after,
    .hero-tag .arrow { transition: transform 0.2s ease-out; }
    .service-row:hover .card-link::after,
    .card-link:hover::after,
    .hero-tag:hover .arrow { transform: translateX(4px); }
  }
}

/* ---------- Listes de déroulé (étapes) ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 1.75rem 3.25rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.steps li::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.9rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--border);
}

.steps li:last-child::after { display: none; }

.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--muted); margin-bottom: 0; max-width: var(--measure); }

/* ---------- Listes à puces sobres ---------- */

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}

.checklist li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- Encadré mise en avant ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.panel > :last-child { margin-bottom: 0; }

.panel-accent {
  border-color: var(--accent-soft);
}

/* ---------- Cas réel : avant / après ---------- */

.case-title { max-width: 26ch; margin-bottom: 2rem; }

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-grid .case-facts { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .case-grid { grid-template-columns: 1fr; }
}

.ba-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.ba-after .ba-label { color: var(--accent); }
.ba-before p { color: var(--muted); }
.ba-after p { color: var(--text); }
.ba-before p:last-child,
.ba-after p:last-child { margin-bottom: 0; }

/* La phrase du praticien, seule sous un filet : la voix qui signe le cas */
.voice-line {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-2);
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-wrap: balance;
}

.voice-line + .card-link {
  display: inline-block;
  margin-top: 1rem;
}

/* ---------- Portrait ---------- */

.portrait {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0;
}

.portrait--tall { max-width: 420px; }

@media (min-width: 761px) {
  /* Le portrait est premier dans le DOM (mobile : le visage avant le récit) et passe à droite sur desktop */
  .split .portrait { justify-self: end; order: 2; }
}

/* ---------- Badges certifications ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.8rem;
}

/* ---------- Layout deux colonnes ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

/* Section inversée : la conversion isolée du reste de la page */
.section-invert {
  background: var(--light-bg);
  color: var(--light-text);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section + .section-invert { border-top: none; }

.section-invert h2 {
  color: var(--light-text);
  max-width: 18ch;
}

.section-invert p {
  color: var(--light-muted);
  max-width: 52ch;
}

.section-invert .btn-ghost {
  color: var(--light-text);
  border-color: var(--light-border);
}
.section-invert .btn-ghost:hover { border-color: var(--light-muted); }

.section-invert a:not(.btn) {
  color: var(--light-text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.15em;
}

.section-invert ::selection {
  background: var(--light-text);
  color: var(--light-bg);
}

.section-invert :focus-visible { outline-color: var(--light-text); }

.reassure {
  font-size: 0.9rem;
  margin: 1.5rem 0 0;
}

/* ---------- Coordonnées ---------- */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:first-child { border-top: 1px solid var(--border); }

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 9rem;
  padding-top: 0.2rem;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li { margin-bottom: 0.45rem; }

.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-legal p { margin-bottom: 0.4rem; max-width: 80ch; }

/* ---------- CTA de mi-parcours ---------- */

.section-cta {
  margin-top: 2.5rem;
}

.section-cta p { margin: 0; max-width: 40ch; }

.section-lead { margin-bottom: 2.5rem; }

.prose .proof-bar { margin: 2rem 0; }

.footer-legal--bare {
  border-top: none;
  padding-top: 0;
}

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

@media (max-width: 600px) {
  .panel { padding: 1.5rem; }

  /* Boutons pleine largeur : atteignables au pouce, impossibles à rater */
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .btn {
    text-align: center;
  }

  /* Preuves en 2×2 : un demi-écran au lieu d'un écran et demi */
  .proof-bar { grid-template-columns: 1fr 1fr; }
  .proof-bar > div { padding: 1rem 1.1rem; }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .service-row .service-num { padding-top: 0; }

  /* La signature reste sur une seule ligne : l'intro passe au-dessus, la triade se resserre */
  .method-strip { font-size: 0.85rem; gap: 0.5rem 0.6rem; }
  .method-strip .method-intro { flex-basis: 100%; font-size: 1rem; }
}

/* ---------- Adaptation tactile ---------- */

@media (pointer: coarse) {
  /* Cibles ≥ 44px : liens de navigation et de footer */
  .site-nav a:not(.btn) {
    padding: 0.6rem 0.2rem;
    margin: -0.35rem 0;
  }
  .site-footer li { margin-bottom: 0; }
  .site-footer li a {
    display: inline-block;
    padding: 0.9rem 0;
  }
  .btn-small {
    padding: 0.8rem 1.1rem;
  }
  .contact-list a,
  .hero-tag,
  .card-link {
    display: inline-block;
    padding: 0.85rem 0;
    margin: -0.85rem 0;
  }
}

/* ---------- Impression ---------- */

@media print {
  body { background: #fff; color: #000; }
  .site-header, .skip-link, .header-cta, .btn, .site-footer nav { display: none; }
  .section-invert { background: none; color: #000; padding: 2rem 0; }
  .section-invert p, .statements p, .steps p, .service-row .service-body p, .muted, .lead { color: #000; }
  .accent, .service-num, .proof-value, .method-sig, .method-strip .method-arrow { color: #000; }
  a { color: #000; text-decoration: underline; }
  .portrait { max-width: 200px; }
}
