@import url('https://fonts.googleapis.com/css2?family=Aldrich&family=Montserrat:wght@300;400;500;600;700;800&display=swap');
@font-face {
	font-family: 'Darknet';
	font-style: normal;
	font-weight: 400;
	src: url('https://congolaise-automobile.com/wp-content/uploads/2019/06/Darknet-K7xOX.ttf') format('truetype');
}
@font-face {
	font-family: 'Darknet';
	font-style: italic;
	font-weight: 400;
	src: url('https://congolaise-automobile.com/wp-content/uploads/2019/06/DarknetItalic-rgn8B.ttf') format('truetype');
}
/* ==========================================================
   SECTION POURQUOI NOUS ? - CARROUSEL CIRCULAIRE 4 CARTES
   ========================================================== */

.why-section {
    padding: 40px 0;
    margin: 0;
    border-top: 1px solid var(--line);
    overflow: hidden;
    background: transparent;
}

.why-title {
    text-align: center;
    margin-bottom: 36px;
}

.why-subtitle {
    font-family: 'Darknet', sans-serif, !important;
    color: var(--yellow);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.why-subtitle::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 8px var(--yellow);
    flex-shrink: 0;
}

.why-heading {
    font-size: clamp(28px, 4vw, 48px);
    color: #ffffff;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.15;
    margin: 0;
}

/* ==========================================================
   SCÈNE 3D
   ========================================================== */
.why-scene {
    perspective: 1000px;
    width: 100%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ==========================================================
   PLATEAU TOURNANT
   ========================================================== */
.why-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================
   CARTES - VISIBLES SUR LES CÔTÉS
   ========================================================== */
.why-card {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    margin-left: -90px;
    margin-top: -90px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    box-shadow:
        0 2px 0 rgba(255,255,255,0.05) inset,
        0 4px 6px -2px rgba(0,0,0,0.4),
        0 12px 24px -8px rgba(0,0,0,0.6);
    
    /* IMPORTANT : Garder les cartes visibles */
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease;
}

/* Position des 4 cartes */
.why-card:nth-child(1) { transform: rotateY(0deg) translateZ(280px); }
.why-card:nth-child(2) { transform: rotateY(90deg) translateZ(280px); }
.why-card:nth-child(3) { transform: rotateY(180deg) translateZ(280px); }
.why-card:nth-child(4) { transform: rotateY(270deg) translateZ(280px); }

/* Carte active - mise en avant */
.why-card.active {
    border-color: rgba(244, 230, 0, 0.5);
    box-shadow:
        0 2px 0 rgba(255,255,255,0.06) inset,
        0 8px 16px -4px rgba(0,0,0,0.5),
        0 20px 32px -12px rgba(0,0,0,0.7),
        0 0 0 1px rgba(244, 230, 0, 0.25),
        0 0 40px rgba(244, 230, 0, 0.15);
    z-index: 2;
}

/* Cartes non-actives - légèrement atténuées mais visibles */
.why-card:not(.active) {
    opacity: 0.6;
}

.why-card:not(.active):hover {
    opacity: 0.85;
}

/* ==========================================================
   ICÔNE
   ========================================================== */
.why-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--yellow);
    color: var(--yellow);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.why-card.active .why-icon {
    background: var(--yellow);
    color: #111100;
    box-shadow: 0 0 16px rgba(244, 230, 0, 0.5);
}

.why-card-title {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

.why-card-text {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================
   NAVIGATION - DOTS UNIQUEMENT
   ========================================================== */
.why-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.why-nav-dots {
    display: flex;
    gap: 8px;
}

.why-nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.why-nav-dot.active {
    background: var(--yellow);
    box-shadow: 0 0 10px var(--yellow);
    width: 20px;
    border-radius: 4px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px) {
    .why-scene {
        height: 320px;
        perspective: 900px;
    }

    .why-card {
        width: 150px;
        height: 150px;
        margin-left: -75px;
        margin-top: -75px;
        padding: 16px 12px;
        gap: 8px;
    }

    .why-card:nth-child(1) { transform: rotateY(0deg) translateZ(230px); }
    .why-card:nth-child(2) { transform: rotateY(90deg) translateZ(230px); }
    .why-card:nth-child(3) { transform: rotateY(180deg) translateZ(230px); }
    .why-card:nth-child(4) { transform: rotateY(270deg) translateZ(230px); }

    .why-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .why-card-title {
        font-size: 11px;
    }

    .why-card-text {
        font-size: 9px;
    }
}

@media (max-width: 720px) {
    .why-section {
        padding: 28px 0;
    }

    .why-title {
        margin-bottom: 20px;
    }

    .why-scene {
        height: 280px;
        perspective: 800px;
    }

    .why-card {
        width: 120px;
        height: 120px;
        margin-left: -60px;
        margin-top: -60px;
        padding: 12px 8px;
        gap: 6px;
        border-radius: 12px;
    }

    .why-card:nth-child(1) { transform: rotateY(0deg) translateZ(180px); }
    .why-card:nth-child(2) { transform: rotateY(90deg) translateZ(180px); }
    .why-card:nth-child(3) { transform: rotateY(180deg) translateZ(180px); }
    .why-card:nth-child(4) { transform: rotateY(270deg) translateZ(180px); }

    .why-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-width: 1.2px;
    }

    .why-card-title {
        font-size: 10px;
        letter-spacing: 0.02em;
    }

    .why-card-text {
        font-size: 8px;
        line-height: 1.4;
    }

    .why-nav-dot {
        width: 6px;
        height: 6px;
    }

    .why-nav-dot.active {
        width: 16px;
    }
}

@media (max-width: 480px) {
    .why-section {
        padding: 20px 0;
    }

    .why-scene {
        height: 240px;
        perspective: 700px;
    }

    .why-card {
        width: 100px;
        height: 100px;
        margin-left: -50px;
        margin-top: -50px;
        padding: 10px 6px;
        gap: 4px;
        border-radius: 10px;
    }

    .why-card:nth-child(1) { transform: rotateY(0deg) translateZ(145px); }
    .why-card:nth-child(2) { transform: rotateY(90deg) translateZ(145px); }
    .why-card:nth-child(3) { transform: rotateY(180deg) translateZ(145px); }
    .why-card:nth-child(4) { transform: rotateY(270deg) translateZ(145px); }

    .why-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
        border-width: 1px;
    }

    .why-card-title {
        font-size: 9px;
    }

    .why-card-text {
        display: none;
    }

    .why-nav {
        gap: 0;
        margin-top: 16px;
    }

    .why-nav-dots {
        gap: 6px;
    }

    .why-nav-dot {
        width: 5px;
        height: 5px;
    }

    .why-nav-dot.active {
        width: 14px;
    }
}

@media (max-width: 360px) {
    .why-scene {
        height: 220px;
        perspective: 650px;
    }

    .why-card {
        width: 85px;
        height: 85px;
        margin-left: -42px;
        margin-top: -42px;
        padding: 8px 4px;
        gap: 3px;
        border-radius: 8px;
    }

    .why-card:nth-child(1) { transform: rotateY(0deg) translateZ(120px); }
    .why-card:nth-child(2) { transform: rotateY(90deg) translateZ(120px); }
    .why-card:nth-child(3) { transform: rotateY(180deg) translateZ(120px); }
    .why-card:nth-child(4) { transform: rotateY(270deg) translateZ(120px); }

    .why-icon {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .why-card-title {
        font-size: 8px;
    }
}