/*
 * home.css
 * Homepage : hero slider plein écran, about, galerie, CTA
 */

/* ==========================================================================
   HERO — Plein écran, fond dynamique par activité
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--ocean-deep);
}

/* Fonds (un par activité, empilés, transition fondu) */

.hero__backgrounds {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 800ms ease;
}

.hero__bg.active {
    opacity: 1;
}

/* Overlay gradient : sombre en bas pour le texte */

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(6, 9, 66, 0.85) 0%,
        rgba(6, 9, 66, 0.4) 40%,
        rgba(6, 9, 66, 0.15) 100%
    );
}

/* Contenu positionné en bas */

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: var(--space-10);
    padding-top: calc(var(--space-12) * 2);
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */

.hero-slider {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.hero-slider__item {
    display: none;
}

.hero-slider__item.active {
    display: block;
}

/* Glass panel */

.hero-slider__panel {
    max-width: 560px;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
}

.hero-slider__category {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--ocean-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-4);
}

.hero-slider__title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.hero-slider__item.active .hero-slider__title {
    animation: heroFadeIn 0.6s 0.15s ease both;
}

.hero-slider__description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.hero-slider__item.active .hero-slider__description {
    animation: heroFadeIn 0.6s 0.3s ease both;
}

.hero-slider__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-5);
}

.hero-slider__meta span + span::before {
    content: "·";
    margin-right: var(--space-4);
}

.hero-slider__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-slider__price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.hero-slider__price--request {
    font-weight: 500;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* --- Contrôles prev/next --- */

.hero-slider__controls {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    margin-top: var(--space-5);
}

.hero-slider__btn {
    width: 55px;
    height: 55px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--white);
}

.hero-slider__btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.hero-slider__btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: none;
}

.hero-slider__btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Flèches CSS pures */

.hero-slider__arrow {
    position: relative;
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
}

.hero-slider__arrow::before {
    content: "";
    position: absolute;
    top: -4px;
    width: 9px;
    height: 9px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
}

.hero-slider__arrow--left::before {
    left: 1px;
    transform: rotate(-135deg);
}

.hero-slider__arrow--right::before {
    right: 1px;
    transform: rotate(45deg);
}

.hero-slider__btn:hover .hero-slider__arrow {
    transform: scaleX(1.3);
}

/* --- Indicateurs (dots) --- */

.hero-slider__indicators {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-slider__dot.active {
    width: 28px;
    background: var(--white);
}

.hero-slider__dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about {
    padding: var(--space-12) 0;
    background: var(--white);
}

.about__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.about__image {
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.about__title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--ocean-deep);
    margin-bottom: var(--space-4);
}

.about__text > p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

.about__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.about__feature {
    text-align: center;
    padding: var(--space-4) var(--space-2);
}

.about__feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-3);
    background: var(--ocean-mist);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__feature h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.about__feature p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   GALERIE PHOTO — Layout de section uniquement
   La grille et les items sont définis dans lightbox.css
   ========================================================================== */

.gallery {
    padding: var(--space-12) 0;
    background: var(--gray-50);
}

.gallery .activity-gallery__grid {
    margin-top: var(--space-8);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
    padding: var(--space-12) 0;
    background: linear-gradient(
        135deg,
        var(--ocean-deep) 0%,
        var(--ocean-primary) 100%
    );
}

.cta__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta__title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--space-4);
}

.cta__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    line-height: 1.75;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider__item.active .hero-slider__panel {
    animation: wipePanelIn 0.7s cubic-bezier(0.23, 1, 0.75, 1) both;
}

@keyframes wipePanelIn {
    from {
        clip-path: inset(0 100% 0 0 round var(--radius-xl));
    }
    to {
        clip-path: inset(0 0% 0 0 round var(--radius-xl));
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .about__layout {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .about__image img {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
    }

    .hero__content {
        padding-bottom: var(--space-6);
    }

    .hero-slider__panel {
        max-width: 100%;
        padding: var(--space-4);
    }

    .hero-slider__title {
        font-size: 1.75rem;
    }

    .hero-slider__description {
        font-size: 0.9375rem;
        margin-bottom: var(--space-3);
    }

    .hero-slider__meta {
        font-size: 0.8125rem;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }

    .hero-slider__footer {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }

    .hero-slider__footer .btn {
        text-align: center;
    }

    .hero-slider__controls {
        justify-content: flex-start;
    }

    .hero-slider__btn {
        width: 44px;
        height: 44px;
    }

    .hero-slider__indicators {
        margin-top: var(--space-4);
    }

    /* About */
    .about {
        padding: var(--space-8) 0;
    }

    .about__title {
        font-size: 1.75rem;
    }

    .about__image img {
        min-height: 220px;
    }

    .about__features {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .about__feature {
        text-align: left;
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: var(--space-3);
        align-items: start;
    }

    .about__feature-icon {
        margin: 0;
    }

    .about__feature h3,
    .about__feature p {
        text-align: left;
    }

    /* CTA */
    .cta {
        padding: var(--space-8) 0;
    }

    .cta__title {
        font-size: 1.75rem;
    }

    .cta__text {
        font-size: 1rem;
    }

    .gallery {
        padding: var(--space-8) 0;
    }
}

@media (max-width: 480px) {
    .hero-slider__title {
        font-size: 1.5rem;
    }

    .hero-slider__price {
        font-size: 1.1rem;
    }
}
