/* ============================================================
   PAGES DÉTAIL DES PILIERS — CREAI-VBG
   CSS partagé pour les 5 pages /pilier-*.php
   ============================================================ */


/* Jetons : voir base.css */

/* ============================================================
   BASE
   ============================================================ */

.pilier-detail-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

.pilier-detail-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 64px);
    box-sizing: border-box;
}

/* Les blocs de lecture (texte long) restent limités en largeur pour
   rester confortables à lire, même sur un très grand écran. */
.pilier-detail-container--narrow {
    max-width: 920px;
}

/* ============================================================
   HERO
   ============================================================ */

.pilier-detail-hero {
    width: 100%;
    background: linear-gradient(155deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-600) 100%);
    color: #ffffff;
    padding: clamp(100px, 12vw, 140px) 0 clamp(80px, 10vw, 120px);
    position: relative;
    overflow: hidden;
}

.pilier-detail-hero--purple {
    background: linear-gradient(155deg, var(--accent-800) 0%, var(--accent-600) 100%);
}

.pilier-detail-hero::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -140px;
    width: 460px;
    height: 460px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.pilier-detail-hero::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -110px;
    width: 340px;
    height: 340px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.pilier-detail-hero-content {
    max-width: 780px;
    padding: 0 clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 2;
}

.pilier-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.pilier-detail-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.15s;
}

.pilier-detail-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.pilier-detail-breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    flex-shrink: 0;
}

.pilier-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.pilier-detail-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pilier-detail-hero h1 {
    font-size: clamp(32.5px, 4.5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 20px;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pilier-detail-lead {
    font-size: clamp(17.5px, 1.5vw, 21px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.pilier-detail-section {
    width: 100%;
    padding: var(--space-7) 0;
    background: var(--surface);
}

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

.pilier-detail-text {
    font-size: 17.5px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 16px;
    max-width: 68ch;
}

.pilier-detail-text:last-child {
    margin-bottom: 0;
}

.pilier-detail-text--lead {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-primary);
}

/* ============================================================
   EYEBROWS
   ============================================================ */

.eyebrow {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--brand-800);
    margin: 0 0 28px;
    padding-bottom: 14px;
    position: relative;
}

.eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-500);
    border-radius: 2px;
}

.eyebrow--purple { color: var(--accent-800); }
.eyebrow--purple::after { background: var(--accent-600); }

/* ============================================================
   GRILLE DE PROGRAMMES
   ============================================================ */

.programmes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3);
}

.programme-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.programme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-200);
}

/* ============================================================
   BADGE DE DISPONIBILITÉ — statut en direct (ouvert / fermé)
   ============================================================ */

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
    background: rgba(21, 122, 92, 0.12);
    color: #157a5c;
}

.availability-badge--closed {
    background: var(--gray-100);
    color: var(--text-muted);
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #1f9d6f;
    box-shadow: 0 0 0 3px rgba(31, 157, 111, 0.18);
    animation: availability-pulse 2s ease-in-out infinite;
}

.availability-badge--closed .availability-dot {
    background: var(--text-muted);
    box-shadow: none;
    animation: none;
}

.availability-badge-sep {
    opacity: 0.5;
}

@keyframes availability-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(31, 157, 111, 0.35); }
    50%      { box-shadow: 0 0 0 5px rgba(31, 157, 111, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .availability-dot {
        animation: none;
    }
}

/* ============================================================
   PETITES ÉTIQUETTES (dans une carte)
   ============================================================ */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    font-size: 14.5px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--accent-50);
    color: var(--accent-600);
}

.programme-card--solen {
    background: linear-gradient(160deg, var(--accent-50) 0%, var(--surface) 65%);
    border-color: var(--accent-200);
}

.programme-card--solen:hover {
    border-color: var(--accent-600);
}

.programme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand-600);
    margin-bottom: 18px;
    flex-shrink: 0;
}

.programme-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.programme-icon--purple {
    background: var(--accent-50);
    color: var(--accent-600);
}

