/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5FA45F;
    --primary-hover: #6FB46F;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --background: #ffffff;
    --background-secondary: #f5f5f7;
    --border-color: #d2d2d7;
    --card-background: rgba(255, 255, 255, 0.8);
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    height: 40px;
    display: inline-flex;
    align-items: center;
}

.nav-cta:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

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

/* Section */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 21px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.4;
}

.section-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.section-link:hover {
    color: var(--primary-hover);
}

.section-link .arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.section-link:hover .arrow {
    transform: translateX(5px);
}

.section-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.section-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.3;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    padding: 0 32px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    height: 60px;
    padding: 0 40px;
    font-size: 19px;
}

/* Hero Image / Device Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.device-mockup {
    position: relative;
}

.device-mockup.ipad {
    width: 700px;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.device-mockup .device-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Features Grid */
.features-overview {
    background: var(--background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--card-background);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Devices Section */
.devices-section {
    background: var(--background-secondary);
}

.devices-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.devices-text {
    text-align: left;
}

.devices-text .section-title {
    text-align: left;
}

.devices-text .section-description {
    text-align: left;
    margin: 0 0 30px 0;
}

.devices-features {
    list-style: none;
}

.devices-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 17px;
    color: var(--text-primary);
}

.check-icon {
    color: #34c759;
    font-size: 20px;
    font-weight: 700;
}

/* Image combinée pour mobile/tablette */
.device-combined {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 0;
}

.device-combined .combined-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

/* Devices animés pour desktop */
.device-showcase {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-mockup.ipad-showcase {
    width: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: absolute;
    left: 50px;
    bottom: 0;
    transform: rotate(0deg);
    z-index: 2;
    transition: none;
}

.device-mockup.iphone-showcase {
    width: 220px;
    border-radius: 30px;
    overflow: hidden;
    position: absolute;
    left: 50px;
    bottom: 0;
    transform: rotate(0deg);
    z-index: 1;
    transition: left 0.1s ease-out;
    will-change: left;
}

.device-mockup.ipad-showcase .device-image,
.device-mockup.iphone-showcase .device-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Dashboard Section */
.dashboard-section {
    background: var(--background);
}

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

.dashboard-card {
    background: var(--card-background);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.dashboard-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.dashboard-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.dashboard-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Dashboard Mockup */
.dashboard-mockup {
    display: flex;
    justify-content: center;
}

.browser-window {
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--border-color);
}

.browser-header {
    background: #f5f5f7;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d2d2d7;
}

.browser-title {
    flex: 1;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.browser-content {
    background: var(--background-secondary);
    padding: 0;
}

.dashboard-preview {
    display: flex;
    min-height: 400px;
}

.dashboard-sidebar {
    width: 200px;
    background: white;
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.sidebar-item {
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-item:hover {
    background: var(--background-secondary);
}

.sidebar-item.active {
    background: var(--primary-color);
    color: white;
}

.dashboard-main {
    flex: 1;
    padding: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Modules Section */
.modules-section {
    background: var(--background-secondary);
}

.modules-showcase {
    margin-top: 60px;
}

.module-featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px;
    border-radius: 24px;
    color: white;
    margin-bottom: 40px;
}

.module-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.module-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.module-featured h3 {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
}

.module-description {
    font-size: 21px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.module-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.module-feature {
    display: flex;
    gap: 20px;
}

.module-feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.module-feature h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.module-feature p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.4;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.module-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

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

.module-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.module-card h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.module-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.module-status {
    display: inline-block;
    padding: 6px 12px;
    background: var(--background-secondary);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.module-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.module-link:hover {
    color: var(--primary-hover);
}

.module-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.module-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #5FA45F 0%, #7FBF7F 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.cta-description {
    font-size: 21px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: var(--background-secondary);
    color: var(--primary-color);
}

.cta-buttons .btn-secondary {
    border-color: white;
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.cta-note {
    font-size: 15px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--background-secondary);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

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

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-hover);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

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

    .section-title {
        font-size: 40px;
    }

    .devices-content {
        grid-template-columns: 1fr;
    }

    .devices-text .section-title,
    .devices-text .section-description {
        text-align: center;
    }

    /* Afficher image combinée sur tablette/mobile */
    .device-combined {
        display: flex;
    }

    /* Cacher les devices animés sur tablette/mobile */
    .device-showcase {
        display: none;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

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

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

    .device-mockup.ipad {
        width: 100%;
        max-width: 400px;
        height: 300px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 18px;
    }

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

    /* Devices animés cachés sur mobile - image combinée affichée à la place */

    .dashboard-preview {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .module-featured {
        padding: 40px 30px;
    }

    .module-featured h3 {
        font-size: 32px;
    }

    .module-features-list {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 36px;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

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

.hero-title,
.hero-subtitle,
.hero-cta {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    animation-delay: 0.1s;
}

.hero-cta {
    animation-delay: 0.2s;
}
