/********** Template CSS **********/
:root {
    /* Palette modernisée pour le site CALF */
    --primary: #0026C8;
    --secondary: #C80000;
    --accent: #FFC857;
    --light: #F5F7FB;
    --dark: #1F2933;

    /* Override des variables de thème Bootstrap */
    --bs-primary: #0026C8;
    --bs-primary-rgb: 0, 38, 200;
    --bs-secondary: #C80000;
    --bs-secondary-rgb: 200, 0, 0;
}

/* Harmonisation globale des couleurs Bootstrap avec la charte CALF */
.text-primary {
    color: #0026C8 !important;
}

.bg-primary {
    background-color: #0026C8 !important;
}

.border-primary {
    border-color: #0026C8 !important;
}

.text-secondary {
    color: #C80000 !important;
}

.bg-secondary {
    background-color: #C80000 !important;
}

.border-secondary {
    border-color: #C80000 !important;
}

.btn-primary {
    color: #ffffff !important;
    background-color: #0026C8 !important;
    border-color: #0026C8 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #001da0 !important;
    border-color: #001a92 !important;
}

.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary {
    color: #ffffff !important;
    background-color: #001da0 !important;
    border-color: #001a92 !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
    color: #ffffff !important;
    background-color: #0026C8 !important;
    border-color: #0026C8 !important;
}

.btn-outline-primary {
    color: #0026C8 !important;
    border-color: #0026C8 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #ffffff !important;
    background-color: #0026C8 !important;
    border-color: #0026C8 !important;
}

.btn-secondary {
    color: #ffffff !important;
    background-color: #C80000 !important;
    border-color: #C80000 !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #a00000 !important;
    border-color: #8f0000 !important;
}

.btn-secondary:active,
.btn-secondary.active,
.show > .btn-secondary.dropdown-toggle,
.btn-check:checked + .btn-secondary,
.btn-check:active + .btn-secondary {
    color: #ffffff !important;
    background-color: #a00000 !important;
    border-color: #8f0000 !important;
}

.btn-secondary.disabled,
.btn-secondary:disabled {
    color: #ffffff !important;
    background-color: #C80000 !important;
    border-color: #C80000 !important;
}

.btn-outline-secondary {
    color: #C80000 !important;
    border-color: #C80000 !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #ffffff !important;
    background-color: #C80000 !important;
    border-color: #C80000 !important;
}

.badge.bg-primary,
.text-bg-primary {
    background-color: #0026C8 !important;
}

.badge.bg-secondary,
.text-bg-secondary {
    background-color: #C80000 !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #ffffff !important;
    background-color: #0026C8 !important;
}

.page-item.active .page-link {
    color: #ffffff !important;
    background-color: #0026C8 !important;
    border-color: #0026C8 !important;
}

.progress-bar {
    background-color: #0026C8 !important;
}

.form-check-input:checked {
    background-color: #0026C8 !important;
    border-color: #0026C8 !important;
}

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

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

.fw-black {
    font-weight: 900 !important;
}

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


/*** 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-weight: 500;
    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;
}

/*** Navbar ***/
.site-header {
    position: relative;
    z-index: 1030;
    background-color: #ffffff;
}

