/* Page "Accessoires". Complète realisations.css (filtres, boutons, bandeau final). Palette : #4fa9d3, #0F2454, #F3F7FA. */

/* ---------- Bandeau d'accueil ---------- */
.acc-hero {
    position: relative;
    /* le thème remonte <main> sous l'en-tête : on compense pour démarrer juste dessous */
    margin-top: 100px;
    padding: 90px 0 100px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgb(79 169 211 / 35%) 0%, rgb(79 169 211 / 0%) 45%),
        linear-gradient(120deg, #0F2454 0%, #153a73 60%, #1f5f8f 100%);
    color: #ffffff;
}

.acc-hero-title {
    margin-bottom: 20px;
    font-size: 58px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.acc-hero-title span {
    color: #4fa9d3;
}

.acc-hero p {
    margin-bottom: 32px;
    font-size: 17px;
    line-height: 1.75;
    color: rgb(255 255 255 / 88%);
}

.acc-hero-visual {
    position: relative;
    height: 440px;
}

.acc-hero-img {
    position: absolute;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 22px 54px rgb(0 0 0 / 35%);
}

.acc-hero-img.is-main {
    top: 0;
    right: 0;
    width: 68%;
    height: 82%;
}

.acc-hero-img.is-second {
    bottom: 0;
    left: 0;
    width: 46%;
    height: 56%;
    border: 6px solid #ffffff;
}

/* ---------- Grille de cartes ---------- */
.acc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.acc-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e8eef5;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgb(15 36 84 / 7%);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.acc-card:hover {
    transform: translateY(-6px);
    border-color: #4fa9d3;
    box-shadow: 0 18px 44px rgb(15 36 84 / 14%);
}

.acc-card.is-hidden {
    display: none;
}

.acc-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #F3F7FA;
}

.acc-zoom {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.acc-zoom img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .55s ease, transform .7s ease;
}

.acc-img-situation {
    opacity: 0;
}

/* survol : seulement sur les appareils qui en ont un (pas sur téléphone) */
@media (hover: hover) {
    .acc-card:hover .acc-img-situation {
        opacity: 1;
    }

    .acc-card:hover .acc-zoom img {
        transform: scale(1.05);
    }
}

.acc-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgb(255 255 255 / 94%);
    color: #0F2454;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgb(15 36 84 / 14%);
    pointer-events: none;
}

.acc-situation-btn {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 8px 16px;
    border: none;
    border-radius: 50px;
    background: rgb(15 36 84 / 86%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .3s ease;
}

.acc-situation-btn:hover {
    background: #4fa9d3;
}

.acc-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 26px;
}

.acc-card-body h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #0F2454;
}

.acc-card-body p {
    flex: 1;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.7;
}

.acc-link {
    align-self: flex-start;
    color: #4fa9d3;
    font-weight: 600;
    transition: gap .3s ease, color .3s ease;
}

.acc-link i {
    margin-left: 6px;
    transition: margin-left .3s ease;
}

.acc-link:hover {
    color: #0F2454;
}

.acc-link:hover i {
    margin-left: 12px;
}

/* ---------- Adaptation écrans ---------- */
@media (max-width: 991px) {
    .acc-hero {
        margin-top: 130px;
        padding: 70px 0 70px;
    }

    .acc-hero-title {
        font-size: 44px;
    }

    .acc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .acc-hero-title {
        font-size: 36px;
    }

    .acc-hero p {
        font-size: 16px;
    }

    .acc-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acc-card,
    .acc-zoom img,
    .acc-link i,
    .acc-situation-btn {
        transition: none;
    }

    .acc-card:hover {
        transform: none;
    }
}
