/* Charte SOCIETE KABOURA — alignée sur kaboura.css / style.css */
:root {
    --theme-color: #b91c2e;
    --theme-color2: #0d1b3d;
    --kaboura-orange: #ff8c00;
    --kaboura-gradient: linear-gradient(135deg, #b91c2e 0%, #ff8c00 100%);
    --body-font: "Roboto", sans-serif;
    --heading-font: "Poppins", sans-serif;
    --body-text: #243b53;
    --kg-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --kg-radius: 14px;
    --kg-radius-card: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.kg-body {
    margin: 0;
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--body-text);
    background: #f6f8fc;
}

.kg-body.kg-loaded .kg-preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
.kg-section-title,
.kg-filter-title,
.kg-hero-title {
    font-family: var(--heading-font);
}

.kg-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kg-skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 10000;
    padding: 10px 16px;
    background: var(--kaboura-gradient);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}

.kg-skip-link:focus {
    left: 8px;
}

/* Preloader */
.kg-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--theme-color2);
    display: grid;
    place-items: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.kg-preloader-inner {
    text-align: center;
}

.kg-preloader-inner img {
    animation: kg-emblem-spin 2.4s var(--kg-ease) infinite;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.kg-preloader-bar {
    display: block;
    width: 120px;
    height: 4px;
    margin: 20px auto 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.kg-preloader-bar i {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--kaboura-gradient);
    border-radius: 4px;
    animation: kg-preload-bar 1.2s ease-in-out infinite;
}

@keyframes kg-emblem-spin {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.06) rotate(6deg);
    }
}

@keyframes kg-preload-bar {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(280%);
    }
}

/* Ligne tricolore logo */
.kg-brand-line {
    display: flex;
    gap: 6px;
    margin-top: 28px;
    max-width: 200px;
}

.kg-brand-line i {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    animation: kg-line-pulse 2.5s ease-in-out infinite;
}

.kg-brand-line i:nth-child(1) {
    background: var(--theme-color2);
    animation-delay: 0s;
}

.kg-brand-line i:nth-child(2) {
    background: var(--theme-color);
    animation-delay: 0.2s;
}

.kg-brand-line i:nth-child(3) {
    background: var(--kaboura-orange);
    animation-delay: 0.4s;
}

.kg-brand-line--panel {
    margin: 0 0 24px;
    max-width: 100%;
}

@keyframes kg-line-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.65;
        transform: scaleY(1.8);
    }
}

.kg-text-gradient {
    background: var(--kaboura-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Header fixe */
.kg-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 16px rgba(13, 27, 61, 0.06);
}

/* Topbar — bleu logo */
.kg-topbar {
    background: var(--theme-color2);
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kg-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.kg-topbar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.kg-topbar-list a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.kg-topbar-list a:hover {
    color: var(--kaboura-orange);
}

.kg-topbar-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.kg-topbar-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s var(--kg-ease), background 0.25s;
}

.kg-topbar-social a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px) scale(1.05);
}


/* Buttons */
.kg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 8px;
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--kg-ease), filter 0.2s, background 0.2s;
    box-shadow: none;
}

.kg-btn-theme {
    background: var(--theme-color);
    color: #fff !important;
}

.kg-btn-theme:hover {
    filter: brightness(1.05);
    background: var(--theme-color2);
    color: #fff !important;
}

.kg-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff !important;
}

.kg-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.kg-btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero + carousel */
.kg-hero {
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    background: var(--theme-color2);
}

.kg-hero--compact {
    min-height: 0;
}

.kg-hero-shell {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: min(380px, 48vh);
    padding: 24px 12px 16px;
}

.kg-hero-top {
    flex: 0 0 auto;
    padding-top: clamp(36px, 6vw, 56px);
}

.kg-hero-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(32px, 5vw, 52px);
    margin-top: 12px;
}

.kg-hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.kg-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1s ease, transform 6s ease;
}

.kg-hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.kg-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(13, 27, 61, 0.82) 0%,
        rgba(13, 27, 61, 0.72) 50%,
        rgba(13, 27, 61, 0.88) 100%
    );
}

.kg-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 14px 0 16px;
}

.kg-brand img {
    height: 56px;
    width: auto;
    max-width: min(280px, 72vw);
}

