/* ==========================================
   VARIABLES ET RESET
   ========================================== */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --blue-accent: #2c5f8d;
    --light-blue: #4a7ba7;
    --success-color: #2d6a4f;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e8eaed;
    --medium-gray: #c4c4c4;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    padding-top: var(--header-height);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    height: var(--header-height);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 30px;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.navbar-logo i {
    font-size: 28px;
    color: var(--accent-color);
}

.logo-text {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.logo-badge {
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Menu Navigation */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.nav-link i {
    font-size: 1rem;
    opacity: 0.7;
}

.nav-link:hover {
    background: var(--off-white);
    color: var(--accent-color);
}

.nav-link:hover i {
    opacity: 1;
}

.nav-link.active {
    color: var(--accent-color);
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--accent-color);
}

/* Actions Buttons */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-header i {
    font-size: 1rem;
}

.btn-header.btn-secondary {
    background: var(--off-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-header.btn-secondary:hover {
    background: var(--light-gray);
    border-color: var(--accent-color);
}

.btn-header.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-header.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 5px;
}

.mobile-nav-link i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
    color: var(--accent-color);
}

.mobile-nav-link:hover,
.mobile-nav-link.highlight {
    background: var(--off-white);
    color: var(--accent-color);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

/* Header Responsive */
@media (max-width: 992px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
}

/* ==========================================
   GESTION DES ÉTAPES
   ========================================== */
.step {
    display: none;
    animation: fadeIn 0.5s ease-out;
    flex: 1;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   ÉTAPE 1 - HERO HEADER AVEC IMAGE
   ========================================== */
.hero-header {
    position: relative;
    background: linear-gradient(rgba(26, 26, 46, 0.85), rgba(22, 33, 62, 0.85)), 
                url('img/images.jpg') center/cover;
    padding: 120px 0 100px;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.2) 0%, transparent 100%);
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 40px;
    background: var(--white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-logo i {
    font-size: 45px;
    color: var(--primary-color);
}

.hero-title {
    color: var(--white);
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* ==========================================
   FORMULAIRES
   ========================================== */
.form-section {
    padding: 80px 15px;
    margin-top: -80px;
    position: relative;
    z-index: 2;
    background: var(--white);
}

.form-card {
    background: var(--white);
    border-radius: 2px;
    padding: 60px 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 40px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--accent-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 35px;
    background: var(--accent-color);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 35px;
    color: var(--white);
}

.card-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.card-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 45px;
    font-weight: 300;
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

.form-control {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.08);
    outline: none;
    background: var(--white);
}

.form-text {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 6px;
    font-weight: 300;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 2px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.25);
}

.btn-success {
    background: var(--success-color);
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 2px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-success:hover {
    background: #1b4332;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

/* ==========================================
   ÉTAPE 2 - VALIDATION
   ========================================== */
.validation-section {
    padding: 100px 15px;
    background: var(--off-white);
}

.validation-card {
    background: var(--white);
    border-radius: 2px;
    padding: 70px 60px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 10px 50px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--success-color);
}

.validation-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 35px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out;
}

.validation-icon i {
    font-size: 50px;
    color: var(--white);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.validation-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.validation-subtitle {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--off-white);
    padding: 12px 28px;
    border-radius: 2px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 45px;
    font-size: 0.9rem;
    border: 1px solid var(--light-gray);
}

.security-badge i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.montant-container {
    background: var(--off-white);
    padding: 50px 40px;
    border-radius: 2px;
    margin: 40px 0;
    border: 1px solid var(--light-gray);
}

.montant-label {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.montant-value {
    color: var(--primary-color);
    font-size: 3.8rem;
    font-weight: 600;
    margin: 15px 0;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -1px;
}

.montant-currency {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.beneficiaire-info {
    background: var(--white);
    padding: 35px;
    border-radius: 2px;
    margin: 35px 0;
    text-align: left;
    border: 1px solid var(--light-gray);
}

.beneficiaire-info p {
    margin: 12px 0;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 300;
}

.beneficiaire-info strong {
    color: var(--primary-color);
    font-weight: 500;
}

/* ==========================================
   ÉTAPE 3 - SÉLECTION DU MONDE
   ========================================== */
.monde-section {
    padding: 100px 15px;
    background: var(--white);
}

.section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Grille adaptative pour 5 mondes */
.monde-section .row {
    justify-content: center;
}

.monde-section .col-lg-3 {
    flex: 0 0 auto;
    width: 20%;
    max-width: 240px;
}

.monde-card {
    background: var(--white);
    border-radius: 2px;
    padding: 45px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    height: 100%;
}

.monde-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.monde-card.selected {
    border-color: var(--accent-color);
    border-width: 2px;
    background: var(--off-white);
}

.monde-image {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monde-image i {
    font-size: 45px;
    color: var(--white);
}

.monde-name {
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.monde-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 300;
}

.monde-check {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: var(--success-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.monde-card.selected .monde-check {
    display: flex;
    animation: scaleIn 0.3s ease-out;
}

.monde-check i {
    font-size: 16px;
    color: var(--white);
}

/* ==========================================
   ÉTAPE 4 - FINALISATION
   ========================================== */
.finalisation-section {
    padding: 100px 15px;
    background: var(--off-white);
}

.recap-card {
    background: var(--primary-color);
    border-radius: 2px;
    padding: 45px 40px;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.2);
    margin-bottom: 40px;
}

.recap-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    letter-spacing: -0.2px;
}

.recap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.recap-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 22px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recap-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.recap-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 500;
}

.security-notice {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 2px;
    padding: 22px 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.security-notice i {
    font-size: 28px;
    color: var(--accent-color);
}

.security-notice p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
}

/* ==========================================
   MODAL DE SUCCÈS
   ========================================== */
.success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    font-size: 45px;
    color: var(--white);
}

.modal-content {
    border-radius: 2px;
    border: none;
}

.modal-body h3 {
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

.modal-body .text-muted {
    font-weight: 300;
    line-height: 1.7;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 0;
    margin-top: auto;
}

.footer-main {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo Section */
.footer-logo-section {
    padding-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-logo i {
    font-size: 28px;
    color: var(--white);
}

.footer-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 300;
}

.footer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 400;
}

.footer-badge i {
    font-size: 0.9rem;
}

/* Footer Titles */
.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--white);
    opacity: 0.3;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Footer Contact */
.footer-contact {
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-contact-item i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    width: 20px;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-trust {
    display: flex;
    gap: 20px;
    justify-content: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 300;
}

.trust-item i {
    font-size: 0.9rem;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-logo-section {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-title {
        margin-top: 20px;
    }
    
    .footer-trust {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
    /* 5 mondes sur desktop: passer à 3 par ligne sur tablette large */
    .monde-section .col-lg-3 {
        width: 33.333%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-header {
        padding: 80px 0 60px;
    }
    
    .form-card {
        padding: 40px 25px;
    }
    
    .validation-card {
        padding: 50px 30px;
    }
    
    .montant-value {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .recap-grid {
        grid-template-columns: 1fr;
    }
    
    .recap-card {
        padding: 35px 25px;
    }
    
    /* 2 mondes par ligne sur tablette */
    .monde-section .col-lg-3 {
        width: 50%;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .hero-header {
        padding: 60px 0 40px;
    }
    
    .hero-logo {
        width: 70px;
        height: 70px;
    }
    
    .hero-logo i {
        font-size: 35px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .validation-title {
        font-size: 1.8rem;
    }
    
    .montant-value {
        font-size: 2.2rem;
    }
    
    .monde-card {
        padding: 35px 20px;
    }
    
    .form-card {
        padding: 35px 20px;
    }
    
    .validation-card {
        padding: 40px 20px;
    }
    
    /* 1 monde par ligne sur mobile */
    .monde-section .col-lg-3 {
        width: 100%;
    }
}.monde-image {
    width: 100%;           /* Prend toute la largeur */
    height: 120px;         /* Hauteur fixe */
    margin: 0 auto 30px;
    background: white;     /* Fond blanc */
    border-radius: 8px;    /* Coins légèrement arrondis (ou 0 pour rectangulaire) */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color); /* Bordure optionnelle */
}

.monde-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* L'image est visible entièrement */
    padding: 10px;         /* Espacement autour de l'image */
}