/* ============================================================
   Ouvria, feuille de style partagée des pages SEO de contenu
   (lexique, guides, outils gratuits). Charte site publique :
   Sora + Inter, orange #EA580C, fond crème, zéro emoji.
   Une seule source de style pour toute la page-factory.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #EA580C; --orange-dark: #C2410C; --orange-tint: #FFF7ED;
  --green: #22C55E; --slate: #0F172A;
  --ink: #1C1917; --ink-2: #292524; --body: #44403C; --muted: #78716C; --soft: #A8A29E;
  --bg: #FAFAF8; --bg-2: #F5F5F4; --line: #E7E5E4;
  --ease: cubic-bezier(0.32,0.72,0,1);
  --maxw: 820px;
}
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, video { max-width: 100%; height: auto; display: block; }

/* a11y */
.skip-link{position:absolute;left:-9999px;top:0;background:#0F172A;color:#fff;padding:8px 12px;z-index:9999;font-weight:600;border-radius:0 0 6px 0;text-decoration:none}
.skip-link:focus{left:0}
a:focus-visible, button:focus-visible{outline:2px solid #EA580C;outline-offset:2px;border-radius:4px}

/* Header / nav */
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--body); min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { color: var(--orange); text-decoration: none; }
.nav-cta { background: var(--ink); color: #fff !important; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.nav-cta:hover { background: var(--orange); text-decoration: none; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* Hero */
.hero { background: radial-gradient(ellipse at top, #FFF7ED 0%, #FAFAF8 60%); padding: 64px 24px 48px; text-align: center; border-bottom: 1px solid var(--bg-2); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600; color: var(--orange); background: #fff; border: 1px solid #FED7AA; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.08em; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,0.15); }
h1 { font-family: 'Sora', sans-serif; font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; line-height: 1.1; color: var(--slate); max-width: 820px; margin: 0 auto 18px; letter-spacing: -0.025em; }
.hero-sub { font-size: 18px; color: #44403C; max-width: 640px; margin: 0 auto 30px; line-height: 1.6; }

/* CTA */
.cta-group { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; padding: 15px 30px; min-height: 48px; border-radius: 12px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.2s ease; box-shadow: 0 4px 14px rgba(234,88,12,0.25); }
.cta-btn:hover { background: var(--orange-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(234,88,12,0.32); }
.cta-meta { font-size: 13px; color: var(--muted); display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.cta-meta span { display: inline-flex; align-items: center; gap: 4px; }
.cta-meta span::before { content: '\2713'; color: var(--green); font-weight: 700; }

/* Corps de contenu */
.container { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px; }
h2 { font-family: 'Sora', sans-serif; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--slate); margin-top: 48px; margin-bottom: 16px; letter-spacing: -0.02em; line-height: 1.25; }
h3 { font-family: 'Sora', sans-serif; font-size: 19px; font-weight: 600; color: var(--ink-2); margin-top: 30px; margin-bottom: 10px; letter-spacing: -0.01em; }
p { margin-bottom: 16px; color: var(--body); }
ul, ol { margin: 12px 0 20px 22px; }
li { margin-bottom: 8px; color: var(--body); }
strong { color: var(--ink); font-weight: 600; }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.7; margin-bottom: 24px; }

/* Réponse directe en tête (signal GEO fort : 1er tiers du texte) */
.answer-box { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 12px; padding: 20px 24px; margin: 0 0 28px; }
.answer-box p:last-child { margin-bottom: 0; }
.answer-box .answer-label { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); margin-bottom: 8px; display: block; }

/* Encadré clé / astuce */
.callout { background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 12px; padding: 20px 24px; margin: 28px 0; }
.callout h3 { margin-top: 0; font-size: 15px; color: var(--orange); text-transform: uppercase; letter-spacing: 0.06em; font-family: 'Sora', sans-serif; }
.callout ul { margin: 12px 0 0 20px; }

/* Tableau */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-2); }
tr:last-child td { border-bottom: none; }
td { color: var(--body); }

/* Lexique : grille de termes */
.lex-search { max-width: 520px; margin: 0 auto 8px; }
.lex-search input { width: 100%; padding: 14px 18px; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-family: inherit; }
.lex-search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234,88,12,0.12); }
.lex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
@media (max-width: 640px) { .lex-grid { grid-template-columns: 1fr; } }
.lex-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; transition: border-color 0.2s, transform 0.2s; }
.lex-card:hover { border-color: #FED7AA; transform: translateY(-1px); text-decoration: none; }
.lex-card strong { display: block; font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.lex-card span { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Cartes d'index (outils, guides) */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }
.tool-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: border-color 0.2s, transform 0.2s; }
.tool-card:hover { border-color: #FED7AA; transform: translateY(-1px); text-decoration: none; }
.tool-card h3 { margin-top: 0; }
.tool-card p { font-size: 14px; color: var(--muted); margin-bottom: 0; }

/* Outil : calculateur */
.calc { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin: 28px 0; box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 10px 30px -12px rgba(15,23,42,0.10); }
.calc label { display: block; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; color: var(--slate); margin: 16px 0 6px; }
.calc input, .calc select { width: 100%; padding: 13px 15px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-family: inherit; color: var(--ink); }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234,88,12,0.12); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .calc-row { grid-template-columns: 1fr; } }
.calc-result { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; font-size: 15px; color: var(--body); }
.calc-result-row .val { font-family: 'Sora', sans-serif; font-weight: 600; color: var(--slate); font-variant-numeric: tabular-nums; }
.calc-result-row.total { margin-top: 8px; padding-top: 14px; border-top: 2px solid var(--slate); font-size: 18px; }
.calc-result-row.total .val { color: var(--orange); font-size: 22px; font-weight: 800; }
.calc-note { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.55; }

/* FAQ */
.faq-section { margin-top: 56px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; color: var(--slate); margin-bottom: 8px; letter-spacing: -0.01em; }
.faq-a { font-size: 15px; color: #57534E; line-height: 1.65; }
.faq-a p { color: #57534E; }

/* Liens connexes (maillage interne) */
.related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; font-size: 18px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--body); }
.related-links a:hover { border-color: #FED7AA; color: var(--orange); text-decoration: none; }

/* CTA final sombre */
.cta-section { background: linear-gradient(135deg, var(--slate) 0%, #1E293B 100%); border-radius: 20px; padding: 52px 40px; text-align: center; margin: 56px 0 0; color: #fff; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -120px; right: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(234,88,12,0.35) 0%, transparent 70%); pointer-events: none; }
.cta-section h2 { color: #fff; margin-top: 0; font-size: clamp(24px, 3.4vw, 30px); position: relative; }
.cta-section p { color: rgba(241,245,249,0.78); margin-bottom: 26px; position: relative; }
.cta-btn-white { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; padding: 15px 32px; border-radius: 12px; transition: all 0.2s ease; position: relative; box-shadow: 0 6px 20px rgba(234,88,12,0.4); }
.cta-btn-white:hover { background: #F97316; text-decoration: none; transform: translateY(-1px); }

/* Footer */
footer { background: #fff; border-top: 1px solid var(--line); padding: 48px 24px 32px; }
.footer-inner { max-width: 980px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-col h4 { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); padding: 9px 0; min-height: 40px; line-height: 1.5; }
.footer-col a:hover { color: var(--orange); text-decoration: none; }
.footer-tag { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 280px; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--soft); }
.footer-bottom a { color: var(--soft); }

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 40px 20px; }
  h1 { font-size: clamp(28px, 7vw, 36px); }
  h2 { font-size: clamp(22px, 5.5vw, 26px); margin-top: 36px; }
  .hero { padding: 48px 20px 36px; }
  .hero-sub { font-size: 16px; }
  .cta-btn, .cta-btn-white { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===== Rail lateral de photos d'artisans (parallaxe, desktop only) =====
   Rempli par /js/seo-siderail.js. Masque en dessous de 1180px et a l'impression. */
.seo-rail {
  position: fixed; top: 0; bottom: 0; z-index: 0; overflow: hidden; pointer-events: none;
  width: clamp(170px, calc((100vw - var(--maxw)) / 2 - 28px), 300px);
  opacity: 0; transition: opacity 0.7s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.seo-rail.is-on { opacity: 1; }
.seo-rail-l { left: 0; }
.seo-rail-r { right: 0; }
.seo-rail-track { position: absolute; top: 0; left: 0; right: 0; display: flex; flex-direction: column; gap: 22px; padding: 88px 22px; will-change: transform; }
.seo-rail-r .seo-rail-track { padding-top: 180px; }
.seo-rail figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(28,25,23,0.12); background: var(--bg-2); }
.seo-rail img { width: 100%; height: auto; display: block; }
/* le contenu reste au-dessus des rails */
header, main, footer { position: relative; z-index: 1; }
@media (max-width: 1180px) { .seo-rail { display: none; } }
@media print { .seo-rail { display: none !important; } }
