:root {
    --dark: var(--dark-gray);
    --gray: #666666;
    --surface-bg: #fbfdff;
    --surface-text: #24384d;
}

/* Foundation overrides */

body {
    padding-top: var(--header-height, 72px);
    color: var(--surface-text);
    background: var(--surface-bg);
}

/* Accessibilite */
.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background: #0d6efd;
    color: #fff;
    border-radius: 0.5rem;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
    color: #fff;
}

/* Styles pour réduire la hauteur de la navigation */
.navbar {
    padding: 0.5rem 0 !important;
    min-height: 64px;
}

.navbar-brand {
    padding: 0.25rem 0;
    margin-left: 0 !important;
}

.navbar-nav .nav-link {
    padding: 0.4rem 0.8rem !important; /* Réduire le padding */
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em;
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Augmenter la taille du logo sans affecter la hauteur */
.navbar-brand img {
    height: 46px !important;
    width: auto !important;
}

.section-title {
    letter-spacing: -0.02em;
    line-height: 1.18;
}

.section-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: #637083;
    line-height: 1.75;
}

.lead {
    color: #5f6f82;
}

.btn {
    min-height: 44px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    box-shadow: 0 12px 24px rgba(31, 131, 193, 0.18);
}

.btn-outline-primary,
.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.92);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    box-shadow: 0 10px 22px rgba(10, 35, 58, 0.08);
}

.hero-slide {
    background-attachment: scroll;
}

.service-card,
.category-card,
.testimonial-card,
.contact-info-card,
.contact-form-wrapper,
.map-wrapper {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.category-card:hover,
.testimonial-card:hover,
.contact-info-card:hover {
    transform: translateY(-4px);
}

/* Pour les pages avec page-header, ajuster le padding */
.page-header {
    padding-top: 80px;
    padding-bottom: 40px;
}

/* Ajuster la hauteur du hero section - supprimer le padding-top */
.hero-section {
    margin-top: -60px; /* Compenser le padding-top du body */
}

.services-section {
    padding: 6rem 0 !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.registration-hero {
    background: linear-gradient(135deg, #135c88 0%, #1f83c1 45%, #54a6d8 100%);
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.registration-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.14), transparent 30%);
    pointer-events: none;
}

.registration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    backdrop-filter: blur(8px);
}

.registration-title {
    color: #fff !important;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 700;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    margin-bottom: 1rem;
}

.registration-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    max-width: 720px;
    margin: 0 auto;
}

.registration-section {
    background:
        linear-gradient(180deg, rgba(31, 131, 193, 0.06) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.registration-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: -3.25rem auto 2rem;
    max-width: 980px;
    position: relative;
    z-index: 3;
}

.registration-highlight-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 131, 193, 0.12);
    box-shadow: 0 16px 40px rgba(12, 44, 74, 0.08);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--dark-gray);
    font-weight: 600;
    text-align: center;
}

.registration-highlight-card i {
    color: var(--primary-color);
}

.registration-card {
    border-radius: 28px;
    padding: 2.5rem !important;
    border: 1px solid rgba(31, 131, 193, 0.1);
    box-shadow: 0 20px 60px rgba(13, 50, 83, 0.10);
}

.registration-intro {
    max-width: 640px;
    margin: 0 auto 2rem;
}