.programme-card h3 {
    font-size: 17.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
    line-height: 1.35;
}

.programme-card p {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

/* ============================================================
   FEATURE — image + texte
   ============================================================ */

.pilier-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    align-items: center;
}

.pilier-feature--reverse {
    direction: rtl;
}

.pilier-feature--reverse > * {
    direction: ltr;
}

.pilier-feature-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
    background: var(--gray-100);
}

.pilier-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pilier-feature-content h2 {
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 18px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* ============================================================
   LISTE À PUCES (avec check SVG)
   ============================================================ */

.pilier-check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    gap: 12px;
}

.pilier-check-list li {
    position: relative;
    padding-left: 32px;
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.pilier-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-50);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23106649' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.pilier-check-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================================
   ENCADRÉ MISE EN AVANT
   ============================================================ */

.highlight-box {
    background: linear-gradient(135deg, var(--brand-50) 0%, #e6d3ea 100%);
    border-left: 5px solid var(--brand-500);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 32px 36px;
    margin: var(--space-4) 0;
}

.highlight-box--purple {
    background: linear-gradient(135deg, var(--accent-50) 0%, #cfe9ec 100%);
    border-left-color: var(--accent-600);
}

.highlight-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.35;
}

.highlight-box p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
}

.highlight-box p + p {
    margin-top: 12px;
}

/* ============================================================
   ANCRES — sections ciblées par un lien "en savoir plus" depuis
   une autre page (cartes de /pilier-accompagnement.php)
   ============================================================ */

.pilier-detail-page [id] {
    scroll-margin-top: calc(var(--nav-h, 76px) + 16px);
}

/* ============================================================
   LIEN "EN SAVOIR PLUS" DANS UNE CARTE PROGRAMME
   ============================================================ */

.programme-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-600);
    text-decoration: none;
    transition: gap 0.15s;
}

.programme-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.programme-link:hover {
    text-decoration: underline;
}

.programme-link:hover svg {
    transform: translateX(3px);
}

.programme-link--purple {
    color: var(--accent-600);
}

/* ============================================================
   LISTE NUMÉROTÉE — étapes, missions, engagements, charte
   ============================================================ */

.step-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 26px;
}

.step-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-500);
    color: #ffffff;
    font-weight: 700;
    font-size: 17.5px;
}

.step-list--purple .step-num {
    background: var(--accent-600);
}

.step-body h3,
.step-body h4 {
    font-size: 18.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 3px 0 8px;
    line-height: 1.4;
}

.step-body p {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 8px;
}

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

.step-body ul {
    margin: 10px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

.step-body ul li {
    display: list-item;
    padding-left: 0;
    font-size: 17.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.step-body ul li::before {
    content: none;
}

/* ============================================================
   CITATION / PHILOSOPHIE
   ============================================================ */

.pilier-quote {
    position: relative;
    margin: 32px 0;
    padding: 40px 44px 36px;
    background: linear-gradient(135deg, var(--accent-800) 0%, var(--accent-600) 100%);
    border-radius: var(--radius);
    color: #ffffff;
    overflow: hidden;
}

.pilier-quote::before {
    content: "\201C";
    position: absolute;
    top: -18px;
    left: 20px;
    font-size: 110px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.14);
    line-height: 1;
    font-family: Georgia, serif;
}

.pilier-quote p {
    position: relative;
    font-size: 21px;
    line-height: 1.7;
    font-style: italic;
    font-weight: 500;
    margin: 0;
    max-width: 62ch;
}

.pilier-quote cite {
    display: block;
    margin-top: 16px;
    font-size: 15.5px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   GRILLE DUO — deux volets / deux piliers côte à côte
   ============================================================ */

.duo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-4);
    margin-top: 8px;
}

.duo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 30px;
}

.duo-card-tag {
    align-self: flex-start;
    display: inline-block;
    background: var(--accent-50);
    color: var(--accent-600);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.duo-card h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.35;
}

