/*
Theme Name: StartHijrah
Description: Theme custom StartHijrah — expatriation musulmane francophone
Version: 1.0
Author: NEA KIDZ
Text Domain: starthijrah
*/

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --green:      #0d2818;
    --green-dark: #0b2010;
    --gold:       #c8a951;
    --gold-hover: #b89440;
    --cream:      #faf8f3;
    --cream-alt:  #f5f2ea;
    --text:       #1a1a1a;
    --text-muted: #45485f;
    --text-light: #7d82a1;
    --border:     #e8e8ee;
    --white:      #ffffff;
    --shadow-sm:  0 0 4px rgba(0,0,0,0.3);
    --shadow-md:  0 0 8px rgba(0,0,0,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

/* ============================================
   HEADER & NAV
   ============================================ */
.sh-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--green);
    border-bottom: 1px solid rgba(200, 169, 81, 0.25);
}

.sh-nav {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
}

.sh-nav-logo {
    font-family: 'Source Serif 4', serif;
    font-size: 1.35em;
    font-weight: 700;
    color: var(--white) !important;
    text-decoration: none;
    letter-spacing: -0.3px;
    margin-right: 40px;
    white-space: nowrap;
    flex-shrink: 0;
}
.sh-nav-logo span { color: var(--gold); }
.sh-nav-logo:hover { color: var(--white) !important; }
.sh-nav-logo:hover span { color: #e0c06a; }

.sh-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.sh-nav-link {
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.875em;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.sh-nav-link:hover,
.sh-nav-link.active {
    color: var(--white) !important;
    background: rgba(200, 169, 81, 0.15);
}
.sh-nav-link.active { color: var(--gold) !important; }

.sh-nav-cta {
    margin-left: 16px;
    padding: 9px 20px;
    background: var(--gold);
    color: var(--green) !important;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 0;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.sh-nav-cta:hover {
    background: var(--gold-hover) !important;
    color: var(--green) !important;
}

/* Hamburger */
.sh-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
    flex-shrink: 0;
}
.sh-nav-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.2s ease;
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */
.sh-main {
    min-height: calc(100vh - 64px - 260px);
}
.sh-main--full { /* Homepage pleine largeur */ }

/* ============================================
   PAGE INTERIEURE
   ============================================ */
.sh-page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.sh-page-wrap--article {
    max-width: 760px;
}

.sh-breadcrumb {
    font-size: 0.82em;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.sh-breadcrumb a { color: var(--text-muted); }
.sh-breadcrumb a:hover { color: var(--green); }
.sh-breadcrumb span[aria-hidden] { color: var(--border); }

.sh-page-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.sh-page-title {
    font-family: 'Source Serif 4', serif;
    font-size: 2.5em;
    font-weight: 900;
    color: var(--green);
    line-height: 1.15;
    margin-top: 12px;
}

/* Contenu des pages */
.sh-page-content {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.05em;
    line-height: 1.8;
    color: #2a2a2a;
    font-optical-sizing: auto;
}
.sh-page-content h2 {
    font-family: 'Source Serif 4', serif;
    font-size: 1.65em;
    color: var(--green);
    margin: 48px 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--gold);
}
.sh-page-content h3 {
    font-family: 'Source Serif 4', serif;
    font-size: 1.3em;
    color: var(--text);
    margin: 32px 0 12px;
}
.sh-page-content p { margin-bottom: 20px; }
.sh-page-content ul,
.sh-page-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.sh-page-content ul { list-style: disc; }
.sh-page-content ol { list-style: decimal; }
.sh-page-content li { margin-bottom: 8px; }
.sh-page-content a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-color: rgba(13, 40, 24, 0.3);
    text-underline-offset: 3px;
}
.sh-page-content a:hover {
    color: var(--gold);
    text-decoration-color: var(--gold);
}
.sh-page-content strong { font-weight: 700; color: var(--green); }
.sh-page-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 16px 20px;
    background: var(--cream);
    margin: 28px 0;
    font-style: italic;
    color: var(--text-muted);
}
.sh-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9em;
}
.sh-page-content th {
    background: var(--green);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}
