:root {
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #0f766e;
    --primary-dark: #0b5f59;
    --accent: #1d4ed8;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container,
.app-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── NAV ── */
.app-nav {
    border-bottom: 1px solid var(--border);
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.app-nav-inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text);
}

.app-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0f766e, #1d4ed8);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
    flex: 0 0 auto;
}

.app-logo-mark svg {
    width: 19px;
    height: 19px;
    display: block;
}

.app-nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.app-nav-link,
.app-nav-cta {
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.92rem;
}

.app-nav-link { color: var(--muted); transition: color 0.15s; }
.app-nav-link:hover { color: var(--text); }
.app-nav-cta { background: var(--primary); color: #fff; transition: background 0.2s; }
.app-nav-cta:hover { background: var(--primary-dark); }

/* ── HERO ── */
.hero {
    padding: 104px 0 88px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% -5%, rgba(15, 118, 110, 0.10) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 92% 20%, rgba(29, 78, 216, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.hero-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 6px 10px;
    border-radius: 100px;
    background: rgba(15, 118, 110, 0.07);
    border: 1px solid rgba(15, 118, 110, 0.18);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.6rem, 5.5vw, 4.1rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: 16ch;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #0f766e 10%, #1d4ed8 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    margin: 0 auto 36px;
    color: var(--muted);
    max-width: 48ch;
    line-height: 1.78;
    font-size: 1.08rem;
}

.cta {
    display: inline-block;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    background: var(--primary);
    color: #fff;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.32);
}

.cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.38);
}

.hero-stats {
    display: flex;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    padding-top: 44px;
    width: 100%;
    max-width: 560px;
}

.hero-stat {
    flex: 1;
    text-align: center;
    padding: 0 12px;
}

.hero-stat + .hero-stat { border-left: 1px solid var(--border); }

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.4;
}

/* ── SECTION SHARED ── */
.page-section {
    padding: 88px 0;
}

.page-section--alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.page-section--white {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.55rem, 2.8vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 0 0 18px;
    line-height: 1.15;
}

.section-body {
    color: var(--muted);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0 0 14px;
    max-width: 68ch;
}

.section-body:last-child { margin-bottom: 0; }

/* ── FEATURE LIST ── */
.section-intro {
    max-width: 680px;
    margin-bottom: 52px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
}

.feature-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.09), rgba(29, 78, 216, 0.07));
    border: 1px solid rgba(15, 118, 110, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.feature-text strong {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.feature-text p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.88rem;
}

/* ── STEPS ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 48px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(33.33% / 2 + 22px);
    right: calc(33.33% / 2 + 22px);
    height: 1px;
    background: var(--border);
}

.step {
    padding: 0 32px 0 0;
    position: relative;
}

.step:last-child { padding-right: 0; }

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.step strong {
    display: block;
    font-weight: 700;
    font-size: 0.97rem;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
    font-size: 0.88rem;
}

/* ── TOPICS ── */
.topics-editorial {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 64px;
    margin-top: 48px;
}

.topic-editorial {
    border-top: 2px solid var(--primary);
    padding-top: 18px;
}

.topic-editorial h3 {
    margin: 0 0 10px;
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.topic-editorial p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
    font-size: 0.88rem;
}

/* ── FAQ ── */
.faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
    margin-top: 0;
}

.faq-aside {
    position: sticky;
    top: 96px;
}

.faq-aside p {
    color: var(--muted);
    line-height: 1.72;
    font-size: 0.9rem;
    margin: 12px 0 24px;
}

.faq-group { margin-top: 0; }

.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-item summary {
    padding: 20px 0;
    font-weight: 700;
    font-size: 0.97rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
    transition: color 0.15s;
}

.faq-item summary:hover { color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s, transform 0.25s;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.faq-item[open] .faq-chevron {
    transform: rotate(45deg);
    border-color: var(--primary);
    color: var(--primary);
}

.faq-item p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 0.92rem;
}

/* ── FINAL BANNER ── */
.final-banner {
    background: linear-gradient(135deg, #0f766e 0%, #1a5fb4 60%, #1d4ed8 100%);
    border-radius: 22px;
    padding: 72px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin: 0 24px 96px;
    max-width: 1052px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 96px;
}

.final-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 10% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 90% 30%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.final-banner-content { position: relative; }

.final-banner h2 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.final-banner p {
    margin: 0 auto 32px;
    opacity: 0.75;
    max-width: 44ch;
    line-height: 1.72;
    font-size: 1rem;
}

.cta-white {
    display: inline-block;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    background: #fff;
    color: var(--primary);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.cta-white:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

/* ── FOOTER ── */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 48px;
    align-items: start;
}

.site-footer-inner--4col {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.site-footer-brand .app-brand {
    display: inline-flex;
}

.site-footer-tagline {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 32ch;
}

.site-footer-nav,
.site-footer-legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer-nav-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 4px;
}

.site-footer-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.site-footer-nav a:hover {
    color: var(--primary);
}

.site-footer-legal p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.site-footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0;
}

