/**
 * Hero Layout Styles
 * For com_content featured hero layout
 */

/* Hero Layout Container */
.hero-layout {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 66vh;
    min-height: 400px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1a1a2e;
}

.hero-section.has-image {
    color: #ffffff;
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
    will-change: transform;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2rem;
}

.hero-text {
    max-width: 800px;
}

.hero-slogan {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hero-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateX(5px);
}

.hero-btn-secondary {
    border-width: 2px;
}

.hero-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Page Content */
.page-content {
    background-color: #ffffff;
}

/* Quality Section */
.qualite-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.qualite-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.qualite-section h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 1.5rem;
}

.qualite-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* Brand Message Section */
.brand-message-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.brand-message-text {
    font-size: 1.125rem;
    line-height: 1.8;
}

.brand-message-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Homepage Modeles Section */
.homepage-modeles-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

/* Réalisations Section */
.realisations-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.realisations-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2.5rem;
}

/* Featured Articles Section */
.featured-articles {
    padding: 4rem 0;
    background-color: #ffffff;
}

.featured-article-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.featured-article-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article-card:hover .featured-article-image img {
    transform: scale(1.05);
}

.featured-article-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-article-title a:hover {
    color: var(--bs-primary, #0d6efd);
}

.featured-article-intro {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.featured-article-link {
    display: inline-flex;
    align-items: center;
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.featured-article-link:hover {
    color: var(--bs-primary-dark, #0a58ca);
}

.featured-article-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.featured-article-link:hover i {
    transform: translateX(5px);
}

/* Allmedias Gallery */
.allmedias-gallery-container {
    margin-top: 2rem;
}

.allmedias-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 0;
}

.allmedias-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.allmedias-image:hover img {
    transform: scale(1.05);
}

.allmedias-image a {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }

    .hero-slogan {
        font-size: 2.25rem;
    }

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

    .hero-slogan.w-50 {
        width: 75% !important;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 45vh;
        min-height: 300px;
    }

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

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hero-slogan.w-50 {
        width: 100% !important;
    }

    .qualite-section,
    .brand-message-section,
    .homepage-modeles-section,
    .realisations-section,
    .featured-articles {
        padding: 3rem 0;
    }

    .realisations-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}
