/* ===================================
   HD&YOU - VARIABLES & RESET
=================================== */
:root {
    --hd-yellow: #FDBF0A;
    --hd-black: #0a0a0a;
    --hd-white: #ffffff;
    --hd-off-white: #fafaf8;
    --hd-light-gray: #f5f5f5;
    --hd-mid-gray: #e8e8e8;
    --hd-text-dark: #1a1a1a;
    --hd-border-gray: #d0d0d0;
    --hd-text-medium: #666;
    --hd-success: #28a745;
    --hd-danger: #dc3545;
    --hd-warning: #ffc107;
    --hd-info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    /* height: 100%; */
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--hd-off-white);
    color: var(--hd-text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
    padding-top: 100px; /* Pour compenser le header fixe */
}

/* ===================================
   HEADER NAVIGATION
=================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--hd-yellow);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--hd-white) !important;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--hd-yellow) !important;
}

.navbar-brand span {
    color: var(--hd-yellow);
    font-size: 32px;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    color: var(--hd-white) !important;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hd-yellow);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--hd-yellow) !important;
}

.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--hd-white);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
    padding: 8px;
}

.icon-btn:hover {
    color: var(--hd-yellow);
}

/* Menu utilisateur déroulant */
.user-menu-container {
    position: relative;
}

.user-menu-btn {
    background: none;
    border: none;
    color: var(--hd-white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding: 8px;
}

.user-menu-btn:hover {
    color: var(--hd-yellow);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: var(--hd-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: var(--hd-white);
    transform: rotate(45deg);
    z-index: -1;
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, var(--hd-black) 0%, #2a2a2a 100%);
    border-bottom: 2px solid var(--hd-yellow);
}

.user-dropdown-header i {
    font-size: 42px;
    color: var(--hd-yellow);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--hd-white);
    word-break: break-word;
}

.user-role {
    font-size: 12px;
    color: var(--hd-yellow);
    font-weight: 500;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--hd-mid-gray);
    margin: 8px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--hd-text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: var(--hd-light-gray);
    color: var(--hd-black);
}

.user-dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--hd-text-medium);
    transition: color 0.2s ease;
}

.user-dropdown-item:hover i {
    color: var(--hd-yellow);
}

.user-dropdown-item span {
    font-size: 14px;
    font-weight: 500;
}

.user-dropdown-logout {
    color: var(--hd-danger);
}

.user-dropdown-logout:hover {
    background: rgba(220, 53, 69, 0.1);
}

.user-dropdown-logout i {
    color: var(--hd-danger);
}

.user-dropdown-logout:hover i {
    color: var(--hd-danger);
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--hd-white);
    font-size: 24px;
    cursor: pointer;
}

