/* ===============================================
   FILIÈRES SPÉCIALISÉES 24/7
   SOS Cardiologie & SOS AVC Ischémique
   =============================================== */

.filiere-page {
    --filiere-accent: #c41e3a;
    --filiere-accent-dark: #8b1428;
    --filiere-navy: #0b1f3a;
}

.filiere-page.avc {
    --filiere-accent: #0d7377;
    --filiere-accent-dark: #095456;
}

/* --- Hero photo --- */
.filiere-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background-color: var(--filiere-navy);
}

.filiere-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.filiere-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.filiere-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(8, 18, 36, 0.92) 0%, rgba(8, 18, 36, 0.72) 48%, rgba(8, 18, 36, 0.38) 100%);
    z-index: 1;
}

.filiere-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8rem 2rem 5rem;
}

.filiere-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(196, 30, 58, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.4rem;
}

.avc .filiere-badge {
    background: rgba(13, 115, 119, 0.28);
}

.filiere-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d6d;
    box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.7);
    animation: pulse-dot 1.6s infinite;
}

.avc .filiere-badge-dot {
    background: #5eead4;
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7);
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.65); }
    70% { box-shadow: 0 0 0 10px rgba(255, 77, 109, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); }
}

.filiere-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    max-width: 18ch;
    margin-bottom: 0.85rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.filiere-hero .hero-lead {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.25rem;
    font-weight: 600;
    max-width: 42rem;
    margin-bottom: 1rem;
}

.filiere-hero .hero-text {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 40rem;
    margin-bottom: 2rem;
}

.filiere-hero .hero-cta-buttons {
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.filiere-hero .cta-button.primary {
    background: var(--filiere-accent);
    color: #fff;
}

.filiere-hero .cta-button.primary:hover {
    background: var(--filiere-accent-dark);
    color: #fff;
}

.filiere-hero .hero-features {
    justify-content: flex-start;
}

/* --- Breadcrumb --- */
.filiere-breadcrumb {
    background: #f4f6f9;
    padding: 0.85rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.filiere-breadcrumb .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

.filiere-breadcrumb a {
    color: #0056b3;
    font-weight: 600;
}

.filiere-breadcrumb span {
    margin: 0 0.45rem;
    color: #adb5bd;
}

/* --- Intro / parcours --- */
.filiere-section {
    padding: 5rem 0;
}

.filiere-section .container,
.filiere-split .container,
.contact-urgence-section .container,
.related-filiere .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

.filiere-kicker {
    display: inline-block;
    color: var(--filiere-accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 0.7rem;
}

.parcours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.parcours-card {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 18px;
    padding: 2rem 1.6rem;
    box-shadow: 0 10px 30px rgba(11, 31, 58, 0.06);
    position: relative;
}

.parcours-num {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--filiere-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 1.1rem;
}

.parcours-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.parcours-card p {
    color: #5c6770;
    line-height: 1.7;
}

/* --- Split image/text --- */
.filiere-split {
    padding: 4.5rem 0;
}

.filiere-split.alt {
    background: #f7f9fc;
}

.filiere-split-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}

.filiere-split.alt .filiere-split-grid {
    grid-template-columns: 0.95fr 1.05fr;
}

.filiere-split-media {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(11, 31, 58, 0.16);
    min-height: 360px;
}

.filiere-split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 360px;
}

.filiere-split-copy h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.25rem);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.filiere-split-copy > p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.filiere-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.filiere-list li {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 0.85rem;
    color: #334155;
    line-height: 1.65;
}

.filiere-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--filiere-accent);
    margin-top: 0.45rem;
}

.filiere-list strong {
    color: var(--heading-color);
}

/* --- Service cards with photo --- */
.services-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-photo-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(11, 31, 58, 0.08);
    border: 1px solid #eef1f5;
}

.service-photo-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.service-photo-card .card-body {
    padding: 1.5rem 1.4rem 1.7rem;
}

