/**
 * L'Encre Bleue Theme - Front Page Styles
 * Agence de communication créative
 *
 * @package EncreBleu
 */

/* ==========================================================================
   SECTION 1: HERO VIDÉO
   ========================================================================== */

.hero--video {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero__video-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: var(--color-primary);
}

.hero__video,
.hero__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.hero__keywords {
    background: var(--color-white);
    padding: 30px 0;
}

.hero__keywords-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero__keywords-list {
        gap: 60px;
    }
}

.hero__keyword {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-black);
    text-transform: lowercase;
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .hero__keyword {
        font-size: 24px;
    }
}

/* ==========================================================================
   SECTION 2: BANDEAU DÉFILANT
   ========================================================================== */

.marquee-section {
    background: var(--color-primary);
    padding: 20px 0;
    overflow: hidden;
}

.marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.marquee__content {
    display: flex;
    animation: marquee var(--marquee-speed, 30s) linear infinite;
    white-space: nowrap;
}

.marquee__text {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-white);
    padding-right: 100px;
}

@media (min-width: 768px) {
    .marquee__text {
        font-size: 24px;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   SECTION 3: PRÉSENTATION
   ========================================================================== */

.section--presentation {
    padding: 60px 0;
    background: var(--color-white);
}

@media (min-width: 1024px) {
    .section--presentation {
        padding: 100px 0;
    }
}

.presentation {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.presentation__title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-black);
    margin: 0 0 24px;
}

@media (min-width: 768px) {
    .presentation__title {
        font-size: 42px;
    }
}

.presentation__content {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-black);
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .presentation__content {
        font-size: 18px;
    }
}

.presentation__cta {
    margin-top: 30px;
}

/* Bouton avec étoile animée */
.btn--star {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn--star:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn__star {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.6s ease;
}

.btn__star svg {
    width: 20px;
    height: 20px;
}

.btn--star:hover .btn__star {
    transform: rotate(360deg);
}

/* ==========================================================================
   SECTION 4: CAS CLIENTS
   ========================================================================== */

.section--cases {
    padding: 0;
}

.cases-grid {
    display: flex;
    flex-direction: column;
}

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

.case-item {
    position: relative;
}

.case-item__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    min-height: 300px;
}

@media (min-width: 768px) {
    .case-item__link {
        flex-direction: row;
        min-height: 350px;
    }
}

.case-item__image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .case-item__image {
        width: 50%;
        height: auto;
    }
}

.case-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item__link:hover .case-item__image img {
    transform: scale(1.05);
}

.case-item__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-gray-200), var(--color-gray-300));
}

.case-item__info {
    position: relative;
    width: 100%;
    padding: 30px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    min-height: 150px;
}

@media (min-width: 768px) {
    .case-item__info {
        width: 50%;
        min-height: auto;
    }
}

.case-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    transition: background 0.3s ease;
}

.case-item__link:hover .case-item__overlay {
    background: rgba(255, 255, 255, 0.9);
}

.case-item__content {
    position: relative;
    z-index: 1;
}

.case-item__title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-black);
    margin: 0 0 12px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .case-item__title {
        font-size: 28px;
    }
}

.case-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.case-item__tag {
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-gray-600);
    text-transform: lowercase;
    letter-spacing: 0;
}

.case-item__tag:not(:last-child)::after {
    content: '•';
    margin-left: 8px;
    color: var(--color-gray-400);
}

.cases-cta {
    text-align: center;
    padding: 40px 20px;
    background: var(--color-white);
}

/* ==========================================================================
   SECTION 5: PILIERS
   ========================================================================== */

.section--pillars {
    padding: 60px 0;
    background: var(--color-gray-100);
}

@media (min-width: 1024px) {
    .section--pillars {
        padding: 100px 0;
    }
}

.pillars-grid {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.pillar {
    text-align: center;
    padding: 30px;
}

.pillar__title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-black);
    margin: 0 0 16px;
}

@media (min-width: 768px) {
    .pillar__title {
        font-size: 36px;
    }
}

.pillar__description {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin: 0;
}

.pillars-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   SECTION 6: BLOG
   ========================================================================== */

.section--blog {
    padding: 60px 0;
    background: var(--color-white);
}

@media (min-width: 1024px) {
    .section--blog {
        padding: 100px 0;
    }
}

.section__header {
    margin-bottom: 40px;
}

.section__title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .section__title {
        font-size: 42px;
    }
}

.blog__grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .blog__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

.blog__cta {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   SECTION 7: CTA RÉSERVATION
   ========================================================================== */

.section--cta-reservation {
    padding: 60px 0;
    background: var(--color-secondary);
}

@media (min-width: 1024px) {
    .section--cta-reservation {
        padding: 80px 0;
    }
}

.cta-reservation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .cta-reservation {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cta-reservation__content {
    flex: 1;
}

.cta-reservation__title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-white);
    margin: 0 0 12px;
}

@media (min-width: 768px) {
    .cta-reservation__title {
        font-size: 36px;
    }
}

.cta-reservation__subtitle {
    font-family: var(--font-secondary);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px;
}

.cta-reservation__image {
    flex-shrink: 0;
}

.cta-reservation__image img {
    max-width: 200px;
    height: auto;
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn--secondary:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-2px);
}

.btn--outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 17px;
}

/* Button white for dark backgrounds */
.section--cta-reservation .btn--secondary {
    background: var(--color-white);
    color: var(--color-secondary);
}

.section--cta-reservation .btn--secondary:hover {
    background: var(--color-gray-100);
}
