/* ==========================================================================
   Page « Exemples de sites » — /exemples-de-sites
   Chargée uniquement sur cette page (cf. templates/exemples.html).
   S'appuie sur la charte de style.css (tokens, .home-section, .section-head,
   .cta-final, .ambitieux) ; la couleur de chaque vertical arrive par
   --vert-accent, posé en attribut style sur la carte depuis DEMO_VERTICALS.

   Parti pris : aucune capture d'écran (zéro binaire au dépôt). La carte doit
   donc porter l'identité du métier par la typographie et un accent de couleur
   discret : filet coloré en tête, pastille d'icône teintée, wash très léger
   qui ne s'allume qu'au survol. En thème sombre, les accents (chartes claires,
   souvent foncées) sont ÉCLAIRCIS par color-mix vers le blanc : sans ça, un
   #5f7f6e sur fond #111110 disparaît.
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.page-exemples { background: var(--bg); }
.ex-hero { padding: 150px 32px 34px; }
.ex-hero-inner { max-width: 900px; margin: 0 auto; }
.ex-hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.4vw, 54px);
  font-weight: 650; letter-spacing: -0.035em; line-height: 1.05;
  margin: 16px 0 18px;
  text-wrap: balance;
}
.ex-hero-lead {
  font-size: 18px; color: var(--muted);
  margin: 0 0 14px; max-width: 62ch; text-wrap: pretty;
}
.ex-hero-lead strong { color: var(--fg); font-weight: 600; }
/* Le repère « ce qui est dans le forfait » : une précision, pas un avertissement.
   Filet de marge plutôt qu'encadré, comme .methode-franchise. */
.ex-hero-fine {
  font-size: 14.5px; line-height: 1.6; color: var(--muted-3);
  margin: 0 0 14px; max-width: 62ch;
  padding-left: 14px; border-left: 2px solid var(--line-strong);
}
.ex-hero-fine a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.ex-hero-fine a:hover { border-bottom-color: var(--fg); }
.ex-hero-note { font-size: 13px; color: var(--muted-3); margin: 0; }

.ex-section { padding-top: 42px; }
.ex-section .section-sub {
  color: var(--muted); font-size: 16px; max-width: 64ch;
  margin: 14px 0 0; text-wrap: pretty;
}

/* ── Grille de cartes ─────────────────────────────────────────────────── */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 38px;
}

.ex-card {
  --tint: color-mix(in oklab, var(--vert-accent) 6%, var(--card));
  --ink: color-mix(in oklab, var(--vert-accent) 78%, var(--fg));
  /* Blanc sur l'accent brut ne passe AA que pour la moitié des chartes
     (#b06a5e → 4.1:1, #5f7f6e → 4.4:1, sous les 4.5 requis pour du 14 px).
     On assombrit donc l'accent pour toute surface portant du texte ou un
     glyphe blanc ; le filet décoratif, lui, garde la couleur exacte. */
  --accent-deep: color-mix(in oklab, var(--vert-accent) 82%, #000000);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  padding: 30px 28px 26px;
  transition: border-color 180ms ease, box-shadow 240ms ease,
              transform 240ms ease, background-color 240ms ease;
}
/* Filet coloré en tête de carte : la seule surface pleine d'accent, elle
   suffit à différencier les six métiers d'un coup d'œil. */
.ex-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--vert-accent);
}
.ex-card:hover {
  background: var(--tint);
  border-color: color-mix(in oklab, var(--vert-accent) 38%, var(--line));
  box-shadow: 0 26px 52px -30px color-mix(in oklab, var(--vert-accent) 55%, rgba(0, 0, 0, 0.4));
  transform: translateY(-3px);
}

.ex-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 4px;
}
.ex-ico {
  width: 44px; height: 44px; flex: none;
  border-radius: 13px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--accent-deep);
}
.ex-ico svg { width: 22px; height: 22px; }
.ex-badge {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  color: var(--ink);
  background: color-mix(in oklab, var(--vert-accent) 11%, var(--card));
  border: 1px solid color-mix(in oklab, var(--vert-accent) 32%, transparent);
  white-space: nowrap;
}

