/*
   VARIABLES
*/
:root {
    --main-red: #d01012;
    --main-yellow: #f6be00;
    --dark-grey: #333;
    --light-grey: #f4f4f4;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark-grey);
}

/*
   HEADER & NAVIGATION
*/
header {
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    width: 60px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.2s;
}

.site-logo:hover {
    transform: scale(1.1);
}

.site-title {
    font-family: "Arial Rounded MT Bold", Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--main-red);
    text-shadow: 2px 2px 0px var(--main-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: default;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: var(--main-yellow);
    color: var(--dark-grey);
}

/*
   ACCUEIL VIDEO
*/
.hero-video {
    position: relative;
    height: 90vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bgVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: brightness(0.6);
}

.video-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 60px;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: contentFadeUp 1s ease-out forwards;
    opacity: 0;
}

.video-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--white), var(--main-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.video-content p {
    font-size: 1.4em;
    color: var(--light-grey);
    font-weight: 300;
}

@keyframes contentFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mute-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--white);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mute-btn:hover {
    background-color: var(--main-red);
    border-color: var(--main-red);
    transform: scale(1.1);
}

/*
   MISE EN PAGE GÉNÉRALE
*/
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: var(--dark-grey);
    text-transform: uppercase;
}

/*
   STYLE DES CARTES
*/
.card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.image-box {
    height: 200px;
    background-color: var(--white);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    padding: 10px;
    border: 1px solid var(--light-grey);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-info {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-info h3 {
    font-size: 1em;
    margin: 0;
}

.theme-tag {
    font-size: 0.8em;
    color: #888;
    text-transform: uppercase;
    font-weight: bold;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.price {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--main-red);
    margin-top: auto;
}

.add-cart-btn {
    background-color: var(--main-yellow);
    color: var(--dark-grey);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.add-cart-btn:hover {
    transform: scale(1.1);
    background-color: var(--main-red);
    color: var(--white);
}

/*
   CARROUSEL
*/
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    width: 100%;
}

.carousel-window {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.product-row {
    display: flex;
    gap: 30px;
    width: 100%;
    will-change: transform;
}

.product-row .card {
    flex: 0 0 calc((100% - 60px) / 3);
}

.nav-btn {
    background-color: var(--dark-grey);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
}

.nav-btn:hover {
    background-color: var(--main-red);
}

.product-grid {
    display: flex;
    gap: 30px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.product-grid .card {
    min-width: 250px;
    flex: 1;
}

/*
   PAGE CATALOGUE
*/
.catalogue-hero {
    background-color: var(--light-grey);
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.catalogue-hero h1 {
    font-size: 2.5em;
    color: var(--dark-grey);
    text-transform: uppercase;
}

.catalogue-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.sidebar-filters {
    width: 250px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    flex-shrink: 0;
}

.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--main-red);
}

.filter-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95em;
    transition: color 0.2s;
}

.filter-group label:hover {
    color: var(--main-red);
}

.filter-group input[type="checkbox"] {
    accent-color: var(--main-red);
    width: 16px;
    height: 16px;
}

.filter-btn {
    width: 100%;
    background-color: var(--dark-grey);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.filter-btn:hover {
    background-color: var(--main-red);
}

.catalogue-content {
    flex: 1;
}

.catalogue-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sort-select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    outline: none;
    cursor: pointer;
}

/*
   PAGE BOUTIQUES
*/
.boutique-hero {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--light-grey);
    margin-bottom: 40px;
}

.boutique-hero h1 {
    font-size: 2.5em;
    color: var(--dark-grey);
    text-transform: uppercase;
}

.boutiques-wrapper {
    display: flex;
    gap: 80px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 40px;
    transition: opacity 0.3s ease;
}

.boutique-column-left,
.boutique-column-right {
    display: flex;
    flex-direction: column;
    gap: 60px;
    flex: 1;
    max-width: 450px;
}

.boutique-column-right {
    margin-top: 100px;
}

.boutique-info {
    text-align: center;
    padding: 15px 0;
    color: var(--dark-grey);
}

.boutique-info h3 {
    color: var(--main-red);
    margin-bottom: 5px;
}

.hidden-view {
    display: none;
}

.back-arrow {
    background: none;
    border: none;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--dark-grey);
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.back-arrow:hover {
    color: var(--main-red);
}

.single-store-detail {
    display: none;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

.single-store-detail h2 {
    color: var(--main-red);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 15px;
}

.full-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.full-info-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-block h4 {
    display: inline-block;
    color: var(--dark-grey);
    margin-bottom: 5px;
    font-size: 1.2em;
    min-width: 100px;
}

.info-block p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

.info-block.description {
    background-color: var(--light-grey);
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
   ACCUEIL : SLIDER STYLE LEGO
*/
.lego-slider-section {
    background-color: var(--white);
    padding: 60px 0;
    margin-top: 40px;
}

.lego-slider-wrapper {
    position: relative;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: #f8f8f8;
    margin-bottom: 30px;
}

.lego-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.lego-slide.active {
    opacity: 1;
    z-index: 2;
}

.lego-slide-text {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--white);
}

.badge-slider {
    background-color: var(--main-yellow);
    color: var(--dark-grey);
    padding: 5px 12px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    margin-bottom: 15px;
    border-radius: 4px;
}

.lego-slide-text h2 {
    font-size: 2.8em;
    text-align: left;
    margin-bottom: 20px;
    color: var(--dark-grey);
    font-weight: 800;
}

.lego-slide-text p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}

.lego-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ddd;
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: background 0.3s;
    border: 1px solid #ccc;
}

