:root {
    --primary-color: #243673;
    --primary-hover: #1c2b5c;
    --primary-light: #2d4290;
    --accent-color: #f2b441;
    --accent-hover: #e6a93a;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-success {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
}

.btn-success:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

.navbar {
    background-color: var(--primary-color) !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link {
    color: white !important;
}

.navbar-light .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.card {
    border-color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(36, 54, 115, 0.25);
}

.hero-section {
    background: linear-gradient(135deg, 
        #243673 0%, 
        #2d4290 50%, 
        #3a56b3 100%
    ) !important;
    color: white !important;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0) 70%
    );
    pointer-events: none;
}

.hero-section h1 {
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.hero-section .btn-light {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.hero-section .btn-light:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.fab {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.fab:hover {
    transform: scale(1.2);
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.card-body p {
    color: #666;
    line-height: 1.6;
}

#contact {
    background-color: #f8f9fa;
}

#contact h2 {
    color: var(--primary-color);
}

/* Styles Responsifs */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-section img {
        margin-top: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }

    #contact {
        padding: 2rem 0;
    }

    .form-control {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }

    .floating-logo {
        font-size: 2.5rem;
    }
    
    .floating-logo:nth-child(1) { top: 2%; left: 2%; }
    .floating-logo:nth-child(2) { top: 2%; right: 2%; }
    .floating-logo:nth-child(3) { top: 50%; left: 1%; }
    .floating-logo:nth-child(4) { top: 50%; right: 1%; }
    .floating-logo:nth-child(5) { bottom: 2%; left: 2%; }
    .floating-logo:nth-child(6) { bottom: 2%; right: 2%; }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .carousel-item .row {
        margin: 0;
    }

    .carousel-item .col-md-4 {
        padding: 0.5rem;
    }

    .floating-logo {
        font-size: 2rem;
    }
}

/* Améliorations de la Navbar Mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }

    .navbar-nav {
        padding: 0.5rem 0;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    body {
        padding-top: 66px;
    }
}

/* Optimisations pour les Tablettes */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .card-deck {
        display: flex;
        flex-flow: row wrap;
        margin-right: -0.5rem;
        margin-left: -0.5rem;
    }

    .card {
        flex: 0 0 calc(50% - 1rem);
        margin: 0.5rem;
    }
}

/* Optimisations pour les Grands Écrans */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-section {
        padding: 6rem 0;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Améliorations de l'Accessibilité Mobile */
@media (hover: none) {
    .card:hover {
        transform: none;
    }

    .fab:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* Optimisations des Images */
img {
    max-width: 100%;
    height: auto;
}

/* Améliorations des Formulaires Mobile */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 1rem;
    }

    .form-control {
        height: 45px;
    }

    textarea.form-control {
        height: auto;
    }
}

/* Styles pour les logos flottants */
.floating-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.25;
}

.floating-logo {
    position: absolute;
    font-size: 3rem;
    color: var(--accent-color);
    animation: float 8s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Positionnement des logos sur les bords */
.floating-logo:nth-child(1) { /* TikTok */
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.floating-logo:nth-child(2) { /* Facebook */
    top: 5%;
    right: 5%;
    animation-delay: 1s;
}

.floating-logo:nth-child(3) { /* Instagram */
    top: 50%;
    left: 2%;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.floating-logo:nth-child(4) { /* YouTube */
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
    animation-delay: 3s;
}

.floating-logo:nth-child(5) { /* WhatsApp */
    bottom: 5%;
    left: 5%;
    animation-delay: 4s;
}

.floating-logo:nth-child(6) { /* Snapchat */
    bottom: 5%;
    right: 5%;
    animation-delay: 5s;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Styles pour le séparateur */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        var(--primary-color) 20%, 
        var(--primary-color) 80%, 
        transparent
    );
}

.separator-text {
    padding: 0 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Styles pour les modals */
.modal-content {
    border: none;
    border-radius: 1rem;
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: var(--primary-color);
    color: white;
    border-radius: 1rem 1rem 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 2rem;
}

/* Animation des boutons */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 2rem !important;
    }
    
    .btn {
        width: 100% !important;
    }
}

/* Styles pour le logo textuel */
.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white !important;
    position: relative;
    overflow: hidden;
    padding: 0.5rem 1rem;
}

