/* ============================================================
   PAGE "BESOIN D'AIDE ?" — CREAI-VBG
   Charte : corail dominant (urgence), teal pour les services
   ============================================================ */


/* ============================================================
   VARIABLES
   ============================================================ */

/* Jetons : voir base.css */

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

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

.aide-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.aide-container--narrow {
    max-width: 820px;
}

/* ============================================================
   HERO — corail
   ============================================================ */

.aide-hero {
    width: 100%;
    background: linear-gradient(135deg, var(--coral-900) 0%, var(--coral-700) 50%, var(--coral-500) 100%);
    color: #ffffff;
    padding: 110px 0 100px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.aide-hero::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.aide-hero::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 380px;
    height: 380px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.aide-hero-content {
    max-width: 900px;
    margin: 0;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.aide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.aide-badge svg {
    display: block;
    flex-shrink: 0;
}

.aide-hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    max-width: 800px;
}

.aide-lead {
    font-size: 20px;
    line-height: 1.65;
    color: #ffffff;
    max-width: 720px;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 0.98;
}

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

.aide-section {
    width: 100%;
    padding: 80px 0;
    background: var(--surface);
}

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

.aide-section-head {
    text-align: center;
    margin-bottom: 50px;
}

.aide-section-intro {
    font-size: 18.5px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.65;
}

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

.eyebrow {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--brand-800, #401a48);
    margin: 0 0 32px;
    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--teal   { color: var(--brand-800, #401a48); }
.eyebrow--teal::after   { background: var(--brand-500); }

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

.eyebrow--coral  { color: var(--coral-900); }
.eyebrow--coral::after  { background: var(--coral-500); }

.aide-section-head .eyebrow {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    text-align: center;
}

.aide-section-head .eyebrow::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================================
   NUMÉROS D'URGENCE
   ============================================================ */

.urgence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.urgence-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--surface);
    border: 2px solid var(--coral-200);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.urgence-card:hover {
    transform: translateY(-4px);
    border-color: var(--coral-500);
    box-shadow: 0 12px 28px rgba(192, 79, 43, 0.15);
}

.urgence-card--primary {
    border-color: var(--coral-500);
    background: var(--coral-50);
}

.urgence-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--coral-500);
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.urgence-label {
    font-size: 17.5px;
    font-weight: 700;
    color: var(--coral-900);
    margin-bottom: 6px;
    line-height: 1.3;
}

.urgence-detail {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.4;
}

.aide-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 16px;
    color: var(--coral-900);
    margin: 40px auto 0;
    padding: 16px 24px;
    background: var(--coral-50);
    border-radius: var(--radius-sm);
    max-width: 720px;
}

.aide-note svg {
    display: block;
    flex-shrink: 0;
}

/* ============================================================
   LIGNE D'ÉCOUTE
   ============================================================ */

.ecoute-box {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    background: var(--surface);
    border: 2px solid var(--brand-200);
    border-radius: var(--radius);
    padding: 44px 40px;
    box-shadow: 0 8px 28px rgba(106, 44, 116, 0.08);
}

.ecoute-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--brand-50);
    color: var(--brand-700);
    border-radius: 50%;
    flex-shrink: 0;
}

.ecoute-icon svg {
    display: block;
}

.ecoute-content {
    flex: 1;
}

.ecoute-content .eyebrow {
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-bottom: 0;
    margin-bottom: 12px;
    color: var(--brand-500);
}

.ecoute-content .eyebrow::after {
    display: none;
}

.ecoute-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.ecoute-content p {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.ecoute-horaires {
    font-size: 17.5px;
    color: var(--brand-700);
    margin: 0 0 24px !important;
    padding: 10px 16px;
    background: var(--brand-50);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.ecoute-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ============================================================
   QUE FAIRE — étapes
   ============================================================ */

.etapes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.etape-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--brand-500);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.etape-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(106, 44, 116, 0.1);
}

.etape-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--brand-50);
    color: var(--brand-700);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

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

.etape-card p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================================
   NOS SERVICES
   ============================================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(76, 68, 148, 0.08);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--brand-50);
    color: var(--brand-700);
    border-radius: 50%;
    margin-bottom: 18px;
    line-height: 1;
}

.service-icon svg {
    display: block;
}

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

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.services-cta {
    text-align: center;
    margin-top: 40px;
}

/* ============================================================
   CONFIIDENTIALITÉ
   ============================================================ */

.confiance-box {
    background: var(--brand-50);
    border: 2px solid var(--brand-200);
    border-radius: var(--radius);
    padding: 44px 40px;
    text-align: center;
}

.confiance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: var(--surface);
    color: var(--brand-700);
    border-radius: 50%;
    margin-bottom: 20px;
}

.confiance-icon svg {
    display: block;
}

.confiance-box h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--brand-900);
    margin: 0 0 20px;
}