@media (min-width: 992px) {
    .kg-brand img {
        height: 62px;
    }
}

.kg-nav-links {
    display: none;
    gap: 28px;
    margin-left: auto;
}

.kg-nav-links a {
    color: var(--theme-color2);
    text-decoration: none;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.kg-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: var(--theme-color);
    border-radius: 2px;
    transition: width 0.3s var(--kg-ease);
}

.kg-nav-links a:hover {
    color: var(--theme-color);
}

.kg-nav-links a:hover::after {
    width: 100%;
}

.kg-nav .kg-btn-theme {
    display: none;
    font-size: 13px;
    padding: 12px 20px;
}

.kg-nav-toggle {
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(13, 27, 61, 0.12);
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.kg-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--theme-color2);
    border-radius: 2px;
    transition: transform 0.3s;
}

.kg-mobile-menu {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(13, 27, 61, 0.1);
    border-radius: var(--kg-radius);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(13, 27, 61, 0.1);
}

.kg-mobile-menu[hidden] {
    display: none;
}

.kg-mobile-menu a {
    padding: 14px 18px;
    color: var(--theme-color2);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(13, 27, 61, 0.08);
}

@media (min-width: 992px) {
    .kg-nav-links,
    .kg-nav .kg-btn-theme {
        display: flex;
    }

    .kg-nav-toggle {
        display: none;
    }
}

.kg-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: rgba(185, 28, 46, 0.25);
    border: 1px solid rgba(255, 140, 0, 0.4);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: kg-badge-glow 3s ease-in-out infinite;
}

@keyframes kg-badge-glow {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(255, 140, 0, 0);
    }
    50% {
        box-shadow: 0 0 24px rgba(255, 140, 0, 0.25);
    }
}

.kg-hero-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    animation: kg-title-glow 6s ease-in-out infinite;
}

.kg-hero-content--center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 0 0;
}

.kg-hero-content--center .kg-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.kg-brand-line--center {
    margin-left: auto;
    margin-right: auto;
}

.kg-hero-subtitle {
    margin: 0 0 8px;
    font-size: clamp(17px, 2.4vw, 21px);
    opacity: 0.95;
    max-width: 720px;
    line-height: 1.65;
}

.kg-hero-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0 0;
    position: relative;
    z-index: 2;
}

.kg-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.kg-hero-dot.is-active {
    background: var(--kaboura-orange);
    border-color: var(--kaboura-orange);
    transform: scale(1.15);
}

/* Marquee */
.kg-marquee {
    position: relative;
    z-index: 2;
    margin-top: auto;
    overflow: hidden;
    padding: 14px 0;
}

.kg-marquee--navy {
    background: var(--theme-color2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kg-marquee-inner {
    display: flex;
    width: max-content;
    animation: kg-marquee-seamless 55s linear infinite;
    will-change: transform;
}

.kg-marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0;
}

.kg-marquee-track span {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    padding: 0 2rem;
    flex-shrink: 0;
}

.kg-marquee-track span::after {
    content: "◆";
    margin-left: 2rem;
    font-size: 8px;
    color: var(--kaboura-orange);
    vertical-align: middle;
}

@keyframes kg-marquee-seamless {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Filigrane emblème */
.kg-watermark {
    pointer-events: none;
    user-select: none;
    opacity: 0.07;
}

.kg-watermark--hero {
    position: absolute;
    right: 4%;
    top: 18%;
    width: min(340px, 40vw);
    z-index: 1;
    animation: kg-watermark-float 10s ease-in-out infinite;
}

.kg-watermark--filter {
    position: absolute;
    right: -8px;
    bottom: 12px;
    width: min(220px, 38%);
    opacity: 0.32;
    filter: grayscale(15%);
    pointer-events: none;
}

.kg-watermark--about {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(480px, 90vw);
    opacity: 0.04;
}

@keyframes kg-watermark-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(4deg);
    }
}

/* Filter panel */
.kg-filter-panel {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: var(--kg-radius);
    padding: clamp(16px, 3vw, 24px);
    box-shadow: 0 16px 48px rgba(13, 27, 61, 0.1);
    border: 1px solid rgba(13, 27, 61, 0.06);
}

.kg-filter-panel > :not(.kg-watermark) {
    position: relative;
    z-index: 1;
}

