/* ============================================================
   SEO Local Expert — Design System Complet
   ============================================================ */

/* --- Variables CSS --- */
:root {
  --navy: #0D2137;
  --orange: #E8562A;
  --orange-hover: #d44a20;
  --cream: #FAFAF7;
  --white: #FFFFFF;
  --gray-100: #F4F4F1;
  --gray-200: #E8E8E4;
  --gray-500: #8A8A82;
  --gray-900: #1C1C18;
  --green: #1B7A4A;
  --red: #D32F2F;
  --blue-light: #E3F2FD;
  --yellow-light: #FFF8E1;
  --green-light: #E8F5E9;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Outfit', sans-serif;
  --header-height: 64px;
  --max-width: 1200px;
  --content-width: 800px;
  --sidebar-width: 340px;
  --gap: 2rem;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --transition: .2s ease;
}

/* --- Reset CSS minimal --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 1rem); }
body { font-family: var(--font-ui); font-size: 16px; line-height: 1.6; color: var(--gray-900); background: var(--cream); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
table { border-collapse: collapse; width: 100%; }
input, textarea, select { font-family: var(--font-ui); font-size: 1rem; }

/* --- Utilitaires --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Barre de progression lecture --- */
.reading-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: var(--orange); z-index: 1001; transition: width 50ms linear; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--navy); height: var(--header-height); display: flex; align-items: center; box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; color: var(--white); }
.logo-text span { color: var(--orange); }

/* Navigation principale */
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav > li { position: relative; }
.main-nav > li > a, .main-nav > li > button { font-family: var(--font-ui); font-weight: 500; font-size: .9rem; color: rgba(255,255,255,.85); padding: .5rem .75rem; border-radius: var(--radius); display: flex; align-items: center; gap: .25rem; transition: all var(--transition); background: none; border: none; cursor: pointer; }
.main-nav > li > a:hover, .main-nav > li > button:hover, .main-nav > li > a.active { color: var(--white); background: rgba(255,255,255,.1); }
.nav-arrow { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-item-has-children:hover .nav-arrow { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.5rem; display: none; min-width: 700px; z-index: 100; }
.nav-item-has-children:hover .mega-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mega-menu-group h3 { font-family: var(--font-heading); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); margin-bottom: .5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--gray-200); }
.mega-menu-group a { display: block; font-size: .85rem; color: var(--gray-900); padding: .35rem 0; transition: color var(--transition); }
.mega-menu-group a:hover { color: var(--orange); }

/* CTA Header */
.header-cta { font-family: var(--font-ui); font-weight: 600; font-size: .85rem; background: var(--orange); color: var(--white); padding: .5rem 1.25rem; border-radius: var(--radius); transition: all var(--transition); white-space: nowrap; }
.header-cta:hover { background: var(--orange-hover); color: var(--white); transform: translateY(-1px); }

/* Hamburger mobile */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all var(--transition); }

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero { background: var(--navy); color: var(--white); padding: 5rem 0 4rem; text-align: center; }
.hero h1 { font-family: var(--font-heading); font-weight: 900; font-size: 2.75rem; line-height: 1.15; margin-bottom: 1.25rem; max-width: 750px; margin-left: auto; margin-right: auto; }
.hero p { font-family: var(--font-ui); font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 2rem; line-height: 1.5; }
.hero .btn-primary { font-size: 1.05rem; padding: .85rem 2rem; }
.hero-small { padding: 3rem 0 2.5rem; }
.hero-small h1 { font-size: 2rem; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-ui); font-weight: 600; font-size: .95rem; padding: .7rem 1.5rem; border-radius: var(--radius); transition: all var(--transition); text-decoration: none; border: none; cursor: pointer; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-secondary:hover { background: var(--orange); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #142d45; color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--gray-100); color: var(--navy); }
.btn-sm { font-size: .85rem; padding: .5rem 1rem; }
.btn-lg { font-size: 1.1rem; padding: .85rem 2rem; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { padding: 1rem 0; font-size: .85rem; color: var(--gray-500); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.breadcrumb li { display: flex; align-items: center; gap: .25rem; }
.breadcrumb li:not(:last-child)::after { content: "›"; color: var(--gray-500); margin-left: .25rem; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb li:last-child { color: var(--gray-900); font-weight: 500; }

/* ============================================================
   CARDS ARTICLES
   ============================================================ */
/* Standard */
.card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-tag { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--orange); background: rgba(232,86,42,.08); padding: .25rem .6rem; border-radius: 4px; margin-bottom: .75rem; }
.card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; line-height: 1.35; margin-bottom: .5rem; }
.card-title a { color: var(--gray-900); }
.card-title a:hover { color: var(--orange); }
.card-excerpt { font-size: .9rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 1rem; }
.card-meta { font-size: .8rem; color: var(--gray-500); display: flex; align-items: center; gap: 1rem; }

/* Featured */
.card-featured { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--orange); }
.card-featured .card-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.card-featured .card-title { font-size: 1.4rem; }
.card-featured .card-visual { background: var(--navy); display: flex; align-items: center; justify-content: center; min-height: 250px; }

/* Compact */
.card-compact { display: flex; gap: 1rem; padding: 1rem; align-items: flex-start; }
.card-compact .card-body { padding: 0; }
.card-compact .card-title { font-size: 1rem; margin-bottom: .25rem; }
.card-compact .card-tag { font-size: .7rem; margin-bottom: .5rem; }

/* Grille de cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ============================================================
   SILO NAVIGATION GRID
   ============================================================ */
.silo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.silo-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); transition: all var(--transition); border-left: 4px solid var(--orange); }
.silo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.silo-card h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }
.silo-card h3 a { color: var(--gray-900); }
.silo-card h3 a:hover { color: var(--orange); }
.silo-card p { font-size: .9rem; color: var(--gray-500); margin-bottom: .75rem; }
.silo-card .silo-count { font-size: .8rem; font-weight: 600; color: var(--orange); }