.ex-metier {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-3);
  margin-top: 8px;
}
/* Le métier est le sur-titre de la marque : on récupère une partie du `gap`
   de la carte pour que les deux se lisent comme un seul bloc. */
.ex-brand {
  font-family: var(--font-display);
  font-size: 25px; font-weight: 650; letter-spacing: -0.025em;
  line-height: 1.1;
  margin: -5px 0 2px;
}
.ex-desc { color: var(--muted); line-height: 1.6; margin: 0; text-wrap: pretty; }
.ex-points {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px; line-height: 1.6; letter-spacing: 0.02em;
  color: var(--ink);
}

/* ── Actions ──────────────────────────────────────────────────────────── */
.ex-actions {
  margin-top: auto; padding-top: 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
}
.ex-visit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--accent-deep);
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-spring), box-shadow 200ms ease,
              filter 200ms ease;
}
.ex-visit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.ex-quote {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 180ms ease, color 180ms ease;
}
.ex-quote:hover { color: var(--ink); border-bottom-color: currentColor; }
.ex-visit:focus-visible, .ex-quote:focus-visible {
  outline: 2px solid var(--fg); outline-offset: 3px;
}

.ex-empty {
  margin: 32px 0 0;
  padding: 22px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  background: var(--paper);
}

/* ── Encart « ce que vous voyez » ─────────────────────────────────────── */
.ex-note-section { padding-top: 12px; }
.ex-note {
  max-width: 860px; margin: 0 auto;
  display: flex; gap: 20px; align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  padding: 26px 28px;
}
.ex-note-ico {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  color: var(--on-accent); background: var(--fg);
}
.ex-note-ico svg { width: 20px; height: 20px; }
.ex-note-title {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 650; letter-spacing: -0.02em;
  margin: 2px 0 10px;
}
.ex-note p { color: var(--muted); line-height: 1.6; margin: 0 0 10px; text-wrap: pretty; }
.ex-note p:last-child { margin-bottom: 0; }
.ex-note p strong { color: var(--fg); font-weight: 600; }

/* ── Thème sombre ─────────────────────────────────────────────────────── */
/* Les accents viennent de chartes conçues sur fond clair : tels quels ils
   sombrent dans le fond #111110. On les remonte vers le blanc pour l'encre et
   les pastilles, et on repasse l'encre du bouton plein en sombre. */
[data-theme="dark"] .ex-card {
  --lift: color-mix(in oklab, var(--vert-accent) 62%, #ffffff);
  --tint: color-mix(in oklab, var(--vert-accent) 10%, var(--card));
  --ink: var(--lift);
}
[data-theme="dark"] .ex-card::before { background: var(--lift); }
[data-theme="dark"] .ex-ico,
[data-theme="dark"] .ex-visit { background: var(--lift); color: #111110; }
[data-theme="dark"] .ex-badge {
  background: color-mix(in oklab, var(--lift) 14%, var(--card));
  border-color: color-mix(in oklab, var(--lift) 36%, transparent);
}
[data-theme="dark"] .ex-card:hover {
  border-color: color-mix(in oklab, var(--lift) 34%, var(--line));
  box-shadow: 0 26px 52px -30px rgba(0, 0, 0, 0.7);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ex-note { flex-direction: column; gap: 14px; }
}
@media (max-width: 640px) {
  .ex-hero { padding: 118px 18px 24px; }
  .ex-hero-lead { font-size: 16px; }
  .ex-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
  .ex-card { padding: 26px 22px 22px; }
  .ex-brand { font-size: 22px; }
  /* Cibles tactiles : le lien secondaire garde 44 px de haut sur mobile. */
  .ex-actions { gap: 12px; }
  .ex-quote { min-height: 44px; }
  .ex-visit { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .ex-card, .ex-visit { transition: none; }
  .ex-card:hover, .ex-visit:hover { transform: none; }
}

/* Sur un appareil sans souris, iOS garde l'état de survol jusqu'au tap suivant. */
@media (hover: none) {
  .ex-hero-fine a:hover { border-bottom-color: var(--line-strong); }
}