.kg-filter-panel--hero {
    margin-top: 0;
    z-index: 3;
    width: 100%;
    animation: kg-filter-float 4s ease-in-out infinite;
}

@keyframes kg-filter-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.kg-filter-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.kg-filter-title {
    margin: 0 0 6px;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    color: var(--theme-color2);
}

.kg-filter-lead {
    margin: 0;
    color: var(--body-text);
    font-size: 14px;
    line-height: 1.6;
    max-width: 560px;
}

.kg-filter-count {
    margin: 0;
    align-self: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(13, 27, 61, 0.06);
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 13px;
    color: var(--theme-color);
    transition: background 0.3s, transform 0.3s;
}

.kg-filter-count--updated {
    background: rgba(185, 28, 46, 0.12);
    animation: kg-results-pulse 0.65s ease;
}

.kg-filter-search-row {
    margin-bottom: 14px;
}

.kg-filter-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    background: #f0f4fa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.kg-filter-search:focus-within {
    background: #f0f4fa;
    border-color: transparent;
    box-shadow: none;
}

.kg-filter-search-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--theme-color2);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    animation: kg-search-pulse 2.5s ease-in-out infinite;
}

@keyframes kg-search-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.kg-filter-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: var(--body-font);
    padding: 10px 0;
    outline: none;
    box-shadow: none;
    color: var(--theme-color2);
}

.kg-filter-search input:focus {
    outline: none;
    box-shadow: none;
}

.kg-filter-clear {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: var(--theme-color2);
    color: #fff;
    cursor: pointer;
}

.kg-filter-clear[hidden] {
    display: none;
}

.kg-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kg-chip {
    padding: 9px 16px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-family: var(--heading-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-color2);
    cursor: pointer;
    transition: all 0.25s var(--kg-ease);
}

.kg-chip:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.kg-chip.is-active {
    background: var(--theme-color2);
    border-color: var(--theme-color2);
    color: #fff;
    transform: translateY(-1px);
}


/* Main */
.kg-main {
    flex: 1;
}

.kg-companies {
    padding: 48px 0 64px;
}

.kg-companies .kg-section-head {
    margin-bottom: 32px;
}

.kg-cards-grid {
    padding-top: 0;
}

.kg-section-head {
    max-width: 640px;
    margin-bottom: 40px;
}

.kg-section-head--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.kg-section-tag {
    display: inline-block;
    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--theme-color);
    margin-bottom: 10px;
}

.kg-section-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--theme-color2);
}

.kg-section-title span {
    background: var(--kaboura-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kg-section-intro {
    margin: 0;
    opacity: 0.9;
}

.kg-search-empty:not(.visually-hidden) {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: var(--kg-radius);
    margin-bottom: 24px;
    border-left: 4px solid var(--theme-color);
}

.kg-company-col.kg-is-hidden {
    display: none;
}

.kg-company-col.kg-flip-in {
    animation: kg-flip-in 0.55s var(--kg-ease) both;
}

@keyframes kg-flip-in {
    from {
        opacity: 0;
        transform: perspective(600px) rotateX(-8deg) translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Cards */
.kg-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--kg-radius-card);
    overflow: visible;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(13, 27, 61, 0.07);
    border: 1px solid rgba(13, 27, 61, 0.06);
    transition: transform 0.35s var(--kg-ease);
    position: relative;
    isolation: isolate;
}

.kg-card-shell {
    position: relative;
    height: 100%;
}

.kg-card:hover {
    transform: translateY(-8px) scale(1.01);
    color: inherit;
}

.kg-company-col {
    animation: kg-card-breathe 5s ease-in-out infinite;
    animation-delay: calc(var(--kg-i, 0) * 0.35s);
}

@keyframes kg-card-breathe {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.kg-company-col:hover {
    animation: none;
}

.kg-card--soon {
    opacity: 0.85;
}

.kg-card-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: var(--kg-radius-card) var(--kg-radius-card) 0 0;
}

.kg-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--kg-ease);
}

.kg-card:hover .kg-card-media img {
    transform: scale(1.1);
}

.kg-card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 61, 0.75), transparent 55%);
}

.kg-card-logo-wrap {
    position: absolute;
    z-index: 30;
    right: 18px;
    top: 158px;
    width: 118px;
    height: 118px;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(13, 27, 61, 0.12);
    overflow: hidden;
    border: 3px solid #fff;
    outline: 1px solid rgba(13, 27, 61, 0.08);
}