.registration-kicker {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(31, 131, 193, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.form-section-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(31, 131, 193, 0.12);
    border-radius: 22px;
    padding: 1.75rem;
    box-shadow: 0 12px 30px rgba(16, 53, 83, 0.05);
}

.form-section-card-soft {
    background: linear-gradient(180deg, rgba(31, 131, 193, 0.04) 0%, #ffffff 100%);
}

.form-section-heading {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-section-heading h4 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.form-section-heading p {
    margin: 0;
    color: #6d7484;
    font-size: 0.95rem;
}

.form-section-step {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(31, 131, 193, 0.28);
}

.registration-card .form-group {
    margin-bottom: 0;
}

.registration-card .form-group label {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #223247;
}

.registration-card .form-control,
.registration-card select.form-control {
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(24, 67, 102, 0.12);
    background: #f9fbfd;
    padding: 0.95rem 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.registration-card textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.registration-card .form-control::placeholder {
    color: #8a92a1;
}

.registration-card .form-control:focus {
    background: #fff;
    border-color: rgba(31, 131, 193, 0.45);
    box-shadow: 0 0 0 0.3rem rgba(31, 131, 193, 0.12);
}

.registration-check {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(31, 131, 193, 0.1);
}

.registration-check + .registration-check {
    margin-top: 0.85rem;
}

.registration-check-secondary {
    background: rgba(31, 131, 193, 0.03);
}

.registration-check .form-check-input {
    margin-top: 0.2rem;
    float: none;
    flex-shrink: 0;
}

.registration-check .form-check-label {
    color: #334155;
    line-height: 1.6;
}

.registration-submit .btn {
    min-width: 280px;
    padding: 0.95rem 2rem !important;
    box-shadow: 0 16px 32px rgba(31, 131, 193, 0.22);
}

.registration-submit-note {
    color: #6d7484;
    font-size: 0.95rem;
}

.registration-info-section {
    padding-top: 1rem !important;
}

.registration-info-card {
    border-radius: 22px;
    border: 1px solid rgba(31, 131, 193, 0.1);
    box-shadow: 0 16px 38px rgba(16, 53, 83, 0.06);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.registration-info-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(31, 131, 193, 0.12), rgba(22, 100, 148, 0.18));
    color: var(--primary-color);
}

.floating-cta-btn:hover {
    background-color: var(--secondary-color);
}

.home-hero-panel {
    max-width: 760px;
    padding: 2.5rem 2.25rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(7, 26, 43, 0.32), rgba(7, 26, 43, 0.56));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(7, 26, 43, 0.24);
    backdrop-filter: blur(6px);
}

.home-equipment-section {
    position: relative;
    z-index: 4;
    margin-top: -3rem;
    padding-bottom: 1.25rem;
}

.home-equipment-banner {
    position: relative;
    height: clamp(210px, 23vw, 340px);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(180, 205, 235, 0.42);
    border-radius: 26px;
    box-shadow: 0 26px 70px rgba(2, 8, 23, 0.24);
}

.home-equipment-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.home-equipment-banner-link picture,
.home-service-blob picture,
.home-training-blob picture {
    display: block;
    width: 100%;
    height: 100%;
}

.home-equipment-banner-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.55);
    outline-offset: 4px;
    border-radius: 24px;
}

.home-equipment-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

.home-about-section,
.home-services-section,
.home-training-section,
.home-testimonials-section,
.home-partners-section {
    position: relative;
}

.home-about-section {
    background:
        radial-gradient(circle at top left, rgba(31, 131, 193, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.home-about-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.home-about-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.5rem 0;
}

.home-about-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(31, 131, 193, 0.06), rgba(31, 131, 193, 0.02));
    color: #24384d;
    font-weight: 600;
}

.home-about-highlight i {
    color: var(--primary-color);
}

.home-about-highlight:last-child {
    grid-column: 1 / -1;
}

.home-about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.home-about-visual {
    position: relative;
    padding: 1rem;
}

.home-about-visual::before {
    content: "";
    position: absolute;
    inset: 3% 8% 9% 4%;
    border-radius: 54% 46% 43% 57% / 40% 54% 46% 60%;
    background: linear-gradient(135deg, rgba(31, 131, 193, 0.12), rgba(84, 166, 216, 0.2));
    z-index: 0;
}

.home-about-visual img {
    position: relative;
    z-index: 1;
    border-radius: 58% 42% 49% 51% / 43% 58% 42% 57%;
    box-shadow: 0 24px 50px rgba(11, 41, 68, 0.12);
    transition: transform 0.35s ease;
}

.home-about-visual:hover img {
    transform: translateY(-4px) scale(1.01);
}

