/* 
 * Styles CSS - Iris Capital
 * Design moderne et professionnel avec palette de couleurs différente
 */

/* ===== VARIABLES CSS ===== */
:root {
    /* Palette de couleurs - Design différent */
    --primary-color: #2c5530; /* Vert foncé élégant */
    --secondary-color: #6b8e23; /* Vert olive */
    --accent-color: #d4af37; /* Or élégant */
    --accent-light: #f4e4a6; /* Or clair */
    
    /* Couleurs neutres */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typographie */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-lg: 1.125rem;  /* 18px */
    --font-size-xl: 1.25rem;   /* 20px */
    --font-size-2xl: 1.5rem;   /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */
    --font-size-4xl: 2.25rem;  /* 36px */
    
    /* Espacements */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    
    /* Ombres */
    --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);
    
    /* Bordures */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ===== UTILITY CLASSES ===== */
.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-800);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--white);
}

.logo-text {
    font-family: var(--font-heading);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-6);
    align-items: center;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-light);
}

.nav-link.active {
    background-color: var(--accent-color);
    color: var(--gray-800);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--font-size-base);
    gap: var(--space-2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: var(--gray-800);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--gray-900);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    padding: var(--space-16) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><polygon fill="%232c5530" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--font-size-4xl);
    color: var(--accent-light);
    margin-bottom: var(--space-6);
}

.hero p {
    font-size: var(--font-size-xl);
    color: var(--white);
    margin-bottom: var(--space-8);
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-16) 0;
}

.section-light {
    background-color: var(--gray-50);
}

.section-dark {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title h2 {
    font-size: var(--font-size-3xl);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
}

.section-title p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== GRIDS ===== */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--white);
    font-size: var(--font-size-2xl);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-4);
}

.card p {
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

/* ===== FORMULAIRES ===== */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.form-control.error {
    border-color: #dc2626;
}

.form-error {
    color: #dc2626;
    font-size: var(--font-size-sm);
    margin-top: var(--space-1);
}

/* ===== CALCULATEUR DE PRÊT ===== */
.loan-calculator {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto;
}

.calculator-result {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: var(--space-6);
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: var(--space-6);
}

.calculator-result h3 {
    color: var(--white);
    margin-bottom: var(--space-2);
}

.calculator-result .amount {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--accent-light);
}

/* ===== ACCORDÉON FAQ ===== */
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-6);
    background: var(--white);
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--gray-50);
}

.faq-question::after {
    content: '+';
    font-size: var(--font-size-xl);
    font-weight: 300;
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-6);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item.active .faq-answer {
    padding: var(--space-6);
    max-height: 500px;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h3 {
    color: var(--accent-light);
    margin-bottom: var(--space-4);
}

.footer-section p,
.footer-section a {
    color: var(--gray-300);
    margin-bottom: var(--space-2);
}

.footer-section a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--space-6);
    text-align: center;
    color: var(--gray-400);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 1023px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
    color: var(--white);
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* ===== IMAGE STYLES ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.content-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.service-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    margin: 0 auto;
}

.team-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--border-radius-lg);
    margin: 0 auto;
}

/* ===== RESPONSIVE IMAGE CONTAINERS ===== */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.image-container img {
    transition: transform var(--transition-slow);
}

.image-container:hover img {
    transform: scale(1.05);
}

/* ===== CLASS