/* Page Équipements */

.equip-header {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background: url('../images/piscine/piscine 4.avif') center/cover no-repeat;
    background-attachment: fixed;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.equip-header .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.equip-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.equip-header p {
    font-size: 1.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.equipments {
    background: #fff;
    padding: 3rem 0 2rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 700px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.equip-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 1.5rem;
    border: 1px solid #eef0f2;
    text-align: center;
}

.equip-card h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    color: #4c51bf;
    text-align: center;
}

.equip-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.equip-card li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e6e9ec;
    color: #2b2f36;
    text-align: center;
}

.equip-card li:last-child {
    border-bottom: none;
}

.infos {
    padding: 3rem 0;
    background: #f8f9fa;
}

.info-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.info-box h3 {
    color: #5a67d8;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    color: #666;
}

.info-box li:last-child {
    border-bottom: none;
}

.info-box li::before {
    content: '✓ ';
    color: #5a67d8;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Containers (cohérent avec le reste du site) */
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* Galeries d'images pour les équipements */
/* Carrousel */
.equip-carousel {
    position: relative;
    margin-top: 1rem;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 0;
    width: 100%;
    flex-wrap: nowrap;
}

.equip-carousel .equip-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-width: 100%;
    flex: 0 0 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.equip-carousel .equip-photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: 2px solid #5a67d8;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #5a67d8;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #5a67d8;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

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

/* Toujours 1 slide à la fois */
@media (min-width: 700px) {
    .equip-carousel .equip-photo { min-width: 100%; }
}

@media (min-width: 1024px) {
    .equip-carousel .equip-photo { min-width: 100%; }
}
/* Transition de slide fluide */
.carousel-track { transition: transform 350ms ease; }

/* Responsive Design pour le header */
@media (max-width: 768px) {
    .equip-header {
        height: 100vh;
        min-height: 100vh;
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }

    .equip-header .container {
        padding: 1.5rem;
        width: 95%;
    }

    .equip-header h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .equip-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .equip-header {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .equip-header .container {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .equip-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }

    .equip-header p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .info-box {
        padding: 1.5rem;
    }

    .info-box h3 {
        font-size: 1.5rem;
    }
}

/* Responsive Design pour infos */
@media (max-width: 968px) {
    .equipments {
        padding: 2.5rem 0 1.5rem;
    }

    .grid {
        gap: 1.25rem;
    }

    .equip-card {
        padding: 1.25rem;
    }

    .info-box {
        padding: 2rem;
    }

    .equip-carousel {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .equip-header {
        height: 100vh;
        min-height: 100vh;
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }

    .equip-header .container {
        padding: 1.5rem;
        width: 95%;
    }

    .equip-header h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .equip-header p {
        font-size: 1.1rem;
    }

    .equipments {
        padding: 2rem 0 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .equip-card {
        padding: 1.5rem;
    }

    .equip-card h2 {
        font-size: 1.2rem;
    }

    .infos {
        padding: 2rem 0;
    }

    .info-box {
        padding: 1.75rem;
        margin: 0 1rem;
    }

    .info-box h3 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    .info-box li {
        font-size: 1rem;
        padding: 0.7rem 0;
    }

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

@media (max-width: 480px) {
    .equip-header {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .equip-header .container {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .equip-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }

    .equip-header p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .equipments {
        padding: 1.5rem 0 1rem;
    }

    .grid {
        gap: 1.25rem;
    }

    .equip-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .equip-card h2 {
        font-size: 1.15rem;
        margin-bottom: 0.65rem;
    }

    .equip-card li {
        font-size: 0.95rem;
        padding: 0.45rem 0;
    }

    .infos {
        padding: 1.5rem 0;
    }

    .info-box {
        padding: 1.5rem;
        margin: 0 0.75rem;
        border-radius: 12px;
    }

    .info-box h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .info-box li {
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }

    .equip-carousel {
        margin-top: 0.75rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

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

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

@media (max-width: 360px) {
    .equip-header h1 {
        font-size: 1.5rem;
    }

    .equip-header p {
        font-size: 0.85rem;
    }

    .equip-card {
        padding: 1rem;
    }

    .equip-card h2 {
        font-size: 1.1rem;
    }

    .equip-card li {
        font-size: 0.9rem;
    }

    .info-box {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }

    .info-box h3 {
        font-size: 1.3rem;
    }

    .info-box li {
        font-size: 0.9rem;
    }
}

/* Mode paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .equip-header {
        height: auto;
        min-height: auto;
        padding: 3rem 0;
    }

    .equip-header h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .equip-header p {
        font-size: 1rem;
    }
}

