/* ============================================================
   Offres — /audit/ et /accompagnement/
   Compléments au design system de /systeme-contexte-ia/
   (contexte.css est chargé avant ce fichier : mêmes variables,
   mêmes boutons, même header, même timeline, même FAQ, même
   formulaire, même footer). Ici : uniquement les blocs propres
   aux deux pages d'offre.
   ============================================================ */

/* ---------- Hero d'offre ---------- */
.hero-offer {
  padding: 56px 0 44px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 60% at 55% -12%, rgba(81, 162, 255, .14), transparent 60%),
    var(--bg);
}

.hero-offer .wrap { position: relative; z-index: 2; }

.hero-offer .hero-grid { align-items: start; }

.hero-offer h1 {
  font-size: clamp(2.2rem, 6.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .98;
  margin-bottom: 16px;
  max-width: none;
}

.hero-offer h1 em { font-style: normal; color: var(--blue-dark); }

/* Titre-marque pleine largeur (accompagnement) : la grille vient dessous */
.hero-offer h1 + .hero-grid { margin-top: 6px; }

.hero-offer h1 + .hero-grid .hero-trace { margin-top: 6px; }

/* Titre long (audit) : un cran plus petit que le titre-marque */
.hero-offer h1.h1-long { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.06; letter-spacing: -0.03em; }

.hero-baseline {
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.32;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 18px;
}

.hero-baseline em { font-style: normal; color: var(--ink); }

.hero-offer .hero-lead { margin-bottom: 26px; }

.hero-offer .hero-cta-row { margin-bottom: 0; gap: 14px; }

/* Ligne de preuve (photo + phrase) sous les boutons */
.proof-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: .9rem;
  color: var(--muted);
  max-width: 620px;
}

.proof-line img {
  width: 46px; height: 46px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: none;
}

.proof-line strong { color: var(--ink); font-weight: 600; }

/* Trace terminal : lignes rouges (constats) et lignes atténuées */
.hero-trace .tl-bad { color: #FF7A9A; }
.hero-trace .tl-dim { color: var(--night-muted); opacity: .7; }
.hero-trace .tl-head { color: var(--night-ink); }

/* Badge de disponibilité (accompagnement, alimenté par le backoffice) */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.avail-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #E8920D;
  box-shadow: 0 0 8px rgba(232, 146, 13, .6);
  animation: avail-pulse 2.5s ease-in-out infinite;
  flex: none;
}

.avail-dot.full { background: var(--red); box-shadow: 0 0 8px rgba(214, 53, 92, .5); animation: none; }

@keyframes avail-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.avail-date { color: var(--muted-2); }

/* ---------- Avant / après (et « est-ce pour vous ») ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }

.ba-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
}

.ba-card.bad { background: linear-gradient(180deg, rgba(214, 53, 92, .05), transparent 55%), var(--panel); }

.ba-card.good {
  border-color: rgba(14, 138, 80, .35);
  background: linear-gradient(180deg, rgba(14, 138, 80, .07), transparent 55%), var(--panel);
}

.ba-card .duel-side-label { margin-bottom: 4px; }

.ba-card h3 { font-size: 1.15rem; margin-bottom: 6px; }

.ba-card > p { font-size: .92rem; }

.ba-card ul { list-style: none; display: grid; gap: 12px; margin-top: 16px; }

.ba-card li { display: flex; gap: 10px; font-size: .95rem; color: var(--muted); line-height: 1.5; }

.ba-card li::before { content: "✗"; color: var(--red); font-weight: 700; flex: none; }

.ba-card.good li::before { content: "✓"; color: var(--green); }

.ba-card li strong { color: var(--ink); font-weight: 600; }

/* Métriques avant → après */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }

.metric {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.metric .vals { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }

.metric .before { font-size: 1.05rem; font-weight: 600; color: var(--muted-2); text-decoration: line-through; text-decoration-color: var(--border); }

.metric .arrow { font-size: .85rem; color: var(--muted-2); }

.metric .after { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.03em; color: var(--blue-dark); line-height: 1.1; }

.metric .label { font-size: .78rem; color: var(--muted); line-height: 1.35; margin-top: 6px; }

/* ---------- Ce qui est inclus ---------- */
.inc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 10px; }

.inc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inc-card .ic-mono { font-family: var(--mono); font-size: .7rem; color: var(--blue-dark); letter-spacing: .03em; margin-bottom: 6px; }

.inc-card h3 { font-size: 1rem; }

.inc-card p { font-size: .86rem; line-height: 1.5; }

/* ---------- Conditions ---------- */
.cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }

.cond-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.cond-card.featured {
  border-color: var(--blue-line);
  background: linear-gradient(180deg, rgba(81, 162, 255, .09), transparent 70%), var(--panel);
}

