/* Style général et reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1a2233;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container principal du store */
.store-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Menu latéral gauche */
.sidebar-menu {
    width: 320px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08);
    padding: 2rem 0;
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
}

.menu-header {
    text-align: center;
    padding: 0 2rem 2rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.sidebar-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
    filter: brightness(0.8) contrast(1.2);
    display: none;
}

.menu-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a2233;
}

.tagline {
    font-size: 1.0rem;
    color: #6c757d;
    font-weight: 300;
    margin-left: 7px;
    font-style: italic;
}

/* Sections du menu */
.menu-sections {
    padding: 0 1rem;
}

.menu-section {
    margin-bottom: 2.5rem;
}

.menu-section h3 {
    font-size: 1.1rem;
    color: #0d6efd;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Groupes de plateformes mobiles */
.platform-group {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.platform-group:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1rem 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.platform-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a2233;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.ios-icon path {
    fill: #007AFF;
}

.android-icon path {
    fill: #3DDC84;
}

.platform-group .menu-links {
    padding: 0.5rem 0;
}

.platform-group .menu-links li {
    margin-bottom: 0.3rem;
}

.mobile-app {
    margin: 0 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-app:hover {
    background: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.2);
    transform: translateX(3px);
}

.menu-links {
    list-style: none;
}

.menu-links li {
    margin-bottom: 0.5rem;
}

.menu-item {
    display: block;
    padding: 1rem;
    color: #1a2233;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.02);
}

.menu-item:hover {
    background: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15);
}

.item-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.item-desc {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 300;
}

/* Contenu principal */
.main-content {
    flex: 1;
    margin-left: 320px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.store-header {
    text-align: center;
    margin-bottom: 3rem;
}

.store-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    background: #1a2233;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slogan {
    font-size: 1.3rem;
    color: #495057;
    font-weight: 300;
    line-height: 1.6;
}

/* Section de contact */
.contact-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    color: #0d6efd;
    color: #1a2233;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Styles du formulaire */
form label {
    display: block;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a2233;
}

form input, form textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: #1a2233;
    transition: all 0.3s ease;
}

form input::placeholder, form textarea::placeholder {
    color: rgba(26, 34, 51, 0.5);
}

form input:focus, form textarea:focus {
    border-color: #0d6efd;
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

button[type="submit"] {
    margin-top: 1.5rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    background: #1a2233;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Style pour le widget Cloudflare Turnstile */
.cf-turnstile {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
}

#formMessage {
    margin-top: 1rem;
    font-size: 1rem;
    min-height: 1.2em;
    color: #0d6efd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 2rem 1rem;
    }
    
    .store-header h1 {
        font-size: 2.2rem;
    }
    
    .slogan {
        font-size: 1.1rem;
    }
    
    .contact-section {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .menu-header {
        padding: 0 1.5rem 2rem 1.5rem;
    }
    
    .sidebar-logo {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .sidebar-menu {
        width: 100%;
    }
    
    .store-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-section {
        padding: 1.5rem;
    }
    
    .menu-toggle {
        top: 0.5rem;
        left: 0.5rem;
        font-size: 1.1rem;
        width: 45px;
        height: 45px;
    }
}

/* Menu toggle button pour mobile */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1002;
    background: rgba(13, 110, 253, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
    background: rgba(13, 110, 253, 1);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.menu-toggle span {
    display: block;
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: bold;
    line-height: 1;
}

/* Styles pour la sidebar en mode mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }
    
    .sidebar-menu {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 2px 0 30px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar-menu.open {
        transform: translateX(0);
    }
    
    /* Centrer le contenu du menu-header sur mobile */
    .menu-header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .menu-header > div {
        justify-content: center;
    }
    
    .tagline {
        margin-left: 48px;
    }
    
    /* Responsive pour les groupes de plateformes mobiles */
    .platform-group {
        margin-bottom: 1rem;
    }
    
    .platform-header {
        padding: 0.8rem 1rem 0.4rem 1rem;
    }
    
    .platform-name {
        font-size: 0.85rem;
    }
    
    .platform-icon {
        width: 18px;
        height: 18px;
    }
    
    .mobile-app {
        margin: 0 0.3rem;
        padding: 0.8rem;
    }

    /* Overlay pour fermer le menu en cliquant à l'extérieur */
    .sidebar-menu.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /*
        background: rgba(0, 0, 0, 0.3);
        */
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animations et effets */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-section {
    animation: fadeInUp 0.6s ease-out;
}

.menu-item {
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.15), transparent);
    transition: left 0.5s;
}

.menu-item:hover::before {
    left: 100%;
}