/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#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;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

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

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


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

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-brand img {
    max-height: 56px !important;
    width: auto;
    height: auto;
}

.navbar-actions {
    margin-left: auto;
    gap: .15rem;
    flex-shrink: 0;
}

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

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

.navbar-dark .navbar-nav .nav-item.dropdown {
    margin-left: 25px;
}

.navbar-dark .navbar-nav .nav-item.dropdown > .nav-link {
    margin-left: 0;
}

.navbar-dark .dropdown-menu {
    margin-top: 0;
    border: none;
    border-radius: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.navbar-dark .dropdown-item {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--dark);
    padding: 0.6rem 1.25rem;
}

.navbar-dark .dropdown-item:hover,
.navbar-dark .dropdown-item:focus,
.navbar-dark .dropdown-item.active {
    background-color: var(--light);
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Collapsed menu until xl — trop d'items pour expand-lg (992px) */
@media (max-width: 1199.98px) {
    .navbar-dark,
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-collapse {
        flex-basis: 100%;
        margin-top: .5rem;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark);
        font-size: 1rem;
    }

    .navbar-dark .navbar-nav .nav-item.dropdown {
        margin-left: 0;
    }

    .navbar-dark .dropdown-menu {
        box-shadow: none;
        border: none;
        padding-left: 0.75rem;
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

@media (min-width: 1200px) {
    .navbar-brand img {
        max-height: 80px !important;
    }

    .navbar-actions {
        order: 3;
        margin-left: .75rem;
    }

    .navbar-dark .navbar-collapse {
        order: 2;
        flex-grow: 1;
    }

    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }

    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link {
        margin-left: 16px;
        font-size: 15.5px;
        padding: 32px 0;
        white-space: nowrap;
    }

    .navbar-dark .navbar-nav .nav-item.dropdown {
        margin-left: 16px;
    }

    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.carousel-caption .hero-content {
    max-width: 1040px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(-1.25rem);
}

.carousel-caption .hero-content .display-1 {
    font-size: clamp(2.6rem, 6.5vw, 5.75rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
    margin-bottom: 1rem !important;
}

/*
 * Mobile/tablet (< xl): navbar is in normal flow (expand-xl), and the image
 * aspect ratio can make the slide shorter than the caption (title + CTAs +
 * flags). Raise min-height and cover the photo instead of cropping content.
 */
@media (max-width: 1199.98px) {
    #header-carousel .carousel-item {
        min-height: max(32rem, calc(100svh - 5.5rem));
    }

    #header-carousel .carousel-item > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .carousel-caption {
        padding-top: 1.5rem;
        padding-bottom: 1.75rem;
    }

    .carousel-caption .hero-content {
        transform: none;
    }
}

@media (max-width: 576px) {
    #header-carousel .carousel-item {
        min-height: max(30rem, calc(100svh - 5rem));
    }

    .carousel-caption {
        padding-top: 1.1rem;
        padding-bottom: 1.35rem;
    }

    .carousel-caption .hero-content {
        transform: none;
        padding: .65rem .5rem !important;
    }

    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1,
    .carousel-caption .hero-content .display-1 {
        font-size: 1.85rem;
        font-weight: 700 !important;
        margin-bottom: .65rem !important;
        line-height: 1.15;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

/*** Service product cards (service.html) ***/
.service-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #EEF9FF;
    transition: transform .35s ease, box-shadow .35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(9, 30, 62, .12);
}

.service-card-img {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

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

.service-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(9, 30, 62, .35) 100%);
    pointer-events: none;
}

.service-card-body {
    padding: 1.5rem 1.5rem 2rem;
    text-align: center;
}

.service-card-body .service-icon {
    margin: -2.75rem auto 1rem;
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
    box-shadow: 0 4px 12px rgba(6, 163, 218, .35);
}

.service-card-body .service-icon i {
    transform: rotate(45deg);
    font-size: 1.1rem;
}

.service-card-cta {
    min-height: 100%;
}

html[data-theme="dark"] .service-card {
    background: #10203a;
}

html[data-theme="dark"] .service-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .service-card-img::after {
    background: linear-gradient(180deg, transparent 40%, rgba(10, 21, 38, .55) 100%);
}


/*** Objectifs ***/
.objectif-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
}

.objectif-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(9, 30, 62, .1);
}

.objectif-card-img {
    height: 180px;
    overflow: hidden;
    background: #EEF9FF;
}

.objectif-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.objectif-card:hover .objectif-card-img img {
    transform: scale(1.04);
}

.objectif-card-body {
    padding: 1.25rem 1.25rem 1.75rem;
}

.objectif-card-body h4 {
    margin-bottom: .5rem;
}

