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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    padding-bottom: 100px; /* Espace pour la navigation mobile */
}

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

/* Variables CSS iOS */
:root {
    --primary-color: #0891b2;
    --primary-dark: #0e7490;
    --secondary-color: #6b7280;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --background: #000000;
    --card-background: #1d1d1f;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-radius: 16px;
    --border-radius-large: 24px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 8px 30px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Bandeau contact */
.contact-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    opacity: 0.8;
}

/* Header Desktop */
.main-header {
    background: var(--card-background);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-name h1 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary-color);
}

.nav-link i {
    font-size: 16px;
}

.contact-btn {
    background: var(--primary-color);
    color: white !important;
    font-weight: 600;
}

.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Sections générales */
.section-content {
    display: none;
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

.section-content.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0 20px 0;
    background: linear-gradient(135deg, var(--background) 0%, #0f172a 100%);
    min-height: calc(100vh - 250px);
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Process Section dans Hero */
.process-section-hero {
    margin: 48px 0 32px 0;
}

.process-section-hero h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    min-width: 180px;
    justify-content: center;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-card);
}

.cta-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.cta-button.secondary {
    background: var(--card-background);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-card);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.service-card {
    background: var(--card-background);
    padding: 32px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.service-card.featured .service-icon i {
    color: white;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(8, 145, 178, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.service-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-card li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    opacity: 0.9;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--primary-color);
}

.service-card.featured li::before {
    color: white;
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Advantages Section */
.advantages-section {
    background: var(--background);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.advantage-card {
    background: var(--card-background);
    padding: 32px;
    border-radius: var(--border-radius-large);
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    font-size: 32px;
    color: white;
}

.advantage-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.advantage-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Process Section */
.process-section {
    background: var(--card-background);
    padding: 48px;
    border-radius: var(--border-radius-large);
    margin-top: 48px;
}

.process-section h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 32px;
    font-weight: 700;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.process-step {
    text-align: center;
    background: var(--card-background);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.process-step h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.process-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--card-background);
    padding: 32px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-card);
    height: fit-content;
}

.contact-info-card h3 {
    font-size: 20px;
    margin-bottom: 24px;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--background);
    border-radius: var(--border-radius);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 16px;
}

.contact-details strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
}

.quick-contact {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.quick-contact h4 {
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.quick-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Contact Form */
.contact-form-card {
    background: var(--card-background);
    padding: 32px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-card);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
    background: var(--background);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
    background: var(--card-background);
}

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

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

/* Navigation Mobile */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-background);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 12px;
    transition: var(--transition);
    min-width: 60px;
}

.mobile-nav .nav-item.active {
    color: var(--primary-color);
    background: rgba(8, 145, 178, 0.1);
}

.mobile-nav .nav-item i {
    font-size: 20px;
}

.mobile-nav .nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Footer */
.main-footer {
    background: var(--card-background);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
    padding: 32px 0;
    margin-top: 48px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    font-size: 18px;
    font-weight: 600;
}

.footer-logo p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.footer-text {
    text-align: right;
}

.footer-text p {
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* Messages */
.message {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    
    body {
        padding-bottom: 100px;
    }
}

@media (min-width: 1025px) {
    .mobile-nav {
        display: none;
    }
    
    body {
        padding-bottom: 20px;
    }
}

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-section-hero h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 30px 0 15px 0;
        min-height: calc(100vh - 200px);
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .process-section-hero {
        margin: 32px 0 24px 0;
    }

    .process-section-hero h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 0 10px 0;
        min-height: calc(100vh - 150px);
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .service-card,
    .advantage-card,
    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }

    .process-section {
        padding: 32px 24px;
    }

    .process-section-hero {
        margin: 24px 0 16px 0;
    }

    .process-section-hero h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
}

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

.service-card,
.advantage-card,
.process-step {
    animation: fadeInUp 0.6s ease-out;
}

/* Light mode support */
@media (prefers-color-scheme: light) {
    :root {
        --text-primary: #1d1d1f;
        --text-secondary: #6e6e73;
        --background: #f5f5f7;
        --card-background: #ffffff;
        --border-color: rgba(107, 114, 128, 0.2);
        --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
        --shadow-elevated: 0 8px 30px rgba(0, 0, 0, 0.12);
    }
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* iOS-like animations */
.service-card,
.advantage-card,
.contact-item,
.process-step {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Focus styles pour l'accessibilité */
.nav-link:focus,
.cta-button:focus,
.submit-btn:focus,
.mobile-nav .nav-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}