/* Stylesheet for Les Déterminés - Spoiler Alert Project Page */

@font-face {
    font-family: 'Thunder';
    src: url('../06- Spoiler Alert/font/Thunder-BoldLC.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../06- Spoiler Alert/font/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

html, body {
    background: #FEE42F !important;
    min-height: 100%;
}

.site-header, .site-footer {
    background: #FEE42F !important;
}

/* Page Wrapper */
.determines-page-wrapper {
    position: relative;
    width: 100%;
    background: #FEE42F;
    overflow-x: hidden;
}

.determines-layout-container {
    position: relative;
    width: 100%;
    max-width: 1728px;
    margin: 0 auto;
    background: #FEE42F;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 80px;
    box-sizing: border-box;
}

/* Hero Section */
.determines-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 75px;
    width: 100%;
    max-width: 1064px;
    margin: 40px auto 60px auto;
    box-sizing: border-box;
}

.determines-logo-container {
    width: 100%;
    max-width: 873px;
    height: auto;
    aspect-ratio: 873 / 276;
    display: flex;
    justify-content: center;
    align-items: center;
}

.determines-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Descriptif Card */
.determines-descriptif-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 25px 24px;
    gap: 15px;
    width: 100%;
    max-width: 1064px;
    height: auto;
    background: #FFFFFF;
    border: 1px solid #000000;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.determines-descriptif-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.determines-descriptif-text {
    width: 100%;
    font-family: 'Source Code Pro', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #101010;
    margin: 0;
    text-align: left;
}

.determines-descriptif-text strong {
    font-weight: 600;
}

/* Bouton Tout Voir */
.determines-bouton-tout-voir {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    width: 22px;
    height: 13px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.determines-descriptif-container:hover .determines-bouton-tout-voir {
    transform: translateY(8px);
    filter: invert(53%) sepia(0%) saturate(0%) brightness(90%) contrast(85%);
}

.determines-fluent-arrow {
    margin: 0 auto;
    width: 22px;
    height: 13px;
    display: block;
}

.determines-fluent-arrow img {
    width: 100%;
    height: 100%;
    display: block;
}

/* CONTENT LIST SECTION */
.determines-content-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 90px;
    margin-top: 30px;
}

/* Charte Graphique Section */
.determines-charte-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1000px;
}

/* Color Palette */
.determines-couleurs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 580px;
}

.palette-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 180px;
}

.palette-color-box {
    width: 180px;
    height: 180px;
    box-shadow: 0px 2px 9.7px rgba(0, 0, 0, 0.25);
    border-radius: 16px;
}

.palette-color-box.yellow {
    background: #FEE42F;
}

.palette-color-box.white {
    background: #FFFFFF;
}

.palette-color-box.black {
    background: #101010;
}

.palette-label {
    width: 180px;
    height: 32px;
    font-family: 'Thunder', 'Impact', 'Arial Black', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
    letter-spacing: 0.03em;
    color: #101010;
    margin: 0;
}

/* Typographie Container */
.determines-typo-container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.typo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.typo-title {
    font-family: 'Thunder', 'Impact', 'Arial Black', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 36px;
    text-align: center;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #101010;
    margin: 0 0 10px 0;
}

.typo-title.poppins {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 28px;
}

.typo-alphabet {
    font-family: 'Thunder', 'Impact', 'Arial Black', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 38px;
    text-align: center;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #101010;
    margin: 0;
    word-break: break-all;
}

.typo-alphabet.poppins {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 34px;
}

/* Posters Section (Bloc Affiches) */
.determines-affiches-section {
    position: relative;
    width: 100%;
    max-width: 1728px;
    height: auto;
    aspect-ratio: 1728 / 900;
}

.determines-affiche-wrapper {
    position: absolute;
    width: 50.347%;
    height: 72.222%;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.5s ease;
}

.determines-affiche-wrapper.affiche-1 {
    left: calc(50% - 28.067%);
    top: 5.556%;
    z-index: 2;
}

.determines-affiche-wrapper.affiche-2 {
    left: calc(50% - 22.858%);
    top: 14.444%;
    z-index: 1;
}

/* Hover over section: separate posters */
.determines-affiches-section:hover .determines-affiche-wrapper.affiche-1 {
    transform: translateX(-9.259%);
}

