/* ============================================================
   landings-shared.css — Editorial Documentary
   Extends /automatisation/assets/auto.css with editorial touches.
   Used by /creation-site-web/, /developpeur-*/, /refonte-site-web/,
   /site-vitrine-pme/, /tarifs/.
   ============================================================ */

/* ---- Editorial fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,500;9..144,600;9..144,700;9..144,800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-edito: 'Fraunces', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --color-ivory: #f5efe6;
  --color-ivory-soft: #faf6ee;
  --color-ink: #2a2a2e;
  --color-rule: rgba(15, 25, 35, 0.12);
  --color-warm: #c9663e;

  /* Échelle typographique modulaire (ratio 1.18) — cohérence cross-sections */
  --text-2xs: 0.70rem;    /* 11.2px — labels mono, meta minuscules */
  --text-xs:  0.78rem;    /* 12.5px — captions, footnotes */
  --text-sm:  0.88rem;    /* 14px   — texte secondaire, descriptions cards */
  --text-base:1rem;       /* 16px   — body standard */
  --text-md:  1.12rem;    /* 18px   — body emphasis */
  --text-lg:  1.32rem;    /* 21px   — sous-titre */
  --text-xl:  1.6rem;     /* 25.6px — titre card */
  --text-2xl: 2rem;       /* 32px   — titre section */
  --text-3xl: 2.6rem;     /* 41.6px — h1 fluide (clamp en hero) */
}

/* Offset anchor scroll pour compenser la nav fixed 60px (#contact, #...) */
[id] { scroll-margin-top: 80px; }

/* ============================================================
   Stack technique sous le hero — différenciation
   ============================================================ */
.stack-strip {
  background: #fff;
  padding: 22px var(--section-h-padding, 24px);
  border-bottom: 1px solid var(--color-rule, rgba(15, 25, 35, 0.08));
}
.stack-strip-inner {
  max-width: var(--section-max-width, 1080px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.stack-strip-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted, #5a6270);
  margin-right: 4px;
  font-weight: 600;
}
.stack-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--color-rule, rgba(15, 25, 35, 0.12));
  border-radius: 18px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text, #1a1a2e);
  background: var(--color-ivory-soft, #faf6ee);
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  line-height: 1.4;
}
.stack-badge:hover {
  border-color: var(--color-accent, #3aaa64);
  color: var(--color-accent, #3aaa64);
  background: rgba(58, 170, 100, 0.06);
}
@media (max-width: 767px) {
  .stack-strip { padding: 14px var(--section-h-padding, 16px); }
  .stack-strip-label { display: block; width: 100%; margin-bottom: 4px; }
  .stack-badge { padding: 4px 10px; font-size: 0.72rem; border-radius: 14px; }
}

/* En mobile : ignorer les <br> des titres pour laisser le wrap naturel
   (en dur ils créent des coupures bizarres sur viewports étroits) */
@media (max-width: 767px) {
  .hero-title--edito br,
  .section-title--edito br {
    display: none;
  }
  .hero-title--edito br + *::before,
  .section-title--edito br + *::before {
    content: ' ';
  }
}

/* Mot-clé exact discret dans le H1 narratif (SEO sans casser l'accroche) */
.hero-h1-keyword {
  display: block;
  margin-top: 22px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-style: normal;
  text-transform: none;
  line-height: 1.4;
}

/* ============================================================
   Lien nav actif — surlignage de la page courante
   ============================================================ */
.nav-links a[aria-current="page"] {
  color: var(--color-accent);
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}
.nav-links a.btn-primary[aria-current="page"]::after { display: none; }

@media (max-width: 880px) {
  /* En mobile drawer : pas de soulignement absolu, bordure gauche colorée */
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] {
    background: rgba(58, 170, 100, 0.06);
    border-left: 3px solid var(--color-accent);
    padding-left: 9px;
  }
}

/* ============================================================
   Nav landings — hamburger responsive sous 880px
   (Déplacé ici depuis auto.css pour être disponible sur toutes les
   landings qui n'incluent pas auto.css — ex: /consulting/)
   ============================================================ */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text, #1a1a2e);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(58, 170, 100, 0.08);
  border-color: rgba(58, 170, 100, 0.25);
  outline: none;
}
.nav-open .nav-toggle .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-inner { position: relative; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 25, 35, 0.08);
    border-top: 1px solid rgba(15, 25, 35, 0.06);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, visibility 0s linear 0.3s;
    z-index: 100;
  }
  .nav-open .nav-links {
    max-height: 640px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease, visibility 0s linear 0s;
  }
  .nav-links a {
    display: block;
    padding: 12px 8px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(15, 25, 35, 0.06);
    color: var(--color-text, #1a1a2e);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.btn-primary {
    margin-top: 8px;
    padding: 12px 20px !important;
    font-size: 0.92rem !important;
    text-align: center;
    color: #ffffff !important;
    background: var(--color-accent, #3aaa64) !important;
    font-family: var(--font-heading, 'Montserrat', sans-serif) !important;
    font-weight: 700 !important;
    border-bottom: none;
  }
}

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---- Hero overrides : éditorial, asymétrique ---- */
.hero--edito {
  background:
    radial-gradient(ellipse at 75% 30%, rgba(58, 170, 100, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 80%, rgba(58, 170, 100, 0.06) 0%, transparent 50%),
    var(--color-hero-bg);
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 120px 24px 80px;
  min-height: 78vh;
}

/* Grille filigrane derrière le hero */
.hero--edito::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
}

.hero--edito .section-inner {
  max-width: 1080px;
  position: relative;
  z-index: 1;
}

/* Eyebrow style éditorial */
.hero-eyebrow--edito {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 28px;
  padding: 0;
  background: transparent;
  border: none;
}
.hero-eyebrow--edito::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}