.topbar-slim {
    background:
        radial-gradient(circle at top left, rgba(0, 38, 200, 0.12), transparent 60%),
        radial-gradient(circle at bottom right, rgba(200, 0, 0, 0.10), transparent 55%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.85rem;
}

.topbar-slim small {
    color: #4b5563;
}

.topbar-social .btn-sm-square {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.topbar-social .btn-sm-square:hover {
    background-color: #0026C8 !important;
    color: #ffffff !important;
}

.main-navbar {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.main-navbar .navbar-brand {
    height: 80px;
}

.brand-text small {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.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 {
    position: relative;
    margin-right: 24px;
    padding: 1.25rem 0;
    font-size: 0.92rem;
    font-weight: 500;
    text-transform: none;
    color: #111827;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:last-child {
    margin-right: 0;
}

.navbar-light .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.4rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.25s ease-out;
}

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

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

.navbar-light .navbar-nav .nav-cta {
    padding-inline: 1.25rem;
    margin-left: 0.25rem;
}

.navbar-light .navbar-nav .nav-cta::after {
    display: none;
}

.navbar-light .navbar-nav .nav-cta:hover,
.navbar-light .navbar-nav .nav-cta.active {
    background-color: #0026C8;
    color: #ffffff;
    border-color: #0026C8;
}

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

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

@media (max-width: 991.98px) {
    .main-navbar .navbar-brand {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 0.5rem 0;
    }

    .navbar-light .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-light .navbar-nav .nav-cta {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }

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

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

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Carousel (accueil) ***/
.hero-slide-overlay {
    /* Effet de rideau sombre uniquement sur le carousel d'accueil */
    background: linear-gradient(135deg, rgba(0, 38, 200, 0.65) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
}

.hero-slide-badge {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.35rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
}

.hero-carousel-wrap .header-carousel .owl-dot.active,
.hero-carousel-wrap .header-carousel .owl-nav .owl-prev:hover,
.hero-carousel-wrap .header-carousel .owl-nav .owl-next:hover {
    background: #0026C8 !important;
    border-color: #0026C8 !important;
}

/* Forcer une hauteur cohérente pour tous les slides du hero,
   quelle que soit la taille des images source */
.hero-carousel-wrap .owl-carousel-item {
    position: relative;
    min-height: 520px;
}

.hero-carousel-wrap .owl-carousel-item > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*** Header ***/
@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-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    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);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

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

.page-header {
    position: relative;
    /* Même image de fond que sur about.php pour tous les headers de page (sauf index) */
    background: url("../assets/images/hero.jpg") center center / cover no-repeat;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 38, 200, 0.55) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.page-header > .container {
    position: relative;
    z-index: 1;
}

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


/*** Section Title ***/
.section-title h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title h1::after {
    position: absolute;
    content: "";
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-title.text-start h1::after {
    left: 0;
    transform: none;
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


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

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


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item img {
    transition: .5s;
}

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

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    background: rgba(53, 53, 53, .7);
    transition: .5s;
}

.portfolio-item:hover .portfolio-overlay {
    width: 100%;
    height: 100%;
    left: 0;
}

.portfolio-item .portfolio-overlay .btn {
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay .btn {
    opacity: 1;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


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

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

.team-item .team-social {
    position: absolute;
    width: 38px;
    top: 50%;
    left: -38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover .team-social {
    left: 0;
}


/*** 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 {
    border: 5px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(160deg, #120b3b 0%, #060d4d 50%, #020617 100%);
    position: relative;
}

.footer-accent {
    height: 4px;
    background: linear-gradient(90deg, #0026C8, #C80000);
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
    padding: 0.2rem 0;
    display: inline-block;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #fff !important;
}

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

.btn-footer-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.25s ease;
}

.btn-footer-social:hover {
    background: #0026C8 !important;
    border-color: #0026C8 !important;
    color: #fff !important;
}

.footer-input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.footer-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-btn {
    background: #0026C8 !important;
    border-color: #0026C8 !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}


/*** CALF specific helpers ***/
.content-narrow {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.card-compact {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    padding: 24px;
    height: 100%;
}

.card-compact h4,
.card-compact h5 {
    margin-bottom: 0.5rem;
}

.card-compact p {
    margin-bottom: 0;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(0, 38, 200, 0.08);
    color: var(--primary);
}

.pill-badge svg {
    margin-right: 0.35rem;
}


/*** About page ***/
.about-hero {
    position: relative;
}

.about-hero-card {
    max-width: 480px;
    margin: 0 auto;
}

.about-hero-blob {
    position: absolute;
    inset: -20px -10px auto auto;
    z-index: -1;
    filter: drop-shadow(0 25px 60px rgba(15, 23, 42, 0.35));
}

.about-hero-blob svg {
    width: 100%;
    height: auto;
    display: block;
}

.about-hero-main {
    position: relative;
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 38, 200, 0.08);
}

.icon-circle svg {
    display: block;
}

.stat-card {
    border-radius: 14px;
    padding: 18px 18px 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.about-section-muted {
    background: radial-gradient(circle at top left, rgba(0, 38, 200, 0.05), transparent 55%),
                radial-gradient(circle at bottom right, rgba(200, 0, 0, 0.05), transparent 55%);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.stat-caption {
    font-size: 0.82rem;
    color: #6b7280;
}

.avatar-stack {
    display: inline-flex;
    align-items: center;
}

.avatar-dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: linear-gradient(135deg, #0026C8, #C80000);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
    margin-left: -8px;
}

.avatar-dot:first-child {
    margin-left: 0;
}

.feature-chip {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    margin-top: 4px;
    background: linear-gradient(135deg, #0026C8, rgba(0, 38, 200, 0.2));
}

.feature-chip-secondary {
    background: linear-gradient(135deg, #C80000, rgba(200, 0, 0, 0.2));
}

.about-experience-card {
    background: #ffffff;
}

.check-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(0, 38, 200, 0.25);
    position: relative;
    flex-shrink: 0;
}

.check-dot::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, #0026C8, #C80000);
}

/* Ancien design grille (conservé si réutilisation) */
.about-grid-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.about-grid-tile {
    border-radius: 14px;
    padding: 16px 18px;
}

.about-grid-tile.primary {
    background: linear-gradient(135deg, #0026C8, #0b3af0);
    color: #fff;
}

.about-grid-tile.light {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.about-grid-tile.outline {
    background: rgba(255, 255, 255, 0.85);
    border: 1px dashed rgba(0, 38, 200, 0.4);
}

.about-grid-tile.accent {
    background: linear-gradient(135deg, #C80000, #f97373);
    color: #fff;
}

/* Nouveau design "piliers" - cartes avec icônes et bordure latérale */
.about-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.about-pillar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-left-width: 4px;
    border-left-style: solid;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
}

.about-pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.about-pillar-card.about-pillar-primary {
    border-left-color: #0026C8;
}

.about-pillar-card.about-pillar-primary:hover {
    border-left-color: #001da0;
}

.about-pillar-card.about-pillar-secondary {
    border-left-color: #C80000;
}

.about-pillar-card.about-pillar-secondary:hover {
    border-left-color: #a00000;
}

.about-pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
}

.about-pillar-card.about-pillar-primary .about-pillar-icon {
    background: rgba(0, 38, 200, 0.1);
    color: #0026C8;
}

.about-pillar-card.about-pillar-secondary .about-pillar-icon {
    background: rgba(200, 0, 0, 0.1);
    color: #C80000;
}

.about-pillar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.about-pillar-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .about-hero-card {
        max-width: 100%;
    }

    .about-grid-visual {
        grid-template-columns: 1fr;
    }

    .about-pillars {
        grid-template-columns: 1fr;
    }
}

.about-gallery-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-gallery-image {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.about-gallery-image img {
    width: 100%;
    display: block;
    transform: scale(1);
    transition: transform 0.6s ease, filter 0.3s ease;
}

.about-gallery-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0, 38, 200, 0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(200, 0, 0, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-gallery-item:hover .about-gallery-image img {
    transform: scale(1.05);
}

.about-gallery-item:hover .about-gallery-image::after {
    opacity: 1;
}

.about-gallery-caption {
    padding-top: 0.75rem;
}

/* Section texte + image about */
.about-presentation-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 38, 200, 0.12);
}
.about-presentation-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-journey-image {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.3);
}

.about-journey-image img {
    width: 100%;
    display: block;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.about-journey-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    /* Suppression du rideau sombre sur l'image */
    background: none;
}

.about-journey-image:hover img {
    transform: scale(1.05);
}

.about-journey-tag {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-journey-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.about-journey-steps li {
    position: relative;
    padding-left: 1.7rem;
}

.about-journey-steps li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #0026C8, #C80000);
    box-shadow: 0 0 0 4px rgba(0, 38, 200, 0.15);
}

.about-centers-strip {
    position: relative;
}

.about-center-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
}

.about-center-card::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Pas de voile de couleur par-dessus l'image */
    background: none;
}

.about-center-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.25rem 1.5rem;
    /* Fond blanc opaque pour une lisibilité maximale du texte */
    background: #ffffff;
    border-top: 3px solid rgba(0, 38, 200, 0.2);
    color: var(--dark);
}

.about-center-location {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0026C8;
}

.about-center-caption {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}


/*** Accueil index ***/
.index-hero {
    position: relative;
}

/*** Partenaires – logos défilants ***/
.partners-marquee-wrap {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-marquee {
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: partners-scroll 30s linear infinite;
}

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

@keyframes partners-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
    }

    .partners-marquee-wrap {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

.partners-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partners-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.partners-logo img {
    max-height: 50px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
}

.partners-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/*** Formations page ***/
.formations-hero {
    position: relative;
}

.formations-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.formations-hero-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.formations-hero-card.wide {
    grid-column: span 2;
}

.formations-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    transition: transform 0.6s ease;
}

.formations-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0, 38, 200, 0.25), transparent 55%),
                radial-gradient(circle at bottom right, rgba(200, 0, 0, 0.3), transparent 55%);
    mix-blend-mode: soft-light;
}

.formations-hero-card:hover img {
    transform: scale(1.07);
}

.formations-hero-label {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.8rem;
}

.formations-blocks {
    position: relative;
}

.formations-card {
    border-radius: 16px;
    padding: 18px 18px 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.formations-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 38, 200, 0.08);
    margin-bottom: 0.75rem;
}

.formations-card-icon svg {
    display: block;
}

.formations-strip-image {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.3);
}

.formations-strip-image img {
    width: 100%;
    display: block;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.formations-strip-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    /* Retrait du rideau sombre sur l'image de certifications */
    background: none;
}

.formations-strip-image:hover img {
    transform: scale(1.06);
}

.formations-strip-tag {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.formations-digital {
    position: relative;
}

.formations-cta {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}


/*** Certifications page – cartes comparatives ***/
.certifications-blocks {
    background: linear-gradient(180deg, rgba(0, 38, 200, 0.04) 0%, transparent 50%, rgba(200, 0, 0, 0.04) 100%);
}

/* Onglets certifications */
.cert-tabs {
    gap: 0.5rem;
}

.cert-tabs .nav-link {
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #64748b;
    background: #ffffff;
    border: 2px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.cert-tabs .nav-link:hover {
    color: #0026C8;
    border-color: rgba(0, 38, 200, 0.3);
    background: rgba(0, 38, 200, 0.04);
}

.cert-tabs .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0026C8, #0b3af0);
    border-color: #0026C8;
}

.cert-tab-content {
    margin-top: 0.5rem;
}

.cert-tab-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
}

.cert-tab-title {
    color: var(--dark);
    font-weight: 700;
}

.cert-price-table {
    margin-bottom: 0;
}

.cert-price-table thead th {
    font-weight: 600;
    color: #0026C8;
    border-bottom: 2px solid rgba(0, 38, 200, 0.2);
    padding: 0.75rem 1rem;
}

.cert-price-table tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.cert-price-table tbody tr:last-child td {
    border-bottom: none;
}

.cert-tef-prep {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

@media (max-width: 575.98px) {
    .cert-tabs .nav-link {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .cert-tab-card {
        padding: 1.5rem 1.25rem;
    }
}

.cert-grid {
    align-items: stretch;
}

.cert-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.cert-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 38, 200, 0.08), rgba(0, 38, 200, 0.02));
    border-bottom: 1px solid rgba(0, 38, 200, 0.12);
}

