/* ============================================================
   KustomLab Homepage — CSS Custom (préfixe .kl-)
   @package KustomLab
   @since   1.9.0
   ============================================================ */

/* ============================================================
   HEADER FIX — fond blanc + texte sombre sur la homepage
   GoMax + Elementor header builder
   ============================================================ */
body.home .elementor-location-header,
body.home .site-header,
body.home header.header-wrap,
body.home #masthead {
    background-color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

/* Liens nav → couleur sombre */
body.home .elementor-location-header .elementor-nav-menu a,
body.home .elementor-location-header .elementor-item,
body.home .site-header nav a,
body.home #masthead nav a {
    color: #1A1A2E !important;
}

body.home .elementor-location-header .elementor-nav-menu a:hover,
body.home .elementor-location-header .elementor-item:hover {
    color: #102ae9 !important;
}

/* Logo — supprimer tout filtre CSS white */
body.home .elementor-location-header .elementor-widget-image img,
body.home .site-header .custom-logo,
body.home #masthead img.logo {
    filter: none !important;
    -webkit-filter: none !important;
}

/* --- Custom Properties ------------------------------------ */
:root {
    --kl-navy:     #1B2B6B;
    --kl-blue:     #2563EB;
    --kl-black:    #0A0A0A;
    --kl-red:      #DC2626;
    --kl-grey-bg:  #F8F9FA;
    --kl-border:   #DEE2E6;
    --kl-white:    #FFFFFF;
    --kl-text:     #1A1A2E;
    --kl-muted:    #6C757D;
    --kl-radius:   12px;
    --kl-radius-sm: 6px;
    --kl-shadow:   0 4px 24px rgba(27, 43, 107, 0.10);
    --kl-shadow-lg: 0 8px 40px rgba(27, 43, 107, 0.16);
    --kl-transition: 0.22s ease;
    --kl-font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset léger ------------------------------------------ */
.kl-home *,
.kl-home *::before,
.kl-home *::after {
    box-sizing: border-box;
}

.kl-home {
    font-family: var(--kl-font);
    color: var(--kl-text);
    line-height: 1.6;
}

/* --- Container -------------------------------------------- */
.kl-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Titre de section ------------------------------------- */
.kl-section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--kl-navy);
    margin: 0 0 40px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.kl-section-title--center {
    text-align: center;
}

/* ============================================================
   1. HERO
   ============================================================ */
.kl-hero {
    background: linear-gradient(135deg, var(--kl-navy) 0%, #0d1a45 60%, #1a2a6c 100%);
    padding: 72px 0 64px;
    overflow: hidden;
    position: relative;
}

.kl-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.kl-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.kl-hero__content {
    position: relative;
    z-index: 2;
}

.kl-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93C5FD;
    margin-bottom: 24px;
}

.kl-hero__eyebrow-dot {
    width: 6px;
    height: 6px;
    background: #60A5FA;
    border-radius: 50%;
    animation: kl-pulse 1.8s ease-in-out infinite;
}

@keyframes kl-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
}

.kl-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--kl-white);
    margin: 0 0 8px;
    text-transform: uppercase;
}

.kl-hero__title--accent {
    color: #60A5FA;
    display: block;
}

.kl-hero__subtitle {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin: 0 0 32px;
}

.kl-hero__bullets {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kl-hero__bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
    font-weight: 500;
}

.kl-hero__bullet-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(37, 99, 235, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kl-hero__bullet-icon svg {
    width: 14px;
    height: 14px;
    color: #60A5FA;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kl-hero__cta-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
}

.kl-hero__cta-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    line-height: 1;
}

.kl-badge--limited {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--kl-white);
}

.kl-badge--discount {
    background: var(--kl-red);
    color: var(--kl-white);
    font-size: 0.85rem;
    padding: 6px 14px;
}

.kl-hero__cta-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-top: -4px;
}

.kl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--kl-radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--kl-transition);
    border: none;
    outline: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.kl-btn--primary {
    background: var(--kl-blue);
    color: var(--kl-white);
    padding: 16px 32px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45);
}

.kl-btn--primary:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.55);
    color: var(--kl-white);
    text-decoration: none;
}

.kl-btn--primary svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--kl-transition);
}

.kl-btn--primary:hover svg {
    transform: translateX(3px);
}

.kl-hero__visuals {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
}

.kl-hero__img-wrap {
    position: relative;
    border-radius: var(--kl-radius);
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
}

.kl-hero__img-wrap--tall {
    margin-bottom: 28px;
}

.kl-hero__img-wrap--short {
    margin-top: 28px;
}

.kl-hero-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: var(--kl-radius);
}

.kl-hero__img-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
    border-radius: var(--kl-radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kl-hero__img-label-name {
    color: var(--kl-white);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.kl-hero__img-label-price {
    color: #60A5FA;
    font-weight: 800;
    font-size: 0.85rem;
}

/* ============================================================
   2. ACCROCHE SEO
   ============================================================ */
.kl-seo-strip {
    background: var(--kl-white);
    border-bottom: 1px solid var(--kl-border);
    padding: 28px 0;
}

.kl-seo-strip__text {
    text-align: center;
    font-size: clamp(0.88rem, 1.8vw, 1.05rem);
    color: var(--kl-muted);
    margin: 0;
    line-height: 1.8;
}

.kl-seo-strip__text strong {
    color: var(--kl-navy);
    font-weight: 700;
}

/* ============================================================
   3. GRILLE CATÉGORIES
   ============================================================ */
.kl-categories {
    padding: 64px 0;
    background: var(--kl-grey-bg);
}

.kl-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.kl-cat-card {
    background: var(--kl-white);
    border: 1px solid var(--kl-border);
    border-radius: var(--kl-radius);
    padding: 36px 28px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: all var(--kl-transition);
    box-shadow: var(--kl-shadow);
}

.kl-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--kl-shadow-lg);
    border-color: var(--kl-blue);
    text-decoration: none;
}