/* Titre éditorial : mixage Montserrat + Fraunces italic */
.hero h1.hero-title--edito {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--color-white);
  max-width: 880px;
  text-wrap: balance;
}
.hero h1.hero-title--edito em,
.hero h1.hero-title--edito .accent-edito {
  font-family: var(--font-edito);
  font-style: italic;
  font-weight: 600;
  color: var(--color-accent);
  font-variation-settings: "SOFT" 100;
}

.hero-subtitle--edito {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  margin: 0 0 44px 0;
  line-height: 1.65;
  font-weight: 400;
}

/* Hero CTA aligné à gauche */
.hero--edito .hero-cta {
  justify-content: flex-start;
}

/* Hero footer : meta sur deux colonnes (gauche : stats / droite : mention) */
.hero-meta {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}
.hero-meta-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}
.hero-meta-value {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.hero-meta-value strong {
  color: var(--color-accent);
}

/* ---- Watermark number derrière les sections ---- */
.section--with-number {
  position: relative;
  overflow: hidden;
}
.section--with-number .section-number {
  display: none;
}
.section--with-number > .section-inner { position: relative; z-index: 1; }

/* Variante section sombre */
.section--dark .section-number {
  color: rgba(255, 255, 255, 0.04);
}

/* Variante section ivory */
.section--ivory {
  background: var(--color-ivory);
}
.section--ivory .section-number {
  color: rgba(15, 25, 35, 0.06);
}
.section--ivory h2 {
  color: var(--color-ink);
}

/* ---- Editorial pull-quote ---- */
.pullquote {
  font-family: var(--font-edito);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  color: var(--color-ink);
  max-width: 760px;
  margin: 48px auto;
  padding: 24px 0 24px 32px;
  border-left: 3px solid var(--color-accent);
  position: relative;
  text-wrap: balance;
}
.pullquote::before {
  content: "“";
  position: absolute;
  top: -28px;
  left: 8px;
  font-size: 5rem;
  color: var(--color-accent);
  opacity: 0.35;
  font-family: var(--font-edito);
  line-height: 1;
}
.pullquote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* ---- Section intro éditoriale (paragraphes longs) ----
   Aligné sur le bord gauche du section-title--edito (880px) tout en
   gardant 680px de largeur pour la lisibilité. */
.editorial-text {
  max-width: 680px;
  margin-right: auto;
  margin-left: max(0px, calc((100% - 880px) / 2));
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}
.editorial-text p { margin-bottom: 20px; }
.editorial-text p:last-child { margin-bottom: 0; }
.editorial-text strong {
  font-weight: 700;
  color: var(--color-text);
  background: linear-gradient(to bottom, transparent 60%, rgba(58, 170, 100, 0.18) 60%);
  padding: 0 2px;
}
.editorial-text a {
  color: var(--color-accent);
  font-weight: 600;
  border-bottom: 1px solid var(--color-accent);
}

/* Lettrine en début de paragraphe (dropcap) */
.editorial-text .dropcap::first-letter {
  font-family: var(--font-edito);
  font-weight: 700;
  font-size: 4.5em;
  float: left;
  line-height: 0.85;
  padding: 6px 14px 0 0;
  color: var(--color-accent);
}

/* ---- Trust strip (chiffres clés au mono) ---- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 56px 24px;
  background: var(--color-ivory);
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  text-align: center;
}
@media (min-width: 768px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  position: relative;
}
.trust-item:not(:last-child)::after {
  display: none;
}
@media (min-width: 768px) {
  .trust-item:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;
    right: -16px;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--color-rule);
  }
}
.trust-number {
  font-family: var(--font-edito);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--color-accent);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ---- Cards éditoriales (typage de service) ---- */
.edito-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .edito-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .edito-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.edito-card {
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 4px;
  padding: 36px 32px 32px;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.edito-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 14px 40px rgba(15, 25, 35, 0.06);
  transform: translateY(-2px);
}
.edito-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  display: block;
}
.edito-card-tag::before {
  content: "→ ";
  color: var(--color-accent);
}
.edito-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.edito-card h3 em {
  font-family: var(--font-edito);
  font-weight: 600;
  color: var(--color-accent);
}
.edito-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.edito-card-meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-rule);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.edito-card-meta strong {
  color: var(--color-accent);
  font-weight: 600;
}

