/* Fichier : assets/css/style.css */
/* === VARIABLES & RESET === */
:root {
    --bg-color: #f9fafb; --white: #ffffff; --text-dark: #1f2937;
    --text-gray: #4b5563; --border-color: #e5e7eb; --primary-blue: #0056b3;
    --primary-hover: #004494; --whatsapp-green: #25D366; --phone-blue: #e0f2fe;
    --phone-blue-text: #0284c7; --email-pink: #fce7f3; --email-pink-text: #db2777;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius: 8px; --transition-smooth: 0.3s ease-in-out;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family); color: var(--text-dark); background-color: var(--bg-color); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; border-radius: var(--radius); transition: all 0.2s; }

.btn-primary { background-color: var(--primary-blue); color: var(--white); padding: 12px 24px; font-size: 1.05rem; font-weight: 600; display: inline-block; border-radius: var(--radius); box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2); transition: all var(--transition-smooth); text-align: center; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 86, 179, 0.3); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === ANIMATIONS === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.15s; } .delay-2 { animation-delay: 0.3s; } .delay-3 { animation-delay: 0.45s; }

/* === HEADER === */
header { background-color: var(--white); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 75px; position: relative; }
.logo { display: flex; align-items: center; }
.logo img { max-height: 50px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text-gray); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-blue); font-weight: bold; }
.controls { display: flex; align-items: center; gap: 15px; }

.lang-switch { background: var(--bg-color); border: 1px solid var(--border-color); padding: 6px 12px; font-weight: 600; color: var(--text-dark); border-radius: 4px; transition: 0.2s; }
.lang-switch:hover { background: var(--primary-blue); color: white; border-color: var(--primary-blue); }

.cart-btn { background: none; color: var(--text-dark); display: flex; align-items: center; gap: 8px; padding: 8px; position: relative; }
.cart-btn svg { width: 26px; height: 26px; color: var(--text-dark); }
.cart-count { background-color: var(--primary-blue); color: var(--white); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; position: absolute; top: 0; right: 0; font-weight: bold; border: 2px solid var(--white); }
[dir="rtl"] .cart-count { right: auto; left: 0; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.8rem; color: var(--text-dark); cursor: pointer; padding: 5px; }

/* === TOAST NOTIFICATION === */
.toast-notification { position: fixed; top: 90px; right: -100%; background: var(--whatsapp-green); color: white; padding: 12px 20px; border-radius: var(--radius); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3); display: flex; align-items: center; gap: 10px; z-index: 10000; font-weight: 600; transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.toast-notification.show { right: 20px; }
.toast-notification svg { width: 20px; height: 20px; }
[dir="rtl"] .toast-notification { right: auto; left: -100%; }
[dir="rtl"] .toast-notification.show { left: 20px; }

/* === HERO SECTION === */
.hero { background-color: var(--white); padding: 80px 0; border-bottom: 1px solid var(--border-color); overflow: hidden; }
.hero-container { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1; }
.hero h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 20px; color: var(--text-dark); }
.hero p { font-size: 1.15rem; color: var(--text-gray); margin-bottom: 30px; max-width: 90%; }
.hero-image { flex: 1; position: relative; }
.image-placeholder { width: 100%; height: 400px; background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 40px rgba(0,0,0,0.06); border: 1px solid #ffffff; overflow: hidden; }
.image-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.trust-badges { display: flex; flex-direction: column; gap: 12px; margin-top: 35px; }
.trust-badge { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--text-gray); font-weight: 500; }
.trust-badge svg { width: 20px; height: 20px; fill: var(--primary-blue); }

/* === WHATSAPP BUTTON === */
.whatsapp-btn { position: fixed; bottom: 30px; left: 30px; background-color: var(--whatsapp-green); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); z-index: 999; transition: all var(--transition-smooth); }
.whatsapp-btn:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4); }
.whatsapp-btn svg { width: 35px; height: 35px; fill: currentColor; }

/* === PRODUCTS SECTION === */
.products { padding: 80px 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 50px; color: var(--text-dark); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.card { background-color: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; transition: all var(--transition-smooth); overflow: hidden; }
.card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.06); transform: translateY(-5px); border-color: #d1d5db; }
.card-img { height: 200px; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; background-color: var(--bg-color); display: flex; justify-content: center; align-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-smooth); }
.card:hover .card-img img { transform: scale(1.05); }
.card-title { font-size: 1.2rem; margin-bottom: 12px; font-weight: 700; }
.card-specs { font-size: 0.95rem; color: var(--text-gray); margin-bottom: 20px; flex-grow: 1; line-height: 1.7; }
.card .btn-primary { width: 100%; text-align: center; margin-top: auto; }

