/* ========================================
   VARIABLES ET STYLES GÉNÉRAUX - MODERNISÉ
   ======================================== */

:root {
    --primary-color: #003D82;
    --primary-dark: #002855;
    --secondary-color: #0087BE;
    --secondary-light: #00A8E8;
    --accent-color: #1BA0C8;
    --accent-light: #4BC3E8;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --dark-text: #1E293B;
    --light-text: #64748B;
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    --accent-gold: #14B8A6;
    --accent-gold-light: #2DD4BF;
    --gradient-primary: linear-gradient(135deg, #003D82 0%, #0087BE 100%);
    --gradient-secondary: linear-gradient(135deg, #0087BE 0%, #1BA0C8 100%);
    --gradient-accent: linear-gradient(135deg, #1BA0C8 0%, #4BC3E8 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 40px -10px rgba(0, 135, 190, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER ET NAVIGATION - STICKY MODERNE
   ======================================== */

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

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

.logo-combined {
    width: 400px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-combined:hover {
    transform: scale(1.02);
}

/* Navigation intégrée au header */
.navbar-inline {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    color: var(--dark-text);
    text-decoration: none;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--gradient-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    color: var(--secondary-color);
    background-color: rgba(0, 135, 190, 0.05);
}

.nav-menu a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active {
    color: var(--secondary-color);
    background-color: rgba(0, 135, 190, 0.1);
}

.nav-menu a.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */

.main-content {
    flex: 1;
}

.footer {
    flex-shrink: 0;
}

/* ========================================
   SECTIONS PRINCIPALES
   ======================================== */

.page-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h2 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.95;
    font-weight: 400;
}

/* ========================================
   SECTION HERO (Accueil) - MODERNE
   ======================================== */

.hero {
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.85) 0%, rgba(0, 135, 190, 0.75) 100%), 
                url('../assets/hero-background.png') center/cover no-repeat;
    color: var(--white);
    padding: 140px 0;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    opacity: 0.3;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    width: 100%;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ========================================
   BOUTONS - MODERNISÉS
   ======================================== */

.btn {
    display: inline-block;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn > * {
    position: relative;
    z-index: 1;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored);
    color: var(--white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px -10px rgba(20, 184, 166, 0.4);
    color: var(--white);
}

/* ========================================
   SECTION FEATURES - MODERNISÉE
   ======================================== */

.features {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
    color: var(--white);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 15px;
}

/* ========================================
   SECTION CTA - MODERNISÉE
   ======================================== */

.cta {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
}

/* ========================================
   SERVICES - MODERNISÉS
   ======================================== */

.services-detail {
    padding: 80px 0;
    background: var(--white);
}

.service-item {
    background: var(--white);
    padding: 40px;
    margin-bottom: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-secondary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-item:hover::before {
    transform: scaleY(1);
}

.service-item h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.service-item p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 16px;
}

/* ========================================
   TYPES DE FINANCEMENT - MODERNISÉS
   ======================================== */

.financing-types {
    padding: 80px 0;
    background: var(--light-bg);
}

.financing-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.financing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.financing-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-xl);
}

.financing-card:hover::after {
    transform: scaleX(1);
}

.financing-card h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

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

.financing-features li {
    padding: 12px 0;
    color: var(--light-text);
    padding-left: 32px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.financing-features li:hover {
    color: var(--dark-text);
}

.financing-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
}

/* ========================================
   SECTION CONTACT - MODERNISÉE
   ======================================== */

.contact-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 32px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.contact-item {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item p {
    color: var(--light-text);
    font-size: 16px;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--secondary-light);
    text-decoration: underline;
}

/* ========================================
   FORMULAIRE DE CONTACT - MODERNISÉ
   ======================================== */

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    color: var(--dark-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(0, 135, 190, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
}

.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 8px;
}

/* Messages de validation */
.success-message {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: 2px solid var(--success-color);
    box-shadow: var(--shadow-md);
}

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

.error-message {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: 2px solid var(--error-color);
    box-shadow: var(--shadow-md);
}

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

/* ========================================
   FOOTER - MODERNISÉ
   ======================================== */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 24px 0;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--accent-gold-light);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 15px;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 15px;
}

.footer-section ul li a:hover {
    color: var(--accent-gold-light);
    transform: translateX(4px);
}

.footer-section strong {
    color: var(--white);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .logo-combined {
        width: 320px;
    }

    .nav-menu a {
        padding: 10px 18px;
        font-size: 14px;
    }

    .hero-content h2 {
        font-size: 48px;
    }

    .page-header h2 {
        font-size: 40px;
    }
}

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

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .logo-combined {
        width: 280px;
    }

    .navbar-inline {
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }

    .nav-menu a {
        padding: 14px 20px;
        border-radius: 10px;
        text-align: center;
    }

    .nav-menu a::before {
        display: none;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: rgba(0, 135, 190, 0.1);
    }

    .hero {
        padding: 80px 0;
        min-height: 500px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .page-header {
        padding: 60px 0;
    }

    .page-header h2 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }

    .features {
        padding: 60px 0;
    }

    .features h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

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

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

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

    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: 32px;
    }

    .cta p {
        font-size: 18px;
    }

    .services-detail,
    .financing-types,
    .contact-section {
        padding: 60px 0;
    }
}

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

    .logo-combined {
        width: 240px;
    }

    .nav-menu a {
        padding: 12px 16px;
        font-size: 14px;
    }

    .hero {
        padding: 60px 0;
        min-height: 400px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-header {
        padding: 50px 0;
    }

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

    .page-header p {
        font-size: 15px;
    }

    .features {
        padding: 50px 0;
    }

    .features h2 {
        font-size: 28px;
    }

    .btn {
        padding: 14px 32px;
        font-size: 15px;
    }

    .feature-card,
    .service-item,
    .financing-card {
        padding: 28px 24px;
    }

    .feature-card h3,
    .service-item h3,
    .financing-card h3 {
        font-size: 20px;
    }

    .contact-form {
        padding: 28px 24px;
    }

    .footer-content {
        gap: 24px;
    }

    .footer-section h3 {
        font-size: 18px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 16px;
    }
}

/* ========================================
   UTILITAIRES
   ======================================== */

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

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

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

.mt-20 {
    margin-top: 20px;
}

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

.mt-40 {
    margin-top: 40px;
}

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

/* Animations au scroll */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