.sh-page-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.sh-page-content tr:nth-child(even) td { background: var(--cream); }
.sh-page-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* Article thumbnail */
.sh-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.sh-article-cat {
    background: var(--green);
    color: var(--white);
    padding: 2px 10px;
    font-size: 0.85em;
    font-weight: 600;
}
.sh-article-thumb { margin: 32px 0; border-radius: 0; overflow: hidden; }
.sh-article-img { width: 100%; max-height: 480px; object-fit: cover; }

/* Post navigation */
.sh-post-nav {
    display: flex;
    gap: 16px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.sh-post-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: var(--cream);
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s ease;
}
.sh-post-nav-link:hover { background: var(--cream-alt); }
.sh-post-nav-link span { font-size: 0.8em; color: var(--text-muted); }
.sh-post-nav-link strong { font-size: 0.95em; font-family: 'Source Serif 4', serif; color: var(--green); }
.sh-post-nav-next { text-align: right; }

/* ============================================
   FOOTER
   ============================================ */
.sh-footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.65);
    padding: 56px 0 0;
    margin-top: 48px;
}
.sh-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.sh-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sh-footer-logo {
    font-family: 'Source Serif 4', serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--white) !important;
    display: inline-block;
    margin-bottom: 16px;
}
.sh-footer-logo span { color: var(--gold); }
.sh-footer-desc {
    font-size: 0.88em;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    max-width: 280px;
}
.sh-footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 16px;
}
.sh-footer-links li { margin-bottom: 10px; }
.sh-footer-links a {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.88em;
    transition: color 0.2s ease;
}
.sh-footer-links a:hover { color: var(--white) !important; }
.sh-footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sh-footer-legal {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}
.sh-footer-legal a {
    color: rgba(255, 255, 255, 0.4) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sh-footer-legal a:hover { color: var(--white) !important; }

/* ============================================
   ENCADRES ARTICLES ENRICHIS
   ============================================ */
.piege-eviter,
.astuce-terrain,
.important-note,
.checklist-pratique {
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95em;
    line-height: 1.7;
}
.piege-eviter {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
}
.piege-eviter strong { color: #dc2626; }
.astuce-terrain {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
}
.astuce-terrain strong { color: #16a34a; }
.important-note {
    background: #fffbeb;
    border-left: 4px solid #d97706;
}
.important-note strong { color: #d97706; }
.checklist-pratique {
    background: #f8fafc;
    border-left: 4px solid #475569;
}
.checklist-pratique strong { color: #475569; }
.checklist-pratique ul { list-style: none; padding-left: 0; }
.checklist-pratique li { padding: 4px 0; }
.checklist-pratique li::before { content: "☐ "; color: #475569; }

/* ============================================
   HOMEPAGE — Composants .sh-*
   (Ce CSS correspond au HTML déployé en BDD)
   ============================================ */

/* CONTAINER HOMEPAGE */
.sh-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HERO */
.sh-hero {
    background: var(--cream);
    padding: 80px 24px 64px;
    text-align: center;
}
.sh-hero-inner { max-width: 820px; margin: 0 auto; }
.sh-hero-badge {
    display: inline-block;
    background: var(--green);
    color: var(--gold);
    padding: 5px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    border-radius: 0;
}
.sh-hero h1 {
    font-family: 'Source Serif 4', serif;
    font-size: 3.2em;
    font-weight: 900;
    color: var(--green);
    line-height: 1.1;
    margin-bottom: 20px;
    border: none;
    padding: 0;
}
.sh-hero-desc {
    font-size: 1.15em;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.sh-hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.sh-hero-buttons a {
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease;
}
.sh-hero-btn-primary {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}
.sh-hero-btn-primary:hover {
    background: var(--green);
    color: var(--white);
}
.sh-hero-btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.sh-hero-btn-secondary:hover {
    border-color: var(--green);
    color: var(--green);
}

/* HERO STATS */
.sh-hero-stats {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}
.sh-stat-card {
    flex: 1;
    max-width: 200px;
    text-align: center;
    padding: 0 28px;
    border-right: 1px solid var(--border);
}
.sh-stat-card:last-child { border-right: none; }
.sh-stat-number {
    font-family: 'Source Serif 4', serif;
    font-size: 2.2em;
    font-weight: 900;
    color: var(--green);
    line-height: 1;
    margin-bottom: 6px;
}
.sh-stat-label {
    font-size: 0.75em;
    color: var(--text-light);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* SECTION HEADERS */
.sh-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 48px 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ddd;
}
.sh-section-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 0.78em;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    padding: 0;
    margin: 0;
}
.sh-section-header .sh-line { flex: 1; height: 0; }
.sh-section-header .sh-see-all {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
}
.sh-section-header .sh-see-all:hover { color: var(--gold); }

/* CARDS */
.sh-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: none;
}
.sh-card:hover { box-shadow: var(--shadow-md); color: inherit; }
.sh-card-img { position: relative; overflow: hidden; }
.sh-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.sh-card-img .sh-card-tag { position: absolute; bottom: 12px; left: 12px; z-index: 2; }
.sh-card-body { padding: 1.5em 2em; flex: 1; display: flex; flex-direction: column; }
.sh-card-tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--green);
    color: var(--white);
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    width: fit-content;
}
.sh-card-title {
    font-family: 'Source Serif 4', serif;
    font-size: 1.25em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}
.sh-card-excerpt {
    font-size: 0.88em;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}
.sh-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.76em;
    color: var(--text-light);
}
.sh-card-read { color: var(--green); font-weight: 700; }
.sh-card-read:hover { color: var(--gold); }

/* SPAN-AS-DIV (wpautop bypass) */
span.sh-card-img, span.sh-card-body, span.sh-card-meta, span.sh-card-img-sm,
span.sh-card-title, span.sh-card-excerpt,
span.sh-country-img, span.sh-country-body, span.sh-country-name, span.sh-country-sub, span.sh-country-data,
span.sh-tool-icon-wrap, span.sh-tool-title, span.sh-tool-desc {
    display: block;
}

/* TOP STORIES GRID */
.sh-top-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin: 28px 0 0; }
.sh-top-main .sh-card-title { font-size: 1.5em; }
.sh-top-main .sh-card-excerpt { font-size: 0.95em; }
.sh-top-side { display: flex; flex-direction: column; gap: 0; justify-content: space-between; }
.sh-card-h { flex-direction: row; align-items: stretch; }
.sh-card-img-sm { width: 140px; min-width: 140px; overflow: hidden; }
.sh-card-img-sm img { width: 100%; height: 100%; object-fit: cover; }
.sh-card-h .sh-card-body { padding: 14px 16px; }
.sh-card-h .sh-card-title { font-size: 1em; }

/* COUNTRY CARDS */
.sh-countries-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 24px; }
.sh-country-card {
    background: var(--white);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
}
.sh-country-card:hover { box-shadow: var(--shadow-md); color: inherit; }
.sh-country-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sh-country-body { padding: 16px 18px; }
.sh-country-name { font-family: 'Inter', sans-serif; font-size: 1em; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.sh-country-sub { font-size: 0.75em; color: var(--text-light); margin-bottom: 10px; }
.sh-country-data {
    font-size: 0.78em;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border);
    line-height: 1.5;
}
.sh-country-data strong { color: var(--green); font-weight: 700; }