.kg-card-logo-btn {
    cursor: zoom-in;
    transition: transform 0.25s var(--kg-ease);
}

.kg-card-logo-btn:hover {
    transform: scale(1.06);
}

.kg-card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 8px;
    box-sizing: border-box;
    background: #fff;
}

.kg-card-body {
    position: relative;
    z-index: 10;
    padding: 56px 22px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0 0 var(--kg-radius-card) var(--kg-radius-card);
}

.kg-btn-block {
    width: 100%;
}

/* À propos — Kaboura Group */
.kg-about {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background: linear-gradient(135deg, #fff 0%, #eef2f8 50%, #fff 100%);
}

.kg-about-title {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 800;
    color: var(--theme-color2);
}

.kg-about-lead {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-color);
    line-height: 1.6;
}

.kg-about-text {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--body-text);
}

.kg-about-card {
    position: relative;
    overflow: hidden;
    padding: 32px 28px;
    background: var(--theme-color2);
    color: #fff;
    border-radius: calc(var(--kg-radius) + 4px);
    box-shadow: 0 24px 56px rgba(13, 27, 61, 0.2);
}

.kg-about-card-watermark {
    position: absolute;
    right: -40px;
    top: -20px;
    width: 220px;
    opacity: 0.2;
    pointer-events: none;
    filter: brightness(0) invert(1);
}

.kg-about-highlights {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.kg-about-highlights li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 16px;
}

.kg-about-highlight-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--theme-color);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.kg-card-sector {
    font-family: var(--heading-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-color);
}

.kg-card-body h3 {
    margin: 8px 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--theme-color2);
}

.kg-card-body p {
    margin: 0 0 14px;
    font-size: 14px;
    flex: 1;
}

.kg-card-tags {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kg-card-tags li {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    background: rgba(13, 27, 61, 0.06);
    border-radius: 6px;
    color: var(--theme-color2);
}

.kg-card-link {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 14px;
    color: var(--theme-color2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.25s, color 0.25s;
}

.kg-card:hover .kg-card-link {
    gap: 12px;
    color: var(--theme-color);
}

.kg-card-soon {
    align-self: flex-start;
    padding: 6px 12px;
    background: var(--theme-color2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
}

/* FAQ */
.kg-faq {
    padding: 64px 0;
    background: linear-gradient(180deg, #fff 0%, #eef2f8 100%);
}

.kg-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kg-faq-item {
    background: #fff;
    border-radius: var(--kg-radius);
    border: 1px solid rgba(13, 27, 61, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.kg-faq-item[open] {
    box-shadow: 0 12px 36px rgba(13, 27, 61, 0.08);
}

.kg-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 52px 20px 22px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 16px;
    color: var(--theme-color2);
    position: relative;
}

.kg-faq-item summary::-webkit-details-marker {
    display: none;
}

.kg-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(13, 27, 61, 0.06);
    display: grid;
    place-items: center;
    font-size: 18px;
    color: var(--theme-color);
    transition: transform 0.25s, background 0.25s;
}

.kg-faq-item[open] summary::after {
    content: "−";
    background: var(--theme-color2);
    color: #fff;
}

.kg-faq-item p {
    margin: 0;
    padding: 0 22px 22px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--body-text);
}

/* CTA */
.kg-cta {
    padding: 0 0 80px;
}

.kg-cta-box {
    position: relative;
    padding: clamp(36px, 5vw, 52px);
    border-radius: var(--kg-radius);
    background: var(--theme-color2);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.kg-cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.35), transparent 70%);
    top: -200px;
    right: -100px;
    animation: kg-cta-glow 6s ease-in-out infinite;
}

@keyframes kg-cta-glow {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.kg-cta-box h2 {
    position: relative;
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
}

.kg-cta-box p {
    position: relative;
    margin: 0 0 24px;
    opacity: 0.9;
}

.kg-cta-btns {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Footer */
.kg-footer {
    position: relative;
    background: var(--theme-color2);
    color: rgba(255, 255, 255, 0.88);
    margin-top: auto;
}

.kg-footer-shape {
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%230d1b3d' d='M0,30L80,25C160,20,320,10,480,15C640,20,800,40,960,42C1120,45,1280,25,1360,15L1440,5L1440,60L0,60Z'/%3E%3C/svg%3E")
        center / cover no-repeat;
    margin-top: -1px;
}

.kg-footer-logo img {
    margin-bottom: 20px;
}

.kg-logo-white {
    filter: brightness(0) invert(1);
    height: auto;
    width: auto;
    max-width: min(300px, 88vw);
    max-height: 88px;
}

.kg-footer-about {
    font-size: 17px;
    line-height: 1.85;
    max-width: 380px;
    opacity: 0.92;
}

/* Lightbox logo */
.kg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.kg-lightbox[hidden] {
    display: none;
}

.kg-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(13, 27, 61, 0.82);
    cursor: pointer;
}

.kg-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(560px, 92vw);
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 28px 28px 22px;
    animation: kg-lightbox-in 0.35s var(--kg-ease);
}

@keyframes kg-lightbox-in {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.kg-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: var(--theme-color2);
    color: #fff;
    cursor: pointer;
}

.kg-lightbox-img {
    display: block;
    width: 100%;
    max-height: min(420px, 60vh);
    object-fit: contain;
    margin: 0 auto 12px;
}

.kg-lightbox-caption {
    margin: 0;
    text-align: center;
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--theme-color2);
}