.objectif-card-body p {
    font-size: .85rem;
    letter-spacing: .02em;
    line-height: 1.5;
}

html[data-theme="dark"] .objectif-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .objectif-card-img {
    background: #10203a;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    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;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}

.tm-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btn-temoigner {
    position: relative;
    box-shadow: 0 0 0 0 rgba(6, 163, 218, 0.45);
    animation: temoigner-pulse 2.4s ease-in-out infinite;
}

@keyframes temoigner-pulse {
    0% { box-shadow: 0 0 0 0 rgba(6, 163, 218, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(6, 163, 218, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 163, 218, 0); }
}

.pc-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

html[data-theme="dark"] #temoignageModal .modal-content {
    background-color: #0f2740;
    color: inherit;
}

html[data-theme="dark"] #temoignageModal .modal-header .btn-close {
    filter: invert(1);
}

html[data-theme="dark"] .tm-initials {
    background: var(--primary);
}

html[data-theme="dark"] .tm-empty {
    color: inherit;
}


/*** Team ***/
.team-item {
    transition: .5s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-item > .text-center {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
}

.photo-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.photo-banner {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    object-position: center;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/photo-header.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}


/*** Dark Mode ***/
/* Smooth transitions when switching themes (applies both directions) */
body,
.bg-light,
.bg-white,
.bg-dark,
.service-item,
.service-card,
.objectif-card,
.team-item,
.blog-item,
.testimonial-item,
.form-control,
.form-select {
    transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}

/* Theme toggle button in the navbar */
.theme-toggle {
    background: transparent;
    border: 0;
    line-height: 1;
    padding: .375rem .5rem;
    color: var(--primary);
    cursor: pointer;
}

.theme-toggle:focus {
    outline: none;
    box-shadow: none;
}

.theme-toggle i {
    font-size: 20px;
    transition: transform .4s ease;
}

.theme-toggle:hover i {
    transform: rotate(20deg) scale(1.1);
}

html[data-theme="dark"] .theme-toggle .icon-to-dark {
    display: none;
}

html[data-theme="light"] .theme-toggle .icon-to-light {
    display: none;
}

/* Base surfaces */
html[data-theme="dark"] body {
    background-color: #0a1526;
    color: #e6edf7;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #f2f6fc;
}

html[data-theme="dark"] .bg-light {
    background-color: #10203a !important;
}

html[data-theme="dark"] .bg-white {
    background-color: #142744 !important;
}

html[data-theme="dark"] .bg-dark {
    background-color: #050b16 !important;
}

html[data-theme="dark"] .text-dark {
    color: #e6edf7 !important;
}

html[data-theme="dark"] .text-muted {
    color: #9fb0c7 !important;
}

/* Borders */
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end {
    border-color: rgba(255, 255, 255, .12) !important;
}

/* Forms (also covers inputs that use .bg-light) */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: #0e1d33 !important;
    color: #e6edf7 !important;
    border-color: rgba(255, 255, 255, .15) !important;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #8ea3bf;
}

html[data-theme="dark"] .form-select option {
    background-color: #0e1d33;
    color: #e6edf7;
}

/* Cards / items shadows */
html[data-theme="dark"] .team-item:hover,
html[data-theme="dark"] .blog-item:hover,
html[data-theme="dark"] .testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .55) !important;
}

html[data-theme="dark"] .testimonial-carousel .owl-item.center .testimonial-item {
    background: #142744 !important;
}

html[data-theme="dark"] .testimonial-carousel .owl-dot {
    background: #2a3c5a;
}

html[data-theme="dark"] .testimonial-carousel .owl-dot.active {
    background: var(--primary);
}

/* Navbar (sticky solid + collapsed mobile menu) */
html[data-theme="dark"] .sticky-top.navbar-dark {
    background: #0a1526 !important;
}

html[data-theme="dark"] .sticky-top.navbar-dark .navbar-nav .nav-link {
    color: #e6edf7;
}

html[data-theme="dark"] .sticky-top.navbar-dark .navbar-nav .nav-link:hover,
html[data-theme="dark"] .sticky-top.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

html[data-theme="dark"] .navbar-dark .dropdown-menu {
    background-color: #122038;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .navbar-dark .dropdown-item {
    color: #e6edf7;
}

html[data-theme="dark"] .navbar-dark .dropdown-item:hover,
html[data-theme="dark"] .navbar-dark .dropdown-item:focus,
html[data-theme="dark"] .navbar-dark .dropdown-item.active {
    background-color: #1a2d4a;
    color: var(--primary);
}