/* TOOL CARDS */
.sh-tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.sh-tool-card {
    background: var(--white);
    padding: 24px 20px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.sh-tool-card:hover { box-shadow: var(--shadow-md); color: var(--text); }
.sh-tool-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--green);
}
.sh-tool-title { font-size: 0.95em; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.sh-tool-desc { font-size: 0.82em; color: var(--text-muted); line-height: 1.55; }
.sh-tool-arrow {
    position: absolute;
    top: 20px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.sh-tool-card:hover .sh-tool-arrow { background: var(--green); color: var(--white); border-color: var(--green); }

/* ARTICLES GRID */
.sh-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }

/* SERVICE CTA */
.sh-service-cta {
    background: var(--white);
    display: flex;
    align-items: stretch;
    margin: 56px 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.sh-service-img { width: 240px; min-width: 240px; overflow: hidden; }
.sh-service-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-service-cta-content { flex: 1; padding: 30px 28px; }
.sh-service-cta-content h3 {
    font-family: 'Source Serif 4', serif;
    font-size: 1.75em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}
.sh-service-cta-content p { color: var(--text-muted); font-size: 0.9em; line-height: 1.65; }
.sh-service-btn {
    display: inline-block;
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.85em;
    margin-top: 16px;
    transition: all 0.2s ease;
}
.sh-service-btn:hover { background: var(--green); color: var(--white); }
.sh-service-price {
    padding: 30px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border);
}
.sh-price-from { font-size: 0.75em; color: var(--text-muted); }
.sh-price-amount { font-family: 'Source Serif 4', serif; font-size: 2.2em; font-weight: 700; color: var(--green); }
.sh-price-unit { font-size: 0.75em; color: var(--text-muted); }

/* NEWSLETTER */
.sh-newsletter {
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 48px 44px;
    text-align: center;
    margin: 56px 0;
}
.sh-newsletter h2 {
    font-family: 'Source Serif 4', serif;
    font-size: 2em;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 10px;
    line-height: 1.3;
}
.sh-newsletter p { color: var(--text-muted); margin-bottom: 28px; font-size: 0.95em; }
.sh-newsletter-form { display: flex; max-width: 460px; margin: 0 auto; }
.sh-newsletter-form input[type="email"] {
    flex: 1;
    padding: 13px 18px;
    border: 1.5px solid var(--border);
    border-right: none;
    background: var(--white);
    color: var(--text);
    font-size: 0.9em;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.sh-newsletter-form input::placeholder { color: var(--text-muted); opacity: 0.5; }
.sh-newsletter-form input:focus { border-color: var(--green); }
.sh-newsletter-form button {
    padding: 13px 28px;
    background: var(--green);
    color: var(--white);
    border: 1.5px solid var(--green);
    font-weight: 700;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.sh-newsletter-form button:hover { background: var(--gold); border-color: var(--gold); color: var(--green); }
.sh-newsletter-legal { font-size: 0.72em; color: var(--text-muted); opacity: 0.5; margin-top: 14px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .sh-hero h1 { font-size: 2.6em; }
    .sh-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .sh-countries-grid { grid-template-columns: repeat(3, 1fr); }
    .sh-tools-grid { grid-template-columns: repeat(2, 1fr); }
    .sh-articles-grid { grid-template-columns: repeat(2, 1fr); }
    .sh-top-grid { grid-template-columns: 1fr; }
    .sh-hero-stats { flex-wrap: wrap; }
    .sh-stat-card { flex: 0 0 calc(50% - 12px); max-width: none; border-right: none; }
    .sh-stat-card:nth-child(odd) { border-right: 1px solid var(--border); }
}

@media (max-width: 768px) {
    .sh-nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--green); flex-direction: column; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.1); z-index: 1001; }
    .sh-nav-links.open { display: flex; }
    .sh-nav-link { padding: 12px 24px; border-radius: 0; }
    .sh-nav-cta { display: none; }
    .sh-nav-toggle { display: flex; }

    .sh-page-title { font-size: 1.6em; }
    .sh-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .sh-hero { padding: 40px 16px 36px; }
    .sh-hero h1 { font-size: 1.8em; }
    .sh-hero-desc { font-size: 0.95em; }
    .sh-hero-stats { flex-direction: column; gap: 16px; }
    .sh-stat-card { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; max-width: 100%; }
    .sh-stat-card:last-child { border-bottom: none; }
    .sh-card-h { flex-direction: column; }
    .sh-card-img-sm { width: 100%; min-width: 100%; height: 180px; }
    .sh-countries-grid { grid-template-columns: repeat(2, 1fr); }
    .sh-tools-grid { grid-template-columns: 1fr; }
    .sh-articles-grid { grid-template-columns: 1fr; }
    .sh-service-cta { flex-direction: column; }
    .sh-service-img { width: 100%; min-width: 100%; }
    .sh-service-price { border-left: none; border-top: 1px solid var(--border); }
    .sh-newsletter-form { flex-direction: column; }
    .sh-newsletter-form input[type="email"] { border-right: 1.5px solid var(--border); }
    .sh-newsletter { padding: 32px 16px; }
    .sh-section-header { margin: 36px 0 18px; }
    .sh-page-wrap { padding: 32px 16px 60px; }
    .sh-dest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .sh-countries-grid { grid-template-columns: 1fr; }
    .sh-hero h1 { font-size: 1.8em; }
    .sh-hero-buttons { flex-direction: column; }
    .sh-hero-buttons a { text-align: center; }
    .sh-hero { padding: 40px 16px 36px; }
    .sh-container { padding: 0 16px; }
    .sh-page-wrap { padding: 32px 16px 60px; }
    .sh-footer-grid { grid-template-columns: 1fr; }
    .sh-post-nav { flex-direction: column; }
}

