/**
 * MICHEL STORE ET PARFUMERIE - Styles
 * Couleurs: Rouge #E63946, Bleu #1D3557, Noir #1a1a1a
 */

:root {
    --primary: #E63946;
    --primary-dark: #c62828;
    --primary-light: #ff6659;
    --secondary: #1D3557;
    --secondary-light: #457B9D;
    --accent: #A8DADC;
    --gold: #D4AF37;
    --dark: #1a1a1a;
    --gray-dark: #2d2d2d;
    --gray: #666;
    --gray-light: #999;
    --light: #f8f9fa;
    --white: #fff;
    --pink: #E91E63;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--gray-dark); background: var(--white); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; color: var(--dark); }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar { background: var(--dark); color: var(--white); padding: 8px 0; font-size: 0.85rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; row-gap: 5px; }
.top-bar-left, .top-bar-right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; row-gap: 5px; }
.top-bar span { opacity: 0.9; }
.top-bar i { color: var(--primary); margin-right: 5px; }
.whatsapp-link { color: #25D366 !important; font-weight: 500; }
.login-btn { background: var(--primary); color: var(--white) !important; padding: 6px 15px; border-radius: 20px; font-weight: 500; font-size: 0.85rem; }
.login-btn:hover { background: var(--primary-dark); color: var(--white) !important; }

/* Header */
.header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; padding: 15px 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 60px; width: auto; border-radius: 12px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.logo-tagline { font-size: 0.75rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 2px; }

/* Navigation */
.nav-menu { display: flex; list-style: none; gap: 5px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: flex; align-items: center; gap: 6px; padding: 12px 18px; color: var(--gray-dark); font-weight: 500; border-radius: var(--radius-sm); transition: var(--transition); }
.nav-menu > li > a:hover, .nav-menu > li > a.active { background: var(--light); color: var(--primary); }
.nav-menu > li > a i { font-size: 0.9rem; }

/* Dropdown */
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 220px; box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); list-style: none; z-index: 1000; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-toggle { display: none; }
.dropdown-menu li a { display: block; padding: 10px 20px; color: var(--gray-dark); }
.dropdown-menu li a:hover { background: var(--light); color: var(--primary); }

/* Search Form */
.search-form { display: flex; background: var(--light); border-radius: 50px; overflow: hidden; }
.search-form input { border: none; padding: 10px 18px; background: transparent; width: 200px; font-size: 0.9rem; }
.search-form input:focus { outline: none; }
.search-form button { background: var(--primary); color: var(--white); border: none; padding: 10px 18px; cursor: pointer; }
.search-form button:hover { background: var(--primary-dark); }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

/* Alerts */
.alert { padding: 15px 0; text-align: center; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 25px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #152a45; color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #c19b2e; color: var(--dark); }
.btn-outline-light { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 35px; font-size: 1.05rem; }
.btn-whatsapp { background: #25D366; color: var(--white); }

/* Badges */
.badge { display: inline-block; padding: 4px 12px; font-size: 0.75rem; font-weight: 600; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-primary { background: var(--primary); color: var(--white); }
.badge-secondary { background: var(--secondary); color: var(--white); }
.badge-success { background: var(--success); color: var(--white); }
.badge-warning { background: var(--warning); color: var(--dark); }
.badge-danger { background: var(--danger); color: var(--white); }
.badge-info { background: var(--info); color: var(--white); }
.badge-pink { background: var(--pink); color: var(--white); }
.badge-homme { background: var(--secondary); color: var(--white); }
.badge-femme { background: var(--pink); color: var(--white); }
.badge-mixte { background: #9C27B0; color: var(--white); }

/* Hero Section */
.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%); color: var(--white); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.hero h1 { font-size: 3rem; color: var(--white); margin-bottom: 15px; overflow-wrap: break-word; }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto 30px; overflow-wrap: break-word; }
.hero .container { position: relative; z-index: 2; }
.hero-slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.hero-slide { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(20, 20, 20, 0.55); z-index: 1; }

/* Section */
.section { padding: 60px 0; }
.section-light { background: var(--light); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 10px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--primary); }
.section-title p { color: var(--gray); margin-top: 15px; }

/* Product Grid & Card */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
/* Variante utilisée à côté d'une sidebar (boutique) : 3 colonnes sur desktop,
   les breakpoints responsive ci-dessous s'appliquent quand même par-dessus. */
.product-grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card-image { position: relative; padding-top: 100%; overflow: hidden; background: var(--light); }
.product-card-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.product-card-actions { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 5px; opacity: 0; transition: var(--transition); }
.product-card:hover .product-card-actions { opacity: 1; }
.product-card-actions a { width: 40px; height: 40px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); box-shadow: var(--shadow); }
.product-card-actions a:hover { background: var(--primary); color: var(--white); }
.product-card-content { padding: 20px; }
.product-card-category { font-size: 0.75rem; color: var(--gray-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.product-card-title { font-size: 1.1rem; margin-bottom: 5px; }
.product-card-title a { color: var(--dark); }
.product-card-title a:hover { color: var(--primary); }
.product-card-brand { font-size: 0.85rem; color: var(--gray); margin-bottom: 10px; }
.product-card-price { display: flex; align-items: center; flex-wrap: wrap; column-gap: 10px; row-gap: 2px; }
.product-card-price .current, .product-card-price .old { white-space: nowrap; }
.product-card-price .current { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.product-card-price .old { font-size: 0.9rem; color: var(--gray-light); text-decoration: line-through; }
.product-card-stock { margin-top: 10px; font-size: 0.8rem; }
.stock-ok { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }

/* Categories Grid */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.category-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 200px; }
.category-card-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2)); display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; color: var(--white); }
.category-card h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 5px; }
.category-card span { opacity: 0.8; font-size: 0.9rem; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--gray-dark); }
.form-group label span { color: var(--danger); }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font-body); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Card */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.card-title { font-size: 1.1rem; margin: 0; }
.card-body { padding: 20px; }

