/* ===================== Spécialités page ===================== */

/* ---- Intro header ---- */
.spec-intro {
    padding: 120px 0 120px;
    text-align: center;
}

.spec-intro__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: var(--color-Green-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.spec-intro__title::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 0;
    width: 6px;
    height: 100%;
    background: var(--color-Green-foor);
    border-radius: 4px;
}

.spec-intro__desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #3B4148;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.7;
}

.spec-intro__desc strong {
    font-weight: 700;
    color: var(--color-Green-dark);
}

/* ---- Tabs strip (inside container, no background) ---- */

.spec-tabs-wrap {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-tabs-scroll {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.spec-tabs-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.spec-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.spec-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #F4F5F7;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #163D68;
    padding: 10px 20px;
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
    height: 59px;
    transition: background .2s, color .2s;
}

.spec-tab:hover {
    background: #e8eaf0;
}

.spec-tab.spec-tab--active {
    background: #163D68;
    color: #fff;
    font-weight: 600;
    border-color: #163D68;
}

/* ---- Nav arrows ---- */
.spec-nav {
    flex-shrink: 0;
    background: #163D68;
    border: none;
    border-radius: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.spec-nav:hover { background: #1e4d82; }
.spec-nav svg { width: 12px; height: 12px; }

/* ---- Content panels ---- */
.spec-content-section {
    padding: 48px 0 150px;
}

.spec-panel {
    display: none;
}

.spec-panel.spec-panel--active {
    display: block;
}

/* ---- Panel top row: image + text ---- */
.spec-top-row {
    align-items: stretch;
}

.spec-img-box {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #F4F5F7;
    border-radius: 16px;
    overflow: hidden;
}

.spec-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spec-text-col {
    padding-left: 48px;
    display: flex;
    flex-direction: column;
}

.spec-panel__desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 29px;
    color: #000000;
    text-align: justify;
    margin-bottom: 0;
}

/* ---- Prise de RDV card ---- */
.spec-rdv-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #F4F5F7;
    border: 1px solid #E2E4E8;
    border-radius: 16px;
    padding: 26px 28px;
    margin-top: 10px;
    flex-shrink: 0;
    padding-top: 28px;
}
.spec-rdv-card-chronographe  {
     display: flex;
     align-items: center;
     gap: 12px;
     background: #ededed;
     border-radius: 7px;
     padding: 14px 18px;
     margin-top: 23px;
     margin-bottom: 23px;
     flex-shrink: 0;
 }
.spec-rdv-card-chronographe .spec-rdv-text {
    color: #1f2937;
    font-size: 13px;
}

.spec-rdv-icon {
    width: 76px;
    height: 76px;
    object-fit: contain;
    flex-shrink: 0;
}
.spec-rdv-icon-chronographe {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    /* Tint the SVG to medium gray #6b7280 */
    filter: brightness(0) saturate(100%) invert(46%) sepia(9%) saturate(648%) hue-rotate(182deg) brightness(94%) contrast(85%);
}

.spec-rdv-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #163D68;
    margin-bottom: 4px;
}

.spec-rdv-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 23px;
    color: #163D68;
    margin-bottom: 0;
}

/* ---- Directeur section ---- */
.spec-directeur {
    margin-top: 72px;
    padding-top: 64px;
}

.spec-dir-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 42px;
    color: #163D68;
    position: relative;
    display: inline-block;
    padding-left: 22px;
    margin-bottom: 14px;
}

.spec-dir-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(50% - 15.5px);
    width: 6px;
    height: 31px;
    background: #D0D608;
    border-radius: 10px;
}

.spec-directeur__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 29px;
    color: #000000;
    margin-bottom: 0;
}

/* ---- Sub-group label inside taken/directeur ---- */
.spec-taken-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #163D68;
    text-align: left;
    margin-top: 36px;
    margin-bottom: 4px;
}

/* ---- Spécialités prises en charge ---- */
.spec-taken {
    margin-top: 200px;
    text-align: center;
}

.spec-taken-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #163D68;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-left: 22px;
    margin-bottom: 32px;
}

.spec-taken-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(50% - 15.5px);
    width: 6px;
    height: 31px;
    background: #D0D608;
    border-radius: 10px;
}

.spec-sub-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 1.17px solid #E8EDF5;
    border-radius: 19px;
    padding: 24px 20px;
    min-height: 115px;
    height: 100%;
}

.spec-sub-bar {
    flex-shrink: 0;
    width: 2px;
    min-height: 34px;
    background: #D0D608;
    border-radius: 10px;
    align-self: center;
}

.spec-sub-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.82px;
    color: #163D68;
    text-align: left;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .spec-intro {
        padding: 56px 0 40px;
    }
    .spec-intro__title {
        font-size: 30px;
    }
    .spec-intro__desc {
        font-size: 16px;
    }
    .spec-text-col {
        padding-left: 0;
        padding-top: 28px;
    }
    .spec-tabs-wrap {
        padding: 16px 0;
    }
    .spec-directeur {
        margin-top: 40px;
        padding-top: 40px;
    }
    .spec-taken {
        margin-top: 48px;
    }
}