/* ============================================
   HOMEPAGE REDESIGN — Rythme sombre/clair
   ============================================ */

/* Hero : fond vert foncé → impact immédiat */
.sh-hero {
    background: var(--green);
    border-bottom: 3px solid var(--gold);
}
.sh-hero h1 { color: var(--white); }
.sh-hero .sh-hero-badge {
    background: rgba(200, 169, 81, 0.18);
    color: var(--gold);
}
.sh-hero .sh-hero-desc { color: rgba(255, 255, 255, 0.72); }
.sh-hero-stats { border-top-color: rgba(255, 255, 255, 0.12); }
.sh-stat-card { border-right-color: rgba(255, 255, 255, 0.12); }
.sh-stat-number { color: var(--gold); }
.sh-stat-label { color: rgba(255, 255, 255, 0.55); }
.sh-hero-btn-primary { color: var(--white); border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.sh-hero-btn-primary:hover { background: var(--white); color: var(--green); border-color: var(--white); }
.sh-hero-btn-secondary { color: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.22); background: transparent; }
.sh-hero-btn-secondary:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.65); background: transparent; }

/* Pages intérieures : fond blanc propre sur corps crème */
.sh-page-wrap { background: var(--white); padding: 48px 32px 80px; }

/* Newsletter : fond vert foncé → second bloc d'impact */
.sh-newsletter {
    background: var(--green);
    border: none;
    padding: 56px 44px;
}
.sh-newsletter h2 { color: var(--white); }
.sh-newsletter p { color: rgba(255, 255, 255, 0.65); }
.sh-newsletter-form input[type="email"] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    border-right: none;
}
.sh-newsletter-form input[type="email"]:focus { border-color: var(--gold); }
.sh-newsletter-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.38); opacity: 1; }
.sh-newsletter-form button { background: var(--gold); border-color: var(--gold); color: var(--green); }
.sh-newsletter-form button:hover { background: #e0c06a; border-color: #e0c06a; color: var(--green); }
.sh-newsletter-legal { color: rgba(255, 255, 255, 0.35); opacity: 1; }

/* Mobile : stats hero sur fond vert */
@media (max-width: 1024px) {
    .sh-stat-card { border-right-color: rgba(255, 255, 255, 0.12); }
    .sh-stat-card:nth-child(odd) { border-right-color: rgba(255, 255, 255, 0.12); }
}
@media (max-width: 768px) {
    .sh-stat-card { border-bottom-color: rgba(255, 255, 255, 0.12); }
}

/* ============================================
   HUB PAGES — /pays/X/
   ============================================ */
.sh-hub-intro {
    margin-bottom: 36px;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-muted);
}
.sh-hub-budget {
    margin-top: 8px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    font-size: 0.95em;
}
.sh-hub-budget strong { color: #16a34a; }
.sh-hub-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}
.sh-hub-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}
.sh-hub-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}
.sh-hub-card-title {
    font-family: 'Source Serif 4', serif;
    font-weight: 700;
    font-size: 1.05em;
    color: var(--green);
}
.sh-hub-card:hover .sh-hub-card-title { color: var(--gold); }
.sh-hub-card-arrow {
    font-size: 1.2em;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}