.cert-card-accent .cert-card-header {
    background: linear-gradient(135deg, #0026C8, #0b3af0);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.cert-card-accent .cert-title,
.cert-card-accent .cert-subtitle,
.cert-card-accent .cert-price-main,
.cert-card-accent .cert-list {
    color: var(--dark);
}

.cert-card-accent .cert-subtitle,
.cert-card-accent .cert-price-note,
.cert-card-accent .cert-list span {
    color: #64748b !important;
}

.cert-chip {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #0026C8;
    color: #fff;
}

.cert-chip-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #0026C8;
}

.cert-chip-outline {
    background: transparent;
    color: #0026C8;
    border: 1.5px solid #0026C8;
}

.cert-code {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0026C8;
}

.cert-card-accent .cert-code {
    color: #fff;
}

.cert-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    padding: 0 1.5rem;
    margin-top: 1rem;
}

.cert-subtitle {
    padding: 0 1.5rem;
}

.cert-price {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cert-price-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0026C8;
}

.cert-price-note {
    font-size: 0.75rem;
    color: #64748b;
}

.cert-list {
    list-style: none;
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

.cert-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: #475569;
}

.cert-list li:last-child {
    border-bottom: none;
}

.cert-list span {
    font-weight: 600;
    color: #334155;
    margin-right: 0.35rem;
}


