/* style.css */

.service-icon i {
    font-size: 48px;
    line-height: 1;
}

:root {
    --bs-primary: #184E9C;
    --bs-primary-rgb: 24, 78, 156;
    --bs-primary-hover: #0F3670;
    --bs-secondary: #FFD700;
    --bs-secondary-rgb: 255, 215, 0;
    --bs-heading-color: #16181B;
    --bs-body-color: #494B5B;
    --bs-body-bg: #ffffff;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--bs-body-color);
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Empêche le débordement horizontal */
}

.btn-primary {
    background-color: var(--bs-primary-hover);
    border-color: var(--bs-primary-hover);
}

.btn-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

/* Header - NAVBAR CORRIGÉE */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0 !important;
}

.navbar-brand img {
    max-width: 80px;
    height: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--bs-heading-color) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(24, 78, 156, 0.1);
    color: var(--bs-primary) !important;
}

.navbar .btn-primary {
    padding: 0.4rem 1rem !important;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #040404 0%, #0F3670 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    /* Compensation pour la navbar fixe */
}
.hero::before {
    pointer-events: none;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    background-color: var(--bs-secondary);
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 2rem;
}



/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    color: var(--bs-heading-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    background-color: rgba(24, 78, 156, 0.1);
    color: var(--bs-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 2rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(24, 78, 156, 0.1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-hover));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

/* Features */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(24, 78, 156, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--bs-primary);
    flex-shrink: 0;
}

/* Stats */
.stats-section {
    background: linear-gradient(135deg, #184E9C 0%, #0F3670 100%);
    color: white;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bs-secondary);
    display: block;
}


#tarifs .header {
    text-align: center;
    margin-bottom: 40px;
}

#tarifs .header h1 {
    margin-bottom: 10px;
}

#tarifs .header p {
    margin: 0;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* FAQ */
.faq-section {
    background: rgba(24, 78, 156, 0.02);
}

.accordion-button {
    background: white;
    border: none;
    color: var(--bs-heading-color);
    font-weight: 600;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(24, 78, 156, 0.1);
    color: var(--bs-primary);
}

/* Contact */
.contact-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-hover));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #cccccc;
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--bs-secondary);
}

/* Button Styles */
.btn-download {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-hover));
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(24, 78, 156, 0.3);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: white;
}

.btn-outline-primary:hover {
    border: 2px solid white;
    color: white;
    background-color: var(--bs-primary);
}

/* Media Queries pour la responsivité */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* Tablettes */
@media (max-width: 992px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 70px 0;
    }

    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Mobiles en mode paysage et petites tablettes */
@media (max-width: 768px) {
    .navbar-brand img {
        max-width: 70px;
    }

    .hero {
        padding: 80px 0 50px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 3rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .footer {
        padding: 3rem 0 2rem;
    }

    .footer h5 {
        margin-bottom: 1.2rem;
    }
}

/* Mobiles - améliorations spécifiques pour les petits écrans */
@media (max-width: 581px) {
    .navbar {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    .navbar-brand img {
        max-width: 60px;
    }

    .navbar .btn-primary {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 70px 0 40px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
        margin-bottom: 1.5rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .section-title h2 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .service-card {
        padding: 1.5rem;
        border-radius: 15px;
        margin-bottom: 1.5rem;
    }

    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        border-radius: 15px;
        margin: 0 auto 1.2rem auto;
    }

    .stat-item {
        padding: 1.5rem 0.5rem;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto 1rem auto;
    }

    .testimonial-card {
        text-align: center;
        padding: 1.5rem;
    }

    .accordion-button {
        padding: 1.2rem;
        font-size: 0.95rem;
    }

    .contact-info {
        padding: 1.5rem;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto 1rem auto;
    }

    .btn-download,
    .btn-outline-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
        display: block;
        text-align: center;
        margin: 0 auto 1rem auto;
        width: 80%;
    }

    .footer {
        text-align: center;
        padding: 2.5rem 0 1.5rem;
    }

    .footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Très petits mobiles */
@media (max-width: 400px) {
    .navbar-brand img {
        max-width: 50px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .btn-download,
    .btn-outline-primary {
        width: 90%;
        padding: 10px 20px;
    }
}

/* Correction spécifique pour la navbar sur mobile */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        text-align: center;
    }

    .navbar-nav .nav-item.ms-2 {
        margin-left: 0 !important;
    }
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}

/* Styles supplémentaires de la section Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #000;
}

.hero-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('assets/images/foryouimage.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-vignette {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.2) 0%, 
        rgba(0,0,0,0.4) 50%, 
        rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.badge-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-main-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    letter-spacing: -1px;
}

.accent-gold { 
    color: #FFD700; 
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); 
}

.hero-tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-services-list {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-divider { 
    color: #FFD700; 
    margin: 0 10px; 
    font-weight: 900; 
}

.hero-lead-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.btn-primary-benin {
    background: #2342e3;
    color: #fff;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.btn-primary-benin:hover {
    transform: translateY(-3px);
    background: #1a34b8;
    color: #fff;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.btn-outline-white:hover {
    background: #fff;
    color: #000;
}

/* Styles de la section Tarifs */
.tarifs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tarifs-section .header {
    text-align: center;
    margin-bottom: 40px;
}

.tarifs-section .header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.tarifs-section .header p {
    font-size: 1.1em;
    color: #666;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tarif-card {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.tarif-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.tarif-card .icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.tarif-card h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.tarif-card .price {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.tarif-card .price-desc {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 15px;
}

.tarif-card .details {
    text-align: left;
    font-size: 0.9em;
    color: #666;
}

.tarif-card .details p {
    margin: 8px 0;
    padding-left: 5px;
}

@media (max-width: 1024px) {
    .tarifs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tarifs-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles de la section Téléchargement (animations) */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

@keyframes notificationPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.05);
    }
}

.floating-phone {
    animation: floatPhone 6s ease-in-out infinite;
    max-width: 40%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.floating-phone:hover {
    transform: translateY(-5px) scale(1.03);
}

.download-btn {
    transition: all 0.3s ease;
    border-radius: 12px;
    font-weight: 600;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.phone-mockup {
    position: relative;
    display: inline-block;
}

.notification {
    position: absolute;
    top: 15%;
    right: -20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: notificationPulse 2s infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-number {
    transition: all 1s ease;
}

/* Styles de la Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-hover));
    color: white;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
    text-align: center;
    font-size: 1.1rem;
}

.modal-footer {
    border-top: none;
    justify-content: center;
    padding-bottom: 2rem;
}