/* ============================================================
   RESSOURCES.CSS — styles externalisés pour les pages SEO
   - sections #conseils-artisans + #seo-complement (index.html)
   - ressources.html + ressources/*.html
   ============================================================ */

:root {
  --fire: #E8580A;
  --fire-2: #F97316;
  --ink: #0f1117;
  --ink-2: #1a1d27;
  --text: #1a1d27;
  --text-mid: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --bg: #f8fafc;
}

/* ============================================================
   SECTION ARTICLES (index.html #conseils-artisans)
   ============================================================ */
.articles-section { background: #f8fafc; padding: 60px 20px; }
.articles-section-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.articles-section h2 { font-size: 1.6rem; font-weight: 700; color: #1a1d27; margin-bottom: 8px; }
.articles-section-lead { color: #6b7280; margin-bottom: 36px; }
.articles-grid { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.article-card { display: block; background: #fff; border-radius: 12px; padding: 24px; width: 260px; text-align: left; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.07); border: 1px solid #e5e7eb; transition: all .2s; }
.article-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.1); transform: translateY(-2px); text-decoration: none; }
.article-card-icon { font-size: 1.5rem; }
.article-card-title { font-size: 1rem; font-weight: 700; color: #1a1d27; margin: 12px 0 8px; }
.article-card-desc { font-size: 0.85rem; color: #6b7280; line-height: 1.5; }
.article-card-link { font-size: 0.8rem; color: #F97316; font-weight: 600; margin-top: 12px; display: block; }
.articles-section-cta { display: inline-block; margin-top: 32px; padding: 12px 28px; background: #F97316; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.articles-section-cta:hover { background: #E8580A; text-decoration: none; }

/* ============================================================
   SECTION SEO (index.html #seo-complement)
   ============================================================ */
.seo-section { background: #fff; padding: 48px 20px 32px; border-top: 1px solid #f0f0f0; }
.seo-section-inner { max-width: 820px; margin: 0 auto; }
.seo-section h2 { font-size: 1.1rem; font-weight: 600; color: #374151; margin-bottom: 16px; }
.seo-section-columns { font-size: 0.82rem; color: #6b7280; line-height: 1.8; columns: 2; column-gap: 40px; }
.seo-section p { margin-bottom: .8em; }
@media (max-width: 700px) { .seo-section-columns { columns: 1; } }

/* ============================================================
   PAGES RESSOURCES — base
   ============================================================ */
body.ressources-body { font-family: 'Barlow', -apple-system, sans-serif; color: var(--text); background: #fff; line-height: 1.6; margin: 0; padding-top: 70px; }
body.ressources-body * { box-sizing: border-box; }
body.ressources-body a { color: var(--fire); text-decoration: none; }
body.ressources-body a:hover { text-decoration: underline; }
body.ressources-body ul, body.ressources-body ol { margin: 0; padding: 0; }

/* Header (pages ressources) — aligné avec index.html #hdr.scroll */
.ressources-header { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: 70px; display: flex; align-items: center; padding: 0 20px; background: rgba(13,13,13,.97); backdrop-filter: blur(24px); border-bottom: 1px solid rgba(255,255,255,.06); box-shadow: 0 2px 24px rgba(0,0,0,.5); }
.ressources-header-in { max-width: 1380px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow: hidden; }
.ressources-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ressources-nav { display: flex; align-items: center; gap: 0; flex-shrink: 1; }
.ressources-nav a { font-family: 'Barlow Condensed', sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.65); padding: 8px 9px; border-radius: 8px; transition: color .25s, background .25s; white-space: nowrap; }
.ressources-nav a:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.ressources-nav a.active { color: #fff; background: rgba(255,255,255,.07); }
.ressources-btn,
.ressources-btn:hover,
.ressources-btn:focus,
.ressources-btn:visited,
.ressources-btn:active { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: .78rem; transition: background .25s, transform .25s; border: none; cursor: pointer; color: #ffffff !important; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; font-family: 'Barlow Condensed', sans-serif; text-decoration: none; }
.ressources-btn-fire,
.ressources-btn-fire:visited { background: var(--fire); color: #ffffff !important; box-shadow: 0 4px 22px rgba(232,88,10,.38); }
.ressources-btn-fire:hover,
.ressources-btn-fire:focus { background: var(--fire-2); color: #ffffff !important; text-decoration: none; transform: translateY(-1px); }
@media (max-width: 800px) { .ressources-nav { display: none; } }

/* Hero ressources.html */
.ressources-hero { background: linear-gradient(180deg, #fef3e6 0%, #fff 100%); padding: 60px 20px 40px; text-align: center; }
.ressources-hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.ressources-hero h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink-2); line-height: 1.2; margin-bottom: 18px; }
.ressources-hero h1 .accent { color: var(--fire); }
.ressources-hero-lead { color: var(--text-mid); font-size: 1rem; line-height: 1.7; max-width: 720px; margin: 0 auto; }

/* Cards section ressources.html */
.ressources-cards-section { padding: 50px 20px; background: var(--bg); }
.ressources-section-title { text-align: center; font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--ink-2); margin-bottom: 36px; }
.ressources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.ressources-card { background: #fff; border-radius: 12px; padding: 26px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); border: 1px solid var(--border); display: block; color: inherit; transition: all .2s; }
.ressources-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.1); transform: translateY(-2px); text-decoration: none; }
.ressources-card-icon { font-size: 1.8rem; }
.ressources-card-title { font-size: 1.05rem; font-weight: 700; color: var(--ink-2); margin: 14px 0 10px; }
.ressources-card-desc { font-size: .9rem; color: var(--text-mid); line-height: 1.55; }
.ressources-card-link { display: block; margin-top: 14px; font-size: .85rem; color: var(--fire); font-weight: 600; }

/* ============================================================
   PAGES ARTICLES (ressources/*.html)
   ============================================================ */
.article-page { font-family: 'Barlow', -apple-system, sans-serif; color: var(--text); background: #fff; line-height: 1.6; margin: 0; }

/* Breadcrumb / header local */
.article-header { padding: 16px 20px; max-width: 760px; margin: 0 auto; font-size: .82rem; color: var(--text-mid); }
.article-header a { color: var(--text-mid); }
.article-header a:hover { color: var(--fire); }

/* Corps article */
.article-body { max-width: 760px; margin: 0 auto; padding: 30px 20px 50px; }
.article-body h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--ink-2); line-height: 1.2; margin-bottom: 24px; }
.article-body h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.45rem; color: var(--ink-2); margin: 36px 0 14px; padding-top: 4px; }
.article-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink-2); margin: 22px 0 8px; }
.article-body p { color: #374151; font-size: 1rem; line-height: 1.75; margin-bottom: 14px; }
.article-body ul { margin: 12px 0 14px 22px; color: #374151; }
.article-body li { margin-bottom: 6px; line-height: 1.7; }
.article-body strong { color: var(--ink-2); }
.article-body a { color: var(--fire); font-weight: 600; }

/* Bloc CTA encart orange */
.cta-box { background: #fff7ed; border: 1px solid #fdba74; border-radius: 12px; padding: 22px; margin: 30px 0; text-align: center; }
.cta-box p { margin-bottom: 12px; color: var(--ink-2); font-weight: 600; }

/* Bloc formule (rentabilite-chantier.html) */
.formula-box { background: #f0fdf4; border-left: 4px solid #22C55E; padding: 16px 20px; margin: 18px 0; border-radius: 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 1.05rem; color: #166534; font-weight: 600; }

/* Articles connexes (related cards en bas d'article) */
.article-nav-links { background: var(--bg); padding: 40px 20px; }
.article-nav-links h2 { text-align: center; font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; color: var(--ink-2); margin-bottom: 24px; }
.article-nav-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.article-nav-card { background: #fff; border-radius: 10px; padding: 20px; border: 1px solid var(--border); display: block; color: inherit; transition: box-shadow .2s; }
.article-nav-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); text-decoration: none; }
.article-nav-card h3 { font-size: .98rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.article-nav-card p { font-size: .85rem; color: var(--text-mid); }

/* ============================================================
   FOOTER (pages ressources)
   ============================================================ */
.ressources-footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 50px 20px 24px; }
.ressources-footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; max-width: 1200px; margin: 0 auto 30px; }
.ressources-footer-tagline { font-size: .9rem; color: rgba(255,255,255,.6); margin-top: 14px; line-height: 1.6; }
.ressources-footer h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.ressources-footer ul { list-style: none; margin: 0; padding: 0; }
.ressources-footer ul li { margin-bottom: 8px; }
.ressources-footer ul li a { color: rgba(255,255,255,.65); font-size: .88rem; }
.ressources-footer ul li a:hover { color: var(--fire-2); text-decoration: none; }
.ressources-footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(255,255,255,.5); }
@media (max-width: 800px) { .ressources-footer-top { grid-template-columns: 1fr; } }

/* ===== BLOC FACTURATION ÉLECTRONIQUE 2026 ===== */
#facturation-electronique-2026 {
  background:
    radial-gradient(circle at top left, rgba(249,115,22,0.12), transparent 35%),
    linear-gradient(180deg, #0c0c0f 0%, #121216 100%);
  padding: 50px 20px;
  position: relative;
}
#facturation-electronique-2026::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.7), transparent);
}
.fe-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}
.fe-image-col { flex: 1; }
.fe-image {
  width: 100%;
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(249,115,22,0.18),
    0 8px 24px rgba(0,0,0,0.45);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.fe-image:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow:
    0 30px 80px rgba(249,115,22,0.28),
    0 12px 32px rgba(0,0,0,0.55);
}
.fe-text-col { flex: 1; }
.fe-badge {
  display: inline-block;
  background: rgba(249,115,22,0.15);
  color: #F97316;
  border: 1px solid rgba(249,115,22,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 18px rgba(249,115,22,0.15);
}
.fe-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 16px;
}
.fe-intro {
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.fe-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}
.fe-list li {
  color: rgba(255,255,255,0.85);
  padding: 6px 0;
  font-size: 0.9rem;
}
.fe-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.fe-btn-primary {
  display: inline-block;
  background: #F97316;
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.fe-btn-primary:hover { background: #ea6d10; }
.fe-btn-secondary {
  display: inline-block;
  background: transparent;
  color: #F97316 !important;
  border: 1px solid #F97316;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.fe-btn-secondary:hover { background: rgba(249,115,22,0.1); }
.fe-legal {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 768px) {
  .fe-container { flex-direction: column; gap: 32px; }
  .fe-title { font-size: 1.3rem; }
}

/* ===== TIMELINE + ENCADRÉ KEYWORDS pour facturation-electronique-artisan.html ===== */
.fe-timeline {
  background: #f8fafc;
  border-left: 4px solid var(--fire);
  border-radius: 8px;
  padding: 20px 26px;
  margin: 18px 0 28px;
  list-style: none;
}
.fe-timeline li {
  position: relative;
  padding: 12px 0 12px 28px;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px dashed #e5e7eb;
}
.fe-timeline li:last-child { border-bottom: 0; }
.fe-timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fire);
  box-shadow: 0 0 0 4px rgba(232,88,10,0.15);
}
.fe-timeline strong { color: var(--fire); display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 4px; }

.fe-keywords {
  background: rgba(249,115,22,0.06);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 24px 0;
}
.fe-keywords h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fire);
  margin: 0 0 14px;
}
.fe-keywords ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 18px;
}
.fe-keywords li {
  color: var(--ink-2);
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
}
.fe-keywords li::before {
  content: '🔍';
  position: absolute;
  left: 0;
  font-size: 0.78rem;
}

.fe-final-cta {
  background: linear-gradient(135deg, rgba(232,88,10,0.08), rgba(249,115,22,0.04));
  border: 1px solid rgba(232,88,10,0.25);
  border-radius: 12px;
  padding: 28px;
  margin: 36px 0 12px;
  text-align: center;
}
.fe-final-cta p {
  font-size: 1rem;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ===== TICKER BANDEAU DÉFILANT ===== */
.ticker-wrap {
  width: 100%;
  height: 42px;
  overflow: hidden;
  background: rgba(249,115,22,0.08);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(249,115,22,0.15);
  border-bottom: 1px solid rgba(249,115,22,0.15);
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
}
.ticker-item {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0 8px;
}
.ticker-item:first-child { color: #F97316; }
.ticker-sep {
  color: rgba(249,115,22,0.5);
  font-size: 0.75rem;
  padding: 0 4px;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}
