/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #007AFF, #0056CC, #4A90E2);
    color: white;
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Main content */
main {
    padding: 2rem 0;
}

section {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #007AFF;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

h3 {
    color: #495057;
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
}

p {
    margin-bottom: 1rem;
    color: #6c757d;
}

/* Hero Showcase Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    box-shadow: none;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.app-images {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.app-screen {
    width: 120px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-screen:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.2);
}

.hero-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #007AFF;
    border: none;
    padding: 0;
}

.hero-text p {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.7;
}

/* Features grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #007AFF;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.feature:hover::before {
    transform: scale(1);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.2);
    border-left-color: #4A90E2;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #007AFF;
    position: relative;
    z-index: 1;
}

.feature p {
    position: relative;
    z-index: 1;
}

/* Requirements section */
.requirements {
    background: #fff;
}

.requirements h3 {
    color: #28a745;
    border-left: 4px solid #28a745;
    padding-left: 1rem;
    margin-left: -1rem;
}

/* Lists */
ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

li strong {
    color: #495057;
}

/* Section with image layouts */
.section-with-image {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
}

.section-with-image.reverse {
    grid-template-columns: 300px 1fr;
}

.section-with-image.reverse .content-image {
    order: -1;
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.15);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #007AFF, #4A90E2, #0056CC);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.contact-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
    align-items: center;
}

.contact-section h2 {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #FFD700;
    text-decoration: underline;
}

.contact-image img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: #343a40;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer nav {
    margin-bottom: 1rem;
}

footer nav a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.2s ease;
}

footer nav a:hover {
    color: white;
}

footer p {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 1024px) {
    .showcase-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .section-with-image,
    .section-with-image.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .section-with-image.reverse .content-image {
        order: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 2rem 0;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .app-images {
        gap: 0.5rem;
    }
    
    .app-screen {
        width: 100px;
    }
    
    section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .contact-section h2 {
        font-size: 1.6rem;
    }
    
    .contact-item {
        padding: 0.8rem 1rem;
    }
    
    footer nav a {
        display: inline-block;
        margin: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .app-screen {
        width: 80px;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
}

/* Mentions légales specific styles */
#donnees-personnelles h3,
#responsabilite h2 {
    color: #dc3545;
}

#contact {
    background: linear-gradient(135deg, #007AFF, #0056CC);
    color: white;
}

#contact h2,
#contact p {
    color: white;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header {
        background: none !important;
        color: black !important;
    }
    
    section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    footer {
        background: none !important;
        color: black !important;
    }
}