/* ===================== Ambulatoire page ===================== */

/* ---- Intro ---- */
.ambu-intro {
    padding: 80px 0 60px;
}

.ambu-intro__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 29px;
    color: #3B4148;
    max-width: 860px;
}

/* ---- Left-bar section titles (shared) ---- */
.ambu-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 38px;
    color: #163D68;
    position: relative;
    display: block;
    padding-left: 22px;
    margin-bottom: 20px;
}

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

/* ---- Content blocks ---- */
.ambu-block {
    padding: 90px 0 0;
}

.ambu-block__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 29px;
    color: #000;
    margin-bottom: 10px;
}

/* ---- Missions grid ---- */
.ambu-missions {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ambu-mission-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 27px 22px;
    min-height: 138px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 13px;
}

.ambu-mission-icon {
    flex-shrink: 0;
    padding-top: 4px;
}

.ambu-mission-icon img {
    width: auto;
    height: 32px;
    object-fit: contain;
}

.ambu-mission-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 23px;
    color: #374151;
    font-weight: 400;
    margin: 0;
}

/* ---- Spécialités prises en charge ---- */
.ambu-spec-section {
    padding: 80px 0 120px;
    text-align: center;
}

.ambu-spec-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: 12px;
}

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

.ambu-spec-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #3B4148;
    margin-bottom: 48px;
    text-align: center;
}

/* ---- Accordion cards ---- */
.ambu-acc-item {
    border: 1.17px solid #E8EDF5;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ambu-acc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    background: #fff;
    min-height: 72px;
    transition: background 0.2s;
    user-select: none;
}

.ambu-acc-bar {
    flex-shrink: 0;
    width: 2px;
    height: 28px;
    background: #D0D608;
    border-radius: 10px;
    transition: background 0.2s;
}

.ambu-acc-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: #163D68;
    flex: 1;
    text-align: left;
    transition: color 0.2s;
}

.ambu-acc-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: #163D68;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: none;
    transition: background 0.2s;
}

.ambu-acc-caret {
    width: 14px;
    height: 14px;
    object-fit: contain;
    transition: transform 0.25s;
    display: block;
    filter: brightness(0) invert(1);
}

/* Open state */
.ambu-acc-item--open .ambu-acc-header {
    background: #163D68;
}

.ambu-acc-item--open .ambu-acc-name {
    color: #fff;
}

.ambu-acc-item--open .ambu-acc-bar {
    background: #fff;
}

.ambu-acc-item--open .ambu-acc-btn {
    background: #fff;
}

.ambu-acc-item--open .ambu-acc-caret {
    filter: none;
    transform: rotate(180deg);
}

.ambu-acc-body {
    display: none;
    padding: 16px 20px 20px 42px;
    text-align: left;
}

.ambu-acc-item--open .ambu-acc-body {
    display: block;
}

.ambu-acc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ambu-acc-list li {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 29px;
    color: #000;
    padding-left: 18px;
    position: relative;
}

.ambu-acc-list li::before {
    content: '·';
    position: absolute;
    left: 4px;
    font-size: 20px;
    line-height: 29px;
    color: #D0D608;
    font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .ambu-intro {
        padding: 56px 0 40px;
    }
    .ambu-missions {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ambu-block {
        padding: 56px 0 0;
    }
    .ambu-spec-section {
        padding: 56px 0 80px;
    }
}
