/* ═══════════════════════════════════════════════════════════
   AUPTIMA — Styles des pages secondaires (ex-styles inline)
   Support, 404, pages légales, PAC, formation, démo.
   Mobile-first ; dépend des tokens de style.css + thème.
   ═══════════════════════════════════════════════════════════ */

/* ── Utilitaires ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.container-narrow { max-width: 980px; }
.btn-block { width: 100%; }
.muted { color: var(--text-3); font-size: .9em; }
.accent-link { color: var(--accent-dk); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.module-note, .legal-note { margin-top: 1rem; font-size: .9375rem; color: var(--text-2); }

/* ── Page hero centré (support) ──────────────────────────────── */
.page-hero-center { text-align: center; }
.page-hero-center .container { max-width: 920px; }
.page-hero-center h1 { margin-bottom: 1rem; }
.page-hero-center p { margin: 0 auto; max-width: 680px; font-size: 1.0625rem; line-height: 1.6; }

/* ── Cartes de contenu (support) ─────────────────────────────── */
.support-body { padding: 0 0 var(--space-block); }
.support-cta { padding: 0 0 var(--space-section); }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--card-pad);
  margin-bottom: var(--gap);
}
.card-tint { background: linear-gradient(135deg, rgba(233, 75, 124, 0.04), rgba(255, 138, 155, 0.04)), var(--bg-card); }
.card-accent { border-left: 3px solid var(--accent); }
.card h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .75rem; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 .5rem; }
.card-h2-sub { display: block; font-weight: 500; color: var(--text-2); font-size: 1rem; margin-top: .25rem; }
.card p { line-height: 1.6; color: var(--text-2); margin: 0; }
.card p + p, .card ul + p { margin-top: .75rem; }
.card ul { line-height: 1.7; color: var(--text-2); margin: .75rem 0 0; padding-left: 1.25rem; }
.card ul li { list-style: disc; margin-bottom: .35rem; }
.card a:not(.btn) { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 3px; }
.card table { width: 100%; min-width: 440px; font-size: .9375rem; }
.card th, .card td { padding: .75rem .4rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.card thead th { font-weight: 600; border-bottom-width: 2px; }
.card th:not(:first-child), .card td:not(:first-child) { text-align: right; }
.card tbody tr:last-child td { border-bottom: 0; }

/* ── Page 404 ────────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 0 var(--space-section);
}
.error-code { font-size: clamp(3.5rem, 12vw, 5rem); margin-bottom: 1rem; opacity: .15; font-weight: 800; line-height: 1; color: var(--text); }
.error-page h1 { margin-bottom: 1rem; }
.error-text { color: var(--text-2); margin: 0 auto 2.5rem; max-width: 440px; }
.error-actions { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .error-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; } }

/* ── Landing PAC (compléments des styles inline) ─────────────── */
.pac-h2 { text-align: center; font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.4rem); }
.pac-lead { text-align: center; max-width: 600px; margin: 1rem auto 0; color: var(--text-2); }
.pac-lead-after { margin-top: 2rem; }
.pricing-block .pac-lead { margin: 1rem auto 2rem; }
.pac-plan-badge {
  display: inline-block;
  background: #fef0f5;
  color: #9d1f4f;
  font-size: .8125rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}
.pac-fineprint { font-size: .875rem; color: var(--text-2); margin-top: .8rem; }

/* ── Formation ───────────────────────────────────────────────── */
.formation-success { margin-top: calc(var(--nav-h) + 1.5rem); }
.formation-success-title { font-size: 1.5rem; margin-bottom: .5rem; }
.formation-success p { color: var(--text-2); font-size: 1rem; }

/* ── Démo (/demo) ────────────────────────────────────────────── */
.demo-cta-lead { color: var(--text-2); max-width: 600px; margin: 0 auto; }

/* ── Bandeau CTA final tarifs / bénéfices : ligne d'aside centrée ── */
.cta-final .cta-aside { text-align: center; }

