/* preview.css */



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    
    background: #eeeeee;
    overflow-x: hidden;
}

/* ==============================
   HEADER
============================== */

.preview-header {
    width: 100%;
    height: 110px;
    background: #6fa8d8;
    position: relative;
    display: flex;
    align-items: center;
}

.preview-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(
        to right,
        #e5243b 0 6%,
        #dda63a 6% 12%,
        #4c9f38 12% 18%,
        #c5192d 18% 24%,
        #ff3a21 24% 30%,
        #26bde2 30% 36%,
        #fcc30b 36% 42%,
        #a21942 42% 48%,
        #fd6925 48% 54%,
        #dd1367 54% 60%,
        #fd9d24 60% 66%,
        #bf8b2e 66% 72%,
        #3f7e44 72% 78%,
        #0a97d9 78% 84%,
        #56c02b 84% 90%,
        #00689d 90% 100%
    );
}

.header-container {
    width: 72%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.header-logo img {
    height: 45px;
    display: block;
}

/* ==============================
   HERO
============================== */

.hero-section {
    width: 100%;
    min-height: 390px;
    display: flex;
    align-items: center;
    background: linear-gradient(110deg, #f9b000 0%, #f8b300 30%, #006ab6 75%, #25a8de 100%);
}

.hero-container {
    width: 72%;
    margin: auto;
    color: #ffffff;
    padding: 60px 0 50px;
}

.hero-container h1 {
    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero-container p {
    width: 650px;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    margin-bottom: 45px;
}

.hero-btn {
    display: inline-block;
    color: #000000;
    border: 2px solid #000000;
    padding: 8px 34px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s ease;
}

.hero-btn:hover {
    background: #000000;
    color: #ffffff;
}

/* ==============================
   BANDE ODD EN IMAGE
============================== */

.odd-image-section {
    width: 100%;
    background: #181818;
    overflow: hidden;
}

.odd-image-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==============================
   CATEGORIES
============================== */

.category-section {
    width: 100%;
    height: 85px;
    background: #000c08;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #ffffff;
}

.category-content span {
    font-size: 12px;
    font-weight: 700;
}

.category-content h2 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: 1px;
}

.category-content img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

/* ==============================
   SECTIONS THEMATIQUES
============================== */

.theme {
    width: 100%;
    min-height: 760px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.theme-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.06);
    transition: transform 1.4s ease, filter 1.4s ease;
    z-index: 1;
}

.theme-one .theme-bg {
    background-image: url("images/image11.jpg");
}

.theme-two .theme-bg {
    background-image: url("images/blaze.jpg");
}

.theme:hover .theme-bg {
    transform: scale(1.11);
}

.theme-container {
    width: 72%;
    margin: auto;
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 90px 0;
}

.theme-container span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.theme-container h2 {
    font-size: clamp(48px, 5.4vw, 78px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.theme-container p {
    width: 520px;
    max-width: 100%;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 800;
}

/* Animation spéciale quand la section arrive au scroll */
.theme:has(.reveal.active) .theme-bg {
    animation: bgMove 9s ease forwards;
}

@keyframes bgMove {
    from {
        transform: scale(1.13) translateY(20px);
    }

    to {
        transform: scale(1.04) translateY(0);
    }
}

/* ==============================
   BARRE NOIRE
============================== */

.preview-black-bar {
    width: 100%;
    height: 35px;
    background: #000c08;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

/* ==============================
   FINAL
============================== */

.final-section {
    min-height: 360px;
    background: #eeeeee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-container {
    text-align: center;
    color: #1e73be;
    padding: 55px 20px;
}

.final-container h2 {
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 22px;
}

.final-container p {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    font-weight: 500;
}

.final-btn {
    width: 225px;
    height: 66px;
    margin: auto;
    background: #1e73be;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 22px;
    text-decoration: none;
    position: relative;
    transition: 0.3s ease;
}

.final-btn span {
    font-size: 14px;
    font-weight: 800;
}

.final-btn small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    opacity: 0.85;
}

.final-btn b {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 28px;
    font-weight: 300;
}

.final-btn:hover {
    background: #155f9f;
    transform: translateY(-4px);
}

/* ==============================
   APPARITION AU SCROLL
============================== */

.reveal {
    opacity: 0;
    transform: translateY(55px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.theme-container.reveal span {
    opacity: 0;
    transform: translateY(25px);
    transition: 0.7s ease 0.1s;
}

.theme-container.reveal h2 {
    opacity: 0;
    transform: translateY(35px);
    transition: 0.8s ease 0.25s;
}

.theme-container.reveal p {
    opacity: 0;
    transform: translateY(35px);
    transition: 0.8s ease 0.4s;
}

.theme-container.reveal.active span,
.theme-container.reveal.active h2,
.theme-container.reveal.active p {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   RESPONSIVE
============================== */

@media screen and (max-width: 992px) {
    .header-container,
    .hero-container,
    .theme-container {
        width: 86%;
    }

    .preview-header {
        height: 95px;
    }

    .hero-section {
        min-height: 380px;
    }

    .theme {
        min-height: 680px;
    }

    .theme-container h2 {
        font-size: clamp(42px, 7vw, 62px);
    }
}

@media screen and (max-width: 768px) {
    .preview-header {
        height: 78px;
    }

    .header-container {
        width: 90%;
    }

    .header-title {
        font-size: 10px;
    }

    .header-logo img {
        height: 34px;
    }

    .hero-section {
        min-height: 460px;
        align-items: flex-end;
    }

    .hero-container {
        width: 90%;
        padding: 70px 0 55px;
    }

    .hero-container h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero-container p {
        font-size: 13px;
        margin-bottom: 35px;
    }

    .odd-image-section img {
        min-height: 120px;
        object-fit: cover;
        object-position: center;
    }

    .category-section {
        height: 75px;
    }

    .category-content {
        gap: 10px;
    }

    .category-content h2 {
        font-size: 24px;
    }

    .category-content span {
        font-size: 10px;
    }

    .category-content img {
        width: 28px;
        height: 28px;
    }

    .theme {
        min-height: 650px;
        align-items: flex-end;
    }

    .theme-bg {
        background-position: center;
    }

    .theme-container {
        width: 90%;
        padding: 0 0 65px;
    }

    .theme-container span {
        font-size: 11px;
    }

    .theme-container h2 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .theme-container p {
        font-size: 14px;
        font-weight: 700;
    }

    .final-section {
        min-height: 330px;
    }

    .final-container h2 {
        font-size: 25px;
    }
}

@media screen and (max-width: 480px) {
    .hero-container h1 {
        font-size: 37px;
    }

    .hero-btn {
        padding: 8px 26px;
        font-size: 12px;
    }

    .theme {
        min-height: 610px;
    }

    .theme-container h2 {
        font-size: 32px;
    }

    .theme-container p {
        font-size: 13px;
    }

    .final-container h2 {
        font-size: 22px;
    }

    .final-btn {
        width: 210px;
    }
}