.home-services-section {
    background:
        linear-gradient(180deg, rgba(31, 131, 193, 0.04) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.home-service-card {
    height: 100%;
    border-radius: 24px;
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 16px 40px rgba(10, 35, 58, 0.08);
    padding: 2rem 1.5rem;
}

.home-service-media {
    position: relative;
    margin-bottom: 1.5rem;
}

.home-service-blob {
    position: relative;
    width: 100%;
    aspect-ratio: 1.08 / 0.92;
    overflow: hidden;
    border-radius: 58% 42% 46% 54% / 43% 56% 44% 57%;
    background: linear-gradient(135deg, rgba(31, 131, 193, 0.12), rgba(84, 166, 216, 0.2));
    box-shadow: 0 18px 36px rgba(10, 35, 58, 0.12);
}

.home-service-blob::before {
    content: "";
    position: absolute;
    inset: -8% auto auto -6%;
    width: 38%;
    height: 38%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    z-index: 1;
}

.home-service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.35s ease;
}

.home-service-card:hover .home-service-image {
    transform: scale(1.08);
}

.home-services-section .col-lg-3:nth-child(2) .home-service-blob,
.home-services-section .col-md-6:nth-child(2) .home-service-blob {
    border-radius: 44% 56% 58% 42% / 55% 41% 59% 45%;
}

.home-services-section .col-lg-3:nth-child(3) .home-service-blob,
.home-services-section .col-md-6:nth-child(3) .home-service-blob {
    border-radius: 52% 48% 40% 60% / 39% 55% 45% 61%;
}

.home-services-section .col-lg-3:nth-child(4) .home-service-blob,
.home-services-section .col-md-6:nth-child(4) .home-service-blob {
    border-radius: 60% 40% 50% 50% / 47% 38% 62% 53%;
}

.home-service-card .service-list {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.home-service-card .btn {
    margin-top: 1.5rem !important;
}

.home-training-section {
    background:
        radial-gradient(circle at top right, rgba(31, 131, 193, 0.08), transparent 24%),
        linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.home-training-teaser {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-training-title {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: clamp(1.65rem, 2.8vw, 2.5rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--text-color);
    max-width: 22ch;
}

.home-training-intro {
    margin: 0;
    max-width: 38rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.home-training-points {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.home-training-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--text-color);
}

.home-training-points li:last-child {
    margin-bottom: 0;
}

.home-training-points .fa-check {
    flex-shrink: 0;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: var(--primary-color);
}

.home-training-actions {
    margin-top: 0.25rem;
}

.home-training-btn-primary {
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    color: #fff !important;
    border: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-training-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
    color: #fff !important;
}

.home-training-btn-outline {
    font-weight: 600;
    padding: 0.65rem 1.35rem;
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--primary-color);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.home-training-btn-outline:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.06);
    color: var(--secondary-color);
}

/* Visuel aligné sur les cartes services : forme organique (blob) + halo décoratif */
.home-training-figure {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.home-training-blob {
    position: relative;
    width: 100%;
    aspect-ratio: 1.08 / 0.92;
    overflow: hidden;
    border-radius: 48% 52% 44% 56% / 46% 44% 56% 54%;
    background: linear-gradient(135deg, rgba(31, 131, 193, 0.12), rgba(84, 166, 216, 0.2));
    box-shadow: 0 18px 36px rgba(10, 35, 58, 0.12);
}

.home-training-blob::before {
    content: "";
    position: absolute;
    inset: -8% auto auto -6%;
    width: 38%;
    height: 38%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    z-index: 1;
    pointer-events: none;
}

.home-training-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.35s ease;
    border-radius: 0;
}

.home-training-figure:hover .home-training-photo {
    transform: scale(1.06);
}

/* Annule .training-section img (style.css) : forme portée par .home-training-blob */
.home-training-teaser .home-training-photo {
    box-shadow: none;
    border-radius: 0;
    max-width: none;
}

@media (max-width: 767.98px) {
    .home-training-teaser .home-training-photo {
        margin-bottom: 0;
    }

    .home-training-title {
        max-width: none;
    }
}

.home-proof-card {
    min-width: 180px;
    background: transparent !important;
    border-radius: 0 !important;
    border: 0;
    box-shadow: none !important;
}

.home-testimonials-section {
    background:
        linear-gradient(180deg, rgba(31, 131, 193, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.home-testimonial-card {
    border-radius: 24px;
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 20px 44px rgba(10, 35, 58, 0.08);
}

.home-partners-section {
    background: #fff;
}

.home-partner-item {
    border-radius: 22px;
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 12px 32px rgba(10, 35, 58, 0.06);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.navbar.bg-light {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 10px 28px rgba(10, 35, 58, 0.06);
}

.home-final-cta-section {
    position: relative;
    padding: clamp(3rem, 6vw, 5rem) 0;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(16, 52, 92, 0.94) 54%, rgba(37, 99, 235, 0.9) 100%);
    overflow: hidden;
}

.home-final-cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 34%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px);
    pointer-events: none;
}

.home-final-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.home-final-cta-copy {
    max-width: 680px;
}

.home-final-cta-copy h2 {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    line-height: 1.15;
}

.home-final-cta-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.7;
}

.home-final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.85rem;
}

.home-final-cta-actions .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.home-final-cta-actions .btn-outline-primary:hover {
    border-color: #fff;
    background: #fff;
    color: var(--primary-color);
}

.navbar .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 131, 193, 0.08);
    color: var(--text-color) !important;
    opacity: 1;
    transition: all 0.25s ease;
}

