/*
 * 1306DATA — Styles des pages publiques SEO.
 * Reprend les tokens et les composants de la landing page (frontend/templates/landing.html)
 * afin que les pages solutions, guides et comparatif restent visuellement cohérentes.
 */

:root {
    --primary: #1a1a1a;
    --primary-dark: #000000;
    --accent: #2a2a2a;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --text-light: #999999;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f7f7f6;
    --line: #e8e6e3;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
}

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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 12px 0;
}

.skip-link:focus {
    left: 0;
}

/* ---------------------------------------------------------------- Navigation */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin: 16px auto 0;
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.44, 0, 0.56, 1);
    border-radius: 28px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav.scrolled {
    background: rgba(245, 245, 247, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(26, 26, 26, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1.5rem;
}

.branding {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
    flex-shrink: 0;
}

.branding img {
    height: 44px;
    width: auto;
    max-width: 100%;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
}

.nav__links > a {
    position: relative;
    padding: 0.25rem 0;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.4s cubic-bezier(0.44, 0, 0.56, 1);
}

.nav__links > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.4s cubic-bezier(0.44, 0, 0.56, 1);
}

.nav__links > a:hover::after {
    width: 100%;
}

/* Groupes déroulants du menu */
.nav__group {
    position: relative;
}

.nav__group-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0.25rem 0;
}