/* ── Pages métier (/plombier, /electricien, /chauffagiste, /menuisier, /peintre, /couvreur) ── */
.metier-hero { padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 1.5rem) 0 2.5rem; text-align: center; background: linear-gradient(135deg, #fff8ee 0%, #fff5f9 100%); }
.metier-hero .badge-vertical { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1.5px solid #f5d4e1; padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #9d1f4f; margin-bottom: 1rem; }
.metier-hero .badge-vertical .si { width: 1.1em; height: 1.1em; color: var(--accent); }
.metier-hero h1 { font-size: clamp(1.75rem, 1.1rem + 3.2vw, 3.3rem); line-height: 1.12; margin: 1rem auto; max-width: 900px; }
.metier-hero h1 .accent { color: var(--accent); }
.metier-hero p.lead { max-width: 740px; margin: 0 auto 1.75rem; color: var(--text-2); font-size: 1.0625rem; line-height: 1.6; }
.metier-cta-row { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; }
.metier-cta-row .btn .si { width: 1.1em; height: 1.1em; }
@media (min-width: 640px) { .metier-cta-row { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 1rem; } }
.metier-hero .hero-fr { margin-top: 1.1rem; }

.metier-section { padding: var(--space-block) 0; }
.metier-section-alt { background: linear-gradient(135deg, #fff5f9 0%, #fef0f5 100%); }
.metier-section-soft { background: #fafafa; }

/* 3 situations : urgence / devis / rendez-vous */
.situations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--gap); max-width: 1100px; margin: 2rem auto 0; }
.situation { background: #fff; border: 1.5px solid #f1eef0; border-radius: 18px; padding: var(--card-pad); box-shadow: 0 2px 12px rgba(233, 75, 124, 0.04); }
.situation .situation-icon { display: block; width: 2.2rem; height: 2.2rem; color: var(--accent); margin-bottom: .6rem; }
.situation .situation-kind { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--accent-dk); }
.situation h3 { font-size: 1.1rem; font-weight: 700; margin: .25rem 0 .7rem; }
.situation p { font-size: .9375rem; color: #4d4d52; line-height: 1.55; margin: 0; }
.situation p + p { margin-top: .65rem; }
.situation p strong { color: var(--text); }
.situation q { font-style: italic; }

/* Extrait de conversation */
.chat-extract { max-width: 640px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: .8rem; }
.chat-msg { max-width: 88%; display: flex; flex-direction: column; }
.chat-msg .chat-who { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #6b6b70; font-weight: 700; margin-bottom: .25rem; }
.chat-msg .chat-bubble { padding: .7rem .95rem; border-radius: 14px; font-size: .9375rem; line-height: 1.5; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.chat-msg.chat-client { align-self: flex-start; }
.chat-msg.chat-client .chat-bubble { background: #fff; border: 1px solid #f1eef0; color: #2a2a2e; border-bottom-left-radius: 4px; }
.chat-msg.chat-hello { align-self: flex-end; align-items: flex-end; text-align: right; }
.chat-msg.chat-hello .chat-who { color: var(--accent-dk); }
.chat-msg.chat-hello .chat-bubble { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%); color: #fff; border-bottom-right-radius: 4px; text-align: left; }
.chat-note { text-align: center; font-size: .875rem; color: var(--text-2); margin: 1.25rem auto 0; max-width: 640px; }

/* Ce qui est inclus */
.included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--gap); max-width: 1100px; margin: 2rem auto 0; }
.included { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1.5px solid #f1eef0; border-radius: 16px; padding: 1.1rem 1.2rem; }
.included .si { flex-shrink: 0; width: 1.6rem; height: 1.6rem; color: var(--accent); margin-top: .1rem; }
.included strong { display: block; font-size: 1rem; margin-bottom: .2rem; }
.included span { font-size: .9rem; color: #4d4d52; line-height: 1.5; }

/* Tarif en une ligne */
.metier-price { text-align: center; }
.metier-price .price-line { font-size: 1.0625rem; line-height: 1.65; max-width: 760px; margin: 1rem auto 1.5rem; color: var(--text-2); }
.metier-price .price-line strong { color: var(--text); }
.metier-price .accent-link { display: inline-block; margin-top: .5rem; }

/* FAQ métier */
.metier-faq .faq-list { max-width: 820px; margin: 1.5rem auto 0; display: grid; gap: .875rem; }
.metier-faq details { background: #fff; border: 1.5px solid #f1eef0; border-radius: 14px; padding: 0 1.1rem; }
.metier-faq details[open] { border-color: var(--accent); }
.metier-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 0; font-weight: 700; font-size: 1rem; min-height: var(--tap); }
.metier-faq summary::-webkit-details-marker { display: none; }
.metier-faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--accent-dk); flex-shrink: 0; line-height: 1; }
.metier-faq details[open] summary::after { content: '−'; }
.metier-faq details p { color: var(--text-2); font-size: .9375rem; line-height: 1.6; margin: 0 0 1rem; }
.metier-faq details p strong { color: var(--text); }
.metier-faq details p a { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 3px; }

/* Autres métiers + CTA final */
.metier-others { text-align: center; margin: 2rem auto 0; font-size: .9375rem; color: var(--text-2); max-width: 760px; line-height: 1.9; }
.metier-others a { color: var(--accent-dk); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin: 0 .35rem; white-space: nowrap; }
.metier-cta-final { padding: var(--space-section) 0; text-align: center; background: linear-gradient(135deg, #1A1A2E 0%, #2d1538 100%); color: #fff; }
.metier-cta-final h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); margin-bottom: 1rem; }
.metier-cta-final p { max-width: 620px; margin: 0 auto 2rem; color: rgba(255,255,255,.92); }
.metier-cta-final .btn-secondary { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }

/* Footer : colonne « HELLO par métier » (5e colonne ≥ 1024 px) */
@media (min-width: 1024px) {
  .footer-grid:has(.footer-metiers) { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
  .footer-grid:has(.footer-metiers):has(.footer-cta-col) { grid-template-columns: 1.4fr 1fr .9fr .9fr 1fr 1.3fr; }
}

/* Accroche du bloc « Le problème » (accueil) — le point de comparaison que le
   visiteur a déjà en tête, dans les mots qu'il emploie (21/09/2026). */
.problems-lede {
  max-width: 46rem;
  margin: .75rem auto 0;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.6;
}
.problems-lede strong { color: var(--text); }
