/* CSS commun pour les sections carousel (Services et Réalisations) */

/* Section Container */
.carousel-section {
    padding: 80px 20px;
}

.carousel-section.bg-white {
    background-color: #ffffff;
}

.carousel-section.bg-gray {
    background-color: #f6f5f4;
}

/* Header */
.carousel-header {
    text-align: center;
    margin-bottom: 60px;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    display: inline-block;
}

.carousel-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #c8ae7e, #a08860);
    border-radius: 2px;
}

/* Carousel Wrapper */
.carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.carousel-slider {
    overflow: hidden;
    padding: 0 20px;
}

.carousel-container {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

/* Cards */
.carousel-card {
    flex: 0 0 calc(33.333% - 20px);
    background: white;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.carousel-link {
    text-decoration: none !important;
    display: block;
    color: inherit;
}

.carousel-link:hover {
    text-decoration: none !important;
}

.carousel-link * {
    text-decoration: none !important;
}

.carousel-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-card:hover .carousel-image img {
    transform: scale(1.05);
}

.carousel-content {
    padding: 24px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Si fond de section blanc → contenu blanc */
.carousel-section.bg-white .carousel-content {
    background-color: #ffffff !important;
}

/* Si fond de section gris → contenu gris */
.carousel-section.bg-gray .carousel-content {
    background-color: rgb(246, 245, 244) !important;
}

.carousel-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

/* Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #c8ae7e;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    font-size: 0;
    position: relative;
}

.carousel-btn::before {
    content: '';
    width: 10px;
    height: 10px;
    border-left: 3px solid #c8ae7e;
    border-bottom: 3px solid #c8ae7e;
    position: absolute;
    top: 50%;
    left: 50%;
}

/* Prev button - chevron pointing left */
.carousel-btn[id$="-prev"]::before,
.carousel-btn[id$="Prev"]::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Next button - chevron pointing right */
.carousel-btn[id$="-next"]::before,
.carousel-btn[id$="Next"]::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.carousel-btn:hover {
    background: #c8ae7e;
    transform: scale(1.1);
}

.carousel-btn:hover::before {
    border-color: white;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    background: white;
    transform: scale(1);
}

.carousel-btn:disabled:hover::before {
    border-color: #c8ae7e;
}

.carousel-indicator {
    display: flex;
    gap: 10px;
}

.carousel-indicator .indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator .indicator-dot.active {
    background: #c8ae7e;
    transform: scale(1.3);
}

.carousel-indicator .indicator-dot:hover {
    background: #a08860;
}

/* Responsive */
@media (max-width: 992px) {
    .carousel-card {
        flex: 0 0 calc(50% - 15px);
    }

    .carousel-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .carousel-section {
        padding: 60px 20px;
    }

    .carousel-card {
        flex: 0 0 100%;
    }

    .carousel-title {
        font-size: 1.75rem;
    }

    .carousel-nav {
        gap: 20px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-image {
        height: 200px;
    }

    .carousel-content {
        padding: 20px;
    }

    .carousel-name {
        font-size: 1.1rem;
    }
}