@media (max-width: 1199.98px) {
    html[data-theme="dark"] .navbar-dark,
    html[data-theme="dark"] .sticky-top.navbar-dark {
        background: #0a1526;
    }

    html[data-theme="dark"] .navbar-dark .navbar-nav .nav-link,
    html[data-theme="dark"] .navbar-dark .navbar-nav .nav-link.show,
    html[data-theme="dark"] .sticky-top.navbar-dark .navbar-nav .nav-link {
        color: #e6edf7;
    }
}

/* Spinner overlay */
html[data-theme="dark"] #spinner.bg-white,
html[data-theme="dark"] #spinner {
    background-color: #0a1526 !important;
}


/*** Video Testimonials (TikTok) ***/
/* Horizontal step carousel (card-by-card), drag/swipe + snap (js/procope.js) */
.pc-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 4px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}

.pc-scroller.vt-step-carousel {
    scroll-snap-type: x mandatory;
}

.pc-scroller::-webkit-scrollbar {
    display: none;
}

.pc-scroller.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none; /* avoid fighting the drag */
}

.vt-card {
    position: relative;
    flex: 0 0 auto;
    width: 210px;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(9, 30, 62, .18);
    transition: transform .4s ease, box-shadow .4s ease;
    -webkit-user-select: none;
    user-select: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.vt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(9, 30, 62, .28);
}

.vt-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    pointer-events: none;
}

.vt-card .vt-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .75) 100%);
}

.vt-card .vt-play {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 0 0 rgba(6, 163, 218, .6);
    animation: vt-pulse 2.2s infinite;
}

@keyframes vt-pulse {
    0% { box-shadow: 0 0 0 0 rgba(6, 163, 218, .55); }
    70% { box-shadow: 0 0 0 16px rgba(6, 163, 218, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 163, 218, 0); }
}

.vt-card .vt-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    color: #fff;
    text-align: left;
    pointer-events: none;
}

.vt-card .vt-meta h6 {
    color: #fff !important;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
}

.vt-card .vt-meta small {
    display: block;
    margin-top: 2px;
    opacity: .88;
    font-size: 11px;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: .01em;
}

.vt-card .vt-tiktok-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

/* Swipe tutorial overlay ("balayez pour voir le suivant") */
.pc-scroller-wrap {
    position: relative;
}

.pc-swipe-hint {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(9, 30, 62, .55);
    color: #fff;
    border-radius: 16px;
    text-align: center;
    padding: 20px;
    transition: opacity .5s ease, visibility .5s ease;
    cursor: pointer;
}

.pc-swipe-hint.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.pc-swipe-hint .swipe-hand {
    font-size: 44px;
    animation: swipe-hand 1.6s ease-in-out infinite;
}

.pc-swipe-hint p {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

.pc-swipe-hint small {
    opacity: .85;
}

@keyframes swipe-hand {
    0% { transform: translateX(26px) rotate(8deg); opacity: .35; }
    50% { transform: translateX(-26px) rotate(-8deg); opacity: 1; }
    100% { transform: translateX(26px) rotate(8deg); opacity: .35; }
}

/* Video pop-up (modal) responsive frame */
.vt-modal-frame {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.vt-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/*** Countries flags marquee ***/
.flags-marquee {
    overflow: hidden;
    width: 100%;
}

.flags-marquee .flags-track {
    display: flex;
    width: max-content;
    animation: flags-scroll 28s linear infinite;
}

.flags-marquee:hover .flags-track {
    animation-play-state: paused;
}

.flags-marquee .flag-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 26px;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

html[data-theme="dark"] .flags-marquee .flag-item {
    color: #e6edf7;
}

.flags-marquee .flag-item img {
    width: 40px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

@keyframes flags-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Hero: tagline, CTAs, country flags */
.hero-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.45;
    max-width: 44rem;
    margin: 0 auto 1.65rem;
    opacity: .98;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

@media (min-width: 768px) {
    .hero-tagline {
        font-size: 1.75rem;
        margin-bottom: 1.9rem;
    }
}

@media (min-width: 992px) {
    .hero-tagline {
        font-size: 2rem;
        margin-bottom: 2.15rem;
    }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem 1.1rem;
    margin-bottom: 1.9rem;
}

.hero-cta .btn {
    min-width: 12rem;
    font-weight: 600;
    font-size: 1.05rem;
    padding: .7rem 1.6rem;
}

@media (min-width: 768px) {
    .hero-cta {
        margin-bottom: 2.4rem;
        gap: 1.1rem 1.4rem;
    }

    .hero-cta .btn {
        min-width: 14rem;
        font-size: 1.15rem;
        padding: .85rem 2rem;
    }
}

.hero-flags {
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.25rem 1.4rem 1.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-flags .hero-flags-label {
    font-family: 'Nunito', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .92;
    margin-bottom: .95rem;
}

.hero-flags-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .65rem .85rem;
}

.hero-flags .hero-flag {
    display: block;
    width: 56px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
    animation: hero-flag-wiggle 3.4s ease-in-out infinite;
    transform-origin: center bottom;
}

@media (min-width: 768px) {
    .hero-flags {
        padding: 1.4rem 1.75rem 1.55rem;
    }

    .hero-flags .hero-flags-label {
        font-size: 1rem;
        margin-bottom: 1.1rem;
    }

    .hero-flags-row {
        gap: .75rem 1rem;
    }

    .hero-flags .hero-flag {
        width: 64px;
    }
}

@media (max-width: 575.98px) {
    .hero-tagline {
        font-size: 1.05rem;
        line-height: 1.35;
        margin-bottom: 1rem;
    }

    .hero-cta {
        margin-bottom: 1rem;
        gap: .55rem .7rem;
    }

    .hero-cta .btn {
        min-width: 9.75rem;
        font-size: .95rem;
        padding: .55rem 1.15rem;
    }

    .hero-flags {
        padding: .85rem .9rem 1rem;
    }

    .hero-flags .hero-flags-label {
        font-size: .72rem;
        letter-spacing: .05em;
        margin-bottom: .7rem;
    }

    .hero-flags-row {
        gap: .4rem .5rem;
        /* room for hero-flag-wiggle (rotate + translateY) so flags aren't clipped */
        padding-bottom: .35rem;
    }

    .hero-flags .hero-flag {
        width: 40px;
    }
}

@keyframes hero-flag-wiggle {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(-3px); }
}


/*** Previous training posters ***/
.poster-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(9, 30, 62, .15);
    cursor: pointer;
}

.poster-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.poster-item:hover img {
    transform: scale(1.06);
}

.poster-item .poster-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    background: rgba(9, 30, 62, 0);
    opacity: 0;
    transition: .4s ease;
}

