:root {
    --primary-color: #0066FF;
    /* Bleu vif */
    --secondary-color: #FF6600;
    /* Orange vif */
    --accent-color: #00CC66;
    /* Vert vif */
    --dark-color: #1A1A2E;
    --light-color: #FFFFFF;
    --btn-hover-color: #0044cc;
    --btn-secondary-hover: #e65c00;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}


/* Bannière hero améliorée */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: white;
    color: var(--dark-color);
    overflow: hidden;
    isolation: isolate;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(255, 102, 0, 0.1) 50%, rgba(0, 204, 102, 0.1) 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInDown 1s ease both;
}

.typing-text-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.typing-text {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-color);
    border-right: 4px solid var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(40) 1s 1 normal both, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent
    }
    50% {
        border-color: var(--secondary-color)
    }
}

.hero-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s both;
}


/* Boutons améliorés */

.btn-hero {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 1;
}

.btn-hero-primary {
    background: linear-gradient(45deg, var(--primary-color), #3399ff);
    color: white;
}

.btn-hero-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
    color: white;
    background: linear-gradient(45deg, var(--btn-hover-color), #1a75ff);
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-hero-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.btn-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 1s both;
}


/* Éléments flottants animés */

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: float 15s linear infinite;
    opacity: 0.7;
    filter: blur(1px);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
    100% {
        transform: translateY(-1000px) rotate(720deg) scale(1);
        opacity: 0;
    }
}


/* Navbar */

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    position: relative;
    margin: 0 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
}


/* Boutons flottants */

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background: var(--secondary-color);
    color: white;
}


/* Sections */

section {
    padding: 100px 0;
}

.section-title-container {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    position: relative;
    display: inline-block;
}

.footer-animated {
    animation: fadeInUp 1s ease forwards;
}

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

.footer-links a {
    transition: color 0.3s, transform 0.3s;
}

.footer-links a:hover {
    color: #0d6efd !important;
    /* bleu primaire */
    transform: translateX(5px);
}

.social-icons a,
.social-media-icons .btn {
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.social-icons a:hover,
.social-media-icons .btn:hover {
    transform: scale(1.2) rotate(10deg);
    background-color: #0d6efd !important;
    color: #fff !important;
}

.logo-footer img {
    transition: transform 0.3s;
}

.logo-footer img:hover {
    transform: scale(1.1) rotate(-5deg);
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

@media (max-width: 767.98px) {
    .social-media-icons {
        margin-top: 15px;
    }
    .footer-text {
        text-align: center;
    }
    .footer-links {
        text-align: center;
        margin-top: 20px;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}


/* Cartes */

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* Galerie style stories */

.story-item {
    width: 200px;
    /* Largeur fixe pour l'item */
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    cursor: pointer;
}

.story-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-item:hover .story-img {
    transform: scale(1.1);
}

.story-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    font-size: 0.8rem;
    white-space: normal;
}


/* Témoignages */

.testimonial-container {
    position: relative;
    padding: 20px 0;
}

.testimonial-item {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 15px;
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 15px;
}

.testimonial-quote {
    position: relative;
    font-style: italic;
    padding: 0 20px;
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial-quote::before {
    top: -15px;
    left: 0;
}

.testimonial-quote::after {
    bottom: -25px;
    right: 0;
}

.testimonial-author {
    font-weight: 600;
    margin-top: 20px;
    color: var(--primary-color);
}

.testimonial-role {
    font-size: 0.9rem;
    color: #666;
}


/* Animation des sections */

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0) !important;
}


/* Responsive */

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .typing-text {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1.1rem;
    }
    .btn-hero {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .typing-text-container {
        min-height: 80px;
    }
    .typing-text {
        font-size: 1.5rem;
    }
    .btn-container {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero {
        width: 80%;
        max-width: 250px;
    }
    section {
        padding: 60px 0;
    }
    .story-item {
        width: 100px;
        height: 150px;
    }
    /* Correction spécifique pour les témoignages sur mobile */
    #temoignages .testimonial-item {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}


/* Modale de la galerie */

.modal-content {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.modal-header {
    border-bottom: none;
}

.modal-header .btn-close {
    background-color: white;
}


/* Styles du menu mobile latéral */

.offcanvas {
    background-color: white;
    color: var(--dark-color);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-body .nav-link {
    color: var(--dark-color) !important;
    font-size: 1.2rem;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.offcanvas-body .nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateX(10px);
}

.offcanvas-body .nav-link::after {
    display: none;
}


/* Ajustements du formulaire de contact */

.form-floating label {
    color: #6c757d;
}

.form-floating .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 255, 0.25);
    border-color: var(--primary-color);
}


/* Icône de burger */

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


/* ** Styles améliorés pour le bloc de contact ** */

.contact-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.contact-info-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3399ff 100%);
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-container h4 {
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-info-container .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info-container .info-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contact-form-container {
    padding: 40px;
}

.social-links a {
    color: #fff !important;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}


/* Responsive pour la galerie */

@media (max-width: 991.98px) {
    .carousel-inner .d-flex {
        flex-wrap: wrap;
        justify-content: center !important;
    }
    .story-item {
        width: 150px;
        height: 225px;
        margin-bottom: 10px;
    }
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}


/* Ajout des styles pour le nouveau footer */

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color) !important;
}

.social-media-icons .btn {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

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

@media (max-width: 767.98px) {
    .social-media-icons {
        margin-top: 15px;
        /* Espace entre le texte de copyright et les icônes sur mobile */
    }
}