.kg-body.kg-lightbox-open {
    overflow: hidden;
}

/* WhatsApp flottant */
.kg-float-wa {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    animation: kg-wa-pulse 2.2s ease-in-out infinite;
    transition: transform 0.25s var(--kg-ease);
}

.kg-float-wa:hover {
    color: #fff;
    transform: scale(1.08);
}

@keyframes kg-wa-pulse {
    0%,
    100% {
        box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    }
    50% {
        box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0.2);
    }
}

@keyframes kg-title-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 0 transparent);
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.25));
    }
}

.kg-chip {
    animation: kg-chip-pop 0.5s var(--kg-ease) both;
}

.kg-filter-chips .kg-chip:nth-child(1) {
    animation-delay: 0.05s;
}

.kg-filter-chips .kg-chip:nth-child(2) {
    animation-delay: 0.1s;
}

.kg-filter-chips .kg-chip:nth-child(3) {
    animation-delay: 0.15s;
}

.kg-filter-chips .kg-chip:nth-child(4) {
    animation-delay: 0.2s;
}

@keyframes kg-chip-pop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.kg-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.kg-footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.25s, transform 0.25s;
}

.kg-footer-social a:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    transform: translateY(-2px);
    color: #fff;
}

.kg-footer-title {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 22px;
    position: relative;
    padding-bottom: 12px;
}

.kg-footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--kaboura-gradient);
    border-radius: 2px;
}

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

.kg-footer-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, padding-left 0.2s;
}

.kg-footer-list li {
    margin-bottom: 10px;
}

.kg-footer-list a:hover {
    color: var(--kaboura-orange);
    padding-left: 4px;
}

.kg-footer-list i {
    font-size: 12px;
    color: var(--kaboura-orange);
}

.kg-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kg-footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 16px;
}

.kg-footer-contact i {
    color: var(--kaboura-orange);
    margin-top: 4px;
}

.kg-footer-contact a {
    color: inherit;
    text-decoration: none;
}

.kg-footer-contact a:hover {
    color: var(--kaboura-orange);
}

.kg-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    font-size: 14px;
    opacity: 0.9;
}

.kg-footer-bottom-main p {
    margin: 0 0 6px;
}

.kg-footer-bottom-main p:last-child {
    margin-bottom: 0;
}

.kg-footer-tag {
    color: var(--kaboura-orange);
    font-weight: 600;
}

.kg-footer-credit {
    margin: 0;
    font-size: 14px;
    text-align: right;
}

.kg-footer-credit a {
    color: var(--kaboura-orange);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 140, 0, 0.45);
    transition: color 0.2s, border-color 0.2s;
}

.kg-footer-credit a:hover {
    color: #fff;
    border-color: #fff;
}

@media (max-width: 575px) {
    .kg-footer-credit {
        text-align: left;
        width: 100%;
    }
}

/* Scroll animations */
[data-kg-animate] {
    opacity: 0;
}