/* ============================================================
   ARTICLE LAYOUT
   ============================================================ */
.article-layout { display: grid; grid-template-columns: 1fr var(--sidebar-width); gap: 3rem; padding: 2rem 0 4rem; align-items: start; }

/* Contenu principal */
.article-content { max-width: var(--content-width); }
.article-content h1 { font-family: var(--font-heading); font-weight: 900; font-size: 2.25rem; line-height: 1.2; margin-bottom: 1rem; color: var(--gray-900); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: .85rem; color: var(--gray-500); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); }
.article-content h2 { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; line-height: 1.25; margin: 2.5rem 0 1rem; color: var(--gray-900); padding-top: .5rem; }
.article-content h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; margin: 2rem 0 .75rem; color: var(--gray-900); }
.article-content h4 { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.article-content p { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.25rem; color: var(--gray-900); }
.article-content ul, .article-content ol { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: .35rem; }
.article-content strong { font-weight: 600; }
.article-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--orange-hover); }
.article-content blockquote { border-left: 4px solid var(--orange); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--gray-100); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }

/* ============================================================
   TABLE DES MATIÈRES (TOC)
   ============================================================ */
.toc { background: var(--gray-100); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 2.5rem; border: 1px solid var(--gray-200); }
.toc h2 { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; margin-bottom: .75rem; color: var(--gray-900); padding: 0; border: none; }
.toc ol { list-style: decimal; padding-left: 1.25rem; }
.toc li { margin-bottom: .35rem; font-size: .9rem; }
.toc a { color: var(--gray-900); text-decoration: none; }
.toc a:hover { color: var(--orange); }

/* ============================================================
   BOÎTES DANS LES ARTICLES
   ============================================================ */
