
/* Variables et reset */
:root {
    --primary-dark: #153258;
    --primary-green: #23A974;
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --text-dark: #2D3748;
    --text-light: #718096;
    --gradient: linear-gradient(135deg, var(--primary-dark) 0%, #1a4a7a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Saira', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

section {
    padding: 100px 0;
}

/* Header et Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-scrolled {
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

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

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

.cta-button {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 50, 88, 0.3);
}

.cta-button-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-button-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTIwMCA4MDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzIzQTk3NCIgZmlsbC1vcGFjaXR5PSIwLjEiPjxjaXJjbGUgY3g9IjQwMCIgY3k9IjQwMCIgcj0iMzAwIi8+PGNpcmNsZSBjeD0iODAwIiBjeT0iMjAwIiByPSIyMDAiLz48Y2lyY2xlIGN4PSIxMDAiIGN5PSI2MDAiIHI9IjE1MCIvPjwvZz48L3N2Zz4=');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 600px;
    opacity: 0;
    animation: fadeInRight 1s ease forwards 0.5s;
}

/* Boutons d'application */
.app-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.app-button {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.app-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.app-button i {
    font-size: 1.8rem;
    margin-right: 10px;
}

.app-button-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-button-text span:first-child {
    font-size: 0.8rem;
    opacity: 0.8;
}

.app-button-text span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Features Section */
.features {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

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

.feature-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(35, 169, 116, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(35, 169, 116, 0.2);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-green);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Platforms Section */
.platforms {
    text-align: center;
}

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

.platform-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    perspective: 1000px;
}

.platform-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(21, 50, 88, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.platform-card:hover .platform-icon {
    transform: scale(1.1) rotateY(15deg);
    background-color: rgba(21, 50, 88, 0.2);
}

.platform-icon i {
    font-size: 2rem;
    color: var(--primary-dark);
}

/* Dashboard Preview */
.dashboard-preview {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.dashboard-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTIwMCA4MDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzIzQTk3NCIgZmlsbC1vcGFjaXR5PSIwLjA1Ij48Y2lyY2xlIGN4PSI0MDAiIGN5PSI0MDAiIHI9IjMwMCIvPjxjaXJjbGUgY3g9IjgwMCIgY3k9IjIwMCIgcj0iMjAwIi8+PGNpcmNsZSBjeD0iMTAwIiBjeT0iNjAwIiByPSIxNTAiLz48L2c+PC9zdmc+');
    opacity: 0.3;
}

.dashboard-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-text {
    flex: 1;
    max-width: 500px;
}

.dashboard-image {
    flex: 1;
    max-width: 600px;
    opacity: 0;
    animation: fadeInLeft 1s ease forwards 0.5s;
}

.dashboard-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.dashboard-image:hover img {
    transform: scale(1.02) rotateY(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.cta {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

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

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-green);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Éléments interactifs */
.interactive-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.rain-drop {
    position: absolute;
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom, rgba(35, 169, 116, 0.3), rgba(35, 169, 116, 0.1));
    border-radius: 0 0 5px 5px;
    animation: rain linear infinite;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 3s infinite alternate;
}

.sun {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #FFD700, #FF8C00);
    border-radius: 50%;
    box-shadow: 0 0 40px #FF8C00;
    top: 10%;
    right: 10%;
    animation: sunGlow 4s infinite alternate;
    cursor: pointer;
    pointer-events: auto;
    z-index: 100;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(35, 169, 116, 0.1);
    animation: float 15s infinite ease-in-out;
}

.pulse-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes rain {
    to {
        transform: translateY(100vh);
    }
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 1;
    }
}

@keyframes sunGlow {
    0% {
        box-shadow: 0 0 40px #FF8C00;
    }
    100% {
        box-shadow: 0 0 60px #FF8C00, 0 0 100px rgba(255, 140, 0, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

@keyframes rotate3d {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Effets 3D */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-image {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .dashboard-content {
        flex-direction: column;
        text-align: center;
    }
    
    .dashboard-text {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .app-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    section {
        padding: 70px 0;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 150px 0 70px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}