.confiance-box p {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0 0 14px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.confiance-box p:last-child {
    margin-bottom: 0;
}

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

.aide-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--coral-50) 0%, var(--surface) 50%, var(--coral-50) 100%);
    padding: 90px 0 100px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.aide-cta h2 {
    font-size: 34.5px;
    font-weight: 700;
    color: var(--coral-900);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.aide-cta p {
    max-width: 720px;
    margin: 0 auto 36px;
    font-size: 18.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.aide-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

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

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

.btn svg {
    display: block;
    flex-shrink: 0;
}

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

.btn--outline {
    background: transparent;
    color: var(--brand-500);
    border-color: var(--brand-500);
}
.btn--outline:hover {
    background: var(--brand-500);
    color: #fff;
}

.btn--outline-teal {
    background: transparent;
    color: var(--brand-500);
    border-color: var(--brand-500);
}
.btn--outline-teal:hover {
    background: var(--brand-500);
    color: #fff;
}

.btn--coral {
    background: var(--coral-500);
    color: #fff;
    border-color: var(--coral-500);
}
.btn--coral:hover {
    background: var(--coral-700);
    border-color: var(--coral-700);
}

.btn--outline-coral {
    background: transparent;
    color: var(--coral-500);
    border-color: var(--coral-500);
}
.btn--outline-coral:hover {
    background: var(--coral-500);
    color: #fff;
}

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

@media (max-width: 900px) {
    .aide-container { padding: 0 32px; }
    .aide-hero-content { padding: 0 32px; }
    .aide-hero h1 { font-size: 36.5px; }

    .ecoute-box {
        flex-direction: column;
        padding: 36px 28px;
    }

    .ecoute-icon {
        width: 64px;
        height: 64px;
    }

}

@media (max-width: 600px) {
    .aide-container,
    .aide-hero-content { padding: 0 20px; }

    .aide-hero { padding: 70px 0 60px; }
    .aide-hero h1 { font-size: 28px; }

    .aide-badge { font-size: 15px; padding: 8px 16px; }
    .aide-lead { font-size: 17.5px; }

    .aide-section,
    .aide-cta { padding: 50px 0; }

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

    .urgence-number { font-size: 36.5px; }
    .urgence-card { padding: 24px 18px; }

    .ecoute-content h2 { font-size: 24px; }
    .confiance-box { padding: 32px 24px; }
    .confiance-box h2 { font-size: 21.5px; }

    .aide-cta h2 { font-size: 26px; }
    .aide-cta p { font-size: 17.5px; }

    .ecoute-actions,
    .aide-cta-buttons {
        flex-direction: column;
    }

    .ecoute-actions .btn,
    .aide-cta-buttons .btn {
        width: 100%;
        max-width: 340px;
    }
}
/* ============================================================
   AJOUTS : signalement, services (6), auteur(e)s, conseils de sécurité
   ============================================================ */

.aide-note a {
    color: var(--coral-700);
    font-weight: 700;
    text-decoration: underline;
}

/* 6 services : 3 colonnes sur grand écran */
@media (min-width: 1000px) {
    .services-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    text-align: left;
}

.service-card .service-icon {
    display: flex;
}

/* Bloc « Signaler une situation » */
.signal-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px;
    background: var(--coral-50);
    border: 2px solid var(--coral-200);
    border-radius: var(--radius);
}

.signal-box-text {
    flex: 1;
    min-width: 0;
}

.signal-box h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--coral-900);
}

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

.signal-box p.signal-box-warn {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--coral-700);
}

.signal-box-action {
    flex: none;
}

/* Bloc auteur(e)s */
.auteurs-box {
    text-align: center;
}

.auteurs-box h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.auteurs-box p {
    margin: 0 auto 24px;
    max-width: 640px;
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Conseils de sécurité dans la boîte de confiance */
.securite-liste {
    max-width: 640px;
    margin: 22px auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.securite-liste li {
    position: relative;
    margin: 0 0 12px;
    padding-left: 28px;
    font-size: 17.5px;
    line-height: 1.65;
    color: var(--text-primary);
}

.securite-liste li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 9px;
    height: 9px;
    background: var(--brand-500);
    border-radius: 50%;
}

@media (max-width: 800px) {
    .signal-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 22px;
    }

    .signal-box-action,
    .signal-box-action .btn {
        width: 100%;
    }
}

/* 4 repères : une seule ligne sur grand écran (pas de carte orpheline) */
@media (min-width: 1000px) {
    .etapes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   VOUS ÊTES... — quatre cartes de situation (onglets)
   ============================================================ */

.role-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 44px;
}

.role-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 22px 20px;
    text-align: left;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s, background 0.18s;
}

/* Filet de couleur en haut de la carte */
.role-tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--coral-200);
    opacity: 0.55;
    transition: opacity 0.18s, background 0.18s;
}

.role-tab:hover {
    border-color: var(--coral-200);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(106, 41, 21, 0.12);
}