.service-photo-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.service-photo-card p,
.service-photo-card li {
    color: #5c6770;
    font-size: 0.96rem;
    line-height: 1.65;
}

.service-photo-card ul {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-photo-card li::before {
    content: "▸ ";
    color: var(--filiere-accent);
    font-weight: 700;
}

/* --- FAST / VITE --- */
.fast-section {
    background: linear-gradient(180deg, #071526 0%, #0d2a3f 100%);
    color: #fff;
    padding: 5rem 0;
}

.fast-section .section-title,
.fast-section .section-subtitle {
    color: #fff;
}

.fast-section .section-subtitle {
    opacity: 0.82;
}

.fast-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.fast-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1.6rem 1.3rem;
    backdrop-filter: blur(8px);
}

.fast-letter {
    font-size: 2.4rem;
    font-weight: 800;
    color: #5eead4;
    line-height: 1;
    margin-bottom: 0.7rem;
}

.fast-card h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
}

.fast-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.6;
}

.fast-alert {
    margin-top: 2.2rem;
    background: #c41e3a;
    color: #fff;
    border-radius: 16px;
    padding: 1.3rem 1.5rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
}

/* --- Timeline délais --- */
.delais-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.2rem;
}

.delai-card {
    border-radius: 20px;
    padding: 2rem;
    color: #fff;
}