.duo-card > p {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 18px;
}

.duo-card .step-body h4 {
    font-size: 17.5px;
    margin: 0 0 6px;
}

.duo-card .step-list {
    gap: 18px;
    margin-top: 18px;
}

.duo-card .step-num {
    width: 30px;
    height: 30px;
    font-size: 15px;
}

/* ============================================================
   NAVIGATION ENTRE PILIERS
   ============================================================ */

.pilier-nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-5) 0;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.pilier-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    flex: 1;
    min-width: 260px;
}

.pilier-nav-link:hover {
    border-color: var(--brand-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.pilier-nav-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-600);
    transition: background 0.15s, color 0.15s;
}

.pilier-nav-link:hover .pilier-nav-icon {
    background: var(--brand-500);
    color: #ffffff;
}

.pilier-nav-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.pilier-nav-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pilier-nav-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.pilier-nav-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.pilier-nav-link--next {
    justify-content: flex-end;
}

.pilier-nav-link--next .pilier-nav-text {
    align-items: flex-end;
    text-align: right;
}

.pilier-nav-link--next .pilier-nav-icon {
    background: var(--accent-50);
    color: var(--accent-600);
}

.pilier-nav-link--next:hover .pilier-nav-icon {
    background: var(--accent-600);
    color: #ffffff;
}

/* ============================================================
   CTA FINAL
   ============================================================ */

.pilier-detail-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-50) 0%, var(--surface) 50%, var(--brand-50) 100%);
    padding: var(--space-7) 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.pilier-detail-cta h2 {
    font-size: clamp(26px, 3vw, 34.5px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.pilier-detail-cta p {
    max-width: 640px;
    margin: 0 auto var(--space-4);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.pilier-detail-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 16.5px;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
    cursor: pointer;
    border: 1.5px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--brand-500);
    color: #ffffff;
    border-color: var(--brand-500);
}

.btn--primary:hover {
    background: var(--brand-700);
    border-color: var(--brand-700);
}

.btn--outline {
    background: transparent;
    color: var(--accent-600);
    border-color: var(--accent-600);
}

.btn--outline:hover {
    background: var(--accent-600);
    color: #ffffff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .pilier-feature,
    .pilier-feature--reverse {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        direction: ltr;
    }

    .pilier-detail-hero {
        padding: 100px 0 80px;
    }
}

@media (max-width: 600px) {
    .pilier-detail-hero {
        padding: 80px 0 60px;
    }

    .pilier-detail-hero h1 {
        font-size: 28px;
    }

    .pilier-detail-badge {
        font-size: 12.5px;
        padding: 6px 14px;
    }

    .pilier-detail-lead {
        font-size: 17px;
    }

    .pilier-detail-section,
    .pilier-detail-cta {
        padding: var(--space-5) 0;
    }

    .eyebrow {
        font-size: 24px;
        margin-bottom: 22px;
    }

    .eyebrow::after {
        width: 48px;
        height: 3px;
    }

    .highlight-box {
        padding: 24px 22px;
    }

    .programmes-grid {
        grid-template-columns: 1fr;
    }

    .pilier-detail-cta h2 {
        font-size: 24px;
    }

    .pilier-detail-cta p {
        font-size: 17.5px;
    }

    .btn {
        width: 100%;
        max-width: 340px;
    }

    .pilier-detail-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .pilier-nav-links {
        flex-direction: column;
    }

    .pilier-nav-link {
        min-width: 0;
        width: 100%;
    }

    .step-list li {
        gap: 14px;
    }

    .step-num {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .pilier-quote {
        padding: 30px 24px;
    }

    .pilier-quote p {
        font-size: 18.5px;
    }

    .duo-card {
        padding: 26px 22px;
    }
}

/* ============================================================
   ACCOMPAGNEMENT PSYCHO-SOCIAL — volets, cartes enrichies, parcours
   ============================================================ */

/* Les ancres (#soutien-juridique…) ne doivent pas passer sous l'en-tête fixe */
.pilier-detail-section[id] {
    scroll-margin-top: 90px;
}

.duo-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.duo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-600), var(--accent-200));
    opacity: 0;
    transition: opacity 0.2s;
}

