/* Reset et variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* S'assurer que les images conservent leur transparence */
img {
    background: transparent !important;
    border: none !important;
}

:root {
    /* Palette de couleurs */
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --bg-card: #252525;
    --text-primary: #EAEAEA;
    --text-secondary: #B0B0B0;
    --text-muted: #888;
    --accent-gradient: linear-gradient(90deg, #3A82F8, #8A3AF8);
    --accent-blue: #3A82F8;
    --accent-purple: #8A3AF8;
    --border-color: #333;
    --hover-bg: #2A2A2A;
    
    /* Typographie */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Bornes et rayons */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --max-width: 900px;
}

/* Styles de base */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* En-tête - NOUVEAU DESIGN IMPOSANT */
header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 2px solid var(--accent-blue);
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-lg);
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

/* Conteneur du logo - OPTIMISÉ POUR LOGO FOND CLAIR */
.logo-container {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid rgba(58, 130, 248, 0.2);
    box-shadow: 
        0 8px 32px rgba(58, 130, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
    border-color: var(--accent-blue);
    box-shadow: 
        0 12px 40px rgba(58, 130, 248, 0.3),
        0 0 0 3px rgba(58, 130, 248, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Logo image - NOUVEAU LOGO AVEC FOND CLAIR */
.logo {
    width: 90%;
    height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    background: transparent !important;
    /* Optimisation pour logo fond clair */
    filter: 
        drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1))
        contrast(1.05)
        brightness(1.0)
        saturate(1.15);
    /* Assurer la visibilité */
    opacity: 1;
    z-index: 2;
}

.logo:hover {
    transform: scale(1.05);
}

/* Fallback temporaire - LOGO CSS STYLÉ BLEU */
.logo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    color: white;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(58, 130, 248, 0.3));
    position: relative;
    overflow: hidden;
}

.logo-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-placeholder:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #4A90E2, #9B59B6);
}

/* Texte de la marque - DESIGN CORPORATE IMPOSANT */
.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    max-width: 800px;
}

.brand-text h1 {
    font-size: 4rem;
    font-weight: 800;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(58, 130, 248, 0.5);
    position: relative;
}

.brand-text h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.app-name {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: var(--spacing-md);
    text-align: center;
    position: relative;
}

.app-name::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
}

/* Navigation repositionnée */
.nav-section {
    width: 100%;
    margin-top: var(--spacing-md);
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: var(--spacing-xl);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Contenu principal */
main {
    min-height: calc(100vh - 140px);
    padding: var(--spacing-xl) 0;
}

section {
    margin-bottom: var(--spacing-xl);
}

/* Section héros */
.hero-section {
    text-align: center;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xl);
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Section FAQ */
.faq-section h2,
.contact-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-blue);
}

.faq-item summary {
    padding: var(--spacing-md);
    font-weight: 600;
    cursor: pointer;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
    list-style: none;
    position: relative;
}

.faq-item summary:hover {
    background-color: var(--hover-bg);
}

.faq-item summary::after {
    content: '▼';
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    color: var(--accent-blue);
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-content {
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Section contact */
.contact-section p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.contact-section a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-section a:hover {
    color: var(--accent-purple);
}

/* Formulaire de contact */
.contact-form {
    background-color: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(58, 130, 248, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 130, 248, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Page de confidentialité */
.privacy-section {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.privacy-content {
    background-color: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.privacy-item {
    margin-bottom: var(--spacing-lg);
}

.privacy-item:last-child {
    margin-bottom: 0;
}

.privacy-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-blue);
}

.privacy-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.privacy-item a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-item a:hover {
    color: var(--accent-purple);
}

.back-link {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.btn-back {
    display: inline-block;
    background-color: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-back:hover {
    background-color: var(--hover-bg);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

/* Pied de page */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--accent-blue);
}

/* Design responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header reste centré mais ajusté */
    header {
        padding: var(--spacing-lg) 0;
    }
    
    /* Logo plus petit mais toujours imposant sur tablette */
    .logo-container {
        width: 160px;
        height: 160px;
    }
    
    .logo-placeholder {
        font-size: 3rem;
    }
    
    .brand-text h1 {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .brand-text h1::after {
        width: 100px;
        height: 3px;
    }
    
    .app-name {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
    
    .nav-links {
        gap: var(--spacing-lg);
        flex-wrap: wrap;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section h3 {
        font-size: 1.1rem;
    }
    
    .faq-section h2,
    .contact-section h2 {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .privacy-section h1 {
        font-size: 2rem;
    }
    
    .privacy-content {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
    }
    
    /* Header mobile mais toujours imposant */
    header {
        padding: var(--spacing-lg) 0;
    }
    
    .logo-section {
        gap: var(--spacing-md);
    }
    
    /* Logo mobile - toujours visible et professionnel */
    .logo-container {
        width: 120px;
        height: 120px;
    }
    
    .logo-placeholder {
        font-size: 2.5rem;
    }
    
    .brand-text h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .brand-text h1::after {
        width: 80px;
        height: 3px;
    }
    
    .app-name {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
    
    .nav-links {
        gap: var(--spacing-md);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    .hero-section h3 {
        font-size: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .privacy-content {
        padding: var(--spacing-md);
    }
}

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

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

/* Amélioration de l'accessibilité */
.faq-item summary:focus,
.form-group input:focus,
.form-group textarea:focus,
.submit-btn:focus,
.btn-back:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Style pour les navigateurs qui ne supportent pas backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    header {
        background-color: var(--bg-secondary);
    }
}