.cond-num { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); line-height: 1.05; }

.cond-label { font-family: var(--mono); font-size: .72rem; color: var(--blue-dark); letter-spacing: .06em; text-transform: uppercase; margin: 8px 0 12px; }

.cond-detail { font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ---------- Tableau comparatif ---------- */
.cmp-wrap {
  overflow-x: auto;
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

table.cmp { width: 100%; border-collapse: collapse; min-width: 780px; font-size: .9rem; }

.cmp th, .cmp td { padding: 14px 16px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; line-height: 1.45; }

.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: none; }

.cmp thead th {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--bg-soft);
  white-space: nowrap;
}

.cmp thead th.hl { color: var(--blue-dark); }

.cmp tbody th { font-weight: 600; color: var(--ink); width: 21%; }

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

.cmp td strong { color: var(--ink); font-weight: 600; }

.cmp td.hl, .cmp th.hl { background: var(--blue-soft); }

.cmp .ok { color: var(--green); font-weight: 700; }

.cmp .ko { color: var(--red); font-weight: 700; }

.cmp-note { font-size: .8rem; color: var(--muted-2); margin-top: 12px; }

/* ---------- Études de cas ---------- */
.case {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  margin-top: 22px;
}

.case-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 22px; }

.case-head h3 { font-size: 1.35rem; }

.case-sub { font-family: var(--mono); font-size: .74rem; color: var(--muted-2); display: block; margin-top: 4px; }

.case-body { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }

.case-body > div { min-width: 0; }

.case-big { margin-bottom: 16px; }

.case-big .num { display: block; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; color: var(--blue-dark); line-height: 1; }

.case-big .lbl { font-size: .92rem; color: var(--muted); }

.case p { font-size: .94rem; }

.case .metric-grid { margin-top: 0; margin-bottom: 18px; }

.case-deliv { list-style: none; display: grid; gap: 9px; margin-top: 14px; }

.case-deliv li { display: flex; gap: 10px; font-size: .9rem; color: var(--muted); }

.case-deliv li::before { content: "✓"; color: var(--green); font-weight: 700; flex: none; }

.case-deliv li strong { color: var(--ink); font-weight: 600; }

.case-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

.case-shots figure { margin: 0; }

.case-shots img { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--border); }

.case-shots figcaption { font-family: var(--mono); font-size: .68rem; color: var(--muted-2); margin-top: 6px; }

/* ---------- Cartes « site en production » (cadre navigateur) ---------- */
.site-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 10px; }

.site-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}

.site-card:hover { transform: translateY(-4px); border-color: var(--blue-line); box-shadow: var(--shadow-lift); }

.site-card.featured { grid-column: span 2; }

.site-card.featured .sc-shot { aspect-ratio: 2 / 1; }

.site-grid.two { grid-template-columns: repeat(2, 1fr); }

.sc-frame {
  background: var(--night);
  border-bottom: 1px solid var(--night-border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
}

.sc-frame i { width: 8px; height: 8px; border-radius: 999px; background: #2A3A5C; }

.sc-frame .url {
  margin-left: 8px;
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--night-muted);
  background: rgba(255, 255, 255, .06);
  border-radius: 6px;
  padding: 3px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }

.sc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.sc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.sc-role { font-family: var(--mono); font-size: .68rem; color: var(--blue-dark); letter-spacing: .05em; text-transform: uppercase; }

.sc-body h3 { font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.sc-body h3::after { content: "↗"; color: var(--blue-dark); font-weight: 400; font-size: .9rem; }

.sc-body p { font-size: .86rem; line-height: 1.5; }

.sc-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

.sc-stats .mono-chip { padding: 4px 10px; font-size: .68rem; }

/* ---------- Image de références ---------- */
.ref-figure {
  margin: 10px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--panel);
}

.ref-figure img { display: block; width: 100%; }

.ref-figure figcaption { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); padding: 10px 16px; border-top: 1px solid var(--border-soft); }

/* ---------- Carrousel (vidéos YouTube, livrables) ---------- */
.oc { margin-top: 26px; }

.oc .demo-tabs { margin-bottom: 14px; }

.oc-track {
  position: relative;
  border: 1px solid var(--night-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night);
  box-shadow: var(--shadow-lift);
}

.oc-slide { display: none; aspect-ratio: 16 / 9; }

.oc-slide.active { display: block; }

.oc-slide iframe, .oc-slide img { width: 100%; height: 100%; display: block; border: 0; }

.oc-slide img { object-fit: contain; background: var(--night); }

.oc-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }

.oc-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  flex: none;
}

.oc-btn:hover { border-color: var(--blue-line); transform: translateY(-1px); }