.delai-card.thrombolyse {
    background: linear-gradient(160deg, #0d7377, #0b4f52);
}

.delai-card.thrombectomie {
    background: linear-gradient(160deg, #0b1f3a, #163a63);
}

.delai-card .delai-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: 700;
}

.delai-card h3 {
    color: #fff;
    font-size: 1.45rem;
    margin: 0.45rem 0 0.8rem;
}

.delai-window {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.delai-card p {
    opacity: 0.9;
    line-height: 1.7;
}

/* --- Why choose --- */
.why-filiere {
    background: #f7f9fc;
}

.why-filiere .benefit-card {
    border-top-color: var(--filiere-accent);
}

/* --- Contact urgence --- */
.contact-urgence-section {
    padding: 5rem 0;
    background: #fff;
}

.contact-urgence-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-box {
    background: var(--filiere-navy);
    color: #fff;
    border-radius: 22px;
    padding: 2.2rem;
}

.contact-box h3,
.contact-box p {
    color: #fff;
}

.contact-box p {
    opacity: 0.85;
    margin: 0.35rem 0 1.2rem;
}

.contact-line {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-line strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.contact-line a {
    color: #fff;
    font-weight: 700;
}

.contact-line span,
.contact-line small {
    opacity: 0.75;
}

.assurance-box {
    background: #f4f7fb;
    border-radius: 22px;
    padding: 2.2rem;
    border: 1px solid #e6edf5;
}

.assurance-box h3 {
    margin-bottom: 0.8rem;
}

.assurance-box p,
.assurance-box li {
    color: #4b5563;
    line-height: 1.7;
}

.assurance-box ul {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.assurance-box li::before {
    content: "✓ ";
    color: var(--filiere-accent);
    font-weight: 800;
}

/* --- Related --- */
.related-filiere {
    padding: 3.5rem 0 5rem;
    background: #f7f9fc;
}

.related-card {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.07);
    text-decoration: none;
    color: inherit;
}

.related-card img {
    width: 220px;
    height: 150px;
    object-fit: cover;
}

.related-card h3 {
    margin-bottom: 0.35rem;
}

.related-card p {
    color: #5c6770;
}

.related-card .related-cta {
    padding-right: 1.8rem;
    font-weight: 700;
    color: var(--filiere-accent);
    white-space: nowrap;
}

@media (max-width: 980px) {
    .filiere-page main {
        padding-top: 0;
    }

    .parcours-grid,
    .services-photo-grid,
    .fast-grid,
    .delais-grid,
    .filiere-split-grid,
    .filiere-split.alt .filiere-split-grid,
    .contact-urgence-grid,
    .related-card {
        grid-template-columns: 1fr;
    }

    .filiere-hero {
        min-height: auto;
    }

    .filiere-hero-content {
        padding: 6.5rem 1.2rem 3.5rem;
    }

    .filiere-hero h1 {
        max-width: none;
    }

    .filiere-hero .hero-cta-buttons,
    .filiere-hero .hero-features {
        justify-content: center;
    }

    .filiere-hero .hero-text,
    .filiere-hero .hero-lead {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .filiere-hero h1,
    .filiere-badge {
        text-align: center;
        display: flex;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .filiere-hero h1 {
        display: block;
    }

    .related-card img {
        width: 100%;
        height: 200px;
    }

    .related-card .related-cta {
        padding: 0 1.4rem 1.4rem;
    }

    .related-card h3,
    .related-card p {
        padding: 0 1.4rem;
    }

    .filiere-split-media,
    .filiere-split-media img {
        min-height: 260px;
    }
}

/* --- Protocole AVC --- */
.protocole-section .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

.protocole-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2.2rem;
}

.protocole-step {
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 16px;
    padding: 1.4rem 1.15rem;
    box-shadow: 0 8px 22px rgba(11, 31, 58, 0.05);
}

.protocole-step .step-n {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--filiere-accent);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.protocole-step h3 {
    font-size: 1.02rem;
    margin-bottom: 0.45rem;
}

.protocole-step p {
    color: #5c6770;
    font-size: 0.92rem;
    line-height: 1.6;
}

.protocole-step a {
    font-weight: 700;
}

/* --- Zones Casablanca --- */
.zones-avc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.zones-avc-grid a,
.zones-avc-grid span {
    display: block;
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: var(--heading-color);
}

.zones-avc-grid a:hover {
    border-color: var(--filiere-accent);
    color: var(--filiere-accent);
}

.medical-note {
    margin-top: 2rem;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
    background: #f8fafc;
    border-left: 4px solid var(--filiere-accent);
    padding: 1rem 1.2rem;
    border-radius: 0 12px 12px 0;
}

.identity-box {
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 18px;
    padding: 1.8rem;
    margin-top: 1.5rem;
    line-height: 1.75;
    color: #4b5563;
}

.identity-box strong {
    color: var(--heading-color);
}

.filiere-page .faq-item.active .faq-answer {
    max-height: 900px;
}

.hero-cta-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.8rem;
}

.cta-button.emergency-call {
    background: #c41e3a;
    color: #fff;
    font-size: 1.2rem;
    padding: 1.15rem 1.8rem;
    letter-spacing: 0.02em;
}

.cta-button.emergency-call:hover {
    background: #8b1428;
    color: #fff;
}

.cta-button.emergency-call small {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 0.15rem;
}

/* Barre d'urgence fixe — téléphone dominant */
.avc-urgent-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: flex;
    gap: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.avc-urgent-bar .avc-urgent-call {
    flex: 1.7;
    background: #c41e3a;
    color: #fff;
    text-align: center;
    padding: 0.85rem 0.6rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.avc-urgent-bar .avc-urgent-call span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.avc-urgent-bar .avc-urgent-call strong {
    font-size: 1.15rem;
}

.avc-urgent-bar .avc-urgent-wa {
    flex: 1;
    background: #128C7E;
    color: #fff;
    text-align: center;
    padding: 0.85rem 0.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
}

.filiere-page {
    padding-bottom: 72px;
}

.filiere-page .floating-contact-buttons {
    display: none;
}

@media (min-width: 981px) {
    .filiere-page .floating-contact-buttons {
        display: flex;
        bottom: 90px;
    }

    .avc-urgent-bar .avc-urgent-call {
        padding: 1rem;
    }
}

@media (max-width: 980px) {
    .protocole-grid,
    .zones-avc-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta-stack {
        align-items: stretch;
        width: 100%;
    }

    .cta-button.emergency-call {
        text-align: center;
    }
}
