/* ===================================
   CSS Bootstrap - Euro Loto Platform
   Couleurs: VERT principal + BLEU NUIT
   Avec image header
   =================================== */

/* Import des fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* Variables personnalisées - VERT + BLEU NUIT */
:root {
    /* Couleur principale : VERT */
    --primary-green: #10B981;
    --primary-green-dark: #059669;
    --primary-green-light: #34D399;
    --primary-green-lighter: #6EE7B7;
    
    /* Couleur secondaire : BLEU NUIT */
    --dark-blue: #0F172A;
    --dark-blue-light: #1E293B;
    --dark-blue-lighter: #334155;
    
    /* Couleurs neutres */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-900: #111827;
    
    /* Fonts */
    --font-base: 'Inter', sans-serif;
    --font-heading: 'DM Sans', sans-serif;
    
    /* Gradients */
    --gradient-green: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-blue: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

/* Base */
body {
    font-family: var(--font-base);
    color: var(--gray-900);
    background-color: var(--gray-50);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* =============================================
   HERO SECTION AVEC IMAGE DE FOND
   ============================================= */

.hero-image-section {
    position: relative;
    min-height: 600px;
    background-image: url('hero-image.jpg'); /* ← Remplace par ton image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
}

/* Si pas d'image, gradient de secours */
.hero-image-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-green-dark) 100%);
    z-index: 0;
}