/* ===================================
   FOOTER
=================================== */
.footer {
    background: var(--hd-black);
    color: var(--hd-white);
    padding: 25px 0 15px;
    margin-top: auto;
    border-top: 2px solid var(--hd-yellow);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo et tagline */
.footer-brand {
    text-align: center;
    margin-bottom: 15px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--hd-white);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.footer-logo i {
    color: var(--hd-yellow);
    margin-right: 6px;
}

.footer-logo span {
    color: var(--hd-yellow);
}

.footer-tagline {
    font-size: 12px;
    color: var(--hd-mid-gray);
    margin: 0;
    font-weight: 400;
}

/* Séparateur */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

/* Contenu principal */
.footer-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-section {
    text-align: center;
}

.footer-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--hd-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Réseaux sociaux */
.footer .social-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(253, 191, 10, 0.1);
    border-radius: 50%;
    color: var(--hd-yellow);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer .social-link:hover {
    background: var(--hd-yellow);
    color: var(--hd-black);
    transform: translateY(-2px);
}

/* Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hd-yellow);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-contact-link:hover {
    opacity: 0.8;
}

.footer-contact-link i {
    color: var(--hd-yellow);
    font-size: 13px;
}

/* Bas du footer */
.footer-bottom {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright-text {
    color: var(--hd-text-medium);
    font-size: 12px;
    margin: 0 0 6px 0;
}

.footer .copyright-text span {
    color: var(--hd-yellow);
}

.footer-note {
    font-size: 11px;
    color: var(--hd-text-medium);
    opacity: 0.7;
    margin: 0;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 20px 0 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-logo {
        font-size: 20px;
    }
}

/* ===================================
   HERO SECTION
=================================== */
.hero {
    background: linear-gradient(135deg, var(--hd-black) 0%, #1a1a1a 100%);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(253, 191, 10, 0.03) 10px,
        rgba(253, 191, 10, 0.03) 20px
    );
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    color: var(--hd-white);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero h1 span {
    color: var(--hd-yellow);
}

.hero p {
    font-size: 20px;
    color: var(--hd-mid-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   BUTTONS
=================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--hd-yellow);
    color: var(--hd-black);
}

.btn-primary:hover {
    background: #e5ad09;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 191, 10, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--hd-white);
    border: 2px solid var(--hd-white);
}

.btn-secondary:hover {
    background: var(--hd-white);
    color: var(--hd-black);
}

.btn-success {
    background: var(--hd-success);
    color: var(--hd-white);
}

.btn-secondary {
    background: var(--hd-light-gray);
    color: var(--hd-text-dark);
    border: 2px solid var(--hd-border-gray);
}

.btn-secondary:hover {
    background: var(--hd-mid-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: var(--hd-danger);
    color: var(--hd-white);
}

.btn-outline {
    background: transparent;
    color: var(--hd-yellow);
    border: 2px solid var(--hd-yellow);
}

.btn-outline:hover {
    background: var(--hd-yellow);
    color: var(--hd-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 191, 10, 0.3);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

/* ===================================
   FORMS
=================================== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--hd-text-dark);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--hd-border-gray);
    border-radius: 4px;
    background: var(--hd-white);
    color: var(--hd-text-dark);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--hd-yellow);
    box-shadow: 0 0 0 3px rgba(253, 191, 10, 0.1);
}

.form-control::placeholder {
    color: var(--hd-text-medium);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

.invalid-feedback {
    color: var(--hd-danger);
    font-size: 13px;
    margin-top: 6px;
}

.is-invalid {
    border-color: var(--hd-danger) !important;
}

/* ===================================
   ALERTS
=================================== */
.alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: slideInDown 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
}

.alert i {
    font-size: 22px;
    flex-shrink: 0;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.alert-success::before {
    background: #10b981;
}

.alert-success i {
    color: #10b981;
}

.alert-danger,
.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #991b1b;
    font-weight: 600;
}

.alert-danger::before,
.alert-error::before {
    background: #ef4444;
}

.alert-danger i,
.alert-error i {
    color: #ef4444;
    animation: shake 0.5s ease-in-out;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(251, 146, 60, 0.08) 100%);
    border: 2px solid rgba(251, 146, 60, 0.4);
    color: #92400e;
}

.alert-warning::before {
    background: #fb923c;
}

.alert-warning i {
    color: #fb923c;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

.alert-info::before {
    background: #3b82f6;
}

.alert-info i {
    color: #3b82f6;
}

/* Animation pour les alertes */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Bouton de fermeture des alertes */
.alert-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: currentColor;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.alert-close-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
    transform: rotate(90deg);
}

.alert-close-btn i {
    font-size: 16px;
    animation: none !important;
}

/* ===================================
   CARDS
=================================== */
.card {
    background: var(--hd-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
    position: relative;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--hd-text-dark);
}

.card-text {
    color: var(--hd-text-medium);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-footer {
    padding: 16px 24px;
    background: var(--hd-light-gray);
    border-top: 1px solid var(--hd-border-gray);
}

/* ===================================
   GRID SYSTEM
=================================== */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-md-3 {
    width: 25%;
    padding: 0 15px;
}

.col-md-4 {
    width: 33.333%;
    padding: 0 15px;
}

.col-md-6 {
    width: 50%;
    padding: 0 15px;
}

.col-md-8 {
    width: 66.666%;
    padding: 0 15px;
}

.col-md-12 {
    width: 100%;
    padding: 0 15px;
}

/* ===================================
   UTILITIES
=================================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.p-5 { padding: 48px; }

.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ===================================
   BADGES
=================================== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
}

.badge-success { background: var(--hd-success); color: white; }
.badge-danger { background: var(--hd-danger); color: white; }
.badge-warning { background: var(--hd-warning); color: var(--hd-black); }
.badge-info { background: var(--hd-info); color: white; }
.badge-secondary { background: var(--hd-mid-gray); color: white; }
.badge-primary { background: var(--hd-yellow); color: var(--hd-black); }

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 1200px) {
    .navbar .container {
        padding: 0 30px;
    }
    
    .navbar-nav {
        gap: 35px;
    }
}

@media (max-width: 992px) {
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-md-12 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .navbar-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--hd-black);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        z-index: 997;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .navbar-nav.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    
    .navbar-nav.closing {
        display: flex;
        animation: slideUp 0.3s ease forwards;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes slideUp {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(-20px);
        }
    }
    
    .navbar-nav .nav-item {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 15px 20px;
        font-size: 16px;
        display: block;
        width: 100%;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(253, 191, 10, 0.1);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 20px;
        min-height: 70px;
    }
    
    .navbar-brand {
        font-size: 22px;
    }
    
    .navbar-brand span {
        font-size: 26px;
    }
    
    .main-content {
        padding-top: 80px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .card-body {
        padding: 16px;
    }
}

/* ===================================
   HOME PAGE SECTIONS
=================================== */
@media (max-width: 768px) {
    /* Responsive pour les sections avec header flex */
    section > .container > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px;
    }
    
    section > .container > div[style*="display: flex"] h2 {
        font-size: 28px !important;
    }
    
    section > .container > div[style*="display: flex"] .btn {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    /* Tablette - 2 colonnes pour les produits */
    .col-md-3 {
        width: 50% !important;
    }
}

/* ===================================
   IMAGE UPLOAD COMPONENT
=================================== */
.image-upload-container {
    margin-bottom: 30px;
}

.image-drop-zone {
    border: 3px dashed var(--hd-border-gray);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: var(--hd-off-white);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.image-drop-zone:hover {
    border-color: var(--hd-yellow);
    background: var(--hd-white);
}

.image-drop-zone.drag-over {
    border-color: var(--hd-yellow);
    background: #fffdf0;
    transform: scale(1.02);
}

.image-drop-zone.loading {
    opacity: 0.6;
    pointer-events: none;
}

.image-drop-zone.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--hd-border-gray);
    border-top-color: var(--hd-yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.image-drop-zone i {
    font-size: 48px;
    color: var(--hd-yellow);
    margin-bottom: 15px;
    display: block;
}

.image-drop-zone p {
    color: var(--hd-text-medium);
    margin-bottom: 15px;
}

.image-drop-zone .btn {
    margin-top: 10px;
}

.image-file-input {
    display: none;
}

/* Galerie d'images */
.images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--hd-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.image-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card:hover .image-actions {
    opacity: 1;
}

.image-actions .btn {
    padding: 8px 12px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.main-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--hd-yellow);
    color: var(--hd-black);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .images-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .image-preview {
        height: 150px;
    }
    
    .image-actions {
        opacity: 1;
    }
}

/* ===================================
   CART & CHECKOUT
=================================== */
.variant-option {
    transition: all 0.2s ease;
}

.variant-option:hover {
    border-color: var(--hd-yellow) !important;
    background: var(--hd-off-white);
}

.variant-option input[type="radio"]:checked + label {
    font-weight: 600;
}

.variant-option:has(input[type="radio"]:checked) {
    border-color: var(--hd-yellow) !important;
    background: #fffdf0;
}

.cart-item {
    transition: background 0.2s ease;
}

.cart-item:hover {
    background: var(--hd-off-white);
}

.cart-count {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ===================================
   HERO CAROUSEL FULLSCREEN
=================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: -100px; /* Compenser le padding de main-content */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(10, 10, 10, 0.75) 0%, 
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.75) 100%
    );
    z-index: 1;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 40px;
    text-align: center;
    color: var(--hd-white);
    animation: slideUp 0.8s ease-out;
}

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

.carousel-slide.active .carousel-content {
    animation: slideUp 0.8s ease-out 0.3s both;
}

.carousel-content .label {
    display: inline-block;
    background: var(--hd-yellow);
    color: var(--hd-black);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.carousel-content h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-content h1 .highlight {
    color: var(--hd-yellow);
}

.carousel-content p {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-content .btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Navigation du carrousel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* Augmenté pour toujours être au-dessus du contenu */
    background: rgba(10, 10, 10, 0.5);
    border: 2px solid var(--hd-yellow);
    color: var(--hd-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-nav:hover {
    background: var(--hd-yellow);
    color: var(--hd-black);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 40px;
}

.carousel-nav.next {
    right: 40px;
}

.carousel-nav i {
    font-size: 24px;
}

/* Indicateurs */
.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 15px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid var(--hd-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--hd-yellow);
    border-color: var(--hd-yellow);
    transform: scale(1.3);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    display: none; /* Masqué par défaut, visible uniquement sans les indicateurs */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator i {
    font-size: 32px;
    color: var(--hd-white);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1200px) {
    .carousel-content h1 {
        font-size: 56px;
    }
    
    .carousel-content p {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .carousel-content {
        padding: 0 90px; /* Espace pour les boutons de navigation */
    }
    
    .carousel-content h1 {
        font-size: 48px;
    }
    
    .carousel-content p {
        font-size: 18px;
    }
    
    .carousel-nav {
        width: 50px;
        height: 50px;
        z-index: 10;
    }
    
    .carousel-nav.prev {
        left: 20px;
    }
    
    .carousel-nav.next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        margin-top: -80px; /* Ajusté pour le header mobile */
    }
    
    .carousel-content {
        padding: 0 70px; /* Augmenté pour éviter les boutons de navigation */
        max-width: 100%;
    }
    
    .carousel-content h1 {
        font-size: 36px;
    }
    
    .carousel-content p {
        font-size: 16px;
    }
    
    .carousel-content .btn-group {
        flex-direction: column;
        align-items: stretch;
        padding: 0 10px; /* Padding supplémentaire pour les boutons */
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        z-index: 10; /* Augmenté pour être au-dessus du contenu */
    }
    
    .carousel-nav i {
        font-size: 18px;
    }
    
    .carousel-nav.prev {
        left: 15px;
    }
    
    .carousel-nav.next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .carousel-content {
        padding: 0 60px; /* Réduit légèrement mais toujours assez d'espace */
    }
    
    .carousel-content h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .carousel-content p {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .carousel-content .label {
        font-size: 11px;
        padding: 6px 16px;
    }
    
    .carousel-content .btn-group {
        padding: 0 5px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav.prev {
        left: 8px;
    }
    
    .carousel-nav.next {
        right: 8px;
    }
    
    .carousel-nav i {
        font-size: 16px;
    }
}

/* ============================================
   LIENS LÉGAUX DANS LE FOOTER
   ============================================ */
.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--hd-yellow) !important;
}

/* Style pour les erreurs de formulaire (cases CGV/RGPD) */
.form-error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}

/* Style pour les labels des cases à cocher légales */
.legal-checkbox-label {
    cursor: pointer;
    user-select: none;
}

.legal-checkbox-label:hover {
    opacity: 0.9;
}