.poster-item:hover .poster-zoom {
    opacity: 1;
    background: rgba(9, 30, 62, .45);
}

.poster-modal-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


/*** Galerie des formations (mix + filtres + carousel) ***/
.fg-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.fg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fg-filter-btn,
.fg-formation-select {
    border: 1px solid rgba(9, 30, 62, .12);
    background: #fff;
    color: #091e3e;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.fg-filter-btn:hover,
.fg-filter-btn:focus-visible {
    border-color: #06A3DA;
    color: #06A3DA;
}

.fg-filter-btn.is-active {
    background: #06A3DA;
    border-color: #06A3DA;
    color: #fff;
}

.fg-formation-select {
    min-width: 220px;
    max-width: 100%;
    cursor: pointer;
}

.fg-carousel-wrap {
    padding: 4px 0 0;
}

.fg-carousel .owl-stage-outer {
    padding: 36px 0 28px;
}

.fg-carousel--posters .owl-stage-outer {
    padding: 36px 0 12px;
}

.fg-carousel .owl-stage {
    cursor: grab;
}

.fg-carousel .owl-stage:active {
    cursor: grabbing;
}

.fg-carousel .owl-item {
    position: relative;
    z-index: 0;
    transition: opacity .4s cubic-bezier(0.22, 1, 0.36, 1), filter .4s ease;
}

.fg-carousel .owl-item.center {
    z-index: 1;
}

.fg-carousel .owl-item:hover {
    z-index: 2;
}

.fg-slide {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #e9eef4;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transform: scale(0.92);
    box-shadow: 0 8px 22px rgba(9, 30, 62, .08);
    transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .45s ease;
}

.fg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fg-carousel .owl-item.center .fg-slide {
    transform: scale(1.06);
    background: #fff;
    box-shadow: 0 0 30px #DDDDDD;
}

.fg-carousel .owl-item.center .fg-slide img {
    transform: scale(1.04);
}

.fg-carousel .owl-stage:hover .owl-item {
    opacity: 0.42;
    filter: saturate(0.65);
}

.fg-carousel .owl-stage:hover .owl-item:hover {
    opacity: 1;
    filter: none;
}

.fg-carousel .owl-item:hover .fg-slide,
.fg-carousel .owl-item .fg-slide:focus-visible {
    transform: scale(1.12) rotate(-1.6deg) translateY(-12px);
    box-shadow: 0 22px 48px rgba(9, 30, 62, .28);
}

.fg-carousel .owl-item:hover .fg-slide img,
.fg-carousel .owl-item .fg-slide:focus-visible img {
    transform: scale(1.08);
}

.fg-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 12px 12px;
    color: #fff;
    background: linear-gradient(180deg, transparent 42%, rgba(9, 30, 62, .58));
    opacity: 0;
    transition: opacity .35s ease;
}