/*** Centres page ***/
.centres-hero {
    position: relative;
}

.centres-hero-map {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.3);
}

.centres-hero-map img {
    width: 100%;
    display: block;
    transform: scale(1.03);
    transition: transform 0.6s ease;
}

.centres-hero-map::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Pas de voile coloré sur la carte des centres */
    background: none;
}

.centres-hero-map:hover img {
    transform: scale(1.06);
}

.centres-hero-tag {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/*** Contact page ***/
.contact-hero {
    position: relative;
}

.contact-hero-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    border-top: 3px solid #0026C8;
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 2rem 2.25rem;
    border-top: 3px solid #0026C8;
}

.contact-visual {
    position: relative;
}

.center-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.center-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border-top: 3px solid #0026C8;
    opacity: 0.85;
    pointer-events: none;
}

.center-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
    border-color: rgba(0, 38, 200, 0.25);
}

.center-card-header {
    padding: 1.1rem 1.4rem 0.9rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.center-city {
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.01em;
}

.center-tag {
    color: #64748b;
}

.center-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 38, 200, 0.06);
}

.center-header-icon svg {
    display: block;
}

.center-card-body {
    padding: 1.0rem 1.4rem 1.2rem;
}

.center-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
}

.center-meta li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.1rem;
}

.center-meta li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #0026C8, #C80000);
}