.sh-hub-card:hover .sh-hub-card-arrow { transform: translateX(4px); color: var(--gold); }
.sh-hub-transversal { margin-top: 48px; }
.sh-hub-transversal h2 {
    font-family: 'Inter', sans-serif;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ============================================
   DESTINATIONS PAGE — /destinations/
   ============================================ */
.sh-dest-intro {
    text-align: center;
    margin-bottom: 48px;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-muted);
}
.sh-dest-stats {
    margin-top: 12px;
    font-size: 0.9em;
}
.sh-dest-stats strong { color: var(--green); }
.sh-dest-region { margin-bottom: 48px; }
.sh-dest-region h2 {
    font-family: 'Inter', sans-serif;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.sh-dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.sh-dest-card {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}
.sh-dest-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}
.sh-dest-flag { font-size: 2em; margin-bottom: 8px; }
.sh-dest-name {
    font-family: 'Source Serif 4', serif;
    font-weight: 700;
    font-size: 1.15em;
    color: var(--green);
    margin-bottom: 4px;
}
.sh-dest-card:hover .sh-dest-name { color: var(--gold); }
.sh-dest-desc {
    font-size: 0.85em;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 12px;
}
.sh-dest-budget {
    font-size: 0.8em;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 4px;
}
.sh-dest-count {
    font-size: 0.75em;
    color: var(--text-light);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .sh-dest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .sh-dest-grid { grid-template-columns: 1fr; }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.sh-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    padding: 0;
}
.sh-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.sh-whatsapp-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* ============================================
   STICKY TOC (articles)
   ============================================ */
