/*
 * SAVOIRS PLUS - Site Vitrine
 * Custom CSS Stylesheet
 * Version: 2.0
 */

/* ========================================
   1. VARIABLES & ROOT STYLES
======================================== */
:root {
    --color-secondary: #00BFFF; /* Cyan */
    --color-gold: #FFD700;      /* Doré */
    --primary: #001B3D;
    --secondary: #FFC107;
    --accent: #00A8E8;
    --success: #28a745;
    --danger: #dc3545;
    --dark: #120F2D;
    --light: #ECF4FF;
    --gray: #6B6A75;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Open Sans', sans-serif;
    color: var(--gray);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

/* ========================================
   2. TOPBAR STYLES
======================================== */
.topbar {
    background-color: var(--primary);
    font-size: 14px;
    border-bottom: 2px solid var(--accent);
}

.topbar a {
    color: var(--white);
    transition: all 0.3s ease;
}

.topbar a:hover {
    color: var(--accent);
    text-decoration: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent) !important;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    color: var(--white) !important;
    transform: translateY(-3px);
}

/* ========================================
   3. NAVBAR STYLES
======================================== */
.navbar {
    background-color: var(--primary) !important;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.logo-img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.navbar-toggler {
    border-color: var(--accent);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 232, 0.25);
}

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

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

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

/* Dropdown Styles */
.dropdown-menu {
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

.dropdown-item {
    color: var(--white);
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.dropdown-item:hover {
    background-color: var(--accent);
    color: var(--white);
    padding-left: 25px;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Platform Button */
.btn-platform {
    background: linear-gradient(135deg, var(--accent), #0088c7);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 168, 232, 0.3);
}

.btn-platform:hover {
    background: linear-gradient(135deg, #0088c7, var(--accent));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 168, 232, 0.4);
}

/* ========================================
   4. HEADER / HERO SECTIONS
======================================== */
.page-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 80px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 27, 61, 0.9), rgba(0, 168, 232, 0.8));
}

.header-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    background: transparent;
}

.breadcrumb-item a {
    color: var(--white);
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-item.active {
    color: var(--secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   5. BUTTONS & CTAs
======================================== */
.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #0088c7;
    border-color: #0088c7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 232, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #e6a806;
    border-color: #e6a806;
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: #0088c7;
    border-color: #0088c7;
    color: var(--white);
}

/* ========================================
   6. FOOTER STYLES
======================================== */
.footer-main {
    background-color: var(--primary);
    color: var(--white);
}

.footer-dark {
    background-color: var(--primary);
}

.footer-description {
    line-height: 1.8;
    margin-top: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--accent);
    text-decoration: none;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent);
    text-decoration: none;
}

.newsletter-form .form-control {
    border-radius: 20px 0 0 20px;
    border: none;
    padding: 10px 15px;
}

.newsletter-form .btn {
    border-radius: 0 20px 20px 0;
    padding: 10px 20px;
}

.slogan {
    font-size: 18px;
    font-style: italic;
    color: var(--accent);
    margin: 5px 0;
}

.slogan-en {
    font-size: 14px;
    font-style: italic;
}

/* ========================================
   7. CHATBOT STYLES
======================================== */
/* Bouton Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;   /* reste en bas */
    right: 30px;
    z-index: 2000;  /* en dessous du bouton top */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chatbot-toggle img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover img {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.5);
}

.chatbot-toggle.active img {
    transform: scale(0.9);
}


df-messenger {
    --df-messenger-bot-message: #f1f1f1;
    --df-messenger-button-titlebar-color: var(--primary);
    --df-messenger-send-icon: var(--accent);
    position: fixed !important;
    right: 30px !important;
    bottom: 110px !important;
    z-index: 1999 !important;
}

/* ========================================
   8. BACK TO TOP BUTTON
======================================== */
/* Bouton Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;   /* au-dessus du chatbot */
    right: 45px;
    z-index: 2100;
    display: none;
    width: 36px;     /* réduit la largeur */
    height: 36px;    /* réduit la hauteur */
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%; /* bouton rond */
    padding: 0;         /* enlève le surplus */
    transition: all 0.3s ease;
    text-align: center;
    line-height: 36px;  /* centre l’icône verticalement */
}

.back-to-top i {
    font-size: 18px; /* réduit l’icône */
}


.back-to-top:hover {
    background: #0088c7; /* cyan foncé */
    color: var(--color-neutral);
    transform: translateY(-5px);
}




/* ========================================
   9. CARDS & CONTENT BLOCKS
======================================== */
.course-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.course-card:hover .course-img {
    transform: scale(1.05);
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

/* ========================================
   10. UTILITIES & HELPERS
======================================== */
.text-accent {
    color: var(--accent) !important;
}

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

.section-title h6 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.overlay-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), transparent);
}

/* ========================================
   11. RESPONSIVE DESIGN
======================================== */
@media (max-width: 991px) {
    .navbar-nav {
        background: rgba(0, 27, 61, 0.95);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        background: rgba(0, 27, 61, 0.98);
        margin-top: 5px;
    }
    
    .logo-img {
        max-height: 50px;
    }
    
    .page-header {
        padding: 80px 0 60px;
    }
    
 
    
  
    
    df-messenger {
        bottom: 90px !important;
        right: 20px !important;
    }
    

}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .section-title h1 {
        font-size: 1.8rem;
    }
    
    .footer-main .col-lg-4,
    .footer-main .col-lg-3,
    .footer-main .col-lg-2 {
        margin-bottom: 30px;
    }
}

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

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

/* ========================================
   13. CUSTOM SCROLLBAR
======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0088c7;
}

.page-header {
  position: relative;
  height: 60vh; /* au lieu de 100vh */
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* garde le bon ratio */
  z-index: -1;
}
.page-title {
    font-family: 'Montserrat', sans-serif; /* police Montserrat */
    font-size: 3rem;                        /* taille plus grande */
    font-weight: 700;                       /* gras pour impact */
    color: #ffffff;                         /* texte en blanc */
    text-transform: uppercase;              /* optionnel : majuscules */
    letter-spacing: 1px;                    /* optionnel : espacement */
}