.role-tab:hover::before { opacity: 1; }

.role-tab:focus-visible {
    outline: 3px solid var(--coral-500);
    outline-offset: 3px;
}

.role-tab-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.role-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--coral-50);
    color: var(--coral-700);
    transition: background 0.18s, color 0.18s;
}

.role-tab-icon svg {
    width: 23px;
    height: 23px;
    display: block;
}

.role-tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--gray-50);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
    transition: background 0.18s, color 0.18s;
}

.role-tab-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.role-tab-hint {
    display: block;
    margin-top: 5px;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Carte active : fond corail, texte clair */
.role-tab.is-active {
    background: var(--coral-500);
    border-color: var(--coral-500);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(192, 79, 43, 0.35);
}

.role-tab.is-active::before { background: #fff; opacity: 0.9; }
.role-tab.is-active .role-tab-icon { background: rgba(255, 255, 255, 0.22); color: #fff; }
.role-tab.is-active .role-tab-num { background: #fff; color: var(--coral-700); }
.role-tab.is-active .role-tab-title,
.role-tab.is-active .role-tab-hint { color: #fff; }
.role-tab.is-active .role-tab-hint { opacity: 0.95; }

/* Petite flèche sous la carte active : fait le lien avec le panneau ci-dessous */
.role-tab.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 18px;
    height: 9px;
    transform: translateX(-50%);
    background: var(--bg-page, #faf9f7);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.role-panels {
    max-width: 820px;
    margin: 0 auto;
}

.role-panel[hidden] {
    display: none;
}

.role-lead {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 28px;
}

/* Le rail de cartes s'étend sur toute la largeur du navigateur,
   en sortant de la colonne étroite (820px) du panneau. */
.role-cards-wrap {
    position: relative;
    width: calc(100vw - var(--sbw, 0px));
    margin-left: calc(50% - 50vw + var(--sbw, 0px) / 2);
    margin-bottom: 18px;
}

.role-cards-scroll {
    display: flex;
    align-items: stretch;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 2px 64px 6px;
    scroll-padding-inline: 64px;
    margin: 0;

    /* Scroll invisible mais fonctionnel */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.role-cards-scroll::-webkit-scrollbar {
    display: none;
    height: 0;
}

.role-cards-scroll .role-block {
    flex: 0 0 320px;
    margin-bottom: 0;
    scroll-snap-align: start;
}

.role-cards-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface);
    color: var(--coral-500);
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s, color 0.15s, opacity 0.15s, transform 0.15s;
}

.role-cards-nav:hover {
    background: var(--coral-500);
    color: #fff;
}

.role-cards-nav--prev {
    left: 12px;
}

.role-cards-nav--next {
    right: 12px;
}

.role-cards-nav[disabled] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.role-cards-nav svg {
    display: block;
}

@media (max-width: 900px) {
    .role-cards-scroll {
        padding-left: 56px;
        padding-right: 56px;
        scroll-padding-inline: 56px;
    }

    .role-cards-nav {
        width: 40px;
        height: 40px;
    }

    .role-cards-nav--prev {
        left: 8px;
    }

    .role-cards-nav--next {
        right: 8px;
    }
}

@media (max-width: 600px) {
    .role-cards-scroll {
        gap: 16px;
        padding-left: 44px;
        padding-right: 44px;
        scroll-padding-inline: 44px;
    }

    .role-cards-scroll .role-block {
        flex-basis: calc(100vw - 92px);
    }

    .role-cards-nav {
        width: 36px;
        height: 36px;
    }

    .role-cards-nav--prev {
        left: 4px;
    }

    .role-cards-nav--next {
        right: 4px;
    }
}

.role-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-bottom: 18px;
}

.role-block h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.role-block p {
    margin: 0 0 14px;
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.role-block p:last-child,
.role-block .role-list:last-child,
.role-block .btn:last-child,
.role-block .role-link:last-child {
    margin-bottom: 0;
}

.role-block--alert {
    background: var(--coral-50);
    border-color: var(--coral-200);
}

.role-block--alert h3 {
    color: var(--coral-900);
}

.role-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-700);
    text-decoration: none;
}

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

.role-list {
    margin: 0 0 14px;
    padding-left: 20px;
}

.role-list li {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.role-list li:last-child {
    margin-bottom: 0;
}

.role-list a {
    color: var(--brand-700);
    font-weight: 700;
    text-decoration: underline;
}

.phrase-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.phrase-list li {
    background: var(--brand-50);
    color: var(--brand-900);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
}

.role-soon {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-700);
    background: var(--brand-50);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.role-callout {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--coral-700);
    background: var(--coral-50);
    padding: 14px;
    border-radius: var(--radius-sm);
    margin: 0 0 18px;
}

/* ============================================================
   PANNEAU ENRICHI — "Je veux aider un proche"
   Sections, cartes de conseils et citations
   ============================================================ */

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Typographie : texte aligné à gauche, sans césure, lignes équilibrées */
.role-panel--rich {
    text-align: left;
    hyphens: manual;
}

.role-panel--rich p,
.role-panel--rich li {
    text-wrap: pretty;
}

.role-panel--rich h3,
.role-panel--rich h4 {
    text-wrap: balance;
}

.role-panel--rich .role-lead {
    margin: 0 0 44px;
    padding: 4px 0 4px 22px;
    border-left: 4px solid var(--brand-500);
    font-size: 18.5px;
    line-height: 1.75;
    color: var(--text-primary);
}

/* Groupes de contenu (titre + intro + grille) */
.role-group {
    margin-bottom: 48px;
}

.role-group-head {
    margin-bottom: 24px;
}

.role-group-head h3 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.role-group-head h3::after {
    content: '';
    display: block;
    width: 44px;
    height: 4px;
    margin-top: 12px;
    background: var(--coral-500);
    border-radius: 2px;
}

.role-group-head p {
    margin: 0;
    max-width: 70ch;
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* --- Cartes "Écouter et soutenir" --- */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: support;
}

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

.support-card::after {
    content: counter(support, decimal-leading-zero);
    position: absolute;
    top: 22px;
    right: 24px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--gray-200);
}

.support-card:hover {
    border-color: var(--brand-200);
    box-shadow: 0 10px 28px rgba(51, 20, 58, 0.09);
    transform: translateY(-2px);
}

.support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--brand-50);
    color: var(--brand-700);
    border-radius: 14px;
}