.fg-carousel .owl-item.center .fg-slide-overlay,
.fg-carousel .owl-item:hover .fg-slide-overlay,
.fg-carousel .owl-item .fg-slide:focus-visible .fg-slide-overlay {
    opacity: 1;
}

.fg-slide-zoom {
    margin-top: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 163, 218, .92);
    font-size: 16px;
}

.fg-slide-caption {
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

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

.fg-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.fg-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.fg-carousel-static {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 20px 4px;
    scroll-snap-type: x mandatory;
}

.fg-carousel-static .fg-slide-item {
    flex: 0 0 min(280px, 78vw);
    scroll-snap-align: center;
}

.fg-carousel--posters .fg-slide,
.fg-slide--poster {
    aspect-ratio: 3 / 4;
}

.fg-slide-title {
    margin: 14px 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    color: #091e3e;
}

.fg-slide-kicker {
    display: block;
    margin-top: 2px;
    text-align: center;
    color: #6c757d;
    font-size: 13px;
}

.fg-photo {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #e9eef4;
    box-shadow: 0 10px 30px rgba(9, 30, 62, .12);
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.fg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1);
}

.fg-photo:hover img,
.fg-photo:focus-visible img {
    transform: scale(1.05);
}

.fg-photo-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    background: rgba(9, 30, 62, 0);
    opacity: 0;
    transition: .35s ease;
}

.fg-photo:hover .fg-photo-zoom,
.fg-photo:focus-visible .fg-photo-zoom {
    opacity: 1;
    background: rgba(9, 30, 62, .42);
}

.fg-empty {
    box-shadow: 0 8px 24px rgba(9, 30, 62, .06);
}

.fg-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.fg-lightbox-img {
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.fg-lightbox-nav {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #06A3DA;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fg-lightbox-nav:hover,
.fg-lightbox-nav:focus-visible {
    background: #091e3e;
}

.fg-lightbox-caption {
    color: #6c757d;
}

@media (max-width: 575.98px) {
    .fg-carousel .owl-stage-outer {
        padding: 28px 0 20px;
    }

    .fg-carousel .owl-item.center .fg-slide {
        transform: scale(1.03);
    }

    .fg-carousel .owl-item:hover .fg-slide,
    .fg-slide:focus-visible {
        transform: scale(1.06) rotate(-1deg) translateY(-6px);
    }

    .fg-lightbox-nav {
        width: 36px;
        height: 36px;
    }
}

html[data-theme="dark"] .fg-empty {
    background: #132033;
}

html[data-theme="dark"] .fg-filter-btn,
html[data-theme="dark"] .fg-formation-select {
    background: #132033;
    border-color: rgba(255, 255, 255, .14);
    color: #e6edf7;
}

html[data-theme="dark"] .fg-filter-btn.is-active {
    background: #06A3DA;
    border-color: #06A3DA;
    color: #fff;
}

html[data-theme="dark"] .fg-photo,
html[data-theme="dark"] .fg-slide {
    background: #0f1b2b;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .fg-carousel .owl-item.center .fg-slide {
    background: #142744;
    box-shadow: 0 0 30px rgba(0, 0, 0, .55);
}

html[data-theme="dark"] .fg-carousel .owl-dot {
    background: #2a3c5a;
}

html[data-theme="dark"] .fg-carousel .owl-dot.active {
    background: var(--primary);
}

html[data-theme="dark"] .fg-slide-title {
    color: #e6edf7;
}

html[data-theme="dark"] .fg-slide-kicker {
    color: #9aa8b8;
}

html[data-theme="dark"] .fg-lightbox .modal-content {
    background: #132033;
}

html[data-theme="dark"] .fg-lightbox-caption {
    color: #9aa8b8;
}

html[data-theme="dark"] #galleryModal .modal-header .btn-close {
    filter: invert(1);
}


/*** Candidature panels (4 onglets + hash) ***/
.cand-toggle-wrap {
    display: flex;
    justify-content: center;
}

.cand-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem;
    padding: .35rem;
    border-radius: 999px;
    background: #eef6fb;
    border: 2px solid rgba(6, 163, 218, .25);
    max-width: 100%;
}

.cand-toggle-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #091E3E;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    padding: .75rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
    white-space: nowrap;
}

.cand-toggle-btn:hover,
.cand-toggle-btn:focus-visible {
    color: var(--primary);
    outline: none;
}

.cand-toggle-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(6, 163, 218, .35);
}

.cand-toggle-btn.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(6, 163, 218, .35);
}

.cand-toggle-btn.is-active:hover,
.cand-toggle-btn.is-active:focus-visible {
    color: #fff;
}

.cand-panels {
    width: 100%;
}

.cand-panel {
    display: none;
    animation: candPanelIn .35s ease;
}

