﻿/* =========================================

   Home Page Specific Styles (index.html)

   ========================================= */

/* Hero Section */

.hero-section {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Hero Poster (couche de base, visible immédiatement — LCP) */
.hero-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Hero Video (opacity 0 au départ, fade-in via canplay) */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-video.is-playing {
    opacity: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: var(--container-max-width);
    margin: clamp(2rem, 10vh, 4rem) auto clamp(2rem, 8vh, 4rem);
    padding: 0 var(--container-padding);
}


.hero-title {
    width: 100%;
    max-width: 100%;
    font-family: var(--font-main);
    font-weight: 900;
    font-size: var(--fs-h1);
    line-height: 1;
    text-align: center;
    color: var(--primary-blue);
    margin: 0;
}

.hero-subtitle {
    width: auto;
    max-width: 100%;
    font-family: var(--font-main);
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.2;
    text-align: center;
    margin: 1rem 0 0;
    white-space: normal;
}

.video-controls {
    position: absolute;
    bottom: clamp(20px, 5vh, 150px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 20px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    width: clamp(48px, 10vw, 64px);
    height: clamp(48px, 10vw, 64px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: blinkBlue 10s infinite;
}

@keyframes blinkBlue {

    0%,
    90% {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.8);
        transform: scale(1);
    }

    92.5% {
        background: var(--primary-blue);
        border-color: var(--primary-blue);
        transform: scale(1.05);
    }

    95% {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.8);
        transform: scale(1);
    }

    100% {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.8);
        transform: scale(1);
    }
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Info Section */

.info-section {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem) var(--container-padding) clamp(2rem, 5vw, 4rem);
    display: flex;
    justify-content: center;
}


.info-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(2rem, 5vw, 4rem);
    width: 100%;
}

@media (max-width: 768px) {
    .info-content {
        flex-direction: column;
        align-items: center;
    }
}


.info-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.info-text {
    width: 100%;
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
    color: var(--text-black);
}

.info-image-link {
    flex: 1.2;
    text-decoration: none;
    display: flex;
    width: 100%;
}


.info-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: clamp(20px, 5vw, 50px);
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    background-image: url("../images/common/square-girl.webp");
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}


.info-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 118, 188, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-image-overlay span {
    color: white;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: clamp(20px, 4vw, 40px);
    text-align: center;
    padding: 20px;
}

.info-image-link:hover .info-image-overlay {
    opacity: 1;
}

.info-image-link:hover .info-image {
    transform: scale(1.02);
}

/* Services Slider */

.services-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    width: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    border-radius: clamp(20px, 5vw, 50px);
    overflow: hidden;
}

.services-slider {
    width: 100%;
    min-height: 400px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

.services-track {
    display: flex;
    width: 100%;
}

.service-item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    min-height: 400px;
    display: flex;
    flex-direction: row;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

@media (max-width: 1024px) {
    .hero-section {
        margin-top: 74px;
        /* Account for fixed header height */
    }
}

@media (max-width: 768px) {

    .service-item,
    .service-item:nth-child(even) {
        flex-direction: column !important;
    }
}


.slide-visual {
    flex: 1;
    align-self: stretch;
    min-height: clamp(300px, 40vh, 450px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-strategie .slide-visual {
    background-image: url("../images/accueil/strategy.webp");
}

.slide-digital .slide-visual {
    background-image: url("../images/accueil/innovation.webp");
}

.slide-campagne .slide-visual {
    background-image: url("../images/services/activation.webp");
}

.slide-branding .slide-visual {
    background-image: url("../images/agence/quality.webp");
}

.slide-content {
    flex: 1;
    align-self: stretch;
    background-color: #EBEBEB;
    padding: clamp(2rem, 6vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(28, 118, 188, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.3);
}

.slide-title {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: var(--fs-h3);
    line-height: 1.1;
    color: var(--text-black);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slide-subtitle {
    font-family: var(--font-main);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.4;
    color: var(--text-black);
    margin-bottom: 30px;
}

.slide-body {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark-gray);
    margin-bottom: 40px;
    max-width: 90%;
    text-align: justify;
}

/* Projects Section */

.projects-section {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(3rem, 8vw, 5rem) var(--container-padding);
    gap: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    width: 100%;
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    width: 100%;
    aspect-ratio: 492 / 662;
    background-size: cover;
    background-position: center;
    border-radius: clamp(20px, 5vw, 50px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 118, 188, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: white;
    text-align: center;
    text-transform: uppercase;
    padding: 20px;
}

/* Reviews Slider */

.reviews-section {
    padding: clamp(4rem, 10vw, 100px) 0;
    width: 100%;
    background-color: #F8F9FA;
    overflow: hidden;
}

.reviews-container {
    position: relative;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.reviews-scroll {
    display: flex !important;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap !important;
}

.reviews-scroll::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 calc(50% - 15px) !important;
    min-width: calc(50% - 15px) !important;
    background-color: var(--primary-blue);
    border-radius: clamp(20px, 4vw, 40px);
    padding: clamp(20px, 5vw, 50px) clamp(20px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    color: white;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        padding: 35px 30px;
    }
}

.review-text {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.6;
    margin-bottom: clamp(20px, 3vw, 30px);
    font-weight: 400;
    max-width: 100%;
}

.review-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 0 clamp(20px, 3vw, 30px) 0;
    width: 100%;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 480px) {
    .review-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

.review-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    background-color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.review-author {
    font-size: 14px;
    font-weight: 700;
}

.review-role {
    font-size: 12px;
    opacity: 0.7;
}

.review-rating-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: clamp(15px, 3vw, 30px);
}

@media (max-width: 480px) {
    .review-rating-info {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-left: 0;
        padding-top: 20px;
        width: 100%;
        align-items: flex-start;
    }
}

.rating-value {
    font-size: 14px;
    font-weight: 700;
}

.rating-stars {
    font-size: 12px;
    letter-spacing: 2px;
}

.reviews-nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    width: 100%;
    max-width: var(--container-max-width);
    margin: clamp(20px, 3vw, 30px) auto 0;
    padding: 0 var(--container-padding);
}

.nav-btn {
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.nav-btn:hover {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Clients Section */

.clients-section {
    padding: clamp(4rem, 10vw, 100px) 0;
    width: 100%;
    background-color: var(--bg-white);
}

.clients-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.clients-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(2rem, 8vw, 80px);
}

@media (max-width: 1024px) {
    .clients-layout {
        flex-direction: column;
        align-items: flex-start;
    }
}

.clients-header {
    flex: 0 0 clamp(200px, 20vw, 300px);
    text-align: left;
}

.clients-grid {
    flex: 1;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: clamp(10px, 2vw, 20px);
    width: 100%;
}

@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.client-logo-box {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(10px, 1.5vw, 20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.client-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-logo-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}