.support-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.support-body h4 {
    margin: 0 0 10px;
    font-size: 18.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

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

.support-body em {
    font-style: italic;
    font-weight: 400;
}

.support-body a {
    color: var(--brand-700);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.support-body a:hover {
    color: var(--brand-900);
}

.support-links {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.support-links li {
    position: relative;
    padding-left: 18px;
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.support-links li::before {
    content: '';
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--brand-500);
    border-radius: 50%;
}

/* --- Citations "Que dire à une victime qui se confie ?" --- */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quote-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 18px 22px 18px 62px;
    background: var(--brand-50);
    border: 1px solid rgba(78, 31, 87, 0.14);
    border-radius: 16px;
    font-size: 18.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--brand-900);
    text-align: left;
}

.quote-card::before {
    content: '\201C';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-38%);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 54px;
    line-height: 1;
    color: var(--brand-500);
}

/* Grand écran : les grilles sortent de la colonne de 820px et
   affichent 4 cartes par ligne (2 lignes de 4 pour 8 cartes). */
@media (min-width: 1100px) {
    .role-group--wide {
        position: relative;
        left: 50%;
        width: min(1180px, calc(100vw - var(--sbw, 0px) - 64px));
        transform: translateX(-50%);
    }

    .role-group--wide .support-grid,
    .role-group--wide .quote-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .role-group--wide .support-grid {
        gap: 20px;
    }

    .role-group--wide .support-card {
        padding: 24px 22px 26px;
    }

    .role-group--wide .support-body h4 {
        font-size: 17.5px;
    }

    .role-group--wide .support-body p,
    .role-group--wide .support-links li {
        font-size: 16.5px;
        line-height: 1.7;
    }

    .role-group--wide .quote-card {
        min-height: 92px;
        padding: 18px 18px 18px 52px;
        font-size: 17.5px;
    }

    .role-group--wide .quote-card::before {
        left: 15px;
        font-size: 46px;
    }
}

/* --- "Elle ne s'est pas confiée" : bloc de lecture mis en valeur --- */
.doubt {
    display: grid;
    gap: 28px;
    padding: 30px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--coral-500);
    border-radius: 16px;
}

.doubt-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.doubt-head h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.doubt-head .support-icon {
    background: var(--coral-50);
    color: var(--coral-500);
}

.doubt-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--brand-700);
    border-radius: 999px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.doubt-link:hover {
    background: var(--brand-900);
    transform: translateY(-1px);
}

.doubt-body {
    display: grid;
    gap: 18px;
    align-content: start;
}

.doubt-body p {
    margin: 0;
    font-size: 18px;
    line-height: 1.85;
    color: var(--text-secondary);
    text-align: left;
}