.duo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-200);
}

.duo-card:hover::before {
    opacity: 1;
}

.duo-card .programme-icon {
    margin-bottom: 16px;
}

/* Carte-volet cliquable (introduction) */
.duo-card--link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.duo-card--link > p {
    flex: 1;
}

.duo-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-600);
}

.duo-card-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.duo-card--link:hover .duo-card-more svg {
    transform: translateX(4px);
}

/* Étiquettes avec coche */
.tag-list--check .tag::before {
    content: "";
    width: 12px;
    height: 12px;
    margin-right: 7px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pilier-detail-text--wide {
    max-width: 68ch;
}

/* Parcours en 3 temps : avant / pendant / après */
.parcours {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    position: relative;
    counter-reset: parcours;
}

.parcours::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent-200) 0 8px, transparent 8px 16px);
}

.parcours-step {
    position: relative;
    text-align: center;
    padding: 0 8px;
    counter-increment: parcours;
}

.parcours-step::before {
    content: counter(parcours);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--accent-600);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 0 0 6px var(--surface);
}

.pilier-detail-section--alt .parcours-step::before {
    box-shadow: 0 0 0 6px var(--surface-alt);
}

.parcours-step h3 {
    font-size: 18.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.parcours-step p {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: 30ch;
}

@media (max-width: 720px) {
    .parcours {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .parcours::before {
        top: 0;
        bottom: 0;
        left: 22px;
        right: auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(180deg, var(--accent-200) 0 8px, transparent 8px 16px);
    }

    .parcours-step {
        text-align: left;
        padding: 0 0 0 66px;
    }

    .parcours-step::before {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }

    .parcours-step p {
        margin: 0;
        max-width: none;
    }
}

/* Espacements utilitaires (remplacent des styles écrits dans les pages) */
.info-highlight--spaced { margin-top: 32px; margin-bottom: 0; }
.pilier-detail-note {
    margin-top: 16px;
    font-size: 15.5px;
    color: var(--text-muted);
}
.pilier-detail-note::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent-200);
}
.duo-card .tag-list { margin-top: 8px; }

/* Paragraphe secondaire sous le texte d'introduction (intro-split) */
.pilier-detail-note-text {
    margin: -12px 0 28px;
    max-width: 58ch;
}

/* ------------------------------------------------------------
   Carte « Qu'est-ce que c'est ? » — en-tête, texte, formats
   ------------------------------------------------------------ */
.duo-grid--feature {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: stretch;
}

.duo-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.duo-card-head .programme-icon {
    width: 46px;
    height: 46px;
    margin: 0;
}

.duo-card-head .duo-card-tag {
    margin: 0;
}

.duo-card--feature-text,
.duo-grid--feature .duo-card > p {
    font-size: 17.5px;
    line-height: 1.75;
    color: var(--text-primary);
}

.duo-grid--feature .duo-card > p strong {
    color: var(--accent-800);
}

.duo-card-label {
    margin: 22px 0 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Tuiles compactes à l'intérieur d'une carte : plus de bordure double ni de saut au survol */
.tile-grid--compact {
    gap: 10px;
}

.tile-grid--compact .tile {
    padding: 12px 14px;
    gap: 12px;
    font-size: 16px;
    background: var(--surface-alt);
    border-color: transparent;
    min-width: 0;
}

.tile-grid--compact .tile:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--accent-200);
    background: var(--accent-50);
}

.tile-grid--compact .tile-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--surface);
}

.tile-grid--compact .tile-icon svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 820px) {
    .duo-grid--feature {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .tile-grid--compact.tile-grid--2 {
        grid-template-columns: 1fr;
    }
}

.duo-grid--feature .duo-card > .duo-card-label {
    margin: 22px 0 12px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-muted);
}