.lego-btn:hover {
    background-color: var(--white);
    border-color: var(--dark-grey);
}

.lego-slide-image {
    height: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.lego-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.progress-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.progress-pill {
    width: 60px;
    height: 8px;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--main-yellow);
    border-radius: 10px;
}

.progress-pill.active .progress-bar {
    animation: progressFill 5s linear forwards;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/*
   ACCUEIL PROMOS
*/
.news-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.news-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 350px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 15px;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.promo-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--main-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    z-index: 2;
}

.news-content {
    padding: 20px;
    text-align: left;
}

.news-content h3 {
    color: var(--dark-grey);
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.news-content p {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.read-more {
    color: var(--main-red);
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

/*
   PAGE CONTACT
*/
.contact-form-card {
    margin-bottom: 30px;
}

.lego-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.form-group label {
    font-weight: 700;
    color: var(--dark-grey);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--light-grey);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--main-yellow);
}

.submit-btn {
    background-color: var(--main-red);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--main-yellow);
    color: var(--dark-grey);
    transform: scale(1.02);
}

.map-card {
    padding: 10px;
}

/*
   POOTER
*/
footer {
    background-color: var(--dark-grey);
    color: var(--white);
    padding-top: 60px;
    margin-top: 80px;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    width: 80px;
    margin-bottom: 20px;
    display: block;
}

.region-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.region-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #bbb;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 300;
}

.footer-links-list a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons span {
    font-weight: bold;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5em;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--main-yellow);
}

.copyright-bar {
    background-color: #222;
    text-align: center;
    padding: 20px;
    font-size: 0.8em;
    color: #999;
}

/*
   RESPONSIVE
*/
@media (max-width: 768px) {
    .site-title {
        font-size: 20px;
    }
    .header-left {
        gap: 10px;
    }
    .site-logo {
        width: 40px;
    }
    .video-content {
        padding: 30px 20px;
        width: 90%;
    }
    .video-content h1 {
        font-size: 2.2em;
    }
    .catalogue-layout {
        flex-direction: column;
    }
    .sidebar-filters {
        width: 100%;
    }
    .product-row .card {
        flex: 0 0 100%;
    }
    .product-row {
        gap: 15px;
    }
    .boutiques-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .boutique-column-right {
        margin-top: 0;
    }
    .full-img {
        height: auto;
    }
    .lego-slider-wrapper {
        height: auto;
    }
    .lego-slide {
        position: relative;
        grid-template-columns: 1fr;
        opacity: 1;
        display: none;
    }
    .lego-slide.active {
        display: grid;
    }
    .lego-slide-image {
        height: 250px;
    }
    .lego-slide-text {
        padding: 30px;
    }
    .lego-slide-text h2 {
        font-size: 1.8em;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