.highlight-box { background: var(--blue-light); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-left: 4px solid #1976D2; }
.highlight-box p { font-family: var(--font-ui); font-size: .95rem; margin-bottom: .5rem; }
.highlight-box p:last-child { margin-bottom: 0; }
.highlight-box strong { color: #1565C0; }

.tip-box { background: var(--green-light); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-left: 4px solid var(--green); }
.tip-box p { font-family: var(--font-ui); font-size: .95rem; margin-bottom: .5rem; }
.tip-box p:last-child { margin-bottom: 0; }
.tip-box strong { color: var(--green); }

.warning-box { background: var(--yellow-light); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-left: 4px solid #F9A825; }
.warning-box p { font-family: var(--font-ui); font-size: .95rem; margin-bottom: .5rem; }
.warning-box p:last-child { margin-bottom: 0; }
.warning-box strong { color: #E65100; }

/* ============================================================
   TABLEAUX COMPARATIFS
   ============================================================ */
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.table-wrapper table { min-width: 600px; }
.table-wrapper th { background: var(--navy); color: var(--white); font-family: var(--font-heading); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; padding: .85rem 1rem; text-align: left; }
.table-wrapper td { padding: .75rem 1rem; font-size: .9rem; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.table-wrapper tr:nth-child(even) td { background: var(--gray-100); }
.table-wrapper tr:hover td { background: rgba(232,86,42,.04); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: calc(var(--header-height) + 1.5rem); }

/* CTA Widget */
.sidebar-cta { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem; text-align: center; }
.sidebar-cta h3 { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; margin-bottom: .75rem; }
.sidebar-cta p { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: 1.25rem; line-height: 1.5; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* Articles liés sidebar */
.sidebar-related { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.sidebar-related h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--orange); }
.sidebar-related ul { list-style: none; }
.sidebar-related li { margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gray-200); }
.sidebar-related li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-related a { color: var(--gray-900); font-size: .9rem; font-weight: 500; text-decoration: none; line-height: 1.4; display: block; }
.sidebar-related a:hover { color: var(--orange); }

/* Tags */
.sidebar-tags { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.sidebar-tags h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--orange); }
.sidebar-tags .tags-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.sidebar-tags .tag { display: inline-block; font-size: .8rem; font-weight: 500; color: var(--gray-900); background: var(--gray-100); padding: .3rem .7rem; border-radius: 20px; transition: all var(--transition); }
.sidebar-tags .tag:hover { background: var(--orange); color: var(--white); }

/* ============================================================
   SECTION ARTICLES LIÉS (fin d'article)
   ============================================================ */
.related-articles { padding: 3rem 0; border-top: 1px solid var(--gray-200); margin-top: 3rem; }
.related-articles h2 { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { margin: 2.5rem 0; }
.faq-section h2 { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; margin-bottom: 1.25rem; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; background: var(--white); }
.faq-question { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; padding: 1rem 1.25rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-question:hover { color: var(--orange); }
.faq-question::after { content: "+"; font-size: 1.25rem; font-weight: 700; color: var(--orange); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.active .faq-question::after { content: "−"; }
.faq-answer { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 1.25rem 1.25rem; }
.faq-answer p { font-family: var(--font-body); font-size: .95rem; line-height: 1.65; }

/* ============================================================
   CTA SECTIONS
   ============================================================ */
.cta-section { background: var(--navy); color: var(--white); padding: 4rem 0; text-align: center; margin: 3rem 0; border-radius: var(--radius-lg); }
.cta-section h2 { font-family: var(--font-heading); font-weight: 800; font-size: 2rem; margin-bottom: 1rem; }
.cta-section p { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 1.5rem; }
.cta-inline { background: var(--gray-100); border-radius: var(--radius-lg); padding: 2rem; margin: 2rem 0; text-align: center; border: 2px dashed var(--gray-200); }
.cta-inline h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; margin-bottom: .5rem; }
.cta-inline p { font-size: .95rem; color: var(--gray-500); margin-bottom: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 3rem; }
.footer-col h4 { font-family: var(--font-heading); font-weight: 700; font-size: .95rem; color: var(--white); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--orange); }
.footer-col p { font-size: .9rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-social a:hover { color: var(--orange); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background: var(--orange); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: all var(--transition); z-index: 99; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--orange-hover); transform: translateY(-2px); color: var(--white); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================================
   BANNIÈRE COOKIES RGPD
   ============================================================ */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); color: var(--white); padding: 1.25rem 1.5rem; z-index: 9999; display: none; box-shadow: 0 -4px 12px rgba(0,0,0,.15); }
.cookie-banner.show { display: block; }
.cookie-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cookie-text { font-size: .9rem; color: rgba(255,255,255,.85); flex: 1; min-width: 250px; }
.cookie-text a { color: var(--orange); text-decoration: underline; }
.cookie-buttons { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-accept { background: var(--orange); color: var(--white); font-weight: 600; font-size: .85rem; padding: .5rem 1.25rem; border-radius: var(--radius); border: none; cursor: pointer; transition: background var(--transition); }
.cookie-accept:hover { background: var(--orange-hover); }
.cookie-refuse { background: transparent; color: rgba(255,255,255,.7); font-weight: 500; font-size: .85rem; padding: .5rem 1.25rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.3); cursor: pointer; transition: all var(--transition); }
.cookie-refuse:hover { background: rgba(255,255,255,.1); }

/* ============================================================
   FORMULAIRE DE CONTACT
   ============================================================ */
.contact-form { max-width: 700px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--gray-900); }
.form-group label .required { color: var(--orange); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .7rem 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: .95rem; transition: border-color var(--transition); background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,86,42,.1); }
.form-group textarea { resize: vertical; min-height: 150px; }
.form-checkbox { display: flex; gap: .75rem; align-items: flex-start; margin: 1.25rem 0; }
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--orange); flex-shrink: 0; }
.form-checkbox label { font-size: .85rem; color: var(--gray-500); line-height: 1.5; font-weight: 400; }
.form-success { background: var(--green-light); color: var(--green); padding: 1rem 1.25rem; border-radius: var(--radius); text-align: center; font-weight: 600; display: none; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; margin: 3rem 0; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); font-weight: 600; font-size: .9rem; transition: all var(--transition); }
.pagination a { color: var(--gray-900); background: var(--white); box-shadow: var(--shadow); }
.pagination a:hover { background: var(--orange); color: var(--white); }
.pagination .current { background: var(--orange); color: var(--white); }