/* Footer */
.footer { background: #211f20; color: var(--white); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col h4 { color: var(--primary); font-size: 1.1rem; margin-bottom: 20px; font-family: var(--font-heading); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo img { height: 50px; border-radius: 10px; }
.footer-logo span { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; }
.footer-col p { color: rgba(255,255,255,0.7); margin-bottom: 20px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-col ul li a i { font-size: 0.7rem; color: var(--primary); }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list li i { color: var(--primary); margin-top: 3px; width: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); transition: var(--transition); }
.social-links a:hover { background: var(--primary); color: var(--white); }
.footer-bottom { margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.8rem; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); z-index: 999; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.whatsapp-float { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), 0 4px 20px rgba(37, 211, 102, 0.6); animation: pulse 2s infinite, whatsapp-ring 2s infinite; }
@keyframes whatsapp-ring { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), 0 4px 20px rgba(37, 211, 102, 0.6); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 4px 20px rgba(37, 211, 102, 0.6); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 20px rgba(37, 211, 102, 0.6); } }

/* WhatsApp en surbrillance partout : icône verte avec halo lumineux */
.fa-whatsapp { color: #25D366; filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.8)); }
/* Sur fond vert, l'icône reste blanche mais garde le halo */
.whatsapp-float .fa-whatsapp, .btn-whatsapp .fa-whatsapp, .whatsapp-cta h2 .fa-whatsapp, .whatsapp-icon-circle .fa-whatsapp { color: var(--white); filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)); }
.whatsapp-link { text-shadow: 0 0 8px rgba(37, 211, 102, 0.5); }
.btn-whatsapp { box-shadow: 0 0 14px rgba(37, 211, 102, 0.6); }
.btn-whatsapp:hover { box-shadow: 0 0 22px rgba(37, 211, 102, 0.9); }
.social-links a:has(.fa-whatsapp), .product-card-actions a:has(.fa-whatsapp) { background: #25D366; box-shadow: 0 0 12px rgba(37, 211, 102, 0.7); }
.social-links a:has(.fa-whatsapp) .fa-whatsapp, .product-card-actions a:has(.fa-whatsapp) .fa-whatsapp { color: var(--white); }
.social-links a:has(.fa-whatsapp):hover, .product-card-actions a:has(.fa-whatsapp):hover { background: #128C7E; }
.whatsapp-icon-circle { box-shadow: 0 0 14px rgba(37, 211, 102, 0.7); }

/* Chatbot produits */
.chatbot-float { position: fixed; bottom: 95px; right: 25px; width: 60px; height: 60px; background: var(--primary); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.6rem; box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4); z-index: 999; cursor: pointer; }
.chatbot-panel { position: fixed; bottom: 95px; right: 25px; width: 340px; max-width: calc(100vw - 50px); height: 450px; max-height: 70vh; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 1001; display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(15px); transition: var(--transition); }
.chatbot-panel.active { opacity: 1; visibility: visible; transform: translateY(0); }
.chatbot-header { background: var(--primary); color: var(--white); padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; flex-shrink: 0; }
.chatbot-header button { background: none; border: none; color: var(--white); font-size: 1.1rem; cursor: pointer; opacity: 0.8; }
.chatbot-header button:hover { opacity: 1; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.chatbot-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; white-space: pre-line; }
.chatbot-msg-bot { background: var(--light); color: var(--gray-dark); align-self: flex-start; border-bottom-left-radius: 4px; }
.chatbot-msg-user { background: var(--primary); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.chatbot-typing { opacity: 0.6; }
.chatbot-input { display: flex; border-top: 1px solid #eee; flex-shrink: 0; }
.chatbot-input input { flex: 1; border: none; padding: 14px; font-size: 0.9rem; font-family: inherit; }
.chatbot-input input:focus { outline: none; }
.chatbot-input button { background: var(--primary); color: var(--white); border: none; width: 50px; cursor: pointer; }
@media (max-width: 576px) { .chatbot-panel { right: 15px; bottom: 90px; } .chatbot-float { right: 15px; } }

/* Témoignages */
.testimonials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.testimonial-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 25px; position: relative; }
.testimonial-card .stars-display { margin-bottom: 10px; display: block; font-size: 0.95rem; }
.testimonial-message { color: var(--gray-dark); line-height: 1.7; font-style: italic; margin-bottom: 15px; }
.testimonial-author { font-weight: 600; color: var(--primary); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 30px; }
.page-link { padding: 10px 15px; background: var(--white); border: 1px solid #ddd; border-radius: var(--radius-sm); color: var(--gray-dark); }
.page-link:hover, .page-link.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Boutique layout (sidebar + grille produits) */
.boutique-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; }

/* Contact layout (coordonnées + formulaire) */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

/* Sélecteur d'étoiles (formulaire témoignage) */
.star-rating { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-rating label { font-size: 1.8rem; color: #ddd; cursor: pointer; transition: color 0.15s; }
.star-rating input:checked ~ label,
.star-rating input:focus-visible + label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--gold); }

/* Affichage étoiles en lecture seule (témoignages publiés) */
.stars-display { color: var(--gold); letter-spacing: 2px; }

/* Responsive */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-lg); max-height: 0; overflow: hidden; opacity: 0; transition: var(--transition); }
    .nav.active { display: block; max-height: 80vh; overflow-y: auto; opacity: 1; }
    .nav-menu { flex-direction: column; gap: 0; padding: 10px 0; }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a { padding: 14px 25px; border-radius: 0; }
    .dropdown-menu { display: none; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; padding: 0 0 0 20px; }
    .dropdown.open .dropdown-menu { display: block; }
    .dropdown-toggle { display: block; position: absolute; top: 8px; right: 16px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--gray-dark); cursor: pointer; }
    .dropdown-toggle i { transition: transform 0.2s ease; }
    .dropdown.open .dropdown-toggle i { transform: rotate(180deg); }
    .mobile-toggle { display: block; }
    .header .container { flex-wrap: wrap; row-gap: 12px; }
    .mobile-toggle { order: 1; margin-left: auto; }
    .header-actions { order: 2; width: 100%; }
    .search-form { display: flex; width: 100%; }
    .search-form input { flex: 1; width: auto; min-width: 0; }
}
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } .testimonials-grid { grid-template-columns: repeat(2, 1fr); } .categories-grid { grid-template-columns: 1fr; } .top-bar .container { flex-direction: column; gap: 5px; } .hero h1 { font-size: 2rem; } .section-title h2 { font-size: 1.6rem; } .boutique-layout { grid-template-columns: 1fr; } .contact-layout { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } .logo-text { display: none; } .testimonials-grid { grid-template-columns: 1fr; } }
/* Pages article et à propos (grilles en style inline, d'où les !important) */
.article-price span { white-space: nowrap; display: inline-block; }
.share-status { flex-basis: 100%; overflow-wrap: anywhere; font-size: 0.85rem; color: var(--gray); }
@media (max-width: 768px) {
    .article-layout { grid-template-columns: 1fr !important; gap: 25px !important; }
    .article-main-image { height: 350px !important; }
    .article-price { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; text-align: center; }
    .article-price span { white-space: normal; }
    .article-price span:first-child { font-size: 2rem !important; }
    .product-card-price { justify-content: center; text-align: center; }
    .product-card-price .current, .product-card-price .old { white-space: normal; }
    .article-actions { justify-content: center; }
    .about-features { grid-template-columns: 1fr !important; gap: 15px !important; }
}
@media (max-width: 576px) {
    .product-card-price .current { font-size: 1.05rem; }
    .product-card-price .old { font-size: 0.8rem; }
}
