/* Variables CSS (Couleurs & Esthétique) */
:root {
    --primary-color: #0F172A; /* Bleu Marine très profond (Sérieux) */
    --secondary-color: #2E5C3B; /* Vert Sauge foncé (Sérénité et EXCELLENT CONTRASTE) */
    --accent-color: #F59E0B; /* Ambre (Crédit d'impôt, CTA) */
    --text-main: #1E293B; /* Plus sombre pour une lecture parfaite */
    --text-light: #475569; /* Gris foncé, contraste garanti */
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-lg: 24px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 8px 32px rgba(15, 23, 42, 0.1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Typographie */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

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

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

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

.btn-secondary:hover {
    background-color: #618A65;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(121, 163, 125, 0.3);
}

/* Background (Aesthetic) */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.background-image {
    width: 100%;
    height: 100%;
    /* Placeholder pour une belle photo d'intérieur lumineux */
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    filter: blur(8px) brightness(1.1);
    transform: scale(1.05); /* Pour cacher les bords flous */
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.85) 100%);
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    /* Glassmorphism Header */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

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

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

.logo-accent {
    color: var(--secondary-color);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 10;
    padding-top: 80px;
    padding-bottom: 80px;
}

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

/* Texte de gauche */
.subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 90%;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.indicator {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(255,255,255,0.8);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Cartes Action (Droite) */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glassmorphism:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.15);
}

/* Badge B2C */
.card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.b2c-icon {
    background-color: rgba(143, 188, 143, 0.15);
    color: var(--secondary-color);
}

.b2b-icon {
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--primary-color);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 24px;
    min-height: 46px; /* Alignement visuel */
}

.card-btn {
    width: 100%;
}

.b2b-card .card-btn {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

.hero-text-block {
    animation: fadeInUp 0.8s ease forwards;
}

.b2c-card {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.b2b-card {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Reponsive très basique */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    .main-title {
        font-size: 2.8rem;
    }
}

/* =========================================================
   NOUVELLES SECTIONS (Services, Avance Immédiate, Footer) 
========================================================= */

/* --- Sections Générales --- */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

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

/* --- Section Avance Immédiate (B2C) --- */
.avance-immediate {
    background-color: var(--white);
    position: relative;
    padding-top: 40px;
}

.avance-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-radius: var(--radius-lg);
    padding: 60px;
}

.avance-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.avance-text p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.8;
}

.avance-badge-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-badge {
    width: 200px;
    height: 200px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
    transform: rotate(10deg);
    transition: transform 0.3s ease;
}

.circle-badge:hover {
    transform: scale(1.05) rotate(0deg);
}

.circle-badge .percent {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
}

.circle-badge .label {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding-top: 5px;
}

/* --- Section Services --- */
.services-section {
    background-color: var(--bg-light);
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.service-img {
    height: 240px;
    background-position: center;
    background-size: cover;
    position: relative;
    border-bottom: 4px solid var(--secondary-color);
}

.service-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.service-body h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-body p {
    color: var(--text-light);
    margin-bottom: 24px;
    min-height: 80px; /* Aligne visuellement les liens */
    flex-grow: 1;
}

.service-link {
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.service-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* --- Section Engagement (Vanessa) --- */
.engagement-section {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

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

.rounded-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s ease;
}

.rounded-image:hover {
    transform: scale(1.02);
}

.engagement-text blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.3;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}

.engagement-text p {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: 80px 0 20px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 2rem;
}

.footer-brand .logo-accent {
    color: var(--secondary-color);
}

.footer-desc {
    margin-top: 15px;
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    max-width: 400px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links p {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}




/* --- Responsive Ajouts --- */
@media (max-width: 992px) {
    .avance-content, .engagement-grid, .footer-content, .content-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .avance-content {
        padding: 40px 20px;
    }
    .circle-badge {
        width: 150px;
        height: 150px;
    }
    .circle-badge .percent {
        font-size: 2.5rem;
    }
    
    /* Gérer le badge absolu qui dépasse sur tablette/mobile */
    .b2c-large-badge {
        position: relative;
        top: 0; left: 0;
        margin: 0 auto -20px auto; /* Centre et fait chevaucher légèrement l'image */
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Version Mobile (Téléphones) */
@media (max-width: 768px) {
    /* Header Stacked Mobile */
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 15px;
    }
    .nav-links a {
        font-size: 0.9rem;
    }

    /* Typographie Globale */
    .main-title {
        font-size: 2.2rem;
    }
    .subpage-hero h1 {
        font-size: 2.5rem;
    }
    .subpage-hero p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    .section-header h2, .avance-text h2 {
        font-size: 2rem;
    }
    .engagement-text blockquote {
        font-size: 1.4rem;
        padding-left: 15px;
    }
    
    /* Espacements (Paddings) adaptés aux petits écrans */
    .hero-section, .section, .subpage-hero {
        padding: 60px 0;
    }
    
    .glassmorphism {
        padding: 20px;
    }

    .service-body {
        padding: 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    /* Boutons 100% de large sur mobile si désiré ? Laissons les naturels */
    .hero-content .cards-container .glassmorphism {
        margin: 0 10px; /* Evite de toucher les bords de l'ecran */
    }
}

/* Fix spécifique pour très petits écrans (iPhone SE etc) */
@media (max-width: 400px) {
    .nav-links {
        gap: 10px;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .circle-badge {
        width: 120px;
        height: 120px;
    }
    .circle-badge .percent {
        font-size: 2rem;
    }
    .circle-badge .label {
        font-size: 0.85rem;
    }
    .main-title {
        font-size: 1.9rem;
    }
}

/* =========================================================
   STYLES SPECIFIQUES AUX SOUS-PAGES (Particuliers, B2B...) 
========================================================= */

/* Header sur fond blanc pour les sous-pages */
.solid-header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.subpage-hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 140px 0 80px; 
}

.subpage-hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

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

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

.image-content {
    position: relative;
}

.b2c-large-badge {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 140px;
    height: 140px;
    z-index: 10;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.b2c-large-badge .percent {
    font-size: 2rem;
}

.check-list {
    list-style: none;
    margin: 20px 0 30px;
}

.check-list li {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

.mt-4 {
    margin-top: 32px;
}

/* Formulaires de contact */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
}

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

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

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #F8FAFC;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(121, 163, 125, 0.2);
    background-color: var(--white);
}

textarea.form-control {
    resize: vertical;
}