/* ============================================================
   SECTIONS HOMEPAGE
   ============================================================ */
.section { padding: 4rem 0; }
.section-title { font-family: var(--font-heading); font-weight: 800; font-size: 2rem; text-align: center; margin-bottom: .75rem; }
.section-subtitle { font-size: 1.05rem; color: var(--gray-500); text-align: center; max-width: 600px; margin: 0 auto 2.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 3rem 0; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; text-align: center; box-shadow: var(--shadow); }
.stat-number { font-family: var(--font-heading); font-weight: 900; font-size: 2.5rem; color: var(--orange); margin-bottom: .25rem; }
.stat-label { font-size: .9rem; color: var(--gray-500); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); transition: all var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; background: rgba(232,86,42,.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--orange); }
.feature-card h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--gray-500); line-height: 1.5; }

/* ============================================================
   GEOSTRIKE PAGE SPECIFICS
   ============================================================ */
.geostrike-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2rem 0; }
.gs-feature { background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); border-top: 3px solid var(--orange); }
.gs-feature h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; }
.gs-feature p { font-size: .9rem; color: var(--gray-500); line-height: 1.5; }

/* ============================================================
   PLAN DU SITE
   ============================================================ */
.sitemap-section { margin-bottom: 2rem; }
.sitemap-section h2 { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--orange); }
.sitemap-section ul { list-style: none; columns: 2; column-gap: 2rem; }
.sitemap-section li { margin-bottom: .5rem; padding: .25rem 0; }
.sitemap-section a { color: var(--gray-900); font-size: .95rem; }
.sitemap-section a:hover { color: var(--orange); }

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 { text-align: center; padding: 6rem 0; }
.page-404 h1 { font-family: var(--font-heading); font-weight: 900; font-size: 6rem; color: var(--orange); line-height: 1; margin-bottom: 1rem; }
.page-404 h2 { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; margin-bottom: 1rem; }
.page-404 p { color: var(--gray-500); margin-bottom: 2rem; }

/* ============================================================
   CATEGORY / PILLAR PAGE
   ============================================================ */
.category-header { background: var(--navy); color: var(--white); padding: 3rem 0; text-align: center; }
.category-header h1 { font-family: var(--font-heading); font-weight: 900; font-size: 2.25rem; margin-bottom: .75rem; }
.category-header p { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 650px; margin: 0 auto; }
.category-content { padding: 3rem 0; }
.articles-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2rem 0; }

/* ============================================================
   PILLAR CONTENT (category page prose)
   ============================================================ */
.pillar-content { max-width: 820px; margin: 0 auto 2.5rem; }
.pillar-content p { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.25rem; color: var(--gray-900); }
.pillar-content h2 { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; margin: 2.5rem 0 1rem; color: var(--gray-900); }
.pillar-content h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; margin: 2rem 0 .75rem; color: var(--gray-900); }
.pillar-content ul, .pillar-content ol { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.25rem; padding-left: 1.5rem; }
.pillar-content ul { list-style: disc; }
.pillar-content ol { list-style: decimal; }
.pillar-content li { margin-bottom: .35rem; }
.pillar-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }

/* Related silos block */
.related-silos { margin: 3rem 0 1rem; padding: 1.75rem 2rem; background: var(--gray-100); border-radius: var(--radius-lg); border-left: 4px solid var(--orange); }
.related-silos h2 { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; margin-bottom: .75rem; color: var(--gray-900); }
.related-silos p { font-size: .95rem; color: var(--gray-900); line-height: 1.7; margin: 0; }
.related-silos a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { max-width: var(--content-width); margin: 0 auto; padding: 3rem 0; }
.legal-content h1 { font-family: var(--font-heading); font-weight: 900; font-size: 2rem; margin-bottom: 2rem; }
.legal-content h2 { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; margin: 2rem 0 .75rem; color: var(--gray-900); }
.legal-content p { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; margin-bottom: 1rem; color: var(--gray-900); }
.legal-content ul { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; margin-bottom: 1rem; padding-left: 1.5rem; list-style: disc; }
.legal-content li { margin-bottom: .35rem; }

