/* ===================================
   PARENT PAGE STYLES
   =================================== */

:root {
    --color-parent-primary: #f37021;
    /* Brand Orange */
    --color-parent-dark: #cc5200;
    --color-parent-light: #fff3e6;
}

/* Specific Header Adjustment for Parent */
.page-parent .header {
    position: absolute;
    top: 20px;
}

/* Hero Section with 3D Carousel */
.hero-parent {
    background-image: url('../assets/ParentBG.png');
    background-size: cover;
    background-position: center;
    padding: var(--space-24) 0 var(--space-10);
    text-align: center;
    color: white;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.carousel-parent {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.carousel-3d-wrapper {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.carousel-3d-item {
    position: absolute;
    width: 650px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Side Screens */
.carousel-3d-item.prev,
.carousel-3d-item.next {
    opacity: 0.6;
    pointer-events: auto;
    z-index: 5;
    filter: brightness(0.4);
}

.carousel-3d-item.prev {
    transform: translateX(-500px) translateZ(-250px) rotateY(15deg) scale(0.85);
}

.carousel-3d-item.next {
    transform: translateX(500px) translateZ(-250px) rotateY(-15deg) scale(0.85);
}

/* Central Active Laptop */
.carousel-3d-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    transform: translateX(0) translateZ(0) rotateY(0) scale(1.2);
}

/* Only show laptop frame for active item */
.carousel-3d-item .laptop-container {
    display: none;
}

.carousel-3d-item.active .laptop-container {
    display: block;
}

/* Fallback simple image for side items */
.carousel-3d-item .fallback-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.carousel-3d-item.active .fallback-img {
    display: none;
}

.laptop-container {
    background: #111;
    border-radius: 20px 20px 0 0;
    padding: 6px;
    position: relative;
    border: 6px solid #333;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
}

.laptop-container::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: -10%;
    width: 120%;
    height: 12px;
    background: #222;
    border-radius: 0 0 15px 15px;
}

.laptop-screen {
    width: 100%;
    aspect-ratio: 16/10;
    background: #000;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
    padding: 4px;
}

.laptop-screen img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 20;
    padding: 0 20px;
}

.carousel-nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    color: var(--color-parent-primary);
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    background: var(--color-parent-primary);
    color: white;
    transform: scale(1.1);
}

/* Wrapper for unified background */
.parent-content-wrapper {
    background-image: url('../assets/chapeauBG.png');
    background-size: 80% auto;
    background-position: center 80%;
    background-repeat: no-repeat;
    padding-bottom: 60px;
}

/* Page Intro Section */
.intro-parent {
    padding: 100px 0 60px;
    background: none;
}

.intro-parent .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.intro-parent__brand {
    margin-bottom: 60px;
}

.intro-parent__brand-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.intro-parent__brand-tagline {
    font-size: 1.25rem;
    color: #888;
    font-weight: 500;
}

.intro-parent__title {
    font-size: 3.2rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: 800;
    letter-spacing: -1px;
}

.intro-parent__description {
    max-width: 850px;
    margin: 0 auto 60px;
    line-height: 1.7;
    color: #777;
    font-size: 1.3rem;
    font-weight: 500;
}

/* Features Grid */
.features-grid-parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 0;
    max-width: 1300px;
    /* Increased max-width for 3 columns */
    margin: 0 auto;
}

.feature-card-parent {
    background: #f2f2f2;
    border-radius: 30px;
    padding: 30px;
    border-left: 8px solid #95cc6f;
    text-align: left;
    box-shadow: 0 10px 30px rgba(149, 204, 111, 0.06);
    transition: transform 0.3s ease;
}

.feature-card-parent:hover {
    transform: translateY(-5px);
}

.feature-card-parent__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.feature-card-parent ul {
    list-style: none;
    padding: 0;
}

.feature-card-parent li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-card-parent li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #95cc6f;
    font-weight: bold;
}

/* Mobile App Section */
.mobile-parent {
    background-color: transparent;
    /* Wrapper has bg */
    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
}

.mobile-parent__container {
    display: flex;
    align-items: flex-start;
    /* Align to top */
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.mobile-parent__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align elements to the right */
    text-align: right;
    /* Text align to the right */
    padding-top: 40px;
    padding-right: 80px;
    /* Shift "un peu à gauche" */
}

.mobile-parent__title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 25px;
    max-width: 550px;
}

.mobile-parent__text {
    font-size: 1.4rem;
    color: #888;
    margin-bottom: 40px;
    max-width: 420px;
    line-height: 1.5;
}

.btn-parent {
    background: linear-gradient(90deg, #f37021 0%, #ff8b3d 100%);
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(243, 112, 33, 0.25);
}

.btn-parent:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(243, 112, 33, 0.35);
    filter: brightness(1.1);
}

.mascot-parent {
    margin-top: 60px;
    max-width: 250px;
    height: auto;
    margin-left: -140px;
    animation: floatMascot 3s ease-in-out infinite;
}

.mobile-parent__images {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.mobile-mockup-parent {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    margin-bottom: 0;
}

.store-badges-parent {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    /* Align to the right with text */
    margin-top: 40px;
    width: 100%;
    flex-wrap: wrap;
    /* Ensure they wrap on smaller screens */
}

.store-badge img {
    height: 140px;
    /* Even larger as requested */
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.store-badge:hover img {
    transform: translateY(-5px);
}

/* Footer override for Parent */
.page-parent .footer {
    background-color: #95cc6f;
}

/* Responsive Updates */
@media (max-width: 1024px) {


    .hero-parent {
        padding-top: var(--space-32);
        min-height: auto;
    }

    .carousel-3d-wrapper {
        height: 400px;
    }

    .carousel-3d-item {
        width: 500px;
    }

    .intro-parent__title {
        font-size: 2.5rem;
    }

    .intro-parent__description {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .features-grid-parent {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 20px;
    }

    .feature-card-parent__title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .carousel-3d-wrapper {
        height: 300px;
    }

    .carousel-3d-item {
        width: 100%;
        max-width: 450px;
    }

    .carousel-3d-item.prev,
    .carousel-3d-item.next {
        display: none;
    }

    .carousel-3d-item.active {
        transform: scale(1);
    }

    .features-grid-parent {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 20px;
    }

    .feature-card-parent {
        padding: 35px 25px;
        border-radius: 40px;
    }

    .feature-card-parent::before {
        left: 0 !important;
        right: auto !important;
        width: 8px;
    }

    .mobile-parent__container {
        flex-direction: column-reverse;
        /* Put mockup below text for better flow if needed, or maintain column */
        text-align: center;
        gap: 40px;
    }

    .mobile-parent__content {
        padding-left: 0;
        align-items: center;
    }

    .mobile-parent__title {
        font-size: 2.2rem;
        max-width: 100%;
    }

    .mobile-parent__text {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .mascot-parent {
        margin-left: 0;
        margin-top: 20px;
        max-width: 180px;
    }

    .store-badge img {
        height: 110px;
    }

    .store-badges-parent {
        justify-content: center;
        margin-top: 20px;
    }

    .parent-content-wrapper {
        background-size: 150% auto;
        background-position: center bottom;
    }
}

@media (max-width: 480px) {
    .intro-parent__title {
        font-size: 2rem;
    }

    .carousel-3d-wrapper {
        height: 250px;
    }

    .feature-card-parent__title {
        font-size: 1.4rem;
    }

    .laptop-container {
        border-width: 4px;
        padding: 6px;
    }
}