.kl-cat-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--kl-navy) 0%, var(--kl-blue) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kl-cat-card__icon svg {
    width: 32px;
    height: 32px;
    color: var(--kl-white);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kl-cat-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--kl-navy);
    margin: 0;
    line-height: 1.3;
}

.kl-cat-card__desc {
    font-size: 0.85rem;
    color: var(--kl-muted);
    margin: 0;
    line-height: 1.55;
}

.kl-cat-card__arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--kl-blue);
    margin-top: auto;
}

.kl-cat-card__arrow svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--kl-transition);
}

.kl-cat-card:hover .kl-cat-card__arrow svg {
    transform: translateX(3px);
}

/* ============================================================
   4. NAVIGATION PRODUITS (Pills)
   ============================================================ */
.kl-products-nav {
    padding: 56px 0;
    background: var(--kl-white);
}

.kl-products-nav__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.kl-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    border: 2px solid var(--kl-border);
    background: var(--kl-white);
    color: var(--kl-navy);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--kl-transition);
    cursor: pointer;
}

.kl-pill:hover,
.kl-pill:focus {
    background: var(--kl-navy);
    border-color: var(--kl-navy);
    color: var(--kl-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(27,43,107,0.22);
}

.kl-pill svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================
   5. BLOG
   ============================================================ */
.kl-blog {
    padding: 64px 0;
    background: var(--kl-grey-bg);
}

.kl-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.kl-blog-card {
    background: var(--kl-white);
    border: 1px solid var(--kl-border);
    border-radius: var(--kl-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--kl-shadow);
    transition: all var(--kl-transition);
}

.kl-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--kl-shadow-lg);
}

.kl-blog-card__thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--kl-grey-bg);
}

.kl-blog-card__thumb-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--kl-navy) 0%, var(--kl-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kl-blog-card__thumb-placeholder svg {
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.35);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kl-blog-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.kl-blog-card__meta {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kl-blue);
}

.kl-blog-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--kl-navy);
    margin: 0;
    line-height: 1.4;
}

.kl-blog-card__excerpt {
    font-size: 0.875rem;
    color: var(--kl-muted);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.kl-blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--kl-blue);
    text-decoration: none;
    margin-top: auto;
    transition: gap var(--kl-transition);
}

.kl-blog-card__link:hover {
    gap: 10px;
    text-decoration: none;
    color: var(--kl-navy);
}

.kl-blog-card__link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================
   6. AVIS CLIENTS
   ============================================================ */
.kl-reviews {
    padding: 64px 0;
    background: var(--kl-white);
}

.kl-reviews__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.kl-review-card {
    background: var(--kl-grey-bg);
    border: 1px solid var(--kl-border);
    border-radius: var(--kl-radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all var(--kl-transition);
}

.kl-review-card:hover {
    box-shadow: var(--kl-shadow);
    border-color: var(--kl-blue);
    transform: translateY(-2px);
}

.kl-review-card__stars {
    display: flex;
    gap: 3px;
    color: #F59E0B;
    font-size: 1rem;
}

.kl-review-card__stars span {
    line-height: 1;
}

.kl-review-card__text {
    font-size: 0.88rem;
    color: var(--kl-text);
    line-height: 1.65;
    margin: 0;
    font-style: italic;
    flex: 1;
}

.kl-review-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kl-review-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kl-navy) 0%, var(--kl-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--kl-white);
    flex-shrink: 0;
    text-transform: uppercase;
}

.kl-review-card__name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--kl-navy);
    margin: 0;
    line-height: 1.2;
}

.kl-review-card__city {
    font-size: 0.75rem;
    color: var(--kl-muted);
    margin: 0;
    line-height: 1.2;
}

.kl-review-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #16A34A;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 100px;
    padding: 3px 10px;
    align-self: flex-start;
}

.kl-review-card__badge svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

@media (max-width: 1024px) {
    .kl-hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .kl-reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kl-hero {
        padding: 48px 0 40px;
    }
    .kl-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .kl-hero__visuals {
        order: -1;
    }
    .kl-hero-img {
        height: 220px;
    }
    .kl-categories__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .kl-blog__grid,
    .kl-reviews__grid {
        grid-template-columns: 1fr;
    }
    .kl-pill {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .kl-container {
        padding: 0 16px;
    }
    .kl-hero__title {
        font-size: 1.85rem;
    }
    .kl-hero__img-wrap--tall,
    .kl-hero__img-wrap--short {
        margin: 0;
    }
    .kl-hero__visuals {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .kl-hero-img {
        height: 160px;
    }
    .kl-section-title {
        font-size: 1.35rem;
        margin-bottom: 28px;
    }
}