.site-footer-bottom .container {
    display: flex;
    justify-content: center;
}

.site-footer-bottom span {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ── GUIDES ── */
.guide-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.guide-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.guide-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}

.guide-breadcrumb a:hover { color: var(--primary); }

.guide-breadcrumb-sep { color: var(--border); }

.guide-header {
    padding: 28px 0 36px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.guide-header-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(15, 118, 110, 0.07);
    border: 1px solid rgba(15, 118, 110, 0.18);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.guide-header h1 {
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.guide-header-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.84rem;
    color: var(--muted);
}

.guide-header-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Typographie article */
.guide-body { line-height: 1.8; }

.guide-body h2 {
    margin: 48px 0 16px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text);
}

.guide-body h3 {
    margin: 32px 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.guide-body p { margin: 0 0 18px; color: #334155; }

.guide-body ul,
.guide-body ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.guide-body li {
    margin-bottom: 8px;
    color: #334155;
}

.guide-body strong { color: var(--text); font-weight: 700; }

.guide-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.guide-body a:hover { color: var(--primary-dark); }

/* CTA box */
.guide-cta-box {
    margin: 48px 0;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(29, 78, 216, 0.04));
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.guide-cta-box-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.guide-cta-box-text p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.guide-cta-box .cta { white-space: nowrap; flex-shrink: 0; }

/* Section guides lies + listing */
.guide-related {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.guide-related h2 {
    margin: 0 0 28px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.guide-related .guides-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
}

.guide-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s, transform 0.15s;
    text-decoration: none;
}

.guide-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

.guide-card-date {
    font-size: 0.76rem;
    color: var(--muted);
    font-weight: 500;
}

.guide-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text);
}

.guide-card-excerpt {
    margin: 0;
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}

.guide-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.87rem;
    text-decoration: none;
    margin-top: 4px;
    transition: gap 0.15s;
}

.guide-card-link:hover { gap: 10px; }

/* ── HOME GUIDES GRID VARIANT ── */
.guides-grid--home {
    grid-template-columns: repeat(3, 1fr);
}

.guide-card--cta {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(29, 78, 216, 0.04));
    border-color: rgba(15, 118, 110, 0.22);
}

/* ── GUIDES SEARCH ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.guides-search-bar {
    margin-bottom: 36px;
}

.guides-search-input-wrap {
    position: relative;
    max-width: 440px;
}

.guides-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
}

.guides-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.guides-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.guides-search-input::placeholder {
    color: var(--muted);
}

.guides-search-empty {
    margin: 16px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* ── GUIDES PAGINATION ── */
.guides-pagination {
    margin-top: 40px;
}

.guides-pagination-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.guides-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.guides-page-btn:hover:not([disabled]) {
    border-color: var(--primary);
    color: var(--primary);
}

.guides-page-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.guides-page-btn[disabled] {
    opacity: 0.35;
    cursor: default;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero { padding: 68px 0 56px; }
    .hero-stats { max-width: 100%; }
    .page-section { padding: 64px 0; }
    .feature-list { grid-template-columns: 1fr; gap: 28px; }
    .steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .steps-grid::before { display: none; }
    .topics-editorial { grid-template-columns: 1fr; gap: 28px; }
    .faq-layout { grid-template-columns: 1fr; gap: 36px; }
    .faq-aside { position: static; }
    .final-banner { padding: 52px 28px; border-radius: 16px; margin-bottom: 72px; }
    .site-footer-inner { grid-template-columns: 1fr 1fr; }
    .site-footer-inner--4col { grid-template-columns: 1fr 1fr; }
    .site-footer-brand { grid-column: 1 / -1; }
    .guides-grid { grid-template-columns: repeat(2, 1fr); }
    .guides-grid--home { grid-template-columns: repeat(2, 1fr); }
    .guide-cta-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
    .hero-stat-value { font-size: 1.45rem; }
    .hero-stat-label { font-size: 0.72rem; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
    .guides-grid { grid-template-columns: 1fr; }
    .guides-grid--home { grid-template-columns: 1fr; }
    .guide-related .guides-grid { grid-template-columns: 1fr; }
    .guide-container { padding: 0 16px 60px; }
}
