/* Styles spécifiques — index */
body.page-index { background-color: #0c0c0c; }

/* IMAGE DE FOND FIXE */
.background {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("../../../media/aleya_louvre.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

@media (max-width: 900px) {
    .background {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 60vh;
        background-image: url("../../../media/aleya_louvre.jpeg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
    }
}

@media (max-width: 530px) {
    .background {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 45vh;
        background-image: url("../../../media/aleya_louvre.jpeg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
    }
}

/* CONTENU QUI SCROLL */
.content {
    position: relative;
    z-index: 1;
}

.page-container {
    width: calc(100% - 80px);
    max-width: 1400px;
    margin: 0 auto;

    padding-top: 24px;

}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

.double-card-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.info-card {
    min-width: 0;
    min-height: 430px;
    padding: 45px;

    background: #020609;
    color: white;
    border-radius: 30px;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    overflow: hidden;
}

.info-card h2 {
    margin: 0 0 25px;
    font-size: 42px;
}

.info-card-small h2,
.info-card-small h3 {
    text-align: center;
}

.info-card-small h3 {
    margin-top: -20px;
    margin-bottom: 45px;
    
}

.info-card p {
    margin-bottom: 28px;
    line-height: 1.5;
}

.info-card-button {
    width: min(100%, 280px);
    min-height: 58px;
    margin: auto auto 0;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #3a3a3a;
    color: white;
    border-radius: 999px;
    text-decoration: none;
}

@media (max-width: 850px) {
    .page-container {
        width: calc(100% - 30px);
        
    }

    .double-card-container {
        grid-template-columns: 1fr;
        
    }

    .info-card {
        min-height: 390px;
        padding: 30px;
        font-size: 12px;
        
    }
.info-card h2 {
    margin: 0 0 25px;
    font-size: 26px;
}
    .main-image,
    .info-card {
        border-radius: 25px;
        
    }
}





.page-container2 {
    width: calc(100% - 80px);
    max-width: 1400px;
    margin: 0 auto;

    padding-top: 24px;

}

.main-image2 {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

.double-card-container2 {
    width: 100%;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.info-card2 {
    min-width: 0;
    min-height: 430px;
    padding: 45px;

    background: #34013f;
    color: white;
    border-radius: 30px;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    overflow: hidden;
}

.info-card2 h2 {
    margin: 0 0 25px;
    font-size: 42px;
}

.info-card-small h2,
.info-card-small h3 {
    text-align: center;
}

.info-card-small h3 {
    margin-top: -20px;
    margin-bottom: 45px;
    
}

.info-card2 p {
    margin-bottom: 28px;
    line-height: 1.5;
}

.info-card-button2 {
    width: min(100%, 280px);
    min-height: 58px;
    margin: auto auto 0;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #6c0865;
    color: white;
    border-radius: 999px;
    text-decoration: none;
}

@media (max-width: 850px) {
    .page-container2 {
        width: calc(100% - 30px);
        
    }

    .double-card-container2 {
        grid-template-columns: 1fr;
        
    }

    .info-card2 {
        min-height: 390px;
        padding: 30px;
        font-size: 12px;
        
    }
.info-card2 h2 {
    margin: 0 0 25px;
    font-size: 26px;
}
    .main-image2,
    .info-card2 {
        border-radius: 25px;
        
    }
}
.section-text2 {
  color: rgb(255, 255, 255);
  text-align: center;
  font-weight: bold;
  margin-top: 7%;
  font-size: 32px;
}

.section-text2-2 {
  color: rgb(255, 255, 255);
  text-align: center;
  align-items: center;
  margin-top: 1%;
  font-size: 12px;
  display: flex;
  margin-bottom: 6%;
  justify-content: center;
}

.adc-section {
  padding: 0px 5%;
}

@media (max-width: 850px) {
  .section-text2 {
    color: rgb(255, 255, 255);
    text-align: center;
    font-weight: bold;
    margin-top: 7%;
    font-size: 12px;
  }

  .section-text2-2 {
    color: rgb(255, 255, 255);
    text-align: center;
    align-items: center;
    margin-top: 3%;
    font-size: 7px;
    display: flex;
    margin-bottom: 4%;
    justify-content: center;
  }
}
/* =====================================================
   CARROUSEL DES PROJETS ALEYA
===================================================== */

.aleya-project-carousel {
    width: 100%;
    padding: 80px 40px;
    overflow: hidden;
    background-color: #0c0c0c;
    box-sizing: border-box;
}

.aleya-project-track {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}
.aleya-project-card {
    position: relative;
    min-width: 0;
    min-height: 430px;
    padding: 24px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    background-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.02) 40%,
            rgba(0, 0, 0, 0.75) 100%
        ),
        var(--card-background);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 45px;
    overflow: hidden;
    box-sizing: border-box;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.aleya-project-card:hover {
    transform: translateY(-7px);
    filter: brightness(1.08);
}

.aleya-project-button {
    position: relative;
    z-index: 1;
    overflow: hidden;

    width: 100%;
    min-height: 52px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    background: transparent;
}

.aleya-project-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: rgba(0, 0, 0, 0.077);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border-radius: inherit;
    transition: background 0.25s ease;
}

.aleya-project-button:hover::before {
    background: rgba(0, 0, 0, 0.7);
}

.aleya-project-button:hover {
    transform: translateY(-2px);
}

/* Tablette */


/* Téléphone : carrousel centré */

@media (max-width: 1225px) {
    .aleya-project-carousel {
        padding: 20px 0;
    }

    .aleya-project-track {
        display: flex;
        gap: 16px;

        max-width: none;
        overflow-x: auto;

        /*
        Ces espaces permettent de centrer aussi
        la première et la dernière carte.
        */
        padding:
            0
            calc((100vw - 82vw) / 2)
            18px;

        scroll-snap-type: x mandatory;
        scroll-padding-inline: calc((100vw - 82vw) / 2);

        scrollbar-width: none;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .aleya-project-track::-webkit-scrollbar {
        display: none;
    }

    .aleya-project-card {
        flex: 0 0 82vw;
        min-height: 500px;
        padding: 22px;

        border-radius: 40px;
        scroll-snap-align: center;
        scroll-snap-stop: always;

        transform: scale(0.94);

        transition:
            transform 0.5s ease,
            opacity 0.5s ease,
            filter 0.5s ease;
    }

    .aleya-project-card.is-centered {
        transform: scale(1);
    }

    .aleya-project-button {
        min-height: 54px;
        font-size: 14px;
    }
}