:root { 
    --gold: #C5A059; 
    --black: #050505; 
    --dark: #111111; 
    --white: #ffffff; 
    --bg: #f8f9fa; 
    --gray: #e9ecef; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Outfit', sans-serif; 
}

body.rtl * {
    font-family: 'Cairo', sans-serif;
}

body {
    background: url('https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--black);
    transition: 0.3s;
    line-height: 1.6;
    animation: backgroundMove 60s linear infinite alternate;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-position: top center;
    }
    .container { padding: 40px 15px; }
    .order-section { padding: 30px 15px; border-radius: 15px; }
    .mru-display { font-size: 2.8rem; }
    .order-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .exceptional-logo-frame { transform: scale(0.9); margin-right: 0 !important;}
    .nav-wrapper { flex-direction: column; gap: 10px; }
    .nav-right { gap: 10px; flex-wrap: wrap; justify-content: center;}
    .flags-divider { gap: 4px !important; margin-left: 5px !important; }
    .nav-flag { height: 14px !important; }
    .social-icons { margin: 10px 0 0 0 !important; padding: 0 !important; border: none !important; justify-content: center; width: 100%;}
}

@keyframes backgroundMove {
    0% { background-position: center 0%; }
    100% { background-position: center 100%; }
}

/* BANDEAU DÉFILANT (MARQUEE) */
.top-marquee {
    background: var(--gold);
    color: var(--black);
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    text-transform: uppercase;
}

.marquee-track {
    display: flex;
    animation: marquee 25s linear infinite;
}