.cand-panel.is-active {
    display: block;
}

@keyframes candPanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.cand-cta-block h5 {
    font-family: 'Nunito', sans-serif;
}

.news-card img {
    height: 200px;
    object-fit: cover;
}

/* Mobile: stack vertical (libellés longs lisibles, pas de débordement) */
@media (max-width: 575.98px) {
    .cand-toggle-wrap {
        width: 100%;
    }

    .cand-toggle {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        width: 100%;
        border-radius: 16px;
        gap: .3rem;
    }

    .cand-toggle-btn {
        width: 100%;
        text-align: left;
        white-space: normal;
        font-size: .9rem;
        padding: .8rem 1rem;
        border-radius: 12px;
    }
}

/* Tablette: scroll horizontal avec snap (évite wrap 2×2 serré) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .cand-toggle-wrap {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: .15rem;
    }

    .cand-toggle-wrap::-webkit-scrollbar {
        display: none;
    }

    .cand-toggle {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        max-width: none;
        border-radius: 999px;
    }

    .cand-toggle-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
        font-size: .9rem;
        padding: .7rem 1rem;
    }
}

html[data-theme="dark"] .cand-toggle {
    background: #122038;
    border-color: rgba(6, 163, 218, .4);
}

html[data-theme="dark"] .cand-toggle-btn {
    color: #e6edf7;
}

html[data-theme="dark"] .cand-toggle-btn:hover,
html[data-theme="dark"] .cand-toggle-btn:focus-visible {
    color: var(--primary);
}

html[data-theme="dark"] .cand-toggle-btn.is-active {
    background: var(--primary);
    color: #fff;
}

html[data-theme="dark"] .news-card {
    background: #122038 !important;
}


/*** Responsive global (mobile-first polish) ***/
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

img,
svg,
video {
    max-width: 100%;
}

/* Cover / absolute images keep their layout height */
.position-absolute.w-100.h-100,
.team-img img,
.blog-img img,
.service-card-img img,
.objectif-card-img img,
.poster-item img,
.fg-photo img,
.fg-slide img,
.news-card img,
.carousel-item > img {
    max-width: none;
}

iframe {
    max-width: 100%;
}

table {
    max-width: 100%;
}

.pc-split-media {
    min-height: 500px;
}

.pc-split-media--sm {
    min-height: 350px;
}

.pc-map {
    min-height: 280px;
}

.pc-map iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-height: 280px;
    border: 0;
}

/* Typography: Bootstrap display-* trop grands sur petits écrans */
.display-1 {
    font-size: clamp(2rem, 7vw, 5.5rem);
}

.display-2 {
    font-size: clamp(1.85rem, 6vw, 4.5rem);
}

.display-3 {
    font-size: clamp(1.7rem, 5.2vw, 3.75rem);
}

.display-4 {
    font-size: clamp(1.55rem, 4.5vw, 3rem);
}

.display-5 {
    font-size: clamp(1.4rem, 3.8vw, 2.5rem);
}

.display-6 {
    font-size: clamp(1.25rem, 3.2vw, 2rem);
}