.sh-toc {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 16px 0;
    margin-bottom: 32px;
    border-left: 2px solid var(--border);
    padding-left: 16px;
    font-size: 0.85em;
}
.sh-toc a {
    display: block;
    padding: 4px 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.sh-toc a:hover, .sh-toc a.active {
    color: var(--green);
}
.sh-toc a.active {
    font-weight: 600;
    border-left: 2px solid var(--gold);
    margin-left: -18px;
    padding-left: 16px;
}

/* ============================================
   HOMEPAGE — 16 destinations grid (replaces 5)
   ============================================ */
.sh-countries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 1024px) {
    .sh-countries-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .sh-countries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .sh-countries-grid { grid-template-columns: 1fr; }
}

/* Bon a savoir encadre */
.bon-a-savoir {
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95em;
    line-height: 1.7;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}
.bon-a-savoir strong { color: #3b82f6; }

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

/* Prevent horizontal scroll globally */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Force all content to stay within viewport */
.sh-page-content, .sh-page-wrap, .sh-container {
    overflow-x: hidden;
    word-break: break-word;
}

/* Tables: scrollable on mobile */
.sh-page-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.sh-page-content thead,
.sh-page-content tbody,
.sh-page-content tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}
@media (max-width: 768px) {
    .sh-page-content table {
        font-size: 0.8em;
    }
    .sh-page-content thead,
    .sh-page-content tbody,
    .sh-page-content tr {
        display: revert;
        width: auto;
        table-layout: auto;
    }
    .sh-page-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .sh-page-content th,
    .sh-page-content td {
        padding: 8px 10px;
        min-width: 80px;
    }
}

/* Sommaire / TOC: contained within parent */
.sommaire, .table-des-matieres, [class*="sommaire"] {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .sommaire, .table-des-matieres, [class*="sommaire"] {
        padding: 16px !important;
        font-size: 0.9em;
    }
    .sommaire ol, .sommaire ul,
    .table-des-matieres ol, .table-des-matieres ul {
        padding-left: 16px;
    }
}

/* Sticky TOC: disable on mobile (overlaps content) */
@media (max-width: 768px) {
    .sh-toc {
        position: static;
        max-height: none;
        border-left: none;
        padding-left: 0;
        margin-bottom: 24px;
    }
}

/* Encadres: full width on mobile */
@media (max-width: 768px) {
    .piege-eviter, .astuce-terrain, .important-note,
    .checklist-pratique, .bon-a-savoir {
        padding: 16px;
        margin: 20px 0;
        font-size: 0.9em;
    }
}

/* WhatsApp button: smaller on mobile */
@media (max-width: 480px) {
    .sh-whatsapp-btn {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }
    .sh-whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Hub cards: full width on mobile */
@media (max-width: 768px) {
    .sh-hub-card {
        padding: 14px 16px;
    }
    .sh-hub-card-title {
        font-size: 0.95em;
    }
}

/* Card body: tighter padding on mobile */
@media (max-width: 768px) {
    .sh-card-body { padding: 1em 1.2em; }
    .sh-card-title { font-size: 1.05em; }
    .sh-card-excerpt { font-size: 0.82em; }
    .sh-top-main .sh-card-title { font-size: 1.25em; }
    .sh-top-main .sh-card-excerpt { font-size: 0.88em; }
    .sh-country-body { padding: 12px 14px; }
    .sh-country-name { font-size: 0.9em; }
    .sh-country-sub { font-size: 0.7em; }
    .sh-country-data { font-size: 0.72em; }
}

/* Images: ensure they never overflow */
img, video, iframe, embed, object { max-width: 100%; height: auto; }

/* Pre/code blocks: scrollable */
pre, code { overflow-x: auto; max-width: 100%; word-break: break-all; }

/* Long URLs/text: break to prevent overflow */
.sh-page-content a { word-break: break-all; }
@media (min-width: 769px) {
    .sh-page-content a { word-break: normal; }
}