.navbar-brand span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

.navbar-brand .accent {
    color: var(--accent-color);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(242, 180, 65, 0.3);
}

/* Animation pour chaque lettre */
.navbar-brand span:nth-child(1) { animation-delay: 0.1s; }  /* P */
.navbar-brand span:nth-child(2) { animation-delay: 0.2s; }  /* o */
.navbar-brand span:nth-child(3) { animation-delay: 0.3s; }  /* w */
.navbar-brand span:nth-child(4) { animation-delay: 0.4s; }  /* e */
.navbar-brand span:nth-child(5) { animation-delay: 0.5s; }  /* r */
.navbar-brand span:nth-child(6) { animation-delay: 0.6s; }  /* B */
.navbar-brand span:nth-child(7) { animation-delay: 0.7s; }  /* o */
.navbar-brand span:nth-child(8) { animation-delay: 0.8s; }  /* o */
.navbar-brand span:nth-child(9) { animation-delay: 0.9s; }  /* s */
.navbar-brand span:nth-child(10) { animation-delay: 1.0s; } /* t */

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

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Styles pour la section Success Stories */
.success-stories {
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.success-stories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0) 70%
    );
    pointer-events: none;
}

.success-stories .section-title {
    color: white;
}

.success-stories .section-title::after {
    background-color: var(--accent-color);
}

.success-stories .card {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.success-stories .card-title {
    color: var(--primary-color);
}

.success-stories .carousel-control-prev,
.success-stories .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
}

.success-stories .carousel-control-prev {
    left: -25px;
}

.success-stories .carousel-control-next {
    right: -25px;
}

.success-stories .carousel-control-prev:hover,
.success-stories .carousel-control-next:hover {
    opacity: 1;
    background-color: var(--accent-hover);
}

@media (max-width: 768px) {
    .success-stories .carousel-control-prev,
    .success-stories .carousel-control-next {
        display: none;
    }
}

/* Styles pour les avatars */
.avatar-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.avatar-circle:hover {
    transform: scale(1.1);
}

.avatar-circle i {
    color: var(--accent-color);
}

/* Styles pour le select de pays avec drapeaux */
.country-select {
    padding-left: 2.5rem;
    background-position: 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5rem;
}

.country-select option {
    padding-left: 2rem;
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    background-size: 1.2rem;
}

/* Styles pour le champ téléphone */
.input-group-text.phone-code {
    min-width: 4rem;
    justify-content: center;
    background-color: #f8f9fa;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: none;
    box-shadow: none;
}

.input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(36, 54, 115, 0.25);
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

/* Styles pour les cartes de statistiques */
.stats-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stats-content {
    flex: 1;
}

.stats-number {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.stats-label {
    color: #333;
    font-size: 1.1rem;
    margin: 0.5rem 0 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-card {
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .stats-label {
        font-size: 1rem;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
    }
}

/* Style pour le lien mot de passe oublié */
.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Styles pour le bouton WhatsApp flottant */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

/* Styles pour le sélecteur de langue */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    position: relative;
}

.language-switcher .btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-switcher .dropdown-menu {
    min-width: 120px;
    padding: 0.5rem 0;
    margin: 0;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.language-switcher .dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher .dropdown-item img {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

.language-switcher .dropdown-item:hover {
    background-color: var(--primary-light);
    color: white;
}

@media (max-width: 991px) {
    .language-switcher {
        margin: 1rem 0;
    }
}

/* Styles pour la navbar lors du défilement */
.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.3rem 0;
}

/* Ajouter un padding au body pour compenser la navbar fixe */
body {
    padding-top: 76px;
}

/* Ajuster le padding pour mobile */
@media (max-width: 991px) {
    body {
        padding-top: 66px;
    }
}