/* Surlignage des idées clés */
.doubt-body mark {
    padding: 0 2px;
    background: linear-gradient(transparent 58%, rgba(240, 153, 123, 0.5) 58%);
    color: var(--text-primary);
    font-weight: 600;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.doubt-body .doubt-note {
    padding: 20px 24px;
    background: var(--brand-50);
    border-left: 4px solid var(--brand-500);
    border-radius: 0 14px 14px 0;
    font-size: 18.5px;
    line-height: 1.7;
    color: var(--brand-900);
}

.doubt-body .doubt-note strong {
    font-weight: 800;
}

@media (min-width: 900px) {
    .doubt {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 48px;
        padding: 40px 44px;
    }

    .doubt-head h3 {
        font-size: 26px;
    }
}

/* Variantes du bloc de lecture */
.doubt--teal {
    border-left-color: var(--brand-500);
}

.doubt--teal .doubt-head .support-icon {
    background: var(--brand-50);
    color: var(--brand-700);
}

.doubt--alert {
    background: var(--coral-50);
    border-color: var(--coral-200);
    border-left-color: var(--coral-500);
}

.doubt--alert .doubt-head .support-icon {
    background: #fff;
}

.doubt--alert .doubt-body p {
    color: var(--coral-900);
}

.doubt--alert mark {
    background: linear-gradient(transparent 58%, rgba(192, 79, 43, 0.28) 58%);
    color: var(--coral-900);
}

.doubt--alert .tel-chips {
    margin: 0;
}

.doubt-link--coral {
    background: var(--coral-500);
}

.doubt-link--coral:hover {
    background: var(--coral-700);
}

/* Bandeau "Soutenir sans juger" */
.role-panel--rich .role-callout--banner {
    margin: 0;
    padding: 34px 24px;
    background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
    border-radius: 16px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #fff;
}

/* Grille de 3 cartes ("Comment orienter") */
.support-cta {
    display: inline-block;
    margin-top: 16px;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--brand-700);
    text-decoration: none;
}

.support-cta:hover {
    color: var(--brand-900);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.support-body .role-soon {
    display: inline-block;
    margin-top: 16px;
}

@media (min-width: 900px) {
    .support-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .role-group--wide .support-grid.support-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .role-panel--rich .role-callout--banner {
        padding: 26px 18px;
        font-size: 20px;
        letter-spacing: 0.1em;
    }
}

.role-group--last {
    margin-bottom: 0;
}

.role-group-head p + p {
    margin-top: 12px;
}

.role-group-head strong {
    font-weight: 700;
    color: var(--text-primary);
}

/* Liste de situations à coches */
.doubt-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doubt-list li {
    position: relative;
    padding: 14px 18px 14px 54px;
    background: var(--gray-50);
    border-radius: 12px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-primary);
    text-align: left;
}

.doubt-list li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 18px;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    background: var(--brand-500);
    border-radius: 50%;
}

.doubt-list li::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 25px;
    width: 5px;
    height: 10px;
    transform: translateY(-58%) rotate(45deg);
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
}

/* Boutons d'action groupés */
.doubt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doubt-link--ghost {
    background: transparent;
    border: 2px solid var(--brand-700);
    color: var(--brand-700);
}

.doubt-link--ghost:hover {
    background: var(--brand-50);
    color: var(--brand-900);
}

.group-cta {
    margin: 28px 0 0;
}

/* Blocs classiques du panneau enrichi : même rythme que les cartes */
.role-panel--rich .role-block {
    padding: 28px 32px;
    margin-bottom: 20px;
    border-radius: 16px;
}

.role-panel--rich .role-block h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.role-panel--rich .role-block p,
.role-panel--rich .role-list li {
    font-size: 17px;
    line-height: 1.75;
}

.role-panel--rich .role-link {
    font-size: 17.5px;
}

.role-panel--rich .role-callout {
    margin: 36px 0 24px;
    padding: 18px;
    border-radius: 14px;
}

@media (max-width: 700px) {
    .role-panel--rich .role-lead {
        margin-bottom: 36px;
        padding-left: 16px;
        font-size: 17.5px;
    }

    .role-group {
        margin-bottom: 40px;
    }

    .role-group-head h3 {
        font-size: 22.5px;
    }

    .support-grid,
    .quote-grid {
        grid-template-columns: 1fr;
    }

    .support-card {
        padding: 22px 20px 24px;
    }

    .quote-card {
        min-height: 68px;
        padding: 16px 18px 16px 56px;
        font-size: 17.5px;
    }

    .quote-card::before {
        left: 16px;
    }

    .role-panel--rich .role-block {
        padding: 22px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-card,
    .support-card:hover {
        transition: none;
        transform: none;
    }
}

/* Espace de respiration sous la nav fixe pour les ancres "↓" des onglets */
#urgence,
#ligne-ecoute {
    scroll-margin-top: 100px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}

@media (max-width: 1000px) {
    .role-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .role-tabs { gap: 10px; }

    .role-tab {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 16px 16px 16px 18px;
    }

    .role-tab-top { width: auto; gap: 10px; flex-shrink: 0; }
    .role-tab-icon { width: 42px; height: 42px; }
    .role-tab-num { display: none; }
    .role-tab.is-active::after { display: none; }
}

@media (max-width: 420px) {
    .role-tabs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .role-tab, .role-tab::before, .role-tab-icon, .role-tab-num { transition: none; }
    .role-tab:hover, .role-tab.is-active { transform: none; }
}