[data-kg-animate].animate__animated {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .kg-marquee-inner,
    .kg-filter-panel--hero,
    .kg-company-col,
    .kg-float-wa,
    .kg-hero-title,
    .kg-hero-bg::before,
    .kg-hero-emblem,
    .kg-hero-grid-lines,
    .kg-filter-search-icon,
    .kg-preloader-inner img,
    .kg-cta-glow {
        animation: none !important;
    }

    [data-kg-animate] {
        opacity: 1;
    }
}

@media (max-width: 991px) {
    .kg-nav .kg-btn-theme {
        display: none;
    }

    .kg-hero-shell {
        min-height: min(360px, 52vh);
    }
}

@media (max-width: 575px) {
    .kg-hero-shell {
        min-height: min(340px, 58vh);
    }

    .kg-filter-panel--hero {
        padding: 18px 16px;
    }

    .kg-filter-head {
        flex-direction: column;
        align-items: stretch;
    }

    .kg-filter-count {
        align-self: flex-start;
        width: 100%;
        text-align: center;
    }

    .kg-topbar-inner {
        gap: 12px;
    }

    .kg-topbar-list {
        gap: 10px 14px;
        font-size: 13px;
    }

    .kg-topbar-text {
        word-break: break-word;
    }

    .kg-topbar-social {
        width: 100%;
        justify-content: flex-end;
        padding-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .kg-results-bar {
        position: sticky;
        top: 0;
        z-index: 20;
        margin-bottom: 16px;
    }

    .kg-card-logo-wrap {
        width: 96px;
        height: 96px;
        top: 168px;
        right: 14px;
    }

    .kg-card-body {
        padding-top: 48px;
    }
}

@media (max-width: 767px) {
    .kg-nav {
        gap: 10px;
    }

    .kg-nav-links {
        display: none;
    }
}

/* Barre de résultats recherche */
.kg-results-bar {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(13, 27, 61, 0.05);
    border: 1px solid rgba(13, 27, 61, 0.08);
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.kg-results-bar:not(.is-active) {
    opacity: 0.85;
}

.kg-results-bar.is-active {
    background: rgba(185, 28, 46, 0.08);
    border-color: rgba(185, 28, 46, 0.2);
}

.kg-results-bar.kg-results-bar--pulse {
    animation: kg-results-pulse 0.65s ease;
}

@keyframes kg-results-pulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1);
    }
}

.kg-results-bar-text {
    margin: 0;
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-color2);
    text-align: center;
}

/* Modal devis */
.kg-modal[hidden] {
    display: none !important;
}

.kg-modal:not([hidden]) {
    display: grid;
}

.kg-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    place-items: center;
    padding: 16px;
}

.kg-modal-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(13, 27, 61, 0.72);
    cursor: pointer;
}

.kg-modal-panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(92vh, 900px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(13, 27, 61, 0.25);
}

.kg-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(13, 27, 61, 0.08);
    color: var(--theme-color2);
    cursor: pointer;
}

.kg-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
}

.kg-modal-visual img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}

.kg-modal-body {
    padding: 28px 24px 24px;
}

.kg-modal-title {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 28px);
    color: var(--theme-color2);
}

.kg-modal-lead {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--body-text);
}

.kg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.kg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-color2);
}

.kg-field input,
.kg-field textarea {
    font: inherit;
    font-weight: 400;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
}

.kg-field input:focus,
.kg-field textarea:focus {
    outline: none;
    border-color: var(--theme-color2);
    background: #fff;
}

.kg-form-feedback {
    min-height: 1.25em;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
}

.kg-form-feedback.is-error {
    color: var(--theme-color);
}

.kg-form-feedback.is-success {
    color: #15803d;
}

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

.kg-mobile-menu .kg-btn-theme {
    margin-top: 8px;
}

/* Page Kaboura Group */
.kg-page-hero {
    padding: 48px 0 32px;
    background: linear-gradient(180deg, rgba(13, 27, 61, 0.06), transparent);
}

.kg-page-hero-eyebrow {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--body-text);
}

.kg-page-hero-eyebrow a {
    color: var(--theme-color);
    text-decoration: none;
    font-weight: 600;
}

.kg-page-hero-title {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 42px);
    color: var(--theme-color2);
}

.kg-page-hero-lead {
    margin: 0;
    max-width: 720px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--body-text);
}

.kg-page-section {
    padding: 40px 0;
}

