/********** Template CSS **********/
:root {
    --primary: #035380;
    --light: #F0FBFC;
    --dark: #181d38;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    background-color: #035380 !important;
    border: none !important;
}

.back-to-top:hover {
    background-color: #02436a !important; /* une teinte un peu plus foncée pour l'effet hover */
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
       
    }
}

/* Dropdown menu items hover avec transition */
.navbar .dropdown-menu .dropdown-item {
    transition: color 0.3s ease; /* transition douce sur la couleur */
}

.navbar .dropdown-menu .dropdown-item:hover {
    color: #0f9959 !important; /* vert */
    background-color: transparent; /* conserve le fond */
}



/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

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


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer général ***/
.footer {
    background-color: #035380 !important;
    color: #ffffff;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Titre de la section Contacts */
.footer-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* Icônes sociales ou contact */
.footer .footer-item i {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer .footer-item i:hover {
    color: #0f9959;
}

/* Texte sous icônes */
.footer .footer-text {
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0;
}

/* Organisation en 4 colonnes pour grand écran */
@media (min-width: 992px) {
    .footer .footer-item {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Responsive : icônes et textes centrés sur mobile */
@media (max-width: 768px) {
    .footer .footer-item {
        margin-bottom: 1rem;
    }

    .footer-title {
        font-size: 1.8rem;
    }

    .footer .footer-text {
        font-size: 0.85rem;
    }
}

/* Copyright full-width avec hauteur réduite et bords arrondis */
.copyright-container {
    width: 100%;
    background-color: #ffffff;
    padding: 8px 0;
    border-radius: 10px 10px 0 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.footer .copyright {
    color: #035380;
    font-weight: bold;
    margin: 0;
}






/* =========================================
   Styles pour ImmersionPro, SkillsSoft et OffrePremium
   ========================================= */

/* -------- Images -------- */
.about_image {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    position: relative;
}

.about_image::before,
.about_image::after {
    display: none !important;
}

.about_img {
    width: 100%;
    max-width: 70%;        /* Ajustement image pour qu'elle ne soit pas trop grande */
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 10px;
}

/* -------- Titre principal -------- */
.about_title {
    color: #035380;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.about_titleskill {
    color: #035380;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

/* -------- Sous-titre vert -------- */
.about_subtitle {
    color: #0f9959;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-align: justify;
}

.about_subtitleskill {
    color: #0f9959;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    text-align: justify;
}

/* -------- Liste à puces -------- */
.about_list {
    font-size: 1.15rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    text-align: justify;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.about_listP {
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: justify;

}

/* -------- Dernier paragraphe vert -------- */
.about_final {
    color: #0f9959;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    text-align: justify;
}

.about_finalP {
    color: #0f9959;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1.5rem;
    text-align: justify;
}

/* =========================================
   Responsive adjustments
   ========================================= */

/* Tablettes et petits écrans */
@media (max-width: 992px) {
    .about_title {
        font-size: 2.2rem;
    }
    .about_subtitle {
        font-size: 1.3rem;
    }
    .about_list {
        font-size: 1.05rem;
    }
    .about_listP {
        font-size: 1.05rem;
    }
    .about_final {
        font-size: 1.1rem;
    }
    .about_finalP {
        font-size: 1.1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .about_title {
        font-size: 22px;
        text-align: center;
    }

    .about_subtitle,
    .about_list,
    .about_final {
        text-align: center;
    }

    .about_img {
        max-width: 80%;
    }
}


.new_section_img {
    width: 75%;       
    height: auto;
    border-radius: 0;
    object-fit: cover;
}

.about_list {
    font-size: 1.15rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    text-align: justify;
    margin-bottom: 3rem;
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about_list {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .about_list {
        font-size: 1rem;
        text-align: center;
    }
    .new_section_img {
        width: 100%;
    }
}



/* ============================= */
/* SKILL SOFTWARE PAGE STYLE */
/* ============================= */

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ============================= */
/* HERO CAROUSEL */
/* ============================= */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-img {
    height: 100vh;
    object-fit: cover;
    filter: brightness(55%);
}

/* Overlay texte centré */
.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 900px;
    z-index: 10;
}

.hero-title {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #ffffff; 
}

.hero-icon {
    font-size: 65px;  
    margin-right: 15px;
    vertical-align: middle;
    color: #ffffff;    
}
.hero-title span {
    color: #ffff;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-hero {
    display: inline-block;
    padding: 12px 35px;
    background: #0f9959;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-hero:hover {
    background: white;
    color: #035380;
}

/* ============================= */
/* ABOUT SECTION */
/* ============================= */

#about {
    padding: 80px 20px;
}

#about .container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image img {
    width: 75%;
    border-radius: 15px;
}

/* ============================= */
/* SERVICES SECTION */
/* ============================= */

.services {
    background: #f5f7fa;
    padding: 80px 20px;
    text-align: center;
}

.services h2 {
    margin-bottom: 50px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes fixes */
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}


.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
}

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

/* ============================= */
/* ADVANTAGES SECTION */
/* ============================= */

.advantages {
    padding: 80px 20px;
    text-align: center;
}

.advantages ul {
    list-style: none;
    margin-top: 30px;
}

.advantages li {
    margin: 15px 0;
    font-size: 18px;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

/* Tablette */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 992px) {

    #about .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 576px) {

    .hero {
        height: 80vh;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}
