/* ===================================
   Hero Section 2 - Modern Split Layout
   Composant Hero avec animations
====================================== */

.hero-section-2 {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 600px;
    background-color: var(--white);
    overflow: hidden;
}

/* ===================================
   Layout - Content Side (Left)
====================================== */

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 3rem 2rem;
    z-index: 2;
}

.hero-header {
    margin-bottom: 3rem;
}

.hero-header .flex {
    display: flex;
    align-items: center;
}

.hero-header .flex img {
    margin-right: 1rem;
    height: 3rem;
}

.hero-header .text-lg {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
}

.hero-header .text-xs {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--gray);
    text-transform: uppercase;
}

/* ===================================
   Main Content
====================================== */

.hero-main-content {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.hero-title .text-primary {
    color: var(--primary);
}

.hero-divider {
    height: 4px;
    width: 5rem;
    background-color: var(--primary);
    margin: 1.5rem 0;
}

.hero-subtitle {
    max-width: 32rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

.hero-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.hero-cta:hover::after {
    width: 100%;
}

.hero-cta:hover {
    color: #4a8a15;
    transform: translateX(5px);
}

/* ===================================
   Footer Contact Info
====================================== */

.hero-footer {
    margin-top: 3rem;
    width: 100%;
}

.hero-footer .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.hero-footer .flex {
    display: flex;
    align-items: center;
}

.hero-footer .hero-icon {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.hero-footer .hero-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.hero-footer span {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ===================================
   Image Side (Right)
====================================== */

.hero-image-wrapper {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Animation de clip-path sera appliquée par JS */
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

/* ===================================
   Animations
====================================== */

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

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

.animate-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animate-item:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-item:nth-child(2) {
    animation-delay: 0.35s;
}

.animate-item:nth-child(3) {
    animation-delay: 0.5s;
}

.animate-item:nth-child(4) {
    animation-delay: 0.65s;
}

.animate-item:nth-child(5) {
    animation-delay: 0.8s;
}

.hero-header.animate-item {
    animation-delay: 0.2s;
}

.hero-title.animate-item {
    animation-delay: 0.35s;
}

.hero-divider.animate-item {
    animation-delay: 0.5s;
}

.hero-subtitle.animate-item {
    animation-delay: 0.65s;
}

.hero-cta.animate-item {
    animation-delay: 0.8s;
}

.hero-footer.animate-item {
    animation-delay: 0.95s;
}

/* Animation de l'image avec clip-path */
.hero-image.animate-clip {
    animation: clipPathReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes clipPathReveal {
    from {
        clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    }
    to {
        clip-path: polygon(0% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* ===================================
   Responsive Design
====================================== */

/* Tablets (768px et plus) */
@media (min-width: 768px) {
    .hero-section-2 {
        flex-direction: row;
        min-height: 600px;
    }

    .hero-content {
        width: 50%;
        padding: 3rem;
    }

    .hero-image-wrapper {
        width: 50%;
        min-height: 100%;
    }

    .hero-footer .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }

    /* Animation clip-path diagonale sur desktop */
    @keyframes clipPathReveal {
        from {
            clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
        }
        to {
            clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
        }
    }
}

/* Large tablets et petits desktops (992px et plus) */
@media (min-width: 992px) {
    .hero-content {
        width: 60%;
        padding: 4rem;
    }

    .hero-image-wrapper {
        width: 40%;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Large desktops (1200px et plus) */
@media (min-width: 1200px) {
    .hero-content {
        padding: 4rem 5rem;
    }

    .hero-title {
        font-size: 4rem;
    }
}

/* Mobile small (moins de 576px) */
@media (max-width: 575px) {
    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        font-size: 0.875rem;
    }

    .hero-footer .grid {
        gap: 1rem;
    }

    .hero-footer span {
        font-size: 0.75rem;
    }
}

/* ===================================
   Utility Classes
====================================== */

.relative {
    position: relative;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.w-full {
    width: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

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

.text-muted-foreground {
    color: var(--gray);
}

.text-foreground {
    color: var(--black);
}

.text-primary-hover {
    color: #4a8a15;
}

/* ===================================
   Dark Mode Support (optionnel)
====================================== */

@media (prefers-color-scheme: dark) {
    .hero-section-2 {
        background-color: #1a1a1a;
    }

    .hero-title,
    .hero-header .text-lg,
    .text-foreground {
        color: #ffffff;
    }

    .hero-subtitle,
    .hero-footer span,
    .text-muted-foreground {
        color: #a0a0a0;
    }
}

/* ===================================
   Print Styles
====================================== */

@media print {
    .hero-section-2 {
        page-break-inside: avoid;
    }

    .hero-image {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

