/* Style principal pour Groupe Finance */

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

/* Variables CSS */
:root {
    --primary-color: #0a2149; /* Bleu marine du logo */
    --primary-color-light: #1a4b8f; /* Version plus claire du bleu marine */
    --primary-color-dark: #061631; /* Version plus foncée du bleu marine */
    --secondary-color: #ffffff; /* Blanc */
    --accent-color: #f5f7fa; /* Gris très clair avec une teinte bleue */
    --text-color: #2c3e50; /* Gris foncé plus riche */
    --text-color-light: #5d6d7e; /* Gris moyen pour texte secondaire */
    --success-color: #2ecc71; /* Vert plus vif */
    --warning-color: #f39c12; /* Jaune orangé */
    --danger-color: #e74c3c; /* Rouge plus vif */
    --accent-blue: #3498db; /* Bleu vif */
    --accent-purple: #9b59b6; /* Violet */
    --accent-teal: #1abc9c; /* Turquoise */
    --accent-orange: #e67e22; /* Orange */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-blue)); /* Dégradé principal */
    --gradient-secondary: linear-gradient(135deg, var(--accent-purple), var(--accent-blue)); /* Dégradé secondaire */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-large: 0 12px 28px rgba(0, 0, 0, 0.12);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --box-shadow-card: 0 8px 20px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
    --border-radius-large: 12px;
}

/* Styles généraux */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-color-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.8rem;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: var(--primary-color-light);
    color: var(--secondary-color);
}

.btn:hover::before {
    left: 100%;
}

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

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: calc(var(--border-radius) + 2px);
}

/* Header */
.header {
    background-color: var(--secondary-color);
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

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

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    margin-left: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-item {
    margin-left: 30px;
    position: relative;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background-color: var(--accent-color);
    background-image: url('../images/backgrounds/hero-bg.svg');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 33, 73, 0.1) 0%, rgba(66, 133, 244, 0.1) 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    opacity: 0.05;
    z-index: 0;
}

.features::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--accent-purple);
    opacity: 0.05;
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

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

.feature-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-blue));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-large);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

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

.feature-description {
    color: #666;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--accent-color);
    background-image: url('../images/backgrounds/testimonials-bg.svg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.9) 0%, rgba(245, 247, 250, 0.8) 100%);
    z-index: 1;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

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

.testimonial-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 120px;
    color: var(--accent-blue);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-large);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-author-title {
    font-size: 0.9rem;
    color: #666;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: var(--primary-color);
    background-image: url('../images/backgrounds/cta-bg.svg');
    background-size: cover;
    background-position: center;
    color: var(--secondary-color);
    text-align: center;
    position: relative;
}

.cta-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.cta-description {
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: var(--secondary-color);
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-cta:hover {
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.4);
}

.btn-cta:hover::before {
    left: 0;
}

/* Form Styles */
.form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(10, 33, 73, 0.02) 0%, rgba(66, 133, 244, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    opacity: 0.03;
}

.form-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.03;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--box-shadow-large);
    padding: 40px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check-input {
    margin-right: 10px;
}

.form-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 5px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 10px;
    padding-left: 10px;
}

@media (min-width: 768px) {
    .form-col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    /* Suppression du filtre pour permettre au logo de s'afficher correctement */
}

.footer-logo-text {
    margin-left: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.footer-description {
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social-link {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.footer-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-link {
    margin-bottom: 10px;
}

.footer-link a {
    color: var(--secondary-color);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-link a:hover {
    opacity: 1;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

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

.footer-copyright {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: var(--transition);
        box-shadow: var(--box-shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0 0 20px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .header-container {
        padding: 10px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card, .testimonial-card {
        padding: 20px;
    }
    
    .form-container {
        padding: 20px;
    }
}

/* Page spécifique: Crédit à la consommation */
.credit-types {
    padding: 80px 0;
}

.credit-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.credit-card:hover {
    transform: translateY(-5px);
}

.credit-card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.credit-card-description {
    margin-bottom: 20px;
}

.credit-card-details {
    margin-bottom: 20px;
}

.credit-card-detail {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.credit-card-detail-icon {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Page spécifique: Conditions de prêts */
.conditions-section {
    padding: 80px 0;
}

.condition-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.condition-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.condition-list {
    list-style-position: inside;
    margin-bottom: 20px;
}

.condition-list li {
    margin-bottom: 10px;
}

/* Page spécifique: Demande de crédit */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.form-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.form-step-number {
    width: 30px;
    height: 30px;
    background-color: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.form-step.active .form-step-number,
.form-step.completed .form-step-number {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-blue));
}

.form-step-label {
    font-size: 0.9rem;
    color: #666;
    transition: var(--transition);
}

.form-step.active .form-step-label,
.form-step.completed .form-step-label {
    color: var(--primary-color);
    font-weight: 500;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.form-page {
    display: none;
}

.form-page.active {
    display: block;
}

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

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: var(--box-shadow);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--box-shadow-large);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--box-shadow);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.5s ease forwards;
}

.animate-zoomIn {
    animation: zoomIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Animations pour les éléments au scroll */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Styles pour les cartes de service cliquables */
[data-service-type] {
    position: relative;
    cursor: pointer;
}

[data-service-type]::after {
    content: 'En savoir plus';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
}

[data-service-type]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}
