/* ================================================================
   services.css — Section Services proposés
   ================================================================ */

.section-services {
    background: #1a3963;
    margin-top: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Wrap = 100% hauteur section, padding latéral identique au hero */
.services-wrap {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    /* clamp hero + gutter-half (12px) pour compenser margin:-12px du .row */
    padding: 0 calc(clamp(16px, 4vw, 72px) + 12px);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Bloc blanc qui remplit toute la hauteur du wrap */
.services-inner {
    background: #ffffff;
    flex: 1;
    padding-bottom: clamp(32px, 4vw, 56px);
    overflow: visible;
}

/* ----------------------------------------------------------------
   Layout : row grid — col-lg-5 intro / col-lg-7 carousel
   ---------------------------------------------------------------- */

.services-intro {
    padding-right: 24px;
    padding-top: clamp(24px, 3vw, 40px);
}

.services-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #1a3963;
    margin: 0 0 8px 0;
    line-height: 1.15;
}

.services-subtitle {
    font-size: .95rem;
    font-weight: 700;
    color: #c9a87c;
    margin: 0 0 20px 0;
}

.services-desc {
    font-size: .82rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0 0 16px 0;
}

.services-list {
    margin: 0;
    padding: 0 0 0 14px;
    list-style: disc;
    font-size: .82rem;
    font-weight: 700;
    color: #4b5563;
    line-height: 1.45;
}

/* ----------------------------------------------------------------
   Carousel wrapper — flèches toujours présentes, JS gère disabled
   ---------------------------------------------------------------- */
.services-carousel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Ligne prev + track + next */
.services-track-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.services-carousel .services-track-wrap {
    flex: 1 1 0;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.services-carousel .services-track-wrap::-webkit-scrollbar { display: none; }

/* ----------------------------------------------------------------
   Track
   ---------------------------------------------------------------- */
.services-track {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0 24px;
}

.services-item {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 0 10px;
}

/* Cercle = conteneur SVG + label superposé */
.services-circle {
    width: 120px;
    flex-shrink: 0;
    position: relative;
}

.services-circle svg {
    display: block;
    width: 100%;
    height: auto;
    fill: #1a3963;
    transition: fill .25s ease;
}

.services-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84%;
    font-size: .67rem;
    font-weight: 700;
    color: #1a3963;
    text-align: center;
    line-height: 1.35;
    transition: color .25s ease;
    pointer-events: none;
}

/* Zone texte du service sélectionné */
.services-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #c9a87c;
    min-height: 64px;
    overflow: hidden;
    margin-right: -12px; /* compense le padding-right du col-lg-7 */
    margin-bottom: -24px; /* dépasse en bas de la section */
    padding-bottom: 24px; /* compense visuellement */
    border-radius: 14px 0 0 14px;
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .services-detail { border-radius: 0; }
}

.sd-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.sd-body {
    flex: 1;
    min-width: 0;
    padding: 12px 16px 12px 0;
}

.sd-title {
    display: block;
    font-size: .88rem;
    font-weight: 800;
    color: #1a3963;
    margin-bottom: 4px;
}

.sd-text {
    margin: 0;
    font-size: .80rem;
    font-weight: 600;
    color: #1a3963;
    line-height: 1.55;
}

/* État sélectionné → miel */
.services-item.selected .services-circle svg { fill: #c9a87c; }
.services-item.selected .services-label       { color: #c9a87c; }

/* ----------------------------------------------------------------
   Boutons prev/next — visibles partout, masqués si inutiles
   ---------------------------------------------------------------- */
.services-prev,
.services-next {
    display: inline-flex;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 2px solid #1a3963;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.services-prev svg,
.services-next svg {
    width: 20px;
    height: 20px;
    fill: #1a3963;
    display: block;
}
.services-prev:hover,
.services-next:hover { background: #1a3963; }
.services-prev:hover svg,
.services-next:hover svg { fill: #fff; }
.services-prev:disabled,
.services-next:disabled { opacity: .15; cursor: default; }

/* ----------------------------------------------------------------
   Responsive < 992px
   ---------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Retire le padding-bottom du bloc blanc, on le met sur l'intro */
    .services-inner {
        padding-bottom: 0;
        align-items: stretch; /* override align-top pour que les cols s'étirent */
    }

    .services-intro {
        padding-right: 0;
        padding-bottom: clamp(24px, 3vw, 40px);
    }

    /* Carousel en colonne, prend toute la hauteur restante */
    .services-carousel {
        display: flex;
        flex-direction: column;
    }

    /* Zone miel remplit l'espace restant du carousel */
    .services-detail {
        flex: 1;
    }

    /* Cercles plus petits */
    .services-item   { flex: 0 0 100px; }
    .services-circle { width: 84px; }
    .services-label  { font-size: .58rem; }

    /* Détail pleine largeur — annule les paddings du col-12 */
    .services-detail {
        margin-left:  -12px;
        margin-right: -12px;
        border-radius: 0 0 14px 14px;
    }
}