.marquee-txt {
    padding: 0 50px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

nav, .order-section, .pay-method, footer {
    background-color: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

nav { 
    background-color: rgba(5, 5, 5, 0.95) !important; 
    border-bottom: 2px solid var(--gold); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    padding: 15px 5%; 
}

.nav-wrapper { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

/* ZONE LOGO */
.logo-block {
    display: flex;
    align-items: center;
}

.exceptional-logo-frame {
    position: relative;
    padding: 6px 15px;
    margin-right: 15px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    border-top: 1px solid rgba(197, 160, 89, 0.6);
    border-bottom: 1px solid rgba(197, 160, 89, 0.6);
    background: transparent;
    transition: all 0.4s ease;
}

.exceptional-logo-frame::before, 
.exceptional-logo-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 40%;
    background: var(--gold);
    opacity: 0.8;
}
.exceptional-logo-frame::before { left: 0; }
.exceptional-logo-frame::after { right: 0; }

.logo-txt {
    font-family: 'Cinzel', serif; 
    margin: 0;
    line-height: 1;
}

.logo-txt.trio {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 6px;
    margin-right: -4px; 
}

.logo-txt.num {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-right: -3px;
    background: linear-gradient(135deg, #C5A059 0%, #fdf8c7 50%, #C5A059 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: subtleGold 6s linear infinite;
}

.exceptional-logo-frame:hover {
    transform: scale(1.02);
    border-top-color: var(--gold);
    border-bottom-color: var(--gold);
}

.exceptional-logo-frame:hover .logo-txt.trio {
    color: var(--gold);
    transition: color 0.3s ease;
}

@keyframes subtleGold {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.flags-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding-left: 15px;
    border-left: 1px solid rgba(197, 160, 89, 0.3);
    height: 25px;
}

.nav-flag {
    height: 16px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.nav-flag:hover { opacity: 1; }

.nav-right { display: flex; align-items: center; gap: 20px; }

/* ICONES RESEAUX SOCIAUX FIXÉES */
.social-icons {
    display: flex;
    gap: 15px;
    margin-right: 10px;
    padding-right: 15px;
    border-right: 1px solid rgba(197, 160, 89, 0.3);
    align-items: center;
}

.social-svg {
    height: 20px;
    width: auto;
    fill: var(--gold);
    transition: 0.3s;
    cursor: pointer;
}

.social-svg:hover {
    fill: var(--white);
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 2px 5px rgba(197, 160, 89, 0.5));
}

.badge-admin { color: #888; font-size: 0.8rem; text-transform: uppercase; border: 1px solid #333; padding: 8px 15px; border-radius: 5px; letter-spacing: 1px; }
.lang-selector button { background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.lang-selector button:hover { background: var(--gold); color: var(--black); }

.cart-icon-container { position: relative; cursor: pointer; }
.cart-icon { font-size: 1.5rem; color: var(--gold); }
.cart-count { position: absolute; top: -8px; right: -8px; background-color: var(--gold); color: var(--black); border-radius: 50%; padding: 2px 6px; font-size: 0.75rem; font-weight: bold; }

.help-trigger, .track-trigger, .web-trigger { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; cursor: pointer; transition: 0.3s; }
.help-trigger { background: var(--gold); color: black; }
.track-trigger { background: var(--black); color: var(--gold); border: 1px solid var(--gold); font-size: 1.1rem; }
.web-trigger { background: var(--white); color: var(--dark); border: 2px solid var(--gold); font-size: 1.2rem; }
.help-trigger:hover, .track-trigger:hover, .web-trigger:hover { transform: scale(1.1); box-shadow: 0 0 10px rgba(197, 160, 89, 0.5); }

/* BOUTON ET MENU LATÉRAL */
.menu-trigger {
    font-size: 1.8rem;
    color: var(--gold);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}
.menu-trigger:hover {
    color: var(--white);
    transform: scale(1.1);
}

.side-menu-content { 
    width: 100%; 
    max-width: 350px; 
    height: 100%; 
    padding: 30px 25px; 
    display: flex; 
    flex-direction: column; 
    background-color: var(--white) !important; 
    box-shadow: -10px 0 30px rgba(0,0,0,0.4); 
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    border-left: 4px solid var(--gold); 
    overflow-y: auto; 
}
body.rtl .side-menu-content { border-left: none; border-right: 4px solid var(--gold); }

.side-menu-links { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.side-menu-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: #f9f9f9; border-radius: 12px; cursor: pointer; transition: 0.3s; border: 1px solid #eee; font-weight: 600; color: var(--dark); font-size: 1.1rem; }
.side-menu-item:hover { background: var(--black); color: var(--gold); border-color: var(--gold); }
.menu-icon { font-size: 1.5rem; }

.side-menu-lang { margin-top: 30px; border-top: 2px solid #eee; padding-top: 20px; text-align: center; }
.side-menu-lang h4 { color: var(--dark); margin-bottom: 15px; font-size: 1.1rem; }
.lang-selector-side { display: flex; justify-content: center; gap: 10px; }
.lang-selector-side button { background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.lang-selector-side button:hover { background: var(--gold); color: var(--black); }

.help-steps { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }
.help-step { display: flex; align-items: center; background: rgba(240, 240, 240, 0.8); padding: 15px; border-radius: 12px; border-left: 4px solid var(--gold); }
.step-num { background: var(--black); color: var(--gold); font-weight: bold; width: 35px; height: 35px; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-right: 15px; flex-shrink: 0; font-size: 1.1rem; }
.help-step p { font-size: 0.95rem; color: var(--dark); margin: 0; font-weight: 600; }

.container { max-width: 1300px; margin: 0 auto; padding: 80px 5%; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

.hero { height: 50vh; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)); display: flex; align-items: center; justify-content: center; text-align: center; border-bottom: 5px solid var(--gold); }
.hero-box { padding: 0 20px; }
.hero h1 { color: var(--gold); font-size: 2.8rem; letter-spacing: 3px; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { color: var(--white); font-size: 1.2rem; font-weight: 300; letter-spacing: 1px; }

.brands-section { margin-bottom: 80px; }
h2 { text-align: center; font-size: 1.8rem; letter-spacing: 4px; margin-bottom: 50px; color: var(--dark); background: rgba(255,255,255,0.8); display: inline-block; padding: 10px 30px; border-radius: 10px; margin-left: 50%; transform: translateX(-50%); }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }

.brand-card { 
    position: relative;
    height: 160px;
    border-radius: 15px; 
    text-align: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    cursor: pointer; 
    border: 2px solid rgba(255,255,255,0.5);
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-card img { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    z-index: 1;
    filter: brightness(0.4); 
    transition: transform 0.5s ease, filter 0.5s ease;
}
.brand-card span { 
    position: relative;
    z-index: 2; 
    color: var(--white) !important;
    font-weight: 700; 
    font-size: 1.5rem; 
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}
.brand-card:hover { border-color: var(--gold); box-shadow: 0 15px 40px rgba(197, 160, 89, 0.4); }
.brand-card:hover img { transform: scale(1.1); filter: brightness(0.3); }

.order-section { padding: 60px; border-radius: 30px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.5); }
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 60px; }
h3 { font-size: 1.2rem; color: #555; margin-bottom: 30px; letter-spacing: 2px; border-bottom: 2px solid var(--gray); padding-bottom: 10px; font-weight: bold; }

.divider-or { text-align: center; font-weight: 800; font-size: 1.1rem; color: var(--gold); margin: 0 0 15px 0; letter-spacing: 2px; }

.drop-zone { border: 2px dashed var(--gold); height: 260px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: rgba(250, 250, 250, 0.7); cursor: pointer; transition: 0.3s; overflow: hidden; padding: 20px; }
.drop-zone:hover { background: rgba(240, 240, 240, 0.9); }
.drop-zone p { color: #555; font-size: 1.1rem; text-align: center; font-weight: bold; }
.drop-zone img { max-width: 100%; max-height: 100%; object-fit: contain; }

.form-group { margin-bottom: 30px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--dark); font-size: 1rem; }
.form-group select, .form-group input, #web-project-desc, #review-text { width: 100%; padding: 20px; border: 1px solid #ddd; border-radius: 12px; font-size: 1.1rem; outline: none; transition: 0.3s; background: rgba(255,255,255,0.8); font-family: 'Outfit', sans-serif; }
#web-project-desc, #review-text { resize: vertical; padding: 15px; }
.form-group select:focus, .form-group input:focus, #web-project-desc:focus, #review-text:focus { border-color: var(--gold); box-shadow: 0 0 15px rgba(197, 160, 89, 0.2); background: #fff; }

.payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 50px; }
.pay-method { padding: 30px; border: 2px solid #ddd; border-radius: 15px; text-align: center; cursor: pointer; transition: 0.3s; }
.pay-method h4 { font-size: 1.3rem; margin-bottom: 10px; }
.pay-method span { font-size: 0.9rem; color: #666; }
.pay-method.promo { border-color: var(--gold); }
.pay-method.promo span { color: var(--gold); font-weight: bold; font-size: 1rem; }
.pay-method.active { background: rgba(5, 5, 5, 0.9) !important; color: var(--white); border-color: var(--black); }
.pay-method.active span { color: var(--gold); }

.total-banner { background: rgba(5, 5, 5, 0.9); padding: 40px; border-radius: 20px; text-align: center; margin-bottom: 40px; border-left: 8px solid var(--gold); }
.total-banner p { color: var(--white); font-size: 1.2rem; margin-bottom: 10px; }
.mru-display { color: var(--gold); font-size: 4rem; font-weight: 700; line-height: 1; }

.action-buttons { text-align: center; }
button { padding: 25px; border-radius: 15px; font-weight: 700; font-size: 1.1rem; cursor: pointer; letter-spacing: 1px; transition: 0.4s; border: none; }
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: #b08d4b; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.5); }
.full-width { width: 100%; }

/* STYLE AVIS CLIENTS */
.empty-reviews {
    background: rgba(255,255,255,0.8);
    padding: 30px;
    border-radius: 15px;
    color: #666;
    font-style: italic;
    border: 1px dashed var(--gold);
    text-align: center;
    font-size: 1.1rem;
}

.chatbot-widget { position: fixed; bottom: 30px; right: 30px; width: 350px; background: rgba(255, 255, 255, 0.95); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); overflow: hidden; z-index: 2000; border: 1px solid #eee; }
.chat-head { background: var(--black); color: var(--gold); padding: 15px 20px; cursor: pointer; font-weight: bold; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.chat-window { padding: 10px; display: none; flex-direction: column; }
.chat-messages { height: 250px; overflow-y: auto; background: #f9f9f9; padding: 10px; border-radius: 10px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.bot-msg { align-self: flex-start; background: #e0e0e0; padding: 12px; border-radius: 12px; font-size: 0.9rem; max-width: 90%; line-height: 1.5; }
.user-msg { align-self: flex-end; background: var(--gold); color: black; padding: 10px; border-radius: 12px; font-size: 0.85rem; font-weight: bold; max-width: 85%; }
.chat-input-container { display: flex; gap: 5px; }
.chat-input-container input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 0.9rem; }
.chat-input-container button { background: var(--black); color: var(--gold); border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; }

.cart-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 2000; justify-content: flex-end; }
.cart-modal-content { 
    width: 100%; 
    max-width: 450px; 
    height: 100%; 
    padding: 30px 25px; 
    display: flex; 
    flex-direction: column; 
    box-shadow: -10px 0 30px rgba(0,0,0,0.4); 
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    border-left: 4px solid var(--gold); 
    overflow-y: auto;
    background-color: var(--white) !important;
}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 3px solid var(--gold); padding-bottom: 15px; }
.cart-header h2 { margin: 0; color: var(--black); letter-spacing: 1px; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; transform: none; background: transparent; padding: 0; display: block; text-align: left; }
.close-cart { font-size: 2.5rem; cursor: pointer; color: var(--black); transition: 0.3s; line-height: 1; padding: 0 5px; }
.close-cart:hover { color: var(--gold); transform: rotate(90deg); }

.cart-items-list { flex-grow: 1; overflow-y: auto; margin-bottom: 30px; }
.cart-item { display: flex; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; margin-right: 20px; border: 1px solid #ddd; background: var(--bg); }
.cart-item-details { flex-grow: 1; }
.cart-item-details h4 { font-size: 1rem; margin-bottom: 5px; color: var(--dark); font-weight: bold; }
.cart-item-details p { font-size: 0.9rem; color: #555; margin-bottom: 3px; }
.cart-item-remove { color: #ff4d4d; cursor: pointer; font-size: 1.5rem; transition: 0.3s; padding: 5px; }
.cart-item-remove:hover { color: #d93636; transform: scale(1.1); }

.empty-cart-msg { text-align: center; color: var(--dark); margin-top: 30px; font-weight: 600; font-size: 1.1rem; background: var(--gray); padding: 20px; border-radius: 10px; }

.cart-footer { border-top: 2px solid var(--gray); padding-top: 20px; }
.cart-customer-info { margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 20px; }
.cart-customer-info h4 { margin-bottom: 15px; color: var(--dark); font-size: 1.1rem; text-transform: uppercase; font-weight: bold; }
.cart-customer-info input { margin-bottom: 10px; width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 10px; font-size: 1rem; outline: none; transition: 0.3s; background: rgba(255,255,255,0.8); }
.cart-customer-info input:focus { border-color: var(--gold); box-shadow: 0 0 10px rgba(197, 160, 89, 0.2); background: #fff; }

.min-order-msg { color: #ff4d4d; font-size: 0.95rem; font-weight: bold; text-align: center; display: block; margin-bottom: 15px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.3rem; font-weight: bold; margin-bottom: 25px; }
#cart-total-mru { color: var(--gold); font-size: 2rem; }
.btn-checkout { width: 100%; padding: 20px; background: var(--black); color: var(--gold); border: none; border-radius: 12px; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: 0.3s; letter-spacing: 1px; }
.btn-checkout:hover { background: var(--gold); color: var(--black); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.4); }

.web-offers-container { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.web-offer { border: 2px solid #ddd; padding: 15px; border-radius: 12px; text-align: center; background: #fff; transition: 0.3s; cursor: pointer; position: relative; }
.web-offer:hover { border-color: var(--gold); }
.web-offer.selected { border-color: var(--gold); background: rgba(197, 160, 89, 0.05); box-shadow: 0 5px 15px rgba(197, 160, 89, 0.2); }
.web-offer.selected::after { content: '✅'; position: absolute; top: -10px; right: -10px; background: var(--black); color: var(--gold); width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.web-offer h4 { font-size: 1.1rem; color: var(--dark); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.web-price { font-size: 1.5rem; color: var(--gold); font-weight: bold; margin-bottom: 5px; }
.web-price span { font-size: 0.9rem; color: #555; font-weight: normal; }
.web-offer p { font-size: 0.9rem; color: #666; margin: 0; line-height: 1.4; }

.payment-note { background: #f9f9f9; border-left: 4px solid var(--black); padding: 15px; margin-top: 20px; font-size: 0.9rem; color: var(--dark); border-radius: 0 10px 10px 0; font-weight: 600; line-height: 1.5; }

body.rtl { direction: rtl; }
footer { text-align: center; padding: 40px; font-size: 1rem; color: #555; margin-top: 60px; font-weight: bold; }
@media (max-width: 450px) { .cart-modal-content { max-width: 100vw; padding: 25px 20px; } .cart-header h2 { font-size: 1.4rem; } }