/* ============================================================
   RESPONSIVE — Mobile-first
   ============================================================ */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .card-featured { grid-template-columns: 1fr; }
  .geostrike-features { grid-template-columns: 1fr; }
  .articles-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 56px; }
  .header-inner { position: relative; }
  .nav-toggle { display: flex; }
  .main-nav { display: none; position: absolute; top: var(--header-height); left: -1.5rem; right: -1.5rem; background: var(--navy); flex-direction: column; padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav > li > a, .main-nav > li > button { padding: .75rem 0; }
  .mega-menu { position: static; transform: none; grid-template-columns: 1fr; min-width: auto; box-shadow: none; padding: .75rem 0 .75rem 1rem; display: none; }
  .nav-item-has-children.open .mega-menu { display: grid; }
  .header-cta { display: none; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .section-title { font-size: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .article-content h1 { font-size: 1.75rem; }
  .article-content h2 { font-size: 1.35rem; }
  .cookie-inner { flex-direction: column; text-align: center; }
  .sitemap-section ul { columns: 1; }
  .category-header h1 { font-size: 1.75rem; }
  .silo-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG ARTICLE — Responsive overrides (!important requis car
   chaque page blog injecte son propre $page_styles après
   ce fichier et écraserait les règles sans !important)
   ============================================================ */

/* Empêche les mots/URLs trop longs de faire déborder les titres */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Tablettes & petits écrans larges : passage 1 colonne */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .sidebar {
    position: static !important;
    top: auto !important;
    align-self: auto !important;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile standard */
@media (max-width: 768px) {
  .article-layout {
    gap: 1.5rem !important;
    margin: 1rem 0 2.5rem !important;
  }

  /* Titres */
  .article-content h1 { font-size: 1.8rem !important; line-height: 1.2 !important; }
  .article-content h2 { font-size: 1.35rem !important; }
  .article-content h3 { font-size: 1.15rem !important; }

  /* Grilles */
  .cards-grid  { grid-template-columns: 1fr !important; }
  .related-grid { grid-template-columns: 1fr !important; }

  /* Blocs */
  .cta-inline  { padding: 1.75rem 1.25rem !important; }
  .cta-inline h3 { font-size: 1.3rem !important; }
  .toc { padding: 1.2rem 1.5rem !important; }
  .highlight-box,
  .tip-box,
  .warning-box { padding: 1rem 1.25rem !important; }
  .article-meta { gap: .75rem !important; flex-wrap: wrap !important; }

  /* ── Tableaux sans .table-wrapper (pattern Type 2) ──────────
     Les pages blog Type 2 placent <table> directement dans
     .article-content sans wrapper overflow. On transforme le
     tableau en bloc scrollable horizontalement.               */
  .article-content table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: .875rem !important;
    margin: 1.25rem 0 !important;
  }
  .article-content thead,
  .article-content tbody,
  .article-content tfoot {
    display: table !important; /* maintient le rendu tableau interne */
    width: 100% !important;
  }
  .article-content th,
  .article-content td {
    min-width: 110px !important;   /* force une largeur min → déclenche le scroll */
    padding: .55rem .75rem !important;
    font-size: .875rem !important;
    white-space: normal !important; /* texte wrap dans la cellule */
  }

  /* ── Tableaux avec .table-wrapper (pattern Type 1) ──────────
     min-width:600px déjà posé dans style.css, on réduit
     juste la taille de police.                               */
  .table-wrapper table { font-size: .875rem !important; }
  .table-wrapper th,
  .table-wrapper td { padding: .6rem .8rem !important; }
}

/* Très petits écrans (iPhone SE, 320px) */
@media (max-width: 480px) {
  .article-content h1 { font-size: 1.55rem !important; }
  .article-content h2 { font-size: 1.2rem !important; }
  .article-content h3 { font-size: 1.05rem !important; }
  .cta-inline { padding: 1.25rem 1rem !important; }
  .toc { padding: 1rem !important; }
  .highlight-box,
  .tip-box,
  .warning-box { padding: .85rem 1rem !important; }
  .table-wrapper table { font-size: .82rem !important; }
  .article-content table { font-size: .82rem !important; }
  .article-content th,
  .article-content td { min-width: 90px !important; padding: .45rem .6rem !important; }
  .breadcrumb { font-size: .8rem !important; }
}