/* ===================== CAROUSEL (FULL WIDTH 5%-90%-5%) ===================== */
.carousel-section {
    width: 100%;
    padding: 4rem 5%;
    box-sizing: border-box;
    margin: 0 auto;
}

.carousel-section h2 {
    text-align: center;
    margin-bottom: 4.5rem;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    margin: 0;
}

.carousel-item {
    flex: 0 0 340px;   /* largeur fixe conservée */
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 22px;
    padding: 2rem;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.15rem;
    text-align: center;
    line-height: 1.4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.18);
}

.card {
    flex: 0 0 340px;   /* largeur fixe conservée */
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 22px;
    padding: 2rem;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.15rem;
    text-align: center;
    line-height: 1.4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.18);
}

/* ===================== FLÈCHES ===================== */
.carousel-btn {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

/* Flèches centrées verticalement par rapport aux blocs */
.carousel-btn.prev,
.carousel-btn.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-btn.prev {
    left: -60px;
}

.carousel-btn.next {
    right: -60px;
}

.carousel-btn:hover {
    background: #f5f5f5;
}

/* On cache les flèches désactivées */
.carousel-btn.disabled {
    display: none;
}