/* ─────────────────────────────────────────────────────────────────────────
   HOME.CSS — Page d'accueil uniquement
   Chargé conditionnellement via assets.php (is_front_page())
   ───────────────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */


.hero {
    position: relative;
    padding-block: 80px 80px;
    min-height: 650px;
    overflow: visible;
}


.hero::after {
    content: '';
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    bottom: -220px;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 70% at 0% 0%, #ffffff 0%, transparent 100%),
        radial-gradient(ellipse 70% 70% at 0% 52%, #e6bcee55 0%, transparent 68%), 
        radial-gradient(ellipse 100% 100% at 100% 0%, #a3c7f055 0%, transparent 68%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 24px;
    align-items: flex-end;
}

.hero__content {
    padding-bottom: 100px;
}

.hero__title {
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 500;
    color: var(--slate-900);
    line-height: 1.12;
    margin-bottom: 20px;
}

.hero__subtitle {
    color: var(--slate-700);
    max-width: 600px;
    margin-bottom: 36px;
    line-height: 1.75;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__image {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 60px;
}

.hero__image img {
    max-height: 520px;
    width: 100%;
    object-fit: contain;
    object-position: bottom;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE — Bento Services (home-services)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Bento grid : grande carte dark à gauche, 3 cartes blanches à droite */
.home-services__bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}
.home-services__bento .svc-card--featured {
    grid-row: 1 / 4;
}
@media (max-width: 768px) {
    .home-services__bento { grid-template-columns: 1fr; }
    .home-services__bento .svc-card--featured { grid-row: span 1; }
}

/* ─── Base card ──────────────────────────────────────────────────────────── */
.svc-card {
    border-radius: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.svc-card:hover { transform: translateY(-5px); }

/* ─── Grande carte (dark navy) ───────────────────────────────────────────── */
.svc-card--featured {
    background: var(--slate-900);
    padding: 40px;
    display: flex;
    flex-direction: column;
}
.svc-card--featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(37,99,235,.28) 0%, transparent 65%);
    pointer-events: none;
}
.svc-card--featured:hover { box-shadow: 0 20px 60px rgba(15,23,42,.45); }

/* ─── Petites cartes (fond blanc) ──────────────────────────────────────── */
.svc-card:not(.svc-card--featured) {
    background: var(--color-white);
    padding: 28px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow-card);
}
.svc-card:not(.svc-card--featured):hover { box-shadow: 0 10px 32px rgba(26,30,60,.12); }

/* Bandeau couleur en haut des petites cartes */
.svc-card--blue    { border-top: 3px solid var(--blue-600);   }
.svc-card--fushia  { border-top: 3px solid var(--fushia-600);  }
.svc-card--emerald { border-top: 3px solid var(--emerald-600); }

/* ─── Icône ──────────────────────────────────────────────────────────────── */
.svc-card__icon {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* Icône — grande carte */
.svc-card--featured .svc-card__icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,.10);
    border: 1.5px solid rgba(255,255,255,.14);
    margin-bottom: 24px;
}
.svc-card--featured .svc-card__icon i { font-size: 34px; color: rgba(255,255,255,.92); }
/* Icônes — petites cartes */
.svc-card:not(.svc-card--featured) .svc-card__icon { width: 52px; height: 52px; }
.svc-card--fushia  .svc-card__icon             { background: var(--fushia-50);  }
.svc-card--fushia  .svc-card__icon i           { font-size: 24px; color: var(--fushia-600); }
.svc-card--emerald .svc-card__icon             { background: var(--emerald-50); }
.svc-card--emerald .svc-card__icon i           { font-size: 24px; color: var(--emerald-600); }
.svc-card--blue    .svc-card__icon             { background: var(--blue-50); }
.svc-card--blue    .svc-card__icon i           { font-size: 24px; color: var(--blue-600); }

/* ─── Corps ──────────────────────────────────────────────────────────────── */
.svc-card__body { flex: 1; }
/* Corps — grande carte */
.svc-card--featured .svc-card__body h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 14px;
}
.svc-card--featured .svc-card__body p {
    font-size: 16px;
    color: rgba(255,255,255,.72);
    line-height: 1.75;
}
/* Corps — petites cartes */
.svc-card:not(.svc-card--featured) .svc-card__body h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 8px;
}
.svc-card:not(.svc-card--featured) .svc-card__body p {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.65;
}

/* ─── Liste de features (grande carte) ──────────────────────────────────── */
.svc-card__list {
    margin: 20px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.svc-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255,255,255,.88);
}
.svc-card__list li i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}

/* ─── Lien CTA ───────────────────────────────────────────────────────────── */
.svc-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    transition: gap var(--transition), color var(--transition);
}
.svc-card--featured .svc-card__cta {
    color: rgba(255,255,255,.88);
    border-bottom: 1.5px solid rgba(255,255,255,.30);
    padding-bottom: 2px;
}
.svc-card:not(.svc-card--featured) .svc-card__cta {
    margin-top: 14px;
    color: var(--fushia-600);
}
.svc-card:hover .svc-card__cta { gap: 10px; }

/* ─── Badge « Populaire » (grande carte) ─────────────────────────────────── */
.svc-card__tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--fushia-600);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 99px;
    letter-spacing: .4px;
    z-index: 1;
}

/* ─── Icône décorative en fond (grande carte) ─────────────────────────────── */
.svc-card__deco {
    position: absolute;
    bottom: -24px;
    right: -16px;
    font-size: 200px;
    line-height: 1;
    color: rgba(255,255,255,.03);
    pointer-events: none;
    user-select: none;
}

/* ── Responsive Hero ─────────────────────────────────────────────────────── */
@media screen and (max-width: 1024px) {
    .hero {
        padding-block: 80px 40px;
        min-height: 300px;
    }
    
    .hero .container { grid-template-columns: 1fr; }
     .hero__content {
        padding-bottom: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .hero__title { text-align: center; }
    .hero__subtitle { text-align: center; }
    .hero__actions { justify-content: center; }
    .hero__image { display: none;}
}

@media screen and (max-width: 668px) {
    .hero { padding-block: 48px 0; min-height: unset; }
    .hero__actions { flex-direction: row; align-items: flex-start; }
    .hero__image { max-height: 260px; }
    .svc-card--featured { padding: 24px; }
    .svc-card--featured .svc-card__icon { width: 56px; height: 56px; margin-bottom: 16px; }
    .svc-card:not(.svc-card--featured) { padding: 20px 18px; gap: 14px; }
}
