/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1.6;
    font-size: 16px;
    color: #111;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #ffffff;
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-left img {
    height: 42px;
    width: auto;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.brand-name span {
    color: #e50914;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 460px;
    margin: 0 auto;
}

.search-bar {
    width: 100%;
    display: flex;
    background: #f2f2f2;
    border-radius: 8px;
    border: 1px solid #e50914;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
}

.search-bar button {
    padding: 0 16px;
    border: none;
    background: #e50914;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    min-height: 44px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.nav-right a {
    color: #333;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.nav-right a:hover { color: #000; }

.nav-right a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #e50914;
    transition: 0.3s ease;
}

.nav-right a:hover::after { width: 100%; }
.nav-right a.active { color: #e50914; }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 100;
    top: 100%;
    left: 0;
}
.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-content a:hover { background: #f8f8f8; color: #e50914; }
.dropdown:hover .dropdown-content { display: block; }

/* ===== NAVBAR RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 10px 4%;
        gap: 8px;
    }
    .nav-left { flex: 1; }
    .nav-center {
        order: 3;
        width: 100%;
        max-width: 100%;
        flex: none;
    }
    .nav-right {
        gap: 12px;
        font-size: 13px;
    }
    .nav-right a { font-size: 13px; }
}

@media (max-width: 480px) {
    .nav-right { gap: 8px; }
    .nav-right a { font-size: 12px; }
    .brand-name { font-size: 17px; }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 60px 5%;
    background: url('../images/hero.png') center/cover no-repeat;
    animation: heroBackgroundMove 20s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.75) 45%, rgba(255,255,255,0.25) 100%);
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    margin-bottom: 18px;
    animation: fadeUp 0.8s ease forwards;
}

.hero-content h1 span { color: #e50914; }

.hero-content p {
    font-size: clamp(15px, 2vw, 18px);
    color: #444;
    line-height: 1.6;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroBackgroundMove {
    0%   { background-position: right center; }
    50%  { background-position: right top; }
    100% { background-position: right center; }
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 50px 4%;
        text-align: center;
    }
    .hero-content { margin: auto; }
    .hero-buttons { justify-content: center; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    min-height: 48px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary { background: #e50914; color: #fff; }
.btn-primary:hover { background: #c40812; }

.btn-outline {
    border: 2px solid #e50914;
    color: #e50914;
    background: transparent;
}
.btn-outline:hover { background: #e50914; color: #fff; }

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 4%;
}

.section-header h2 {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
    color: #111;
}

.section-header p {
    font-size: 16px;
    color: #666;
    margin-top: 8px;
}

/* ===== FEATURED PRODUCTS ===== */
.featured-products {
    padding: 60px 5%;
    background: #ffffff;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    width: 100%;
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-card .price {
    font-size: 16px;
    font-weight: 700;
    color: #e50914;
    margin-bottom: 10px;
}

/* ===== OFFERS ===== */
.offers {
    padding: 60px 5%;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.offer-card {
    position: relative;
    background: #ffffff;
    padding: 40px 28px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
}

.offer-card:hover { transform: translateY(-5px); }

.offer-card h3 {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.offer-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.offer-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: #e50914;
    color: #fff;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
}

.offer-card.highlight { background: #111; }
.offer-card.highlight h3,
.offer-card.highlight p { color: #fff; }
.offer-card.highlight .offer-badge { background: #ffb703; color: #111; }

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 50px 5%;
    text-align: center;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

.page-header h1 {
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 700;
    color: #111;
}

.page-header p {
    font-size: 16px;
    color: #666;
    margin-top: 8px;
}

/* ===== PRODUCTS PAGE ===== */
.products-page {
    padding: 50px 5%;
    background: #f9f9f9;
}

@media (max-width: 768px) {
    .products-page { padding: 30px 4%; }
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-page {
    padding: 50px 5%;
    background: #f9f9f9;
}

.product-detail-container {
    max-width: 1100px;
    margin: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.product-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 14px;
    background: #f6f6f6;
    padding: 16px;
}

.product-info h1 {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
}

.product-price {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: #e50914;
    margin-bottom: 16px;
}

.product-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

@media (max-width: 900px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .product-detail-page { padding: 20px 4%; }
    .product-detail-container { padding: 16px; border-radius: 12px; }
}

/* ===== ORDER FORM ===== */
.order-form {
    width: 100%;
    margin-top: 20px;
}

.order-form input,
.order-form select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    min-height: 48px;
}

.order-form input:focus { border-color: #e50914; }

/* ===== ORDER SUCCESS ===== */
.order-success {
    max-width: 540px;
    margin: 50px auto;
    text-align: center;
    padding: 0 16px;
}

.order-success h2 {
    font-size: clamp(22px, 4vw, 30px);
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .order-success { margin: 30px auto; }
}

/* ===== CONTACT PAGE ===== */
.contact-page {
    padding: 60px 5%;
    background: #f9f9f9;
}

.contact-container {
    max-width: 1100px;
    margin: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.contact-info h1 {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 14px;
}

.contact-info p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    outline: none;
    min-height: 48px;
    width: 100%;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus { border-color: #e50914; }

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .contact-page { padding: 40px 4%; }
}

/* ===== FOOTER ===== */
.footer {
    background: #0f0f0f;
    color: #ddd;
    padding: 60px 5% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 36px;
}

.footer-brand {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.brand-red { color: #e50914; }

.footer-col h4 {
    font-size: 17px;
    margin-bottom: 14px;
    color: #fff;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #aaa;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li { margin-bottom: 9px; }

.footer-col ul li a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 18px;
    font-size: 13px;
    color: #777;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 4% 16px;
        text-align: center;
    }
    .footer-container { gap: 24px; }
}

/* ===== CART PAGE ===== */
@media (max-width: 600px) {
    .cart-item-actions {
        flex-direction: column;
        gap: 6px;
    }
}

/* ===== ADMIN SIDEBAR BADGE ===== */
.products-filter h3 { font-size: 18px; margin-bottom: 14px; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ===== SHORT DESC ON CARDS ===== */
.short-desc {
    color: #666;
    font-size: 13px;
    margin: 4px 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== DISCOUNT BADGE ===== */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e50914;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 1;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-right: 4px;
}

.price-new {
    color: #e50914;
    font-weight: 700;
    font-size: 17px;
}

/* ===== SEE MORE LINK ===== */
.see-more-link {
    display: inline-block;
    margin-top: 18px;
    color: #e50914;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #e50914;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}
.see-more-link:hover { opacity: 0.75; }

/* ===== MOBILE GLOBAL FIXES ===== */
@media (max-width: 480px) {
    body { font-size: 15px; }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .featured-products,
    .offers,
    .products-page {
        padding: 30px 4%;
    }

    .section-header { margin-bottom: 24px; }
    .section-header h2 { font-size: 22px; }

    .offers-grid { gap: 16px; }
    .offer-card { padding: 28px 18px; }

    .product-card img { height: 150px; }
    .product-card h3 { font-size: 14px; }
    .product-card .price { font-size: 14px; }
}

/* ===== NAV MOBILE (hamburger + panneau) ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: #111;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.nav-scrim.open { display: block; opacity: 1; }

.nav-cart-link { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.cart-badge {
    background: #e50914;
    color: #fff;
    border-radius: 50%;
    padding: 1px 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    .nav-right {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 320px);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 90px 26px 30px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: -8px 0 30px rgba(0,0,0,0.15);
        overflow-y: auto;
    }
    .nav-right.open { transform: translateX(0); }
    .nav-right a {
        width: 100%;
        padding: 13px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px;
    }
    .nav-right a::after { display: none; }
    .dropdown { width: 100%; }
    .dropdown-content {
        display: block;
        position: static;
        box-shadow: none;
        padding-left: 14px;
        min-width: 0;
        border-left: 2px solid #f0f0f0;
    }
    .dropdown:hover .dropdown-content { display: block; }
}

/* ===== FOOTER SOCIAL ICONS ===== */
.footer-social { display: flex; gap: 12px; margin-top: 15px; }
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.social-icon:hover { transform: translateY(-3px); opacity: 0.9; }
.social-facebook { background: #1877F2; }
.social-tiktok   { background: #000; }
.social-linkedin { background: #0A66C2; }
.social-instagram { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); }
.social-youtube   { background: #FF0000; }
.social-x         { background: #000; }
.footer-social { flex-wrap: wrap; }
.footer-phones-label { margin: 10px 0 4px; font-weight: 600; }
.footer-phones { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-phones li a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; opacity: 0.9; transition: opacity .2s; }
.footer-phones li a:hover { opacity: 1; text-decoration: underline; }
.footer-phones li a i { color: #25D366; }

/* ===== HERO — lisibilité mobile ===== */
/* L'image reste bien visible ; seul le texte a un fond dédié, pas toute la photo. */
@media (max-width: 768px) {
    .hero-overlay {
        background: rgba(255,255,255,0.28);
    }
    .hero {
        background-position: center 20% !important;
        animation: none;
        min-height: 60vh;
        align-items: flex-end;
        padding-bottom: 40px;
    }
    .hero-content {
        background: rgba(255,255,255,0.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 20px;
        padding: 26px 22px;
        box-shadow: 0 10px 34px rgba(0,0,0,0.1);
    }
}

/* ===== PRODUCT CARD — micro-interactions ===== */
.product-card { overflow: hidden; }
.product-card img { transition: transform 0.4s ease; }
.product-card:hover img { transform: scale(1.06); }

.product-card.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.product-card.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ACCESSIBILITÉ — focus clavier visible ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e50914;
    outline-offset: 2px;
}

@media (max-width: 360px) {
    .navbar { padding: 8px 3%; }
    .brand-name { font-size: 15px; }
    .nav-left img { height: 34px; }
}