@media (max-width: 600px) {
    .role-block {
        padding: 20px 20px;
    }
}

/* ============================================================
   NUMÉROS D'URGENCE CLIQUABLES (hero + blocs d'alerte)
   ============================================================ */

.aide-hero-urgences {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 30px;
}

.aide-hero-urgences-label {
    font-size: 17.5px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.aide-hero-tels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aide-hero-tel {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 18px;
    background: #ffffff;
    color: var(--coral-900);
    border-radius: 999px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-shadow: none;
    transition: background 0.15s, transform 0.1s;
}

.aide-hero-tel strong {
    font-size: 21px;
    font-weight: 800;
    color: var(--coral-500);
}

.aide-hero-tel:hover {
    background: var(--coral-50);
    transform: translateY(-1px);
}

.tel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 14px;
}

.tel-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1.5px solid var(--coral-500);
    border-radius: 999px;
    color: var(--coral-900);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.tel-chip strong {
    font-size: 17.5px;
    font-weight: 800;
    color: var(--coral-500);
}

.tel-chip:hover {
    background: var(--coral-500);
    color: #ffffff;
}

.tel-chip:hover strong {
    color: #ffffff;
}

.role-call {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin: 0 0 28px;
}

/* Espace sous la nav fixe quand on arrive via un lien direct (#proche…) */
.role-section {
    scroll-margin-top: 80px;
}

@media (max-width: 600px) {
    .aide-hero-tel {
        padding: 8px 14px;
    }

    .role-call .btn {
        width: 100%;
    }
}

/* ============================================================
   REFONTE DU CONTENU DES SITUATIONS — dans l'esprit de la page Solen
   (titres à barre, cartes à icône, étiquettes, textes lisibles, survols doux)
   ============================================================ */

/* ---- Chapeau de chaque situation ---- */
.role-lead {
    max-width: 760px;
    margin: 0 auto 36px;
    padding: 22px 28px;
    background: var(--coral-50);
    border: 1px solid var(--coral-200);
    border-radius: 16px;
    font-size: 18px;
    line-height: 1.75;
    color: var(--coral-900);
    text-align: center;
}

.role-panel--rich .role-lead {
    max-width: none;
    margin: 0 0 48px;
    padding: 26px 32px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-left: 1px solid var(--brand-100);
    text-align: left;
    color: var(--text-primary);
}

/* ---- Rail de cartes (« J'ai besoin d'aide ») ---- */
.role-cards-scroll { padding-top: 8px; padding-bottom: 14px; }

.role-cards-scroll .role-block {
    flex: 0 0 310px;
    display: flex;
    flex-direction: column;
    padding: 26px 26px 24px;
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.role-cards-scroll .role-block:hover,
.role-cards-scroll .role-block:focus-within {
    transform: translateY(-3px);
    border-color: var(--accent-200);
    box-shadow: 0 12px 28px rgba(51, 20, 58, 0.11);
}

.role-block-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.role-block-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-50);
    color: var(--accent-600);
}

.role-block-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.role-block-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-50);
    color: var(--accent-600);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.role-block h3 { font-size: 20px; margin-bottom: 10px; }

/* Le lien ou le bouton reste en bas de carte, quelle que soit la longueur du texte */
.role-cards-scroll .role-block > .role-link,
.role-cards-scroll .role-block > .btn,
.role-cards-scroll .role-block > .tel-chips + .role-link {
    margin-top: auto;
    align-self: flex-start;
}

.role-cards-scroll .role-block > p { margin-bottom: 16px; }
.role-cards-scroll .role-block > .tel-chips { margin-bottom: 16px; }

/* Carte d'urgence : fond corail plein, texte clair */
.role-block--alert {
    background: linear-gradient(160deg, var(--coral-500) 0%, var(--coral-700) 100%);
    border-color: var(--coral-500);
    box-shadow: 0 14px 30px rgba(143, 58, 32, 0.28);
}