.determines-affiches-section:hover .determines-affiche-wrapper.affiche-2 {
    transform: translateX(9.259%);
}

/* Hover individual poster: pull to front and scale up */
.determines-affiches-section .determines-affiche-wrapper:hover {
    z-index: 10 !important;
}

.determines-affiches-section:hover .determines-affiche-wrapper.affiche-1:hover {
    transform: translateX(-9.259%) scale(1.03);
}

.determines-affiches-section:hover .determines-affiche-wrapper.affiche-2:hover {
    transform: translateX(9.259%) scale(1.03);
}

.determines-affiche-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mockups Section (Métro/Abribus) */
.determines-mockups-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.736%;
    width: 100%;
    max-width: 1728px;
}

.determines-mockup-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

.determines-mockup-card img {
    display: block;
    object-fit: cover;
}

.determines-mockup-card.metro-1 {
    width: 46.296%;
    height: auto;
    aspect-ratio: 800 / 730;
}

.determines-mockup-card.metro-1 img {
    width: 100%;
    height: 100%;
}

.determines-mockup-card.metro-2 {
    width: 50.925%;
    height: auto;
    aspect-ratio: 880 / 730;
}

.determines-mockup-card.metro-2 img {
    width: 100%;
    height: 100%;
}

/* Social Media (Réseaux Sociaux) Section */
.determines-reseaux-section {
    position: relative;
    width: 100%;
    max-width: 1728px;
    height: auto;
    aspect-ratio: 1728 / 1182;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.reseaux-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: url('../06- Spoiler Alert/fond-réseaux-sociaux.webp') no-repeat center/cover;
    z-index: 0;
}

/* Phone Mockup Frame Container */
.phone-mockup-container {
    position: relative;
    width: 33.884%;
    height: auto;
    aspect-ratio: 585.52 / 934;
    filter: drop-shadow(0px 5.89464px 8.84195px rgba(0, 0, 0, 0.04)) drop-shadow(0px 14.7366px 26.5259px rgba(0, 0, 0, 0.05)) drop-shadow(0px 26.5259px 82.5249px rgba(0, 0, 0, 0.1));
    z-index: 2;
}

/* Device frame overlay (rendered on top of video) */
.phone-device-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../06- Spoiler Alert/Fond-instagram-les déterminés.webp') no-repeat center/contain;
    z-index: 2;
    pointer-events: none;
}

/* Screen area inside mockup (rendered behind the frame overlay) */
.phone-screen {
    position: absolute;
    width: 77.93%;
    height: 49.86%;
    left: 11.033%;
    top: 16.873%;
    border-radius: 2px;
    overflow: hidden;
    background: #101010;
    z-index: 1;
}

.phone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Tablet & Mobile Phone Overrides */
@media (min-width: 768px) and (max-width: 1024px) {
    .determines-hero {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        margin: 40px auto 30px auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 45px !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }

    .determines-logo-container {
        max-width: 580px !important;
    }

    .determines-descriptif-container {
        max-width: 100% !important;
    }

    .determines-descriptif-text {
        font-size: 14px !important;
        line-height: 1.45em !important;
    }
}