/* === CONTACT SECTION === */
.contact { background-color: var(--white); padding: 80px 0; border-top: 1px solid var(--border-color); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group textarea { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: var(--radius); font-family: inherit; background-color: var(--bg-color); transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-blue); background-color: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info { background-color: var(--bg-color); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); display: flex; flex-direction: column; justify-content: center; }
.contact-info h3 { margin-bottom: 30px; font-size: 1.5rem; color: var(--text-dark); }
.contact-buttons-wrapper { display: flex; flex-direction: column; gap: 20px; }
.action-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 24px; border-radius: var(--radius); font-size: 1.1rem; font-weight: 700; transition: all 0.3s ease; text-decoration: none; border: 2px solid transparent; width: 100%; }
.action-btn svg { width: 24px; height: 24px; fill: currentColor; }
.btn-call { background-color: var(--phone-blue); color: var(--phone-blue-text); border-color: #bae6fd; }
.btn-call:hover { background-color: #bae6fd; transform: translateY(-3px); box-shadow: 0 8px 15px rgba(2, 132, 199, 0.15); }
.btn-email { background-color: var(--email-pink); color: var(--email-pink-text); border-color: #fbcfe8; }
.btn-email:hover { background-color: #fbcfe8; transform: translateY(-3px); box-shadow: 0 8px 15px rgba(219, 39, 119, 0.15); }
.contact-address { margin-top: 25px; font-size: 1.1rem; color: var(--text-gray); display: flex; align-items: center; gap: 10px; }

/* === FOOTER === */
.footer-modern { background-color: #111827; color: #f9fafb; padding: 60px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 2px; background-color: var(--primary-blue); }
[dir="rtl"] .footer-col h4::after { left: auto; right: 0; }
.footer-col p, .footer-col a { color: #9ca3af; line-height: 1.8; margin-bottom: 10px; display: block; transition: color 0.3s; }
.footer-col a:hover { color: var(--primary-blue); }
.footer-bottom { border-top: 1px solid #374151; padding-top: 20px; text-align: center; color: #6b7280; font-size: 0.9rem; }

/* === CART MODAL === */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; display: flex; justify-content: flex-end; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal { background: var(--white); width: 100%; max-width: 450px; height: 100vh; padding: 30px; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
.modal-overlay.active .modal { transform: translateX(0); }
[dir="rtl"] .modal-overlay { justify-content: flex-start; }
[dir="rtl"] .modal { transform: translateX(-100%); box-shadow: 10px 0 30px rgba(0,0,0,0.1); }
[dir="rtl"] .modal-overlay.active .modal { transform: translateX(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 2px solid var(--bg-color); padding-bottom: 15px; }
.modal-header h3 { font-size: 1.5rem; }
.close-btn { background: #f3f4f6; border-radius: 50%; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: var(--text-dark); transition: all 0.2s; }
.close-btn:hover { background: #ef4444; color: white; transform: rotate(90deg); }
.cart-items { flex-grow: 1; overflow-y: auto; margin-bottom: 25px; padding-right: 5px; }
.cart-items::-webkit-scrollbar { width: 6px; }
.cart-items::-webkit-scrollbar-thumb { background-color: #d1d5db; border-radius: 10px; }
.cart-item { display: flex; align-items: center; padding: 12px; margin-bottom: 12px; background: var(--bg-color); border-radius: 12px; border: 1px solid var(--border-color); transition: 0.2s; }
.cart-item-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; margin-right: 15px; background: var(--white); border: 1px solid var(--border-color); }
[dir="rtl"] .cart-item-img { margin-right: 0; margin-left: 15px; }
.cart-item-info { flex-grow: 1; font-weight: 600; font-size: 1.05rem; }
.remove-item { background: #fee2e2; color: #ef4444; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.remove-item:hover { background: #ef4444; color: white; }
.success-msg { display: none; background-color: #d1fae5; color: #065f46; padding: 15px; border-radius: var(--radius); margin-top: 20px; text-align: center; font-weight: 500; border: 1px solid #34d399; }

/* === RESPONSIVE === */
@media (max-width: 900px) { .contact-wrapper { grid-template-columns: 1fr; } .hero-container { flex-direction: column; text-align: center; } .hero p { margin: 0 auto 30px auto; } .trust-badges { align-items: center; } }
@media (max-width: 768px) { 
    .navbar { height: auto; padding: 15px 0; flex-wrap: wrap; }
    .mobile-menu-btn { display: block; order: 3; }
    .controls { order: 2; }
    .logo { order: 1; }
    .nav-links { position: absolute; top: 100%; left: 0; right: 0; background-color: var(--white); flex-direction: column; gap: 0; box-shadow: 0 10px 15px rgba(0,0,0,0.1); display: none; border-top: 1px solid var(--border-color); z-index: 99; } 
    .nav-links.active { display: flex; } 
    .nav-links a { padding: 20px; width: 100%; border-bottom: 1px solid var(--border-color); text-align: center; }
    .whatsapp-btn { bottom: 20px; left: 20px; width: 50px; height: 50px; }
    .modal { max-width: 100%; } 
}

[dir="rtl"] .hero-container { flex-direction: column; } 
[dir="rtl"] .trust-badge svg { margin-left: 10px; margin-right: 0; }
@media (min-width: 901px) { [dir="rtl"] .hero-container { flex-direction: row-reverse; } }