/* Overlay sombre sur l'image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    z-index: 1;
}

/* Contenu par-dessus l'image */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Badge certifié */
.badge-certified {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid var(--primary-green);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet d'ombre sur le texte */
.text-shadow {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Stats Cards dans le hero */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    color: var(--white);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-green);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* =============================================
   GESTION DES ÉTAPES
   ============================================= */

.step-container {
    display: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.step-container.active {
    display: block;
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   CARDS
   ============================================= */

.card {
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

.card-form {
    border: 2px solid var(--primary-green);
}

/* =============================================
   FORMS
   ============================================= */

.form-control {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-control.is-invalid {
    border-color: #EF4444;
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.form-label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

/* =============================================
   BOUTONS - VERT PRINCIPAL
   ============================================= */

.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    transition: all 0.3s;
    border: none;
}

.btn-lg {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
}

/* Bouton VERT principal */
.btn-success-custom {
    background: var(--gradient-green);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-success-custom:hover {
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
    color: var(--white);
}

.btn-success-custom:active {
    transform: translateY(0);
}

/* Bouton primaire vert */
.btn-primary {
    background: var(--gradient-green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    color: var(--white);
}

/* Bouton success */
.btn-success {
    background: var(--gradient-green);
    border-color: var(--primary-green);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    border-color: var(--primary-green-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* =============================================
   ANIMATION DU MONTANT
   ============================================= */

.amount-container {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-radius: 20px;
    border: 2px solid var(--primary-green-light);
    position: relative;
    overflow: hidden;
}

.amount-display {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1;
    color: var(--dark-blue);
    position: relative;
}

.amount-number {
    font-size: 4rem;
    display: inline-block;
    letter-spacing: -0.02em;
    color: var(--primary-green-dark);
}

.amount-currency {
    font-size: 2rem;
    color: var(--gray-600);
    margin-left: 0.5rem;
    font-weight: 700;
}

/* Animation de compteur */
@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.amount-number.counting {
    animation: countUp 0.5s ease-out;
}

/* Effet de pulse */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.amount-display.pulse {
    animation: pulse 0.6s ease-in-out;
}

/* Effet de brillance VERT */
.amount-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Responsive pour le montant */
@media (max-width: 768px) {
    .amount-number {
        font-size: 3rem;
    }
    
    .amount-currency {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .amount-number {
        font-size: 2.5rem;
    }
    
    .amount-currency {
        font-size: 1.25rem;
    }
}

/* =============================================
   CARTES DE BANQUES AVEC GROS LOGOS - VERT
   ============================================= */

.gain-card {
    border: 3px solid var(--gray-200);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
}

.gain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.gain-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.25);
    border-color: var(--primary-green);
}

.gain-card:hover::before {
    transform: scaleX(1);
}

.gain-card.selected {
    border-color: var(--primary-green);
    border-width: 4px;
    background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 100%);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.3);
}

.gain-card.selected::after {
    content: '✓';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--gradient-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
    animation: checkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

/* Container du logo - GROS */
.bank-logo-container {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Logo GROS */
.bank-logo-large {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
    filter: grayscale(20%);
}

.gain-card:hover .bank-logo-large {
    transform: scale(1.08);
    filter: grayscale(0%);
}

/* Fallback icon GROS si pas d'image */
.bank-logo-fallback {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    border-radius: 16px;
}

.fallback-icon {
    font-size: 6rem;
}

/* Nom de la banque */
.bank-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

.gain-card.selected .bank-name {
    color: var(--primary-green-dark);
}

/* Description */
.bank-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Responsive pour les logos */
@media (max-width: 992px) {
    .bank-logo-container {
        height: 150px;
    }
    
    .bank-logo-large {
        max-height: 150px;
    }
    
    .bank-logo-fallback {
        height: 150px;
    }
    
    .fallback-icon {
        font-size: 5rem;
    }
    
    .gain-card {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .bank-logo-container {
        height: 120px;
    }
    
    .bank-logo-large {
        max-height: 120px;
    }
    
    .bank-logo-fallback {
        height: 120px;
    }
    
    .fallback-icon {
        font-size: 4rem;
    }
    
    .bank-name {
        font-size: 1.25rem;
    }
    
    .gain-card {
        min-height: 280px;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .bank-logo-container {
        height: 100px;
    }
    
    .bank-logo-large {
        max-height: 100px;
    }
    
    .bank-logo-fallback {
        height: 100px;
    }
    
    .fallback-icon {
        font-size: 3.5rem;
    }
}

/* =============================================
   GRADIENTS
   ============================================= */

.bg-gradient-success {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 50%, #F0F9FF 100%);
}

/* =============================================
   ALERTS - VERT
   ============================================= */

.alert {
    border-radius: 12px;
    border: 1px solid;
    padding: 1rem 1.25rem;
}

.alert-primary {
    background-color: #ECFDF5;
    border-color: #A7F3D0;
    color: #047857;
}

.alert-success {
    background-color: #ECFDF5;
    border-color: #6EE7B7;
    color: #059669;
}

/* =============================================
   FOOTER NORMAL ET COMPLET - BLEU NUIT
   ============================================= */

.footer-normal {
    position: relative;
    background: var(--gradient-blue);
}

.footer-normal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-green);
}

.bg-dark-blue {
    background-color: var(--dark-blue) !important;
}

.text-dark-blue {
    color: var(--dark-blue) !important;
}

.footer-logo {
    width: 48px;
    height: 48px;
    background: var(--gradient-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--primary-green-light);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: start;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--primary-green-light);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.125rem;
}

.social-link:hover {
    background: var(--gradient-green);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    color: var(--white);
}

.security-badge-footer {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    color: var(--white);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

.text-success-custom {
    color: var(--primary-green-light) !important;
}

/* =============================================
   ICON CIRCLES
   ============================================= */

.icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.icon-circle-lg {
    width: 112px;
    height: 112px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

/* =============================================
   UTILITIES
   ============================================= */

.text-purple {
    color: #8B5CF6 !important;
}

.min-vh-100 {
    min-height: 100vh;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 992px) {
    .hero-image-section {
        min-height: 500px;
        padding: 80px 0 60px;
    }
    
    .icon-circle {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .icon-circle-lg {
        width: 96px;
        height: 96px;
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-image-section {
        min-height: 450px;
        background-attachment: scroll;
    }
    
    .header-professional .d-flex {
        flex-wrap: wrap;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-image-section {
        min-height: 400px;
        padding: 60px 0 40px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .badge-certified {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   ACCESSIBILITÉ
   ============================================= */

*:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================
   SCROLLBAR - VERT
   ============================================= */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}

/* =============================================
   PRINT
   ============================================= */

@media print {
    .header-professional,
    .footer-normal,
    .btn {
        display: none !important;
    }
    
    .step-container {
        display: block !important;
        opacity: 1 !important;
    }
    
    .hero-image-section {
        background-image: none !important;
    }
}