/* ==========================================================================
   CLEAN OUEST DÉBARRAS — Styles page d'accueil
   Styles spécifiques à la home (hero, services grid, about slider, zone).
   Dépend de design-system.css (chargé avant).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Animations — home uniquement
   -------------------------------------------------------------------------- */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes aboutProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

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

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            var(--mist) 100px,
            var(--mist) 101px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            var(--mist) 100px,
            var(--mist) 101px
        );
    opacity: 0.5;
}

.hero-accent-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: var(--accent);
}

.hero-number {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 35vw;
    color: rgba(0, 0, 0, 0.02);
    line-height: 1;
    pointer-events: none;
}

.hero-visual {
    position: absolute;
    right: -5%;
    top: 0;
    bottom: 0;
    width: 42%;
    background: var(--charcoal);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 5% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-content {
    text-align: center;
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-visual-stat {
    text-align: center;
}

.hero-visual-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: var(--accent);
    line-height: 1;
}

.hero-visual-stat:first-child .hero-visual-number {
    font-size: 5rem;
}

.hero-visual-text {
    font-size: 0.85rem;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 140px 0 100px;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--mist);
    padding: 10px 20px;
    margin-bottom: 30px;
    animation: slideInLeft 0.8s ease forwards;
    opacity: 0;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
}

.hero-badge span {
    color: var(--concrete);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 8vw, 7rem);
    color: var(--black);
    line-height: 0.95;
    margin-bottom: 30px;
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero h1 span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--concrete);
    font-weight: 400;
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 50px;
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

/* --------------------------------------------------------------------------
   Services section (grille 4 colonnes)
   -------------------------------------------------------------------------- */

.services {
    padding: 120px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* --------------------------------------------------------------------------
   About section (fond sombre + slider)
   -------------------------------------------------------------------------- */

.about {
    padding: 120px 0;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-content .section-tag span {
    color: var(--accent-light);
}

.about-content .section-tag::before {
    background: var(--accent-light);
}

.about-content .section-title {
    color: white;
    margin-bottom: 30px;
}

.about-text {
    color: var(--silver);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Contextual dark-background overrides for .about-feature */
.about .about-feature {
    background: rgba(255, 255, 255, 0.03);
}

.about .feature-text h4 {
    color: white;
}

.about .feature-text p {
    color: var(--silver);
}

/* Slider about */

.about-visual {
    position: relative;
}

.about-image-main {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    background: var(--black);
    min-height: 500px;
}

.about-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.about-slide.active {
    opacity: 1;
}

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-slider-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.about-slide-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: white;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.about-slide-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.about-slider-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-counter {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.about-counter-current {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
}

.about-counter-total {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
}

.about-slider-nav {
    display: flex;
    gap: 8px;
}

.about-slider-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.about-slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.about-slider-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.about-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    width: 0;
    z-index: 4;
    animation: aboutProgress 5s linear infinite;
}

/* --------------------------------------------------------------------------
   Zone section
   -------------------------------------------------------------------------- */

.zone {
    padding: 120px 0;
    background: var(--white);
}

.zone-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.zone-info {
    padding-right: 40px;
}

.zone-info .section-title {
    margin-bottom: 30px;
}

.zone-text {
    color: var(--concrete);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.zone-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Responsive — home spécifique
   -------------------------------------------------------------------------- */

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

    .hero-visual {
        display: none;
    }
}

@media (max-width: 992px) {
    .about-grid,
    .zone-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 120px 0 80px;
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }

    .zone-list {
        grid-template-columns: 1fr;
    }
}
