/* ===========================
   RESET ET BASE
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    padding-bottom: 0;
    margin-bottom: 0;
    /* Fix pour iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    position: relative;
    z-index: 1;
}

/* ===========================
   HERO SECTION PRINCIPAL
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(199, 48, 206, 0.85), rgba(215, 142, 236, 0.75));
    z-index: 1;
    animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.65; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    gap: 40px;
    min-height: 80vh;
}

/* ===========================
   SECTION PRINCIPALE (60%)
   =========================== */
.hero-main-content {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    height: 85vh;
    animation: slideInLeft 1s ease-out;
}

/* Scrollbar personnalisée */
.hero-main-content::-webkit-scrollbar {
    width: 8px;
}

.hero-main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.hero-main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.hero-main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===========================
   SECTION ACCUEIL
   =========================== */
.hero-welcome {
    padding: 40px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.welcome-header {
    text-align: center;
    margin-bottom: 40px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: none;
}

/* ===========================
   NAVIGATION DES PRODUITS - CORRIGÉE POUR iOS
   =========================== */
.product-navigation {
    color: white;
}

.product-navigation h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.theme-selector {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* BOUTONS THÈMES - FIX iOS SPÉCIFIQUE */
.theme-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 215, 0, 0.8);
    border-radius: 20px;
    padding: 40px 60px;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    min-height: 80px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 1px;
}

.theme-btn.compact {
    padding: 15px 25px;
    font-size: 16px;
    gap: 10px;
    min-height: auto;
    font-weight: 600;
}

.theme-selector.compact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
}

.theme-selector.compact .theme-btn {
    width: auto;
    min-width: 200px;
    flex: none;
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.theme-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 17px;
    z-index: 1;
}

.theme-btn span,
.theme-btn .theme-icon {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.theme-btn:hover::before {
    left: 100%;
}

.theme-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 1);
}

.theme-btn.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 1);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.5);
}

.theme-btn.active::after {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 255, 255, 0.1));
}

/* ===========================
   SECTIONS DE CATÉGORIES
   =========================== */
.categories-container {
    min-height: 400px;
}

.categories-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.categories-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* ===========================
   CARTES DE CATÉGORIES
   =========================== */
.category-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.category-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* ===========================
   SECTION PRODUITS
   =========================== */
.hero-products {
    padding: 40px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.products-header h3 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.back-button {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    font-size: 14px;
    font-weight: 600;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
    border-color: rgba(255, 215, 0, 0.5);
}

.back-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
    display: none;
}

.back-button:hover .back-icon {
    transform: translateX(-3px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.products-grid::-webkit-scrollbar {
    width: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* ===========================
   CARTES DE PRODUITS
   =========================== */
.hero-product-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: productFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-product-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.hero-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-product-card:hover .hero-product-image {
    transform: scale(1.1);
}

.hero-product-info {
    padding: 20px;
    text-align: center;
}

.hero-product-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-product-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.hero-product-call-btn {
    background: linear-gradient(135deg, #C930CE, #D78EEC);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(199, 48, 206, 0.3);
}

.hero-product-call-btn:hover {
    background: linear-gradient(135deg, #B02AAC, #C930CE);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(199, 48, 206, 0.4);
    text-decoration: none;
    color: white;
}

/* ===========================
   SECTION INFO DROITE (40%)
   =========================== */
.hero-info-side {
    flex: 0 0 40%;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: slideInRight 1s ease-out;
}

.info-content {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background-image: url('Images/Sexshop.jpg'), url('./Images/Sexshop.jpg'), url('../Images/Sexshop.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: local;
    background-color: #ff0000;
}

.info-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(199, 48, 206, 0.3), rgba(215, 142, 236, 0.2));
    border-radius: 25px;
    z-index: 1;
}

.title-section {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.title-section h1 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.3);
    }
    50% { 
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

.divider2 {
    width: 150px;
    height: 4px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: none;
    margin: 0 auto 30px;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.1); }
}

.description-section {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

/* ===========================
   SECTION APPEL - MODIFIÉE (NOUVELLE VERSION)
   =========================== */
.call-section {
    margin: 30px 0;
    position: relative;
    z-index: 2;
}

.btn-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    text-align: center;
}

.btn-container a {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 3px solid rgba(255, 215, 0, 0.5);
    border-radius: 25px;
    padding: 25px 35px;
    text-decoration: none;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-align: center;
}

.btn-container a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.6s;
}

.btn-container a:hover::before {
    left: 100%;
}

.btn-container a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.8);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 255, 255, 0.2));
}