.section-title h1,
.bg-header h1 {
    font-size: clamp(1.45rem, 4.2vw, 2.5rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.team-item h4 {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    line-height: 1.3;
}

.team-item .text-center p {
    overflow-wrap: anywhere;
}

.news-card {
    overflow: hidden;
}

.news-card img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.facts .shadow h5 {
    font-size: clamp(.85rem, 2.4vw, 1.05rem);
    line-height: 1.3;
}

.facts .shadow h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

/* Contact: emails / longs libellés */
.ps-4 h4,
.ps-4 h4 a {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(1rem, 2.8vw, 1.35rem);
    line-height: 1.35;
}

@media (max-width: 991.98px) {
    .pc-split-media {
        min-height: 280px;
        margin-top: .5rem;
    }

    .pc-split-media--sm {
        min-height: 240px;
    }

    .bg-header {
        margin-bottom: 2.5rem !important;
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .container-fluid.bg-header[style*="margin-top"] {
        margin-top: 2.5rem !important;
    }

    .facts .shadow {
        height: auto !important;
        min-height: 110px;
        padding: 1.1rem !important;
        margin-bottom: .75rem;
    }

    .service-item {
        height: auto;
        min-height: 260px;
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .service-item a.btn {
        opacity: 1;
        bottom: -20px;
    }

    .footer-about {
        margin-bottom: 0;
    }

    .back-to-top {
        right: 18px;
        bottom: 18px;
    }
}

@media (max-width: 767.98px) {
    .container-fluid.py-5 {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }

    .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .row.g-5 {
        --bs-gutter-y: 1.75rem;
    }

    .bg-light.rounded.p-4.p-md-5,
    .cand-panel .bg-light.rounded {
        padding: 1.25rem !important;
    }

    .objectif-card-img {
        height: 160px;
    }

    .service-card-img {
        height: 180px;
    }

    .news-card img {
        height: 180px;
        max-height: 180px;
    }

    .team-item .team-social a.btn {
        margin: 0 2px;
    }

    /* Footer copyright bar */
    .container.text-center .d-flex[style*="height: 75px"] {
        height: auto !important;
        min-height: 64px;
        padding: .75rem 0;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .pc-split-media,
    .pc-split-media--sm {
        min-height: 220px;
    }

    .pc-map iframe {
        min-height: 240px !important;
        height: 240px !important;
    }

    .section-title::before {
        width: 110px;
    }

    .section-title.text-center::before {
        margin-left: -55px;
    }

    .btn.py-md-3.px-md-5 {
        padding: .65rem 1.25rem;
    }

    .hero-content .btn {
        max-width: 100%;
    }
}

/* Dark mode: navbar tools stay readable on collapsed solid bar */
@media (max-width: 1199.98px) {
    html[data-theme="dark"] .navbar-actions .theme-toggle {
        color: var(--primary);
    }
}


/* Hero formation notice */
/*
 * Pilule "nouvelle formation" injectée par js/hero-formation.js dans
 * #header-carousel (enfant direct, hors des .carousel-item) : un seul
 * élément superposé à toutes les slides. z-index 15 = au-dessus des
 * captions (z-index 1) et des contrôles, sous la navbar desktop (999).
 * Tons .hfn-tone-0…5 : une couleur par formation (boucle si n > 6).
 */
.hero-formation-notice {
    --hfn-bg: #ea580c;
    --hfn-shadow: 234, 88, 12;
    position: absolute;
    top: 7.5rem; /* desktop : sous la navbar absolue (~90px), au-dessus du titre centré */
    left: 50%;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    max-width: min(calc(100% - 4.5rem), 880px);
    padding: .55rem 1.25rem .55rem 1rem;
    border-radius: 999px;
    /* Couleur unie + transition : le ton glisse, le titre crossfade à part. */
    background-color: var(--hfn-bg);
    background-image: none;
    border: 1px solid rgba(255, 255, 255, .38);
    color: #fff;
    font-size: .95rem;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(var(--hfn-shadow), .38), 0 2px 8px rgba(9, 30, 62, .3);
    opacity: 0;
    transform: translate(-50%, -14px);
    transition: opacity .55s ease, transform .55s ease, box-shadow .3s ease, background-color .45s ease, border-color .45s ease;
}

#header-carousel .hero-formation-notice.hfn-tone-0 {
    --hfn-bg: #ea580c;
    --hfn-shadow: 234, 88, 12;
    background-color: #ea580c;
}

#header-carousel .hero-formation-notice.hfn-tone-1 {
    --hfn-bg: #0369a1;
    --hfn-shadow: 3, 105, 161;
    background-color: #0369a1;
}

#header-carousel .hero-formation-notice.hfn-tone-2 {
    --hfn-bg: #0f766e;
    --hfn-shadow: 15, 118, 110;
    background-color: #0f766e;
}

#header-carousel .hero-formation-notice.hfn-tone-3 {
    --hfn-bg: #6d28d9;
    --hfn-shadow: 109, 40, 217;
    background-color: #6d28d9;
}

#header-carousel .hero-formation-notice.hfn-tone-4 {
    --hfn-bg: #be123c;
    --hfn-shadow: 190, 18, 60;
    background-color: #be123c;
}

#header-carousel .hero-formation-notice.hfn-tone-5 {
    --hfn-bg: #15803d;
    --hfn-shadow: 21, 128, 61;
    background-color: #15803d;
}

.hero-formation-notice.hfn-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hero-formation-notice:hover,
.hero-formation-notice:focus-visible {
    color: #fff;
    transform: translate(-50%, -3px);
    box-shadow: 0 16px 34px rgba(var(--hfn-shadow), .48), 0 4px 12px rgba(9, 30, 62, .35);
}

/* Effet shine : bande lumineuse qui traverse la pilule périodiquement */
.hero-formation-notice::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .32) 50%, transparent 100%);
    animation: hfn-shine 4.2s ease-in-out 1.2s infinite;
    pointer-events: none;
}

@keyframes hfn-shine {
    0% { left: -70%; }
    38% { left: 120%; }
    100% { left: 120%; }
}

/* Point lumineux animé (pulse) */
.hero-formation-notice .hfn-dot {
    flex: 0 0 auto;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .65);
    animation: hfn-pulse 1.8s ease-out infinite;
}