.nav__group-caret {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.nav__group[data-open="true"] .nav__group-caret {
    transform: rotate(180deg);
}

.nav__dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 268px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 0.6rem;
    display: grid;
    gap: 0.15rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.nav__group[data-open="true"] .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav__dropdown a {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.nav__dropdown a:hover {
    background: var(--surface-alt);
}

.nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav__toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
    display: block;
    position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* Visible uniquement dans le menu déroulant des petits écrans. */
.nav__links-cta {
    display: none;
}

.nav__cta-primary {
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav__cta-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 600px) {
    .nav {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        margin: 8px auto 0;
        border-radius: 20px;
    }

    /*
      Sur les petits écrans, le bouton de démonstration déborderait de l'en-tête :
      il est remplacé par une entrée équivalente dans le menu déroulant.
    */
    .nav__cta-primary {
        display: none;
    }

    .nav__links > a.nav__links-cta {
        display: block;
        margin-top: 0.35rem;
        padding: 0.7rem 1.1rem;
        border-radius: 999px;
        background: var(--primary);
        color: #fff;
        font-weight: 600;
        text-align: center;
    }

    .nav__links > a.nav__links-cta::after {
        content: none;
    }

    .nav__links > a.nav__links-cta:hover {
        background: var(--primary-dark);
        color: #fff;
    }
}

@media (max-width: 1024px) {
    .nav__links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        right: 16px;
        left: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        background: var(--bg);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        max-height: 70vh;
        overflow-y: auto;
    }

    .nav.open .nav__links {
        display: flex;
    }

    .nav__toggle {
        display: inline-flex;
    }

    .nav__group-btn {
        width: 100%;
        justify-content: space-between;
    }

    .nav__dropdown {
        position: static;
        transform: none;
        min-width: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 0.5rem;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    .nav__group[data-open="true"] .nav__dropdown {
        display: grid;
        transform: none;
    }
}

/* ---------------------------------------------------------------- Fil d'Ariane */

main {
    padding-top: 6rem;
}

.breadcrumbs {
    padding: 1.25rem 0 0;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li + li::before {
    content: '›';
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}

/* ---------------------------------------------------------------- Hero SEO */

.seo-hero {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

/*
  Le hero partage la gouttière du `.container` des autres sections pour rester
  aligné à gauche ; seule la largeur de lecture du texte est limitée.
*/
.seo-hero h1,
.seo-hero__lead,
.seo-hero__kicker {
    max-width: 860px;
}

.seo-hero__kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.seo-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.seo-hero__lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.seo-hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.seo-hero__trust {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.seo-hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
}

@media (max-width: 600px) {
    .seo-hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .seo-hero__buttons .cta {
        width: 100%;
        text-align: center;
    }
}

/* ---------------------------------------------------------------- Hero d'article */

.article-hero {
    padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.article-hero h1,
.article-hero__lead {
    max-width: 820px;
}

.article-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.article-hero__lead {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-hero__meta {
    display: flex;
    gap: 0.5rem 1.25rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.toc {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 0 0 2rem;
    max-width: 820px;
}

.toc__title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.toc li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

/* ---------------------------------------------------------------- Boutons */

.cta {
    padding: 1rem 2.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: 1.5px solid var(--primary);
}

.cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.cta.primary-glow {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.cta.outline-glass {
    border: 1.5px solid rgba(26, 26, 26, 0.2);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    color: var(--text-primary);
}

.cta.outline-glass:hover {
    background: var(--surface-alt);
    color: var(--text-primary);
}

/* ---------------------------------------------------------------- Sections */

.section {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    width: 100%;
    overflow-x: hidden;
}

.section--alternate {
    background: var(--surface-alt);
}

.section__header {
    max-width: 820px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.section__header--left {
    margin-left: 0;
    text-align: left;
}

.eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.section h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section__lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------------------------------------------------------------- Grilles / cartes */

.grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.grid--two {
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
}

.grid--three {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

@media (max-width: 768px) {
    .grid--two,
    .grid--three {
        grid-template-columns: 1fr;
    }
}

.options-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.85rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.options-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 26, 26, 0.18);
}

.options-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-secondary);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    margin-bottom: 0.9rem;
}

.options-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
}

.options-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.9rem;
}

.options-card ul {
    list-style: none;
}

.options-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
}

.options-card li:last-child {
    border-bottom: none;
}

.options-card li::before {
    content: "•";
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.2;
}

.options-note {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.8;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--text-primary);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-card ul {
    list-style: none;
    margin-top: 1.25rem;
}

.feature-card li {
    padding: 0.65rem 0;
    color: var(--text-secondary);
    font-size: 0.94rem;
    border-bottom: 1px solid var(--line);
}

.feature-card li:last-child {
    border-bottom: none;
}

.feature-card li::before {
    content: "✓ ";
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 0.75rem;
}

.value-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.96rem;
}

/* ---------------------------------------------------------------- Réponses directes (GEO) */

.answer-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
}

.answer-block + .answer-block {
    margin-top: 1rem;
}

.answer-block h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.answer-block p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.answer-block p + p {
    margin-top: 0.75rem;
}

/* ---------------------------------------------------------------- Étapes numérotées */

.steps {
    list-style: none;
    max-width: 860px;
    counter-reset: step;
}

.steps li {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}

.steps li:last-child {
    border-bottom: none;
}

.steps__index {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.steps__content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.steps__content p {
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ---------------------------------------------------------------- Contenu rédactionnel */

.prose {
    max-width: 820px;
}

.prose h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-size: 1.2rem;
    margin: 1.75rem 0 0.65rem;
    font-weight: 600;
}

.prose p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.prose ul,
.prose ol {
    margin: 0 0 1.25rem 1.35rem;
    color: var(--text-secondary);
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.prose strong {
    color: var(--text-primary);
}

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

.callout {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.callout p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.75;
    margin: 0;
}

.callout p + p {
    margin-top: 0.6rem;
}

.callout strong {
    color: var(--text-primary);
}

/* ---------------------------------------------------------------- Tableaux */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    margin: 1.5rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    min-width: 520px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.data-table thead th {
    background: var(--surface-alt);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.data-table tbody td {
    color: var(--text-secondary);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---------------------------------------------------------------- Captures produit */

.screenshot {
    margin: 1.5rem 0 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

.screenshot figcaption {
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- FAQ */

.faq-list {
    max-width: 900px;
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 1.4rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item__body {
    padding: 0 1.4rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.8;
}

.faq-item__body ul {
    margin: 0.5rem 0 0 1.25rem;
}

.faq-item__body li {
    margin-bottom: 0.35rem;
}

.faq-item__body a {
    color: var(--text-primary);
}

/* ---------------------------------------------------------------- CTA de section */

.section-cta {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.section-cta__text h2,
.section-cta__text h3 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.section-cta__text p {
    color: var(--text-secondary);
    margin: 0;
}

.section-cta__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .section-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .section-cta__actions .cta {
        width: 100%;
        text-align: center;
    }
}

/* ---------------------------------------------------------------- Pages liées */

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1rem;
}

.related-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.35rem;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26, 26, 26, 0.2);
}

.related-card__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.related-card__title {
    display: block;
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.related-card__desc {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------------------------------------------------------------- Pied de page */

.footer {
    background: var(--text-primary);
    color: #fff;
    padding: 3.5rem 0 2rem;
}

/*
  Six blocs (marque + cinq colonnes) : la marque occupe deux fractions pour que
  les cinq colonnes de liens tiennent sur une seule ligne en grand écran.
*/
.footer__columns {
    display: grid;
    grid-template-columns: 1.6fr repeat(5, 1fr);
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1100px) {
    .footer__columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .footer__columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

.footer__brand .branding {
    color: #fff;
    margin-bottom: 1rem;
}

.footer__brand p {
    font-size: 0.88rem;
    opacity: 0.7;
    line-height: 1.7;
    max-width: 280px;
}

.footer__col-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.55;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer__col ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.footer__col a {
    color: #fff;
    text-decoration: none;
    opacity: 0.75;
    font-size: 0.89rem;
    transition: opacity 0.2s;
}

.footer__col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer__bottom {
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer__bottom-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer__bottom a {
    color: #fff;
    text-decoration: none;
}

.footer__bottom a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------- Impression / accessibilité */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.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;
}
