@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=TASA+Explorer:wght@400..800&display=swap');

/* Variables CSS */
:root {
    --primary-color: #3f1bcc;
    --primary-light: #3f1bcc;
    --success-color: #16a34a;
    --warning-color: #eab308;
    --cta-color: #FF9632;
    --cta-hover: #c2410c;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --gradient: linear-gradient(135deg, #3f1bcc 0%, #7d65da 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --bs-primary-rgb: 63,27, 204;
    
}


.btn-outline-primary{
    --bs-btn-color: #3f1bcc;
    --bs-btn-border-color: #3f1bcc;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #3f1bcc;
    --bs-btn-hover-border-color: #3f1bcc;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3f1bcc;
    --bs-btn-active-border-color: #3f1bcc;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #3f1bcc;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #3f1bcc;
    --bs-gradient: none;
}

/* Global Styles */
body {
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden; /* évite tout débordement horizontal sur mobile */
}


/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100vw; /* évite de dépasser le viewport en fixed */
    overflow-x: hidden;
}

.navbar .container{
    display: flex;
    align-items: center;
    justify-content: space-between; /* garantit que le hamburger reste à l'intérieur */
    gap: 0.5rem;
}

.navbar-brand{
    display: flex;
    align-items: center;
}

.navbar-toggler{
    margin-left: auto; /* pousse le bouton hamburger à droite sans dépasser */
    flex: 0 0 auto;
    position: relative;
    z-index: 2; /* s'assure qu'il reste cliquable au-dessus */
}

.fixed-top{
    top: 0;
    left: 0;
    right: 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn-cta {
    background: var(--cta-color);
    border: 2px solid var(--cta-color);
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.text-primary{
    
    font-style: italic;
}

.navbar-nav .btn-cta {
    padding: 0.5rem 1rem;   /* ajuste selon tes besoins */
    line-height: 1.5;
    border-radius: 25px;    /* pour l'effet pill arrondi */
}

.navbar-nav .nav-item{
    margin: auto 0.5rem;
}

.navbar-brand img{
    height: auto;
    max-width: 100%;
}

.btn-cta:hover {
    background: var(--cta-hover);
    border-color: var(--cta-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-cta-whatsapp {
    background: #25D366;
    border: 2px solid #25D366;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta-whatsapp:hover {
    background: #20b954;
    border: 2px solid #20b954;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}


.btn-cta-whatsapp .bi{
    font-size: 1.3rem;
}

.btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Main Section */
.hero-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #6b4fc8 0%, #8068dd 25%, #9575e8 50%, #8068dd 75%, #6b4fc8 100%);
    background-size: 300% 300%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 150px; /* Pour compenser la navbar fixe */
    padding-bottom: 2rem;
    animation: gradientMove 20s ease infinite;
}

.hero-main .container {
    position: relative;
    z-index: 1;
}

.hero-main-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    margin-top: -7rem;
    margin-bottom: 1.5rem;
}

.hero-main-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    line-height: 1.6;
    margin-top: 1rem;
    opacity: 0.95;
}
.hero-main-subtitle span{
    color: #e4deff;
    font-weight: 600;
    color: #dbd4ff;
    font-style: italic;
    border-bottom: solid 2px #dbd4ff;

}

.hero-main .video-container {
    max-width: 800px;
    margin: 2rem auto;
}

.hero-main .play-button {
    background: rgba(255, 255, 255, 0.95);
    color: #6b4fc8;
}

.hero-main .play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.hero-main-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-hero-contact {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-hero-contact:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-cta-hero-contact i {
    margin-right: 0.5rem;
}

.btn-cta-hero {
    background: white;
    border: 2px solid white;
    color: #6b4fc8;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-hero:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #6b4fc8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-cta-hero i {
    margin-right: 0.5rem;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-main-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*
    background: 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="%23e2e8f0" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    */
    opacity: 0.5;
    z-index: -1;
}

.hero-section .tags{
    text-align: center;
}

.hero-section .tags span{
    background: #f0f0f0;
    border: 1px solid rgb(149, 149, 149);
    color: #4f4f4f;
    font-weight: 400;
    padding: 8px 20px 8px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 5px 1px;
   cursor:initial;
}

.hero-section .tags span .bi{
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;   /* largeur fixe */
    height: 20px;  /* hauteur fixe */
    font-size: 12px; /* taille de l’icône */
    font-weight: bold;
}

.hero-section .tags span:hover{
    background: var(--primary-color);
    color: white;
}

.hero-section .tags span:hover > .bi{
    border: solid 1px white;
    background: white;
}


.hero-title .orange{
    color: var(--cta-color);
    
}


.hero-title .underline{
    border-bottom: solid 4px var(--cta-color);
    line-height: 1;         /* colle le trait au texte */
    display: inline-block;  /* mieux que inline */
    padding-bottom: 0px;   
}

.hero-subtitle {
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.6;
    text-align: center;
}

.hero-title {
    margin: 150px auto 0 auto;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 50px;
    width: 70%;
    text-align: center;
    display: block;
}

.hero-arrow-down{
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.hero-benefits {
    list-style: none;
    padding: 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.benefit-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.middle-section{
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.middle-section .overline{
    text-decoration: line-through;
    color: var(--cta-hover);
}

.middle-title {
    margin: 0 auto 0 auto;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    display: block;
}

.middle-subtitle {
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.middle-subtitle.quote{
   font-weight: 400;
   text-align: center;
   margin-left: -80px;
   font-size: 1.4rem;
   color: var(--primary-color)
}

.middle-benefits {
    list-style: none;
    padding: 0;
}

.middle-benefits strong{
    text-decoration: underline;
}

/* Video Container */
.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /*box-shadow: var(--shadow);*/
    transition: all 0.3s ease;
}

/* .video-container:hover { supprimé: règles vides */

.video-placeholder {
    position: relative;
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Clients Section */
.clients-section {
    border-bottom: 1px solid #e2e8f0;
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.client-logo {
    height: 100px;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
    cursor: pointer;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.service-features li:last-child {
    border-bottom: none;
}

/* Stats Section */
.stats-section {
    background: var(--gradient);
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

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

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
}

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

/* About Section */
.expertise-points {
    margin-top: 2rem;
}

.expertise-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.expertise-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.expertise-item h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.expertise-item p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
}

.contact-item i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-main-title {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-arrow-down{
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .clients-logos {
        gap: 1rem;
    }
    
    .client-logo {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 3rem;
        padding: 0 1rem;
    }
    
    .hero-main-subtitle {
        font-size: 1.3rem;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-arrow-down{
        font-size: 1.8rem;
    }
    
    .hero-cta .btn {
        display: block;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .clients-logos {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .service-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-main-logo{
        max-width: 150px;
        margin-top: -11rem;
    }
    .hero-main-title {
        margin-top: -2rem;
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    
    .hero-main-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .btn-cta-hero {
        padding: 10px 35px;
        font-size: 0.9rem;
    }
    .btn-cta-hero-contact{
        padding: 10px 35px;
        font-size: 0.9rem;
    }
    
    .navbar-brand img {
        width: 110px; /* réduit un peu plus le logo sur très petit écran */
    }
    .navbar-nav .nav-item {
        margin: 0.25rem 0; /* évite que les marges latérales ne créent un débordement */
    }
    .navbar-nav .btn-cta {
        width: 100%;
        text-align: center;
    }
    .navbar .container{
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .navbar-toggler{
        margin-right: 0;
    }
    .middle-subtitle.quote{
        margin-left: 0; /* évite un éventuel débordement global dû à la marge négative */
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Enhanced focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Video responsive */
.video-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}