.kg-page-section--alt {
    background: #f6f8fc;
}

.kg-prose h2 {
    margin: 0 0 16px;
    font-size: clamp(22px, 3vw, 28px);
    color: var(--theme-color2);
}

.kg-prose p,
.kg-prose li {
    font-size: 15px;
    line-height: 1.75;
    color: var(--body-text);
}

.kg-director-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(13, 27, 61, 0.08);
    box-shadow: 0 12px 32px rgba(13, 27, 61, 0.06);
}

.kg-director-emblem {
    width: 88px;
    height: auto;
    opacity: 0.9;
}

.kg-director-name {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: var(--theme-color2);
}

.kg-director-role {
    margin: 0 0 12px;
    color: var(--theme-color);
    font-weight: 600;
}

.kg-director-bio {
    margin: 0;
    line-height: 1.7;
}

.kg-page-table-title {
    margin: 0 0 18px;
    font-size: clamp(22px, 3vw, 28px);
    color: var(--theme-color2);
}

.kg-table-wrap {
    border-radius: 16px;
    border: 1px solid rgba(13, 27, 61, 0.1);
    background: #fff;
}

.kg-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
}

.kg-table th,
.kg-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(13, 27, 61, 0.08);
    vertical-align: top;
    text-align: left;
}

.kg-table thead th {
    background: var(--theme-color2);
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 600;
}

.kg-table tbody tr:last-child td,
.kg-table tbody tr:last-child th {
    border-bottom: none;
}

.kg-table--legal th {
    width: 34%;
    background: rgba(13, 27, 61, 0.04);
    font-weight: 700;
    color: var(--theme-color2);
}

.kg-page-note {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.65;
}

.kg-inline-link-btn {
    border: none;
    padding: 0;
    background: none;
    color: var(--theme-color);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.kg-page-cta {
    padding: 36px 0 56px;
    background: var(--theme-color2);
}

.kg-page-cta .container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.kg-btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.kg-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (max-width: 991px) {
    .kg-modal-grid {
        grid-template-columns: 1fr;
    }

    .kg-modal-visual img {
        border-radius: 20px 20px 0 0;
        min-height: 200px;
        max-height: 220px;
    }

    .kg-form-row {
        grid-template-columns: 1fr;
    }

    .kg-director-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .kg-table {
        font-size: 13px;
    }

    .kg-table th,
    .kg-table td {
        padding: 10px 12px;
    }
}

/* Actualités */
.kg-news {
    padding: 56px 0 64px;
    background: #f6f8fc;
}

.kg-news-card {
    height: 100%;
    background: #fff;
    border-radius: var(--kg-radius-card);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(13, 27, 61, 0.08);
    display: flex;
    flex-direction: column;
}

.kg-news-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.kg-news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kg-news-body {
    padding: 20px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kg-news-body time {
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-color);
    margin-bottom: 8px;
}

.kg-news-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.kg-news-body h3 a {
    color: var(--theme-color2);
    text-decoration: none;
}

.kg-news-body h3 a:hover {
    color: var(--theme-color);
}

.kg-news-body p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--body-text);
    flex: 1;
}

.kg-news-link {
    font-weight: 700;
    font-size: 14px;
    color: var(--theme-color);
    text-decoration: none;
}

.kg-news-more {
    margin-top: 32px;
    text-align: center;
}

.kg-news--archive {
    padding-top: 24px;
}

.kg-news-empty {
    text-align: center;
    color: var(--body-text);
    padding: 32px 0;
}

.kg-news-back {
    margin-top: 40px;
    text-align: center;
}

.kg-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.kg-pagination .pagination {
    gap: 6px;
    margin: 0;
}

.kg-pagination .page-link {
    border-radius: 8px;
    color: var(--theme-color2);
    border-color: rgba(13, 27, 61, 0.12);
}

.kg-pagination .page-item.active .page-link {
    background: var(--theme-color2);
    border-color: var(--theme-color2);
}

.kg-article-meta {
    color: var(--body-text);
    margin-bottom: 20px;
}

.kg-article-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
}

.kg-article-lead {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
}

.kg-article-content {
    font-size: 15px;
    line-height: 1.8;
}

.kg-page {
    overflow-x: hidden;
}

.kg-container-safe {
    max-width: 100%;
}
