/* ============================================
   PAGE 4 - BASE STYLES
   ============================================ */

#page_4 {
  --animation-switch-duration: 0.6s;
  transition: background-color var(--animation-switch-duration) ease;
  position: relative;
}

#page_4 > section {
    position: relative;
}


/* ============================================
   FIXED BAND
   ============================================ */

.fixed__band {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 0;
}

/* ============================================
   IMAGE SLIDER
   ============================================ */

.slider {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 33dvh;
    --slider-image-width: 27dvh;
    --slider-image-count: 14;
    --slider-duration: 40s;
}

.slider::before,
.slider::after {
    content: "";
    background: linear-gradient(to right, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 100%);
    position: absolute;
    width: 50px;
    height: 100%;
    z-index: 2;
}

.slider::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 100%);
}

.slider::before {
    left: 0;
    top: 0;
}

.slider .slide-track {
    will-change: transform;
    animation: scroll var(--slider-duration) linear infinite;
    display: flex;
    width: calc(var(--slider-image-width) * var(--slider-image-count) * 2);
}

.slider .slide {
    width: var(--slider-image-width);
    height: auto;
}

.page4, .slide > img {
    height: 100%;
    width: 100%;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(var(--slider-image-width) * var(--slider-image-count) * -1)); }
}

.slider__spacer {
    position: relative;
    height: 33dvh;
}


/* ============================================
   CONTENT ABOVE SLIDER
   ============================================ */

.above__slider {
    position: relative;
    z-index: 1;
    background-color: var(--color-accent);
    box-shadow: 0 -10px 10px rgba(0, 0, 0, 0.5);
    min-height: 100dvh;

    will-change: transform;
}

.above__slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../Ressources/tile.webp);
    background-repeat: repeat;
    background-size: 200px auto;
    background-position: center;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}


/* ============================================
   SIGNATURE BAND (PAGE 4)
   ============================================ */

.above__slider > .bandParent {
    position: absolute;
    left: 0;
    z-index: -1;
    top: calc(100% - 20px);
}

.above__slider > .bandParent.flipY {
    position: absolute;
    left: 0;
    z-index: -1;
    top: 20px;
}


/* ============================================
   ABOUT US SECTION
   ============================================ */

.about-us__container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.about-us__card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.3em;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 700px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us__card::after {
    content: '';
    position: absolute;
    font-size: 1.5rem;
    color: rgba(102, 126, 234, 0.15);
    z-index: 0;

    background-image: url(../Ressources/UnPeuDeNous/heart.webp);
    background-repeat: repeat;
    background-size: 100% auto;
    background-position: center;
    opacity: 0.1;

    width: 0.8em;
    height: 0.8em;
}

.about-us__card:first-child {
    margin-left: 0;
    margin-right: auto;
}

.about-us__card:first-child::after {
    bottom: 20px;
    right: 30px;
}

.about-us__card:nth-child(2) {
    margin-left: auto;
    margin-right: 0;
    flex-direction: row-reverse;
}

.about-us__card:nth-child(2)::after {
    top: 20px;
    left: 30px;
}

.about-us__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

/* About Us - Profile Images */

.about-us__image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid rgba(255, 255, 255, 1);
    outline: 2px solid rgba(102, 126, 234, 0.3);
    outline-offset: 4px;
    box-sizing: border-box;
}

.about-us__card:first-child .about-us__image {
    background-image: url(../Ressources/UnPeuDeNous/ppT.webp);
}

.about-us__card:nth-child(2) .about-us__image {
    background-image: url(../Ressources/UnPeuDeNous/ppO.webp);
}

.about-us__image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* About Us - Content */

.about-us__content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.about-us__name {
    font-size: 2rem;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    font-family: "Alex Brush", cursive;
    position: relative;
    display: inline-block;
}

.about-us__name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.5), transparent);
}

.about-us__title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 1rem 0 1.5rem 0;
    color: #667eea;
    font-weight: 600;
}

.about-us__description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
    z-index: 1;
}

.about-us__description::first-letter {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
    margin-right: 5px;
}


/* ============================================
   HEART FRAME SECTION
   ============================================ */

.archi__section {
    position: relative;
    left: 50%;
    width: min(18vw, 200px);
    filter: drop-shadow(6px 6px 20px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.archi__section:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 25px 70px rgba(0, 0, 0, 0.4));
}

.archi__container {
    transform: translate(-50%, 0);
}

.heart {
    width: 100%;
    aspect-ratio: 1;

    -webkit-mask-image: url("../Ressources/UnPeuDeNous/heart.webp");
    mask-image: url("../Ressources/UnPeuDeNous/heart.webp");

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;

    background-color: transparent;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .about-us__card {
        flex-direction: column !important;
        text-align: center;
        padding: 2rem;
    }
    
    .about-us__card:first-child,
    .about-us__card:nth-child(2) {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-us__image {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .about-us__name {
        font-size: 2rem;
    }
    
    .about-us__name::after {
        left: 50%;
        transform: translateX(-50%);
    }
}