/* ---- Section title éditorial ---- */
.section-title--edito {
  text-align: left !important;
  max-width: 880px;
  margin: 0 auto 12px !important;
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 4.5vw, 3rem) !important;
  letter-spacing: -0.02em;
  line-height: 1.1 !important;
}
.section-title--edito em {
  font-family: var(--font-edito);
  font-style: italic;
  font-weight: 600;
  color: var(--color-accent);
}
.section-lede {
  text-align: left;
  max-width: 880px;
  margin: 0 auto 48px;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
}

/* ---- Map / itinéraire (landings locales) ---- */
.geo-zone {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
}
@media (min-width: 880px) {
  .geo-zone { grid-template-columns: 320px 1fr; gap: 56px; }
}
.geo-zone-svg {
  background: var(--color-ivory);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  padding: 24px;
  position: relative;
}
.geo-zone-svg svg {
  width: 100%;
  height: auto;
  display: block;
}
.geo-cities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.geo-city {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px dotted var(--color-rule);
}
.geo-city-distance {
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

/* ---- Process timeline éditorial ---- */
.timeline-edito {
  max-width: 760px;
  margin: 32px auto 0;
  position: relative;
}
.timeline-edito::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, var(--color-accent), rgba(58, 170, 100, 0.15));
}
.timeline-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  position: relative;
}
.timeline-marker {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-edito);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-accent);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.timeline-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.timeline-duration {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

/* ---- Pricing card éditorial ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Adaptation auto quand il n'y a que 2 cards (consulting) : 2 colonnes resserrées + centrage */
.pricing-grid:has(> .pricing-card:nth-child(2):last-child) {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {
  .pricing-grid:has(> .pricing-card:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 6px;
  padding: 36px 28px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 25, 35, 0.08);
}
.pricing-card--featured {
  border: 2px solid var(--color-accent);
  background: linear-gradient(180deg, #fff 0%, var(--color-ivory-soft) 100%);
}
.pricing-card--featured::before {
  content: "Recommandé";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.pricing-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 6px;
}
.pricing-tagline {
  font-family: var(--font-edito);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.pricing-price-from {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.pricing-price-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.pricing-price-currency {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.pricing-price-period {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.pricing-features {
  list-style: none;
  padding: 24px 0;
  margin: 24px 0 0;
  border-top: 1px dashed var(--color-rule);
  flex-grow: 1;
}
.pricing-features li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.55;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
}
.pricing-features li.muted {
  color: var(--color-text-muted);
}
.pricing-features li.muted::before {
  content: "–";
  color: var(--color-text-muted);
}
.pricing-cta {
  margin-top: 24px;
  text-align: center;
}

/* ---- Testimonial cards (peuvent être inline avatar SVG initials) ---- */
.testimonial-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-family: var(--font-edito);
  font-weight: 700;
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Crosslinks (autres landings du site) ---- */
.crosslinks {
  background: var(--color-hero-bg);
  color: #fff;
  padding: 64px 24px;
}
.crosslinks .section-inner {
  max-width: 1080px;
}
.crosslinks-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.crosslinks-title em {
  font-family: var(--font-edito);
  font-style: italic;
  color: var(--color-accent);
  font-weight: 600;
}
.crosslinks-lede {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  max-width: 520px;
}
.crosslinks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .crosslinks-grid { grid-template-columns: repeat(2, 1fr); }
}
.crosslink {
  display: block;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.crosslink:hover {
  background: rgba(58, 170, 100, 0.08);
  border-color: var(--color-accent);
  transform: translateX(4px);
}
.crosslink-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 6px;
}
.crosslink-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 4px;
}
.crosslink-arrow {
  font-family: var(--font-edito);
  font-style: italic;
  color: var(--color-accent);
  font-size: 0.95rem;
}

/* ---- Alternative au formulaire : réserver un appel direct ---- */
.contact-alt-route {
  background: rgba(58, 170, 100, 0.08);
  border: 1px solid rgba(58, 170, 100, 0.25);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 0 auto 36px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 760px;
}

/* Sur la section--dark (form contact), tout est centré pour rester symétrique */
.section--dark .section-title--edito,
.section--dark .section-lede {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.section--dark .contact-form {
  max-width: 760px;
  margin: 0 auto;
}
.section--dark .contact-alt-route {
  background: rgba(58, 170, 100, 0.12);
  border-color: rgba(58, 170, 100, 0.35);
}
.contact-alt-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(58, 170, 100, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-alt-content { flex: 1; min-width: 0; }
.contact-alt-content strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 4px;
  color: inherit;
}
.section--dark .contact-alt-content strong {
  color: #fff;
}
.contact-alt-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.section--dark .contact-alt-content p {
  color: rgba(255, 255, 255, 0.7);
}
.contact-alt-content a {
  color: var(--color-accent);
  font-weight: 700;
  border-bottom: 1px solid rgba(58, 170, 100, 0.4);
  white-space: nowrap;
}
.contact-alt-content a:hover { color: var(--color-accent-hover); border-color: var(--color-accent-hover); }

/* ---- Form field optional badge ---- */
.form-group label .field-optional {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section--dark .form-group label .field-optional {
  color: rgba(255, 255, 255, 0.4);
}

/* ---- Badge social proof AlloVoisins (note client réelle) ---- */
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #ffd54a;
  border-radius: 24px;
  text-decoration: none;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.review-badge:hover, .review-badge:focus {
  border-color: #f0a500;
  box-shadow: 0 4px 12px rgba(255, 200, 0, 0.18);
  transform: translateY(-1px);
  text-decoration: none;
  color: #1f2937;
}
.review-badge-stars {
  color: #f0a500;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
}
.review-badge-text {
  font-family: var(--font-body, 'Lato', sans-serif);
}
.review-badge-text strong {
  font-weight: 700;
  color: #1a1a2e;
}
.review-badge-source {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}
.review-badge-source::before { content: "· "; }

/* Variante section sombre */
.section--dark .review-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 213, 74, 0.45);
  color: #fff;
}
.section--dark .review-badge-text strong { color: #fff; }
.section--dark .review-badge-source { color: rgba(255, 255, 255, 0.55); }

/* ============================================================
   Bloc "Ils m'ont fait confiance" — carnet de bord éditorial
   Timeline verticale asymétrique avec cards ivory + markers terracotta
   ============================================================ */
.references-journal {
  background:
    linear-gradient(180deg, var(--color-ivory-soft) 0%, var(--color-ivory) 100%);
  padding: 80px 24px 64px;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  position: relative;
  overflow: hidden;
}
.references-journal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 102, 62, 0.05), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(58, 170, 100, 0.05), transparent 50%);
  pointer-events: none;
}
.references-journal-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.references-journal-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.references-journal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-warm);
  margin-bottom: 14px;
}
.references-journal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 18px;
}
.references-journal-title em {
  font-family: var(--font-edito);
  font-style: italic;
  font-weight: 600;
  color: var(--color-accent);
  font-variation-settings: "SOFT" 100;
}
.references-journal-lede {
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Timeline */
.references-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* Ligne centrale verticale (desktop) */
.references-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(201, 102, 62, 0.25) 8%,
    rgba(201, 102, 62, 0.25) 92%,
    transparent 100%);
  pointer-events: none;
}
@media (max-width: 767px) {
  .references-timeline::before {
    left: 24px;
    transform: none;
  }
}

