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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header */
.header {
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    text-align: center;
    margin-top: 10px;
}

.logo {
    font-size: 36px;
    font-weight: 700;
    color: #2d5a3d;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 18px;
    color: #6b7280;
    font-weight: 400;
}

/* Menu hamburger */
.hamburger-menu {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(45, 90, 61, 0.1);
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2d5a3d;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu:hover span {
    background: #1f3d2a;
}

/* Menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.menu-overlay.active .menu-content {
    transform: translateX(0);
}

.menu-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d5a3d;
    color: white;
}

.menu-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.close-menu {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-nav {
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background: #f3f4f6;
    border-left-color: #2d5a3d;
    color: #2d5a3d;
}

.menu-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* Contenu principal */
.main-content {
    padding: 0 20px 40px;
}

/* Section hero */
.hero-section {
    margin: 30px 0;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.95) 0%, rgba(74, 124, 91, 0.95) 100%),
                url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgdmlld0JveD0iMCAwIDgwMCA2MDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMDAgMzAwQzEwMCAzMDAgMjAwIDI1MCAzMDAgMzAwQzQwMCAzNTAgNTAwIDI1MCA2MDAgMzAwQzcwMCAzNTAgODAwIDMwMCA4MDAgMzAwVjYwMEgwVjMwMFoiIGZpbGw9InVybCgjZ3JhZGllbnQpIiBmaWxsLW9wYWNpdHk9IjAuMSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJncmFkaWVudCIgeDE9IjAiIHkxPSIwIiB4Mj0iMSIgeTI9IjEiPgo8c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIi8+CjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 60px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(45, 90, 61, 0.4);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><path d="M150 350C200 300 300 250 450 280C600 310 750 250 850 300L850 600L0 600Z" fill="rgba(255,255,255,0.08)"/><path d="M0 450C150 400 300 350 500 380C700 410 850 350 1000 400L1000 600L0 600Z" fill="rgba(255,255,255,0.06)"/></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="2"/><circle cx="50" cy="50" r="35" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><circle cx="50" cy="50" r="25" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.6;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 3px 8px rgba(0,0,0,0.3);
    animation: slideInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 18px;
    color: #e8f5e8;
    margin-bottom: 30px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.cta-button {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    padding: 20px 45px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
    animation: slideInUp 0.8s ease-out 0.4s both;
    position: relative;
    z-index: 4;
}

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

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

.cta-button:active {
    transform: translateY(0);
}

/* Section des fonctionnalités */
.features-section {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon.insurance {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.feature-icon.support {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: #ffffff;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.feature-subtitle {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.4;
}

/* Section des services */
.services-section {
    margin: 50px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 40px;
}

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

.service-item {
    background: #ffffff;
    padding: 30px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

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

.service-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.service-item p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}


/* Footer */
.footer {
    background: #1f2937;
    color: #ffffff;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

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

.footer-section h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 28px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 16px 32px;
    }
    
    .features-section {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .menu-content {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 16px 40px;
    }
    
    .header {
        padding: 16px;
    }
    
    .hero-section {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .feature-card,
    .service-item {
        padding: 24px 20px;
    }
    
    .footer {
        padding: 30px 16px 16px;
    }
    
    .menu-content {
        width: 100%;
        max-width: 280px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0,0,0,0.1);
    }
    
    .main-content {
        padding: 0 40px 60px;
    }
    
    .hero-section {
        padding: 60px 40px;
    }
    
    .features-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1440px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.feature-card,
.service-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* Barre de séparation */
.menu-separator {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0;
}

/* Titre de la section */
.menu-title {
    padding: 0 20px;
    margin: 1px 0 1px;
    color: #2d5a3d;
    font-size: 18px;
    font-weight: 600;
}

/* Liens sociaux */
.social-info-wrap {
    padding: 20px;
    text-align: center;
}

.social-info-wrap a {
    margin: 0 10px;
    color: #2d5a3d;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-info-wrap a:hover {
    color: #1f3d2a;
}

/* Notice de copyright */
.copyright {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-size: 12px;
}

.copyright a {
    color: #2d5a3d;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states pour l'accessibilité */
button:focus,
a:focus {
    outline: 2px solid #2d5a3d;
    outline-offset: 2px;
}

/* Optimisations pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .hero-section::before {
        background-size: 200px 200px;
    }
}