.role-block--alert h3,
.role-block--alert p { color: #fff; }
.role-block--alert .role-block-icon { background: rgba(255, 255, 255, 0.22); color: #fff; }
.role-block--alert .role-block-tag { background: #fff; color: var(--coral-700); }
.role-block--alert .role-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.role-block--alert .tel-chip { background: #fff; border-color: #fff; }
.role-block--alert .tel-chip strong { color: var(--coral-700); }
.role-cards-scroll .role-block--alert:hover { border-color: var(--coral-500); box-shadow: 0 18px 36px rgba(143, 58, 32, 0.36); }

/* Boutons et liens des cartes */
.role-link {
    padding: 9px 16px;
    border-radius: 8px;
    background: var(--brand-50);
    color: var(--brand-700);
    transition: background 0.15s, transform 0.15s;
}

.role-link:hover { background: var(--brand-100); }
.role-block--alert .role-link { background: rgba(255, 255, 255, 0.18); padding: 9px 16px; }
.role-block--alert .role-link:hover { background: rgba(255, 255, 255, 0.3); }

/* ---- Titres de groupe (barre de couleur) ---- */
.role-group-head h3 { color: var(--brand-800); }
.role-group-head h3::after { width: 60px; background: var(--coral-500); }
.role-group-head p { color: var(--text-secondary); }

/* ---- Cartes de conseils : texte lisible, numéro en pastille ---- */
.support-card {
    padding: 28px 26px 26px;
    border-radius: 16px;
    overflow: hidden;
}

.support-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-200);
    transition: background 0.2s;
}

.support-card:hover::before { background: var(--accent-600); }

.support-card::after {
    top: 22px;
    right: 22px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-50);
    color: var(--accent-600);
    font-size: 14px;
}

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

.support-body h4 { font-size: 19.5px; }

.support-body p,
.support-body em {
    font-style: normal;
    font-weight: 400;
    color: var(--text-secondary);
}

.support-card:hover { border-color: var(--accent-200); }

/* ---- Encadrés (« Que dire ? Que faire ? », « Vous ressentez… ») ---- */
.doubt {
    border-radius: 18px;
    border-left-width: 1px;
    box-shadow: 0 1px 2px rgba(51, 20, 58, 0.04);
    position: relative;
    overflow: hidden;
}

.doubt::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 6px;
    background: var(--accent-600);
}

.doubt--alert::before { background: var(--coral-500); }

/* ---- Appels à l'action en bas de groupe ---- */
.group-cta { box-shadow: 0 8px 20px rgba(64, 26, 72, 0.22); }

@media (max-width: 600px) {
    .role-lead,
    .role-panel--rich .role-lead { padding: 18px 20px; font-size: 17px; text-align: left; }
    .role-cards-scroll .role-block { flex-basis: 78vw; }
}

@media (prefers-reduced-motion: reduce) {
    .role-cards-scroll .role-block,
    .support-card,
    .support-card::before,
    .role-link { transition: none; }
    .role-cards-scroll .role-block:hover,
    .role-cards-scroll .role-block:focus-within,
    .support-card:hover { transform: none; }
}

/* La carte d'urgence, plus large, porte le texte le plus long : les autres cartes restent compactes */
.role-cards-scroll .role-block--alert { flex-basis: 400px; }

/* ---- Cartes de services : bouton « En savoir plus » en bas de carte ---- */
.services-grid .service-card {
    display: flex;
    flex-direction: column;
}

.service-more {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.service-card p { margin-bottom: 18px; }

.service-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.15s;
}

.service-more:hover { background: var(--brand-500); color: #fff; }
.service-more:hover svg { transform: translateX(3px); }
.service-more:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .service-more, .service-more svg { transition: none; }
    .service-more:hover svg { transform: none; }
}

/* ============================================================
   « VOUS ÊTES... » — les quatre cartes sur une seule ligne, pleine largeur
   (placé en fin de fichier : prime sur les règles précédentes)
   ============================================================ */

.role-section .aide-container {
    max-width: 1360px;
    padding: 0 clamp(16px, 2.5vw, 32px);
}

/* On garde le texte d'introduction à une largeur de lecture confortable */
.role-section .aide-section-head { max-width: 900px; margin-left: auto; margin-right: auto; }

.role-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

/* Tablette : quatre colonnes conservées, cartes plus compactes */
@media (min-width: 761px) and (max-width: 1100px) {
    .role-tabs { gap: 10px; }
    .role-tab { padding: 18px 14px 16px; gap: 12px; }
    .role-tab-icon { width: 40px; height: 40px; border-radius: 11px; }
    .role-tab-icon svg { width: 20px; height: 20px; }
    .role-tab-num { width: 24px; height: 24px; font-size: 13px; }
    .role-tab-title { font-size: 16px; }
    .role-tab-hint { font-size: 14px; }
}

/* Petite tablette : deux par ligne, puis une seule sur très petit écran */
@media (max-width: 760px) {
    .role-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    .role-tabs { grid-template-columns: 1fr; }
}

/* ============================================================
   « J'AI BESOIN D'AIDE » — cartes en grille : 3 par ligne
   Plus de rail horizontal : les six cartes sont visibles d'un coup,
   trois sur la première ligne, trois sur la suivante.
   ============================================================ */

.role-cards-scroll {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px clamp(16px, 2.5vw, 32px) 14px;
    overflow: visible;
    scroll-snap-type: none;
}

.role-cards-scroll .role-block,
.role-cards-scroll .role-block--alert {
    flex: none;
    min-width: 0;
}

/* Les flèches du rail n'ont plus d'utilité */
.role-cards-nav { display: none; }