.btn-container a p {
    margin: 8px 0;
    position: relative;
    z-index: 2;
}

.btn-container a p:first-child {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.phone-number {
    font-size: 32px;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: phoneGlow 3s ease-in-out infinite;
    letter-spacing: 2px;
}

/* ===========================
   HERO SECTION SECONDAIRE
   =========================== */
.hero2 {
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8f4ff 0%, #fff0ff 100%);
    position: relative;
    overflow: hidden;
}

.hero2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(199, 48, 206, 0.05), rgba(215, 142, 236, 0.05));
    z-index: 1;
}

.hero2-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.hero-i {
    flex: 1;
    max-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.hero-i:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.imageshop, .imageshop2 {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-i:hover .imageshop,
.hero-i:hover .imageshop2 {
    transform: scale(1.1);
}

/* ===========================
   BOUTON FLOTTANT
   =========================== */
.sticky-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #C930CE, #D78EEC);
    color: white;
    text-decoration: none;
    padding: 20px 25px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(199, 48, 206, 0.4);
    z-index: 1000;
    transition: all 0.4s ease;
    font-weight: 700;
    font-size: 16px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0.9;
    transform: scale(0.9);
    animation: bounce 2s infinite;
}

.sticky-call:hover {
    transform: translateY(-5px) scale(1);
    box-shadow: 0 20px 50px rgba(199, 48, 206, 0.6);
    text-decoration: none;
    color: white;
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(0.9);
    }
    40% {
        transform: translateY(-5px) scale(0.95);
    }
    60% {
        transform: translateY(-3px) scale(0.92);
    }
}

/* ===========================
   FOOTER - STATIQUE ET FIXE
   =========================== */
.footer {
    background: #2d1b69;
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: static !important;
    bottom: auto !important;
    transform: none !important;
    margin-top: auto;
    width: 100%;
    z-index: 10;
    clear: both;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-image {
    width: 60px;
    height: 60px;
}

.footer-text h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
}

.footer-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-separator {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-right li {
    margin-bottom: 10px;
}

.footer-right a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #D78EEC;
}

/* ===========================
   ANIMATIONS GÉNÉRALES
   =========================== */