.centres-cta {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}


/*** Centre detail page ***/
.centre-hero {
    position: relative;
}

.centre-contact-card {
    position: sticky;
    top: 96px;
}

.centre-meta-list {
    margin: 0;
    padding: 0;
}

.centre-map-preview {
    margin-top: 0.75rem;
}

.centre-map-frame {
    border-radius: 12px;
    overflow: hidden;
    min-height: 220px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.15);
}


/*** Blog / actualités ***/
.blog-grid {
    align-items: stretch;
}

.blog-card {
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.blog-card-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-cover img {
    transform: scale(1.07);
}

.blog-card-header {
    padding: 0.9rem 1.4rem 0.6rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.blog-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(0, 38, 200, 0.08);
    color: #0026C8;
}

.blog-badge-secondary {
    background: rgba(200, 0, 0, 0.08);
    color: #C80000;
}

.blog-badge-outline {
    background: transparent;
    border: 1px solid #0026C8;
    color: #0026C8;
}

.blog-card-body {
    padding: 1.1rem 1.4rem 1.3rem;
}

.blog-link {
    color: #0026C8;
    font-weight: 500;
    text-decoration: none;
}

.blog-link:hover {
    text-decoration: underline;
}

.blog-filters .btn.blog-filter.active {
    background-color: #0026C8;
    color: #ffffff !important;
    border-color: #0026C8;
}

.blog-filters .btn.blog-filter.active:hover {
    background-color: #001da0;
    color: #ffffff !important;
    border-color: #001da0;
}

.article-hero h1 {
    font-size: 2rem;
}

.article-cover {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.article-cover img {
    width: 100%;
    height: auto; /* Conserver la hauteur / ratio original de l'image */
    display: block;
}

.article-content p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #374151;
}

@media (max-width: 767.98px) {
    .formations-hero-grid {
        grid-template-columns: 1fr;
    }

    .formations-hero-card.wide {
        grid-column: span 1;
    }
}

/* FAQ Accordion */
.faq-accordion .faq-item {
    border: 1px solid rgba(0, 38, 200, 0.15);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-accordion .faq-item:last-child {
    margin-bottom: 0;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    color: #1F2933;
    background-color: #fff;
    padding: 1rem 1.25rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: #0026C8;
    background-color: rgba(0, 38, 200, 0.06);
    box-shadow: none;
}
.faq-accordion .accordion-button:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.2rem rgba(0, 38, 200, 0.15);
}
.faq-accordion .accordion-button::after {
    filter: none;
}
.faq-accordion .accordion-body {
    padding: 1rem 1.25rem 1.25rem;
    color: #374151;
}
.faq-accordion .accordion-body ul {
    padding-left: 1.25rem;
}
.faq-accordion .accordion-body a {
    color: #0026C8;
    font-weight: 500;
}
.faq-accordion .accordion-body a:hover {
    color: #001da0;
    text-decoration: underline;
}