@media (max-width: 1000px) {
    .role-cards-scroll { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 640px) {
    .role-cards-scroll {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ============================================================
   CONFIDENTIALITÉ ET SÉCURITÉ — en-tête centré + trois cartes de conseils
   (placé en fin de fichier : prime sur les règles précédentes)
   ============================================================ */

.confiance-box {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 44px);
    background:
        radial-gradient(circle at 100% 0, rgba(199, 157, 209, 0.35) 0, transparent 50%),
        var(--brand-50);
    border: 1px solid var(--brand-200);
    border-top: 5px solid var(--brand-500);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.confiance-icon {
    width: 84px;
    height: 84px;
    margin-bottom: 22px;
    background: var(--brand-600);
    color: #ffffff;
    box-shadow: 0 0 0 8px rgba(106, 44, 116, 0.12);
}

.confiance-box h2 {
    font-size: clamp(26px, 3.2vw, 34px);
    line-height: 1.2;
    margin-bottom: 16px;
}

.confiance-box > p {
    font-size: 19px;
    line-height: 1.7;
    max-width: 720px;
}

.securite-cards {
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    text-align: left;
}

.securite-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 24px 28px;
    background: var(--surface);
    border: 1px solid var(--brand-100);
    border-top: 4px solid var(--brand-500);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.securite-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.securite-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--brand-50);
    color: var(--brand-600);
}
.securite-card-icon svg { width: 28px; height: 28px; display: block; }

.confiance-box .securite-card p {
    margin: 0;
    max-width: none;
    font-size: 17px;
    line-height: 1.7;
    text-align: left;
    color: var(--text-secondary);
}

.confiance-box .securite-card strong {
    color: var(--brand-800);
    font-weight: 800;
    padding: 0 3px;
    border-radius: 4px;
    background: linear-gradient(transparent 55%, rgba(199, 157, 209, 0.5) 55%);
}

@media (max-width: 900px) {
    .securite-cards { grid-template-columns: 1fr; gap: 14px; }
    .securite-card { flex-direction: row; align-items: flex-start; padding: 20px; }
    .securite-card-icon { flex: none; width: 48px; height: 48px; }
    .securite-card-icon svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .securite-card, .securite-card:hover { transition: none; transform: none; }
}

/* Conseils pour écouter et soutenir : huit cartes, trois par ligne.
   La septième (la plus longue, avec ses liens) occupe deux colonnes pour fermer la dernière ligne. */
@media (min-width: 900px) {
    .support-grid--fill > .support-card:nth-child(7) {
        grid-column: span 2;
    }
}

/* ============================================================
   « QUE FAIRE ? » — les quatre étapes occupent toute la largeur
   ============================================================ */

.etapes-section .aide-container {
    max-width: 1360px;
    padding: 0 clamp(16px, 2.5vw, 32px);
}

.etapes-section .aide-section-head { max-width: 900px; margin-left: auto; margin-right: auto; }

.etapes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.etape-card { padding: 32px 28px 34px; }
.etape-num { width: 48px; height: 48px; font-size: 22px; margin-bottom: 18px; }
.etape-card h3 { font-size: 20px; margin-bottom: 12px; }
.etape-card p  { font-size: 17px; line-height: 1.7; }

@media (max-width: 1100px) {
    .etapes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .etapes-grid { grid-template-columns: 1fr; gap: 14px; }
    .etape-card { padding: 24px 22px 26px; }
}

/* ============================================================
   ICÔNES SUR LES CARTES (étapes, urgences, signalement, auteur(e)s)
   ============================================================ */

.etape-icon svg,
.urgence-icon svg,
.signal-box-icon svg,
.auteurs-box-icon svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Étapes « Que faire ? » : icône à gauche, numéro à droite */
.etape-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.etape-head .etape-num { margin-bottom: 0; }

.etape-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--brand-50);
    color: var(--brand-600);
    transition: background 0.18s ease, color 0.18s ease;
}
.etape-icon svg { width: 30px; height: 30px; }
.etape-card:hover .etape-icon { background: var(--brand-500); color: #ffffff; }

/* Numéros d'urgence */
.urgence-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--coral-50);
    color: var(--coral-500);
    transition: background 0.18s ease, color 0.18s ease;
}
.urgence-icon svg { width: 28px; height: 28px; }
.urgence-card--primary .urgence-icon { background: #ffffff; }
.urgence-card:hover .urgence-icon { background: var(--coral-500); color: #ffffff; }

/* Signalement */
.signal-box-icon,
.auteurs-box-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
}
.signal-box-icon { background: var(--coral-500); color: #ffffff; }
.signal-box-icon svg,
.auteurs-box-icon svg { width: 36px; height: 36px; }

/* Auteur(e)s de violences */
.auteurs-box-icon {
    margin-bottom: 18px;
    background: var(--brand-50);
    color: var(--brand-600);
}

@media (max-width: 800px) {
    .signal-box-icon { width: 60px; height: 60px; border-radius: 16px; }
    .signal-box-icon svg { width: 30px; height: 30px; }
}
