/* ═══════════════════════════════════════════════════
   Affiche Carousel Widget — Front-end styles
   ═══════════════════════════════════════════════════ */

.acw-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Le track contient toutes les slides côte à côte */
.acw-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Chaque slide occupe exactement 100% de la largeur du carousel */
.acw-slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.acw-slide img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

/* ── Boutons navigation ─────────────────────────────── */
.acw-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    font-size: 2rem;
    line-height: 1;
    padding: 0.2em 0.5em;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
    transition: background 0.2s;
}

.acw-prev { left: 6px; }
.acw-next { right: 6px; }

.acw-btn:hover,
.acw-btn:focus {
    background: rgba(0, 0, 0, 0.72);
    outline: none;
}

/* ── Points de navigation ───────────────────────────── */
.acw-dots {
    text-align: center;
    padding: 10px 0 4px;
}

.acw-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.acw-dot.active {
    background: #555;
}