.oc-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.oc-dot { width: 9px; height: 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); padding: 0; cursor: pointer; transition: all .2s; }

.oc-dot:hover { border-color: var(--blue-line); }

.oc-dot.active { background: var(--blue); border-color: var(--blue); }

.oc-caption { text-align: center; font-family: var(--mono); font-size: .74rem; color: var(--muted-2); margin-top: 12px; min-height: 1.2em; }

/* ---------- Témoignages ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }

.testi {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testi .q { font-size: .9rem; color: var(--muted); line-height: 1.55; }

.testi .q::before { content: "« "; color: var(--blue-dark); }

.testi .q::after { content: " »"; color: var(--blue-dark); }

.testi .who { display: flex; align-items: center; gap: 10px; margin-top: auto; }

.testi .who img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; border: 1px solid var(--border); flex: none; }

.testi .who strong { display: block; font-size: .88rem; color: var(--ink); }

.testi .who span { font-family: var(--mono); font-size: .68rem; color: var(--muted-2); }

.testi-hidden { display: none; }

.testi-hidden.open { display: contents; }

.testi-more { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- Cas concrets à onglets (audit) ---------- */
.story-panel { display: none; }

.story-panel.active { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }

.story-panel > div { min-width: 0; }

.story-text p { font-size: .95rem; }

.story-text p + p { margin-top: 12px; }

.story-side { display: flex; flex-direction: column; gap: 14px; }

.story-side .site-card:hover { transform: none; }

.story-testimonial {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.story-testimonial img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; border: 1px solid var(--border); flex: none; }

.story-testimonial .q { font-size: .88rem; color: var(--muted); line-height: 1.5; }

.story-testimonial .q::before { content: "« "; color: var(--blue-dark); }

.story-testimonial .q::after { content: " »"; color: var(--blue-dark); }

.story-testimonial .who { font-family: var(--mono); font-size: .7rem; color: var(--muted-2); margin-top: 6px; }

.story-testimonial .who strong { color: var(--ink); font-family: var(--font); font-size: .82rem; }

/* ---------- Problèmes (audit) ---------- */
.prob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }

.prob-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.prob-card .pc-mono { font-family: var(--mono); font-size: .7rem; color: var(--red); display: block; margin-bottom: 10px; }

.prob-card h3 { font-size: 1.06rem; margin-bottom: 8px; line-height: 1.3; }

.prob-card p { font-size: .9rem; }

/* ---------- Garantie (audit) ---------- */
.guarantee-card {
  border: 1px solid var(--blue-line);
  background: linear-gradient(180deg, rgba(81, 162, 255, .09), transparent 70%), var(--panel);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: 0 0 40px rgba(81, 162, 255, .16);
  margin-top: 10px;
}

.guarantee-card h2 { margin-bottom: 14px; }

.guarantee-card p { font-size: 1.02rem; max-width: 820px; }

.guarantee-card .fine { margin-top: 18px; }

/* ---------- Liste de livrables numérotée (audit) ---------- */
.deliv-list { list-style: none; counter-reset: deliv; display: grid; gap: 12px; margin-top: 10px; max-width: 900px; }

.deliv-list li {
  counter-increment: deliv;
  display: flex;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px 18px;
  font-size: .94rem;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.deliv-list li::before {
  content: counter(deliv, decimal-leading-zero);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue-dark);
  flex: none;
  padding-top: 3px;
}

.deliv-list li strong { color: var(--ink); font-weight: 600; }

/* ---------- Qui est derrière ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: start; margin-top: 8px; }

.about-grid > div { min-width: 0; }

.about-grid .stats-row { margin-top: 22px; }

/* ---------- Bande CTA d'offre ---------- */
.cta-band .proof-line { justify-content: center; margin: 0 auto; }

/* ---------- Texte long ---------- */
.prose { max-width: 820px; }

.section-lead strong { color: var(--ink); font-weight: 600; }

/* ---------- Pied de page à trois colonnes (pages satellites, sans liens croisés) ---------- */
.footer-cols.three { grid-template-columns: 1.6fr 1fr 1fr; }

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .inc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .ba-grid, .case-body, .prob-grid, .about-grid { grid-template-columns: 1fr; }
  .story-panel.active { grid-template-columns: 1fr; }
  .site-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .site-card.featured .sc-shot { aspect-ratio: 16 / 10; }
  .cond-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero-offer { padding: 36px 0 34px; }
  .site-grid, .site-grid.two, .testi-grid, .metric-grid, .inc-grid, .case-shots { grid-template-columns: 1fr; }
  .site-card.featured { grid-column: span 1; }
  .guarantee-card { padding: 26px 20px; }
  .case { padding: 22px 18px; }
  .proof-line { align-items: flex-start; }
}