.navbar .social-links a:hover {
    background: rgba(31, 131, 193, 0.16);
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.navbar-nav {
    gap: 0.35rem;
    align-items: center;
}

.navbar-nav .nav-link {
    position: relative;
    transition: color 0.28s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.22s ease;
}

.navbar-nav .nav-link-shop {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

.navbar-nav .nav-link-shop::before {
    content: "\f290";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.4rem;
    font-size: 0.82em;
}

/* Desktop : barre de soulignement sous le lien (page active + hover) */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        border-radius: 0 !important;
        background: transparent !important;
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.06rem;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        border-radius: 999px;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link:focus-visible::after {
        transform: scaleX(1);
    }

    .navbar-nav .nav-link.active::after {
        transform: scaleX(1);
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus-visible,
    .navbar-nav .nav-link.active {
        color: var(--primary-color) !important;
        background: transparent !important;
    }

    .navbar-nav .nav-link.active {
        font-weight: 600;
    }
}

/* Menu replié : même principe, avec léger fond au survol */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: 0.38rem;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link:focus-visible::after,
    .navbar-nav .nav-link.active::after {
        transform: scaleX(1);
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus-visible {
        color: var(--primary-color) !important;
        background: rgba(37, 99, 235, 0.06) !important;
    }

    .navbar-nav .nav-link.active {
        color: var(--primary-color) !important;
        font-weight: 600;
        background: rgba(37, 99, 235, 0.07) !important;
    }
}

footer.bg-dark {
    background:
        radial-gradient(circle at top left, rgba(84, 166, 216, 0.1), transparent 22%),
        linear-gradient(180deg, #0f2434 0%, #081722 100%) !important;
}

footer.bg-dark h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

footer.bg-dark p,
footer.bg-dark li,
footer.bg-dark a {
    color: rgba(255, 255, 255, 0.82);
}

footer.bg-dark a {
    text-decoration: none;
    transition: color 0.25s ease;
}

footer.bg-dark a:hover {
    color: #fff;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-cookie-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.footer-cookie-link:hover {
    color: #fff;
}

.floating-cta {
    gap: 0.65rem;
}

.floating-cta-btn-whatsapp {
    display: flex;
    background: linear-gradient(135deg, #1fbf63, #25d366);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.floating-cta-btn-whatsapp:hover {
    background: linear-gradient(135deg, #18ad59, #20c35f) !important;
    color: #fff;
}

footer.bg-dark .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

.inner-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 8.5rem 0 6rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header.inner-hero {
    min-height: 480px !important;
    margin-bottom: 0;
}

.inner-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(2, 8, 23, 0.76) 0%, rgba(15, 23, 42, 0.48) 48%, rgba(37, 99, 235, 0.34) 100%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%);
}

.inner-hero .container {
    position: relative;
    z-index: 1;
}

.inner-hero-services {
    background-image: url("../images/services_banner.jpeg");
}

.inner-hero-formations {
    background-image: url("../images/formation3.jpg");
    background-position: center 42%;
}

.inner-hero-formations .inner-hero-title {
    font-size: clamp(2rem, 3.6vw, 3.15rem);
    line-height: 1.14;
    letter-spacing: -0.035em;
    margin-bottom: 0.65rem;
}

.inner-hero-formations .inner-hero-subtitle {
    font-size: clamp(0.95rem, 1.15vw, 1.06rem);
    line-height: 1.55;
}

.inner-hero-formations .inner-hero-actions {
    margin-top: 1rem !important;
}

.inner-hero-contact {
    background-image: url("../images/contact1.jpg");
    background-position: center 36%;
}

/* Même hauteur de bandeau pour Contact, Formations et Services (desktop & tablette) */
.page-header.inner-hero.inner-hero-contact,
.page-header.inner-hero.inner-hero-formations,
.services-hero-simple.inner-hero.inner-hero-services {
    min-height: 380px !important;
    height: auto !important;
    padding: 5rem 0 3rem !important;
    box-sizing: border-box;
}

.inner-hero-privacy {
    background-image:
        linear-gradient(135deg, rgba(8, 27, 44, 0.88), rgba(20, 92, 136, 0.74)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 30%);
}

.inner-hero-title {
    color: #fff !important;
    font-size: clamp(2.7rem, 4.6vw, 4.5rem);
    letter-spacing: -0.045em;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    margin-bottom: 1rem;
}

.inner-hero-subtitle {
    max-width: 820px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.75;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.services-detail-premium {
    padding: 5rem 0 2rem;
    background:
        linear-gradient(180deg, rgba(31, 131, 193, 0.04) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.premium-service-block {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 24px 56px rgba(10, 35, 58, 0.08);
}

.premium-service-block:not(:last-child) {
    border-bottom: 1px solid rgba(31, 131, 193, 0.08);
}

.premium-service-image {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 58% 42% 46% 54% / 44% 56% 44% 56% !important;
    transition: transform 0.4s ease;
}

.premium-service-media {
    position: relative;
    padding: 0.75rem;
}

.premium-service-media::before {
    content: "";
    position: absolute;
    inset: 8% 4% 4% 8%;
    border-radius: 48% 52% 56% 44% / 39% 47% 53% 61%;
    background: linear-gradient(135deg, rgba(31, 131, 193, 0.12), rgba(84, 166, 216, 0.18));
    z-index: 0;
}

.premium-service-media .premium-service-image {
    position: relative;
    z-index: 1;
}

.premium-service-block:hover .premium-service-image {
    transform: translateY(-4px) scale(1.02);
}

.premium-service-block:nth-of-type(2) .premium-service-image {
    border-radius: 42% 58% 58% 42% / 54% 41% 59% 46% !important;
}

.premium-service-block:nth-of-type(3) .premium-service-image {
    border-radius: 53% 47% 40% 60% / 44% 59% 41% 56% !important;
}

.premium-service-block:nth-of-type(4) .premium-service-image {
    border-radius: 60% 40% 48% 52% / 49% 39% 61% 51% !important;
}

.premium-service-block .feature-group {
    border-radius: 20px;
}

.premium-service-block .lead {
    margin-top: 1.25rem;
}

.premium-formation-categories {
    background:
        radial-gradient(circle at top left, rgba(31, 131, 193, 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.premium-category-card {
    border-radius: 24px;
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 18px 42px rgba(10, 35, 58, 0.08);
    padding: 2rem 1.5rem;
}

.premium-category-card .category-icon {
    width: 72px;
    height: 72px;
    border-radius: 56% 44% 45% 55% / 46% 54% 46% 54%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(31, 131, 193, 0.12), rgba(84, 166, 216, 0.22));
}

.premium-category-card .btn {
    margin-top: 1rem;
}

.training-catalog-section {
    position: relative;
}

.training-catalog-intro {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.training-search-shell,
.training-sidebar-card,
.training-results-toolbar,
.training-popular-panel {
    border-radius: 26px;
    border: 1px solid rgba(31, 131, 193, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 18px 42px rgba(10, 35, 58, 0.06);
}

.training-search-shell {
    padding: 0.65rem;
    max-width: 1080px;
    margin: 0 auto 1.5rem;
}

.training-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.training-search-input-wrap {
    position: relative;
    flex: 1 1 auto;
}

.training-search-input-wrap i {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    color: #7b8da1;
    pointer-events: none;
}

.training-search-shell .form-control,
.training-results-toolbar .form-select {
    border-radius: 20px;
    border: 1px solid rgba(31, 131, 193, 0.12);
    min-height: 56px;
    box-shadow: none;
}

.training-search-shell .form-control {
    padding-left: 3rem;
    font-size: 0.98rem;
}

.training-search-shell .btn {
    min-width: 165px;
    min-height: 56px;
}

.training-filter-panel {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 26px;
    border: 1px solid rgba(31, 131, 193, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 18px 42px rgba(10, 35, 58, 0.06);
}

.training-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.training-filter-label {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f6277;
}

.training-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.training-filter-chip {
    appearance: none;
    border: 1px solid rgba(31, 131, 193, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: #24405a;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.training-filter-chip:hover,
.training-filter-chip.is-active {
    background: rgba(31, 131, 193, 0.12);
    border-color: rgba(31, 131, 193, 0.24);
    color: var(--primary-color);
}

.training-course-card {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.training-course-card::before {
    content: "";
    position: absolute;
    top: -32px;
    right: -18px;
    width: 110px;
    height: 110px;
    border-radius: 52% 48% 43% 57% / 45% 53% 47% 55%;
    background: linear-gradient(135deg, rgba(31, 131, 193, 0.1), rgba(84, 166, 216, 0.02));
    pointer-events: none;
}

.training-course-card.is-hidden {
    display: none;
}

.training-course-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.training-course-icon {
    margin-bottom: 1.25rem;
}

.training-course-card h3 {
    position: relative;
    z-index: 1;
}

.training-course-description {
    color: #5f6f82;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.training-course-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #f2b317;
    margin-bottom: 1rem;
}

.training-course-meta {
    padding: 0;
    margin: 0 0 1rem;
    list-style: none;
    color: #56687d;
}

.training-course-meta li + li {
    margin-top: 0.45rem;
}

.training-course-meta strong {
    color: #24384d;
}

.training-course-note {
    margin-top: 1rem;
    margin-bottom: 0;
    color: #5f6f82;
    line-height: 1.7;
}

.training-course-card .btn {
    margin-top: 1.25rem;
    width: 100%;
}

.inner-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.training-cert-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border-radius: 26px;
    border: 1px solid rgba(37, 99, 235, 0.10);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 42px rgba(2, 8, 23, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.training-cert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 26px 56px rgba(2, 8, 23, 0.11);
}

.training-cert-card h3 {
    margin-bottom: 0.85rem;
    font-size: 1.22rem;
    line-height: 1.3;
}

.training-cert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: auto 0 1.3rem;
    padding-top: 0.4rem;
}

.training-cert-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    color: #405569;
    font-size: 0.84rem;
    font-weight: 600;
}

.training-cert-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.training-cert-actions .btn {
    width: 100%;
}

.training-cta-card {
    padding: 3rem 2rem;
    border-radius: 30px;
    border: 1px solid rgba(37, 99, 235, 0.10);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 24px 56px rgba(2, 8, 23, 0.08);
}

.training-course-list {
    margin-bottom: 0;
}

.training-empty-state {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1.1rem 1.25rem;
    border-radius: 20px;
    border: 1px dashed rgba(31, 131, 193, 0.18);
    color: #4f6277;
    background: rgba(255, 255, 255, 0.8);
}

.training-layout {
    align-items: flex-start;
}

.training-sidebar-card {
    padding: 0;
    overflow: hidden;
}

.training-sidebar-header {
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid rgba(12, 33, 54, 0.08);
}

.training-sidebar-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.training-sidebar-body {
    padding: 0.25rem 1.5rem 1.5rem;
}

.training-filter-section {
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(12, 33, 54, 0.08);
}

.training-filter-section:last-of-type {
    border-bottom: 0;
}

.training-filter-section h3 {
    margin-bottom: 0.9rem;
    font-size: 1rem;
    font-weight: 700;
    color: #24384d;
}

.training-filter-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #4f6277;
    margin-bottom: 0.7rem;
}

.training-filter-option:last-child {
    margin-bottom: 0;
}

.training-filter-option input {
    accent-color: var(--primary-color);
}

.training-reset-btn {
    width: 100%;
    border: 0;
    border-radius: 18px;
    background: #eef2f6;
    color: #405569;
    min-height: 48px;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.training-reset-btn:hover {
    background: #e4ebf2;
    color: #24384d;
}

.training-results-toolbar {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.training-results-toolbar .training-results-count {
    margin: 0;
    color: #5f6f82;
    font-weight: 600;
}

.training-sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.training-sort-wrap span {
    color: #5f6f82;
    white-space: nowrap;
}

.training-popular-panel {
    margin-top: 2rem;
    padding: 1.5rem;
}

.training-popular-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.training-popular-header h2 {
    margin: 0;
    font-size: 1.9rem;
}

.training-popular-line {
    flex: 1 1 auto;
    height: 1px;
    background: rgba(12, 33, 54, 0.1);
}

.training-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.training-popular-tag {
    border: 0;
    border-radius: 999px;
    background: rgba(31, 131, 193, 0.1);
    color: var(--primary-color);
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.training-popular-tag:hover {
    background: rgba(31, 131, 193, 0.16);
}

.premium-features-section {
    background:
        linear-gradient(180deg, rgba(31, 131, 193, 0.05) 0%, rgba(255, 255, 255, 1) 100%) !important;
}

.premium-feature-item {
    padding: 1.15rem 1.25rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 14px 32px rgba(10, 35, 58, 0.06);
}

.premium-features-image {
    padding: 1rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(31, 131, 193, 0.08), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 24px 50px rgba(10, 35, 58, 0.08);
}

.premium-features-image img {
    width: 100%;
    display: block;
    border-radius: 44% 56% 50% 50% / 58% 43% 57% 42% !important;
    transition: transform 0.35s ease;
}

.premium-features-image:hover img {
    transform: translateY(-4px) scale(1.02);
}

.premium-testimonials-section {
    background:
        radial-gradient(circle at top right, rgba(31, 131, 193, 0.08), transparent 22%),
        #ffffff;
}

.premium-testimonial-card {
    border-radius: 24px;
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 18px 44px rgba(10, 35, 58, 0.08);
}

.internal-cta-section {
    position: relative;
    padding: 5rem 0 !important;
    background:
        linear-gradient(180deg, rgba(31, 131, 193, 0.06) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
}

.internal-cta-section .btn {
    min-height: 48px;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}

.premium-contact-info-section {
    background:
        radial-gradient(circle at top left, rgba(31, 131, 193, 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.legal-content-section {
    background:
        radial-gradient(circle at top left, rgba(31, 131, 193, 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.legal-card {
    padding: 2rem;
    border-radius: 30px;
    border: 1px solid rgba(31, 131, 193, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 24px 56px rgba(10, 35, 58, 0.08);
}

.legal-block + .legal-block {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(31, 131, 193, 0.08);
}

.legal-list {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    color: #4f6277;
    line-height: 1.75;
}

.legal-list li + li {
    margin-top: 0.5rem;
}

.legal-inline-button {
    display: inline;
    color: var(--primary-color);
}

.legal-block-cta .btn {
    min-width: 220px;
}

@media (min-width: 992px) {
    footer.bg-dark .row > [class*="col-"] {
        text-align: left !important;
    }

    footer.bg-dark .footer-contact li {
        text-align: left !important;
    }
}

.premium-contact-info-card {
    border-radius: 24px;
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 18px 42px rgba(10, 35, 58, 0.08);
    padding: 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.premium-contact-info-card .info-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 44% 56% 54% 46% / 58% 42% 58% 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(31, 131, 193, 0.12), rgba(84, 166, 216, 0.22));
    color: var(--primary-color);
    font-size: 1.4rem;
}

.premium-contact-form-section {
    background:
        linear-gradient(180deg, rgba(31, 131, 193, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
}

.premium-contact-form-card {
    height: 100%;
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 24px 56px rgba(10, 35, 58, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.premium-contact-form-card .form-group label {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-weight: 600;
    color: #223247;
}

.premium-contact-form-card .form-control {
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(24, 67, 102, 0.12);
    background: #f9fbfd;
    padding: 0.95rem 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.premium-contact-form-card textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.premium-contact-form-card .form-control::placeholder {
    color: #8a92a1;
}

.premium-contact-form-card .form-control:focus {
    background: #fff;
    border-color: rgba(31, 131, 193, 0.45);
    box-shadow: 0 0 0 0.3rem rgba(31, 131, 193, 0.12);
}

.premium-contact-submit {
    min-height: 52px;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
    box-shadow: 0 16px 32px rgba(31, 131, 193, 0.22);
}

.premium-contact-visual {
    padding: 1rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(31, 131, 193, 0.08), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 24px 50px rgba(10, 35, 58, 0.08);
}

.premium-contact-visual img {
    width: 100%;
    border-radius: 56% 44% 48% 52% / 42% 58% 42% 58% !important;
    transition: transform 0.35s ease;
}

.premium-contact-visual:hover img {
    transform: translateY(-4px) scale(1.02);
}

.premium-contact-sidecard {
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 18px 42px rgba(10, 35, 58, 0.06);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.premium-contact-sidecard h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.premium-contact-sidecard ul {
    margin-bottom: 1rem;
}

.premium-contact-sidecard li + li {
    margin-top: 0.35rem;
}

.premium-contact-note {
    color: #6d7484;
    line-height: 1.7;
}

.premium-map-section {
    background: #fff;
    padding: 0 0 4rem;
}

.premium-map-wrapper {
    margin: 0 auto;
    max-width: 1180px;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 24px 56px rgba(10, 35, 58, 0.08);
}

.premium-map-wrapper iframe {
    display: block;
    width: 100%;
    height: min(62vw, 480px);
    border: 0;
}

.premium-error-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(31, 131, 193, 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.premium-error-card {
    padding: 2.5rem 2rem;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    border: 1px solid rgba(31, 131, 193, 0.08);
    box-shadow: 0 24px 56px rgba(10, 35, 58, 0.08);
}

.premium-error-number {
    margin: 0;
    font-size: clamp(5rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    letter-spacing: -0.05em;
}

.premium-error-card .error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

body.cookie-modal-open {
    overflow: hidden;
}

.cookie-consent-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 3000;
    max-width: 1080px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-consent-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(31, 131, 193, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 56px rgba(10, 35, 58, 0.14);
    backdrop-filter: blur(12px);
}

.cookie-consent-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(31, 131, 193, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.cookie-consent-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    color: #193047;
}

.cookie-consent-text {
    margin: 0;
    color: #5f6f82;
    line-height: 1.7;
}

.cookie-consent-text a {
    color: var(--primary-color);
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 3100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.cookie-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 23, 34, 0.6);
}

.cookie-modal-dialog {
    position: relative;
    width: min(720px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    margin: 1rem auto;
    padding: 2rem;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 32px 70px rgba(10, 35, 58, 0.22);
}

.cookie-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(31, 131, 193, 0.08);
    color: #193047;
    font-size: 1.5rem;
    line-height: 1;
}

.cookie-preferences-form {
    display: grid;
    gap: 1rem;
}

.cookie-preference-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(31, 131, 193, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.cookie-preference-item strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #1f3145;
}

.cookie-preference-item small {
    display: block;
    color: #6d7484;
    line-height: 1.6;
}

.cookie-preference-item input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    accent-color: var(--primary-color);
    flex: 0 0 auto;
}

.cookie-preference-item-locked {
    background: rgba(31, 131, 193, 0.04);
}

.cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    .navbar .container {
        padding: 0 1rem !important;
    }

    .navbar-nav .nav-link {
        font-size: 0.85rem !important;
        padding: 0.75rem 1rem !important;
    }

    .hero-section,
    .hero-slider,
    .hero-slide,
    .hero-slider .swiper-slide {
        min-height: 72svh !important;
        height: 72svh !important;
    }

    .slide-content {
        min-height: 72svh !important;
        height: auto !important;
        padding: 2rem 1.25rem !important;
        justify-content: center !important;
    }

    .service-block .row {
        flex-direction: column !important;
    }

    .service-block .col-lg-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 1rem !important;
    }

    .premium-service-block .col-lg-6 {
        order: initial !important;
    }

    .registration-hero {
        min-height: 250px;
        padding: 4rem 0 3rem;
    }

    .registration-highlights {
        grid-template-columns: 1fr;
        margin-top: -2rem;
    }

    .registration-card {
        padding: 1.5rem !important;
        border-radius: 22px;
    }

    .form-section-card {
        padding: 1.25rem;
    }

    .form-section-heading {
        flex-direction: column;
    }

    .registration-submit .btn {
        width: 100%;
        min-width: 0;
    }

    .home-hero-panel {
        padding: 1.5rem 1.25rem;
        border-radius: 22px;
    }

    .home-equipment-section {
        margin-top: -1.5rem;
        padding-bottom: 0;
    }

    .home-equipment-banner {
        height: clamp(170px, 42vw, 240px);
        border-radius: 22px;
    }

    .home-about-card {
        padding: 1.25rem;
        border-radius: 22px;
    }

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

    .home-about-actions,
    .home-training-actions,
    .home-final-cta-inner,
    .home-final-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-about-actions .btn,
    .home-training-actions .btn,
    .home-service-card .btn,
    .home-final-cta-actions .btn {
        width: 100%;
    }

    .home-service-blob {
        aspect-ratio: 1.08 / 0.86;
    }

    .home-proof-card {
        min-width: 0;
        width: 100%;
    }

    .inner-hero {
        min-height: 340px;
        padding: 5.5rem 0 3.5rem;
    }

    .page-header.inner-hero.inner-hero-contact,
    .page-header.inner-hero.inner-hero-formations,
    .services-hero-simple.inner-hero.inner-hero-services {
        min-height: 300px !important;
        padding: 4.5rem 0 2.75rem !important;
    }

    .inner-hero-subtitle {
        font-size: 1rem;
    }

    .premium-service-block,
    .premium-category-card,
    .premium-features-image,
    .premium-contact-form-card,
    .premium-contact-visual,
    .premium-contact-sidecard,
    .premium-contact-info-card,
    .legal-card {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .training-filter-panel {
        padding: 1rem;
        border-radius: 22px;
    }

    .training-search-shell {
        padding: 0.9rem;
    }

    .training-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .training-search-shell .btn {
        width: 100%;
    }

    .training-filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .training-filter-chips {
        width: 100%;
    }

    .training-filter-chip {
        flex: 1 1 auto;
    }

    .training-results-toolbar {
        padding: 1rem;
    }

    .training-sort-wrap {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .training-sort-wrap .form-select {
        width: 100%;
    }

    .training-popular-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .training-popular-line {
        width: 100%;
    }

    .internal-cta-section .d-flex {
        flex-direction: column;
    }

    .internal-cta-section .btn {
        width: 100%;
    }

    .premium-contact-submit {
        width: 100%;
    }

    .premium-service-image {
        height: 280px;
    }

    .premium-error-card {
        padding: 1.5rem 1.25rem;
        border-radius: 22px;
    }

    .premium-error-card .error-actions {
        flex-direction: column;
    }

    .premium-error-card .error-actions .btn {
        width: 100%;
        margin-right: 0 !important;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-consent-card {
        grid-template-columns: 1fr;
        padding: 1.1rem;
        border-radius: 20px;
    }

    .cookie-consent-actions,
    .cookie-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions .btn,
    .cookie-modal-actions .btn {
        width: 100%;
    }

    .cookie-modal-dialog {
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
        padding: 1.25rem;
        border-radius: 22px;
        max-height: calc(100vh - 1rem);
    }

    .cookie-preference-item {
        flex-direction: column;
    }

    .premium-map-section {
        padding-bottom: 2rem;
    }

    .premium-map-wrapper {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Réduire la taille du hero sur mobile */
@media (max-width: 768px) {
    .slide-content {
        padding: 2rem 1.25rem !important;
    }
    
    .slide-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .slide-description {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .slide-actions {
        flex-direction: column !important; /* Empiler les boutons verticalement */
        gap: 0.5rem !important;
    }
    
    .slide-actions .btn {
        width: 100% !important; /* Boutons pleine largeur */
        margin: 0 !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .slide-badge {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* Justifier le texte de la section "Qui sommes-nous ?" sur mobile */
    .about-content p {
        text-align: justify !important;
    }
    
    .about-content .lead {
        text-align: justify !important;
    }
    
    /* Réduire encore plus la taille des liens sur mobile */
    .navbar-nav .nav-link {
        font-size: 0.85rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
}

/* Navbar desktop compacte : padding + alignement du soulignement (::after défini plus haut) */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.38rem 0.65rem !important;
        font-size: 0.8rem !important;
    }

    .navbar-nav .nav-link::after {
        left: 0.65rem;
        right: 0.65rem;
        bottom: 0.05rem;
    }
}