@keyframes hfn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .65); }
    70% { box-shadow: 0 0 0 .55rem rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.hero-formation-notice .hfn-icon {
    flex: 0 0 auto;
    font-size: .9em;
}

.hero-formation-notice .hfn-lead {
    flex: 0 1 auto;
    min-width: 0;
    font-weight: 700;
    letter-spacing: .01em;
}

.hero-formation-notice .hfn-lead-extra {
    font-weight: 500;
    opacity: .92;
}

.hero-formation-notice .hfn-title {
    flex: 1 1 12rem;
    min-width: 10rem;
    max-width: 42ch;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: .6rem;
    border-left: 1px solid rgba(255, 255, 255, .45);
    font-weight: 500;
    opacity: 1;
    transition: opacity .45s ease;
}

.hero-formation-notice.hfn-fading .hfn-title {
    opacity: 0;
}

.hero-formation-notice .hfn-chevron {
    flex: 0 0 auto;
    font-size: .72em;
    opacity: .95;
    transition: transform .25s ease;
}

.hero-formation-notice:hover .hfn-chevron {
    transform: translateX(3px);
}

/* < xl : la navbar est dans le flux, le hero commence en haut du carrousel */
@media (max-width: 1199.98px) {
    .hero-formation-notice {
        top: 1.5rem;
        max-width: calc(100% - 3.5rem);
    }

    /* Libellé fixe raccourci : le titre de formation doit rester visible. */
    .hero-formation-notice .hfn-lead-extra {
        display: none;
    }
}

/* Mobile : pilule raccourcie, jamais de débordement */
@media (max-width: 576px) {
    .hero-formation-notice {
        top: 1rem;
        gap: .45rem;
        max-width: calc(100% - 2.5rem);
        padding: .45rem .95rem .45rem .8rem;
        font-size: .8rem;
    }

    .hero-formation-notice .hfn-lead-extra {
        display: none;
    }

    .hero-formation-notice .hfn-title {
        flex-basis: 7rem;
        min-width: 0;
        max-width: 48vw;
        padding-left: .45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Fade court conservé (pas de swap instantané). Shine / pulse désactivés. */
    .hero-formation-notice {
        animation: none;
        transform: translate(-50%, 0);
        transition: opacity .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
    }

    .hero-formation-notice.hfn-visible {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .hero-formation-notice .hfn-title {
        transition: opacity .2s ease;
    }

    .hero-formation-notice.hfn-fading .hfn-title {
        opacity: 0;
    }

    .hero-formation-notice .hfn-dot,
    .hero-formation-notice .hfn-chevron {
        animation: none;
        transition: none;
    }

    .hero-formation-notice::after {
        display: none;
    }

    .btn-temoigner {
        animation: none;
        box-shadow: none;
    }

    .fg-carousel .owl-item .fg-slide,
    .fg-carousel .owl-item.center .fg-slide,
    .fg-carousel .owl-item:hover .fg-slide,
    .fg-slide:focus-visible {
        transform: none;
        transition: box-shadow .2s ease;
    }

    .fg-carousel .owl-item.center .fg-slide img,
    .fg-carousel .owl-item:hover .fg-slide img,
    .fg-slide:focus-visible img,
    .fg-photo img {
        transform: none;
        transition: none;
    }

    .fg-carousel .owl-stage:hover .owl-item {
        opacity: 1;
        filter: none;
    }

    .fg-carousel .owl-dot {
        transition: none;
    }
}

/* Dark mode : pastilles saturées, texte blanc, ombre renforcée */
html[data-theme="dark"] .hero-formation-notice {
    border-color: rgba(255, 255, 255, .28);
    box-shadow: 0 10px 28px rgba(var(--hfn-shadow), .42), 0 2px 10px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] #header-carousel .hero-formation-notice.hfn-tone-0 {
    background-color: #c2410c;
}

html[data-theme="dark"] #header-carousel .hero-formation-notice.hfn-tone-1 {
    background-color: #075985;
}

html[data-theme="dark"] #header-carousel .hero-formation-notice.hfn-tone-2 {
    background-color: #115e59;
}

html[data-theme="dark"] #header-carousel .hero-formation-notice.hfn-tone-3 {
    background-color: #5b21b6;
}

html[data-theme="dark"] #header-carousel .hero-formation-notice.hfn-tone-4 {
    background-color: #9f1239;
}

html[data-theme="dark"] #header-carousel .hero-formation-notice.hfn-tone-5 {
    background-color: #166534;
}

html[data-theme="dark"] .hero-formation-notice:hover,
html[data-theme="dark"] .hero-formation-notice:focus-visible {
    box-shadow: 0 16px 34px rgba(var(--hfn-shadow), .5), 0 4px 14px rgba(0, 0, 0, .55);
}