.references-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 22px 0;
  align-items: start;
}
@media (min-width: 768px) {
  .references-entry { grid-template-columns: 1fr 96px 1fr; padding: 26px 0; }
  .references-entry--left .references-marker { grid-column: 2; }
  .references-entry--left .references-card { grid-column: 1; }
  .references-entry--right .references-marker { grid-column: 2; }
  .references-entry--right .references-card { grid-column: 3; }
}

/* Marker temporel (year + dot) */
.references-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.references-marker-year {
  font-family: var(--font-edito);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-warm);
  line-height: 1;
  padding: 6px 10px;
  background: var(--color-ivory);
  border: 1px solid var(--color-warm);
  border-radius: 999px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.references-marker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-warm);
  box-shadow: 0 0 0 4px var(--color-ivory), 0 0 0 5px rgba(201, 102, 62, 0.25);
  margin-top: 4px;
}

/* Sur mobile : marker à gauche, card à droite */
@media (max-width: 767px) {
  .references-entry {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding-left: 0;
  }
  .references-marker { align-items: flex-start; }
  .references-marker-year { font-size: 0.95rem; padding: 4px 8px; }
}

/* Card de référence */
.references-card {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  padding: 22px 24px 20px;
  position: relative;
  box-shadow: 0 1px 0 rgba(15, 25, 35, 0.02);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.references-card::before {
  content: "";
  position: absolute;
  top: 14px;
  width: 16px;
  height: 1px;
  background: var(--color-warm);
}
@media (min-width: 768px) {
  .references-entry--right .references-card::before { left: -16px; }
  .references-entry--left .references-card::before { right: -16px; }
}
@media (max-width: 767px) {
  .references-card::before { left: -16px; }
}

.references-card:hover {
  border-color: var(--color-warm);
  box-shadow: 0 8px 28px rgba(15, 25, 35, 0.06), 0 2px 6px rgba(201, 102, 62, 0.08);
  transform: translateY(-1px);
}

.references-meta {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.references-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
/* Picto secteur (SVG inline, accent terracotta) */
.references-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(201, 102, 62, 0.1);
  color: var(--color-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.references-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.references-card:hover .references-icon {
  background: rgba(201, 102, 62, 0.2);
  transform: scale(1.08) rotate(-3deg);
}
.references-name a {
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.references-name a:hover,
.references-name a:focus-visible {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.references-name a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.references-name-arrow {
  font-size: 0.85em;
  color: var(--color-text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.references-name a:hover .references-name-arrow {
  color: var(--color-accent);
  transform: translate(2px, -2px);
}
.references-name-static { color: var(--color-text); }

.references-context {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.references-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--color-rule);
}
.references-stack span {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  padding: 3px 8px;
  background: var(--color-ivory);
  color: var(--color-text-muted);
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Aside (avis + profil) sous la timeline */
.references-journal-aside {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px dashed var(--color-rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .references-journal-aside {
    grid-template-columns: 260px 1fr;
    gap: 48px;
    text-align: left;
  }
}

.references-journal-aside-card {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  padding: 24px 22px 22px;
  text-align: center;
  position: relative;
  margin: 0 auto;
  max-width: 280px;
  width: 100%;
}
.references-journal-aside-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 1px;
  background: var(--color-text-muted);
  opacity: 0.4;
}
.references-aside-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  margin: 18px 0 14px;
}
.references-aside-stars {
  font-size: 0.82rem;
  letter-spacing: 4px;
  color: var(--color-accent-hover);
  margin-bottom: 4px;
  line-height: 1;
}
.references-aside-score {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-text);
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}
.references-aside-score-sub {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 400;
  font-style: italic;
}
.references-aside-meta {
  font-family: var(--font-body, 'Lato', sans-serif);
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}
.references-aside-meta a {
  color: var(--color-accent-hover);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted rgba(45, 132, 78, 0.45);
}
.references-aside-meta a:hover,
.references-aside-meta a:focus-visible {
  color: #1f6e3e;
  border-bottom-color: #1f6e3e;
}

.references-journal-aside-text {
  font-family: var(--font-edito);
  font-style: italic;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
  max-width: 540px;
}
.references-journal-aside-text a {
  color: var(--color-accent);
  font-weight: 600;
  font-style: normal;
  border-bottom: 1px solid rgba(58, 170, 100, 0.3);
  text-decoration: none;
}
.references-journal-aside-text a:hover,
.references-journal-aside-text a:focus-visible {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent-hover);
}

/* Reveal animation à l'apparition */
@media (prefers-reduced-motion: no-preference) {
  .references-entry {
    opacity: 0;
    transform: translateY(12px);
    animation: ref-entry-in 0.6s cubic-bezier(0.21, 0.61, 0.35, 1) forwards;
  }
  .references-entry:nth-child(1) { animation-delay: 0.05s; }
  .references-entry:nth-child(2) { animation-delay: 0.15s; }
  .references-entry:nth-child(3) { animation-delay: 0.25s; }
  .references-entry:nth-child(4) { animation-delay: 0.35s; }
  .references-entry:nth-child(5) { animation-delay: 0.45s; }
  .references-entry:nth-child(6) { animation-delay: 0.55s; }
}
@keyframes ref-entry-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Asides / annotations latérales ---- */
.aside-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  padding: 12px 16px;
  border-left: 2px solid var(--color-accent);
  background: var(--color-ivory-soft);
  margin: 20px 0;
  line-height: 1.6;
}
.aside-note::before {
  content: "Note — ";
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Print niceties ---- */
@media print {
  .nav, .chatbox, .chatbox-trigger, .crosslinks, .footer { display: none; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ---- Mobile fine-tuning ---- */
@media (max-width: 640px) {
  .hero--edito { padding: 88px 20px 56px; min-height: 70vh; }
  .hero h1.hero-title--edito { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-subtitle--edito { font-size: 1rem; }
  .hero-meta { grid-template-columns: 1fr; gap: 16px; }
  .section--with-number .section-number { font-size: 7rem; top: 16px; right: -4px; }
  .pullquote { font-size: 1.3rem; padding-left: 22px; }
  .pullquote::before { font-size: 3.6rem; top: -22px; }
}