@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-100px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(100px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ===========================
   RESPONSIVE DESIGN - FIX iOS SPÉCIFIQUE
   =========================== */
@media (max-width: 1200px) {
    .hero-content {
        padding: 30px;
        gap: 30px;
    }
    
    .title-section h1 {
        font-size: 42px;
    }
    
    .description-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-main-content,
    .hero-info-side {
        flex: none;
        width: 100%;
        max-height: none;
    }
    
    .hero-main-content {
        order: 2;
    }
    
    .hero-info-side {
        order: 1;
        min-height: 400px;
    }
    
    .hero-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.featured {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* FIX SPÉCIAL POUR iOS - iPhone 12 Pro Max et similaires */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 3) {
    .theme-btn {
        background: rgba(0, 0, 0, 0.7) !important;
        border: 3px solid #FFD700 !important;
        color: #FFFFFF !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
        font-weight: 800 !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    }
    
    .theme-btn::after {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(0, 0, 0, 0.1)) !important;
    }
    
    .theme-btn span,
    .theme-btn .theme-icon {
        color: #FFFFFF !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
        font-weight: 800 !important;
    }
    
    .theme-btn:hover,
    .theme-btn:active,
    .theme-btn:focus {
        background: rgba(0, 0, 0, 0.8) !important;
        border-color: #FFD700 !important;
        color: #FFFFFF !important;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 40px 0;
        margin-bottom: 20px;
    }
    
    .hero-content {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
        min-height: auto;
        align-items: flex-start;
    }
    
    .hero-main-content {
        height: auto;
        min-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .hero-info-side {
        order: 1;
        min-height: 400px;
    }
    
    .hero-main-content {
        order: 2;
    }
    
    .title-section h1 {
        font-size: 36px;
    }
    
    .description-section h2 {
        font-size: 24px;
    }
    
    .phone-number {
        font-size: 24px;
    }
    
    /* BOUTONS THÈMES MOBILE - FIX RENFORCÉ */
    .theme-selector {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 10px;
    }
    
    .theme-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 25px 30px;
        font-size: 18px;
        min-height: 70px;
        background: rgba(0, 0, 0, 0.6) !important;
        border: 3px solid rgba(255, 215, 0, 0.9) !important;
        color: #FFFFFF !important;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8) !important;
        font-weight: 700 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border-radius: 18px;
    }
    
    .theme-btn::before {
        background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    }
    
    .theme-btn::after {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.05)) !important;
        border-radius: 15px;
    }
    
    .theme-selector.compact {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .theme-selector.compact .theme-btn {
        width: auto;
        max-width: 180px;
        padding: 12px 20px;
        font-size: 14px;
        min-height: 50px;
        font-weight: 600;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        max-height: none;
        padding-right: 0;
    }
    
    .hero-products {
        padding: 20px 25px 40px 25px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .products-header h3 {
        font-size: 24px;
    }
    
    .back-button {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .hero-product-card {
        min-height: 280px;
    }
    
    .hero-product-info h4 {
        font-size: 16px;
    }
    
    .hero-product-call-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .hero-gallery {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .gallery-item.featured {
        transform: none;
        grid-column: auto;
    }
    
    .gallery-item.featured:hover {
        transform: translateY(-10px) scale(1.05);
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-separator {
        width: 80px;
        height: 2px;
        background: linear-gradient(to right, transparent, rgba(199, 48, 206, 0.5), transparent);
    }
    
    .sticky-call {
        bottom: 20px;
        right: 20px;
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .hero-main-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .hero-main-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .hero-main-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }
}

@media (max-width: 480px) {
    .title-section h1 {
        font-size: 28px;
    }
    
    .description-section h2 {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .phone-number {
        font-size: 20px;
    }
    
    .card-content h4 {
        font-size: 18px;
    }
    
    .card-content p {
        font-size: 14px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .back-button {
        align-self: flex-start;
    }
    
    .info-content {
        padding: 25px;
    }
    
    .features-list {
        gap: 12px;
    }
    
    .feature-item {
        padding: 12px 15px;
    }
    
    .sticky-call {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 15px;
    }
    
    .sticky-call-text {
        font-size: 12px;
    }
    
    .hero-welcome {
        padding: 25px 20px 50px 20px;
    }
    
    /* BOUTONS TRÈS PETITS ÉCRANS */
    .theme-btn {
        padding: 20px 25px;
        font-size: 16px;
        min-height: 60px;
        max-width: 280px;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 2px solid rgba(255, 215, 0, 1) !important;
        color: #FFFFFF !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 1) !important;
        font-weight: 700 !important;
    }
    
    .theme-selector.compact .theme-btn {
        padding: 10px 18px;
        font-size: 13px;
        min-height: 45px;
        max-width: 160px;
    }
    
    .category-card {
        min-height: 160px;
        padding: 20px 15px;
    }
    
    .categories-grid {
        padding: 15px 0 40px 0;
    }
}

/* FIX SPÉCIFIQUE POUR APPAREILS iOS HAUTE RÉSOLUTION */
@media only screen 
and (device-width : 428px) 
and (device-height : 926px) 
and (-webkit-device-pixel-ratio : 3) {
    .theme-btn {
        background: rgba(30, 30, 30, 0.9) !important;
        border: 3px solid #FFD700 !important;
        color: #FFFFFF !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 1) !important;
        font-weight: 800 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.2) !important;
    }
    
    .product-navigation h2 {
        color: #FFFFFF !important;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8) !important;
        font-weight: 800 !important;
    }
}

/* ===========================
   STYLES POUR ANIMATIONS RÉDUITES (CONNEXION LENTE)
   =========================== */
.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* ===========================
   STYLES POUR PLACEHOLDERS D'IMAGES
   =========================== */
.image-placeholder .placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.placeholder-icon {
    font-size: 48px;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 14px;
    font-weight: 600;
}

/* ===========================
   ANIMATION SPARKLE POUR EFFETS SPÉCIAUX
   =========================== */
@keyframes sparkleFloat {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-60px) scale(0);
        opacity: 0;
    }
}