/* Phone specific overrides (mobile stacked vertical flow) */
@media (max-width: 767px) {
    .determines-page-wrapper {
        min-width: unset !important;
        width: 100% !important;
    }

    .determines-layout-container {
        width: 100% !important;
        padding: 20px 16px 60px !important;
    }

    .determines-hero {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        margin: 20px auto 30px auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 32px !important;
        padding: 20px 0 !important;
        box-sizing: border-box !important;
    }

    .determines-logo-container {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        top: auto !important;
        width: 100% !important;
        max-width: 290px !important;
        height: auto !important;
        aspect-ratio: 873 / 276 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 5 !important;
        box-sizing: border-box !important;
    }

    .determines-logo-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .determines-descriptif-container {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 420px !important;
        height: auto !important;
        background-image: none !important;
        background-color: #ffffff !important;
        border: 1px solid #101010 !important;
        padding: 24px 20px !important;
        box-sizing: border-box !important;
        border-radius: 0px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        gap: 15px !important;
        z-index: 100 !important;
        margin: 0 !important;
    }

    .determines-descriptif-container:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
    }

    .determines-descriptif-text {
        width: 100% !important;
        height: auto !important;
        font-size: clamp(11px, 3.2vw, 13px) !important;
        line-height: 1.4em !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .determines-bouton-tout-voir {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 22px !important;
        height: 13px !important;
        margin-top: 10px !important;
    }

    .determines-descriptif-container:hover .determines-bouton-tout-voir {
        transform: translateY(4px) !important;
        filter: invert(40%) sepia(0%) saturate(0%) brightness(80%) !important;
    }

    /* Content grid list */
    .determines-content-list {
        gap: 50px !important;
    }

    /* Charte Graphique */
    .determines-charte-section {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        gap: 40px !important;
    }

    .determines-couleurs {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    .palette-card {
        width: 120px !important;
    }

    .palette-color-box {
        width: 120px !important;
        height: 120px !important;
        border-radius: 12px !important;
    }

    .palette-label {
        width: 100% !important;
        font-size: 18px !important;
    }

    .determines-typo-container {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 35px !important;
    }

    .typo-block {
        width: 100% !important;
    }

    .typo-title {
        font-size: 26px !important;
        line-height: 26px !important;
    }

    .typo-alphabet {
        font-size: 22px !important;
        line-height: 26px !important;
    }

    /* Posters Section: Stacked and centered */
    .determines-affiches-section {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .determines-affiche-wrapper {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 500px !important;
        height: auto !important;
        aspect-ratio: 870 / 650 !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    .determines-affiches-section:hover .determines-affiche-wrapper.affiche-1,
    .determines-affiches-section:hover .determines-affiche-wrapper.affiche-2 {
        transform: none !important;
    }

    .determines-affiches-section:hover .determines-affiche-wrapper.affiche-1:hover,
    .determines-affiches-section:hover .determines-affiche-wrapper.affiche-2:hover {
        transform: scale(1.02) !important;
    }

    /* Mockups Metro Section: Stacked and centered */
    .determines-mockups-section {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .determines-mockup-card {
        width: 100% !important;
        max-width: 500px !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .determines-mockup-card.metro-1 {
        aspect-ratio: 800 / 730 !important;
    }

    .determines-mockup-card.metro-2 {
        aspect-ratio: 880 / 730 !important;
    }

    /* Social Media Section with Phone Mockup scaling */
    .determines-reseaux-section {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1728 / 1182 !important;
        min-height: 480px !important;
        padding: 40px 10px !important;
        box-sizing: border-box !important;
    }

    .phone-mockup-container {
        position: relative !important;
        width: 100% !important;
        max-width: 320px !important;
        aspect-ratio: 585.52 / 934 !important;
        height: auto !important;
        background: none !important;
    }

    .phone-device-frame {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: url('../06- Spoiler Alert/Fond-instagram-les déterminés.webp') no-repeat center/contain !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }

    .phone-screen {
        position: absolute !important;
        left: 11.03% !important;
        top: 16.87% !important;
        width: 77.93% !important;
        height: 49.86% !important;
        border-radius: 4px !important;
        z-index: 1 !important;
    }

    .det-card-bg {
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
}

.det-card {
    cursor: pointer;
}


/* =========================================
   LIGHTBOX GALERIE PLEIN ÉCRAN
   ========================================= */
.roca-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.roca-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.roca-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.roca-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.roca-lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.roca-lightbox-close:hover {
    transform: scale(1.1);
    color: #FEE42F; /* Spoiler Alert Yellow accent */
}

.roca-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 40px;
    padding: 20px 15px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    border-radius: 4px;
}

.roca-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.roca-lightbox-prev {
    left: -70px;
}

.roca-lightbox-next {
    right: -70px;
}

@media (max-width: 1024px) {
    .roca-lightbox-prev {
        left: 10px;
    }
    .roca-lightbox-next {
        right: 10px;
    }
    .roca-lightbox-close {
        top: -40px;
        right: 0px;
    }
    .roca-lightbox-img {
        max-width: 85vw;
        max-height: 85vh;
    }
}

/* Tablet-specific overrides to make images/mockups larger */
@media (min-width: 768px) and (max-width: 1024px) {
    .determines-affiche-wrapper {
        max-width: 820px !important;
    }
    .determines-mockup-card {
        max-width: 820px !important;
    }
    .phone-mockup-container {
        max-width: 450px !important;
    }
}
