/**
 * Hero — refonte tâche 4.2 (2026-05-17)
 * Charte "Deep Navy + Electric Teal"
 * Variables : voir assets/css/variables.css
 */

/* === Neutralisation des anciennes règles de main.min.css === */
.hero-image,
.hero-image.floating { display: none !important; }
.hero-badge { display: none !important; }

/* === Section hero === */
.hero {
    position: relative;
    min-height: calc(100vh - 64px);
    margin-top: 64px;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    display: flex;
    align-items: center;
    background: var(--primary);
    color: #E2E8F0;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 30%, rgba(30, 58, 95, 0.6), transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(0, 212, 170, 0.10), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.hero__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Réserve la hauteur du hero avant le swap de police → empêche le décalage
       du contenu situé en dessous (CLS). */
    min-height: 70vh;
}

/* === Top : 2 colonnes desktop (texte | illustration) === */
.hero__top {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    align-items: center;
    gap: clamp(var(--space-6), 4vw, var(--space-10));
}

.hero__content {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: var(--rhythm-element);
}

/* === Eyebrow (statut) === */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    font-size: var(--fs-caption);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94A3B8;
    width: max-content;
}

.hero__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.18);
    flex-shrink: 0;
}

/* === H1 (2 lignes : nom + tagline) === */
.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}

.hero__title-name {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1;
    min-height: 1em;   /* réserve la hauteur avant le swap Fraunces → 0 CLS vertical */
}

.hero__title-tagline {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    color: #CBD5E1;
    line-height: 1.1;
    min-height: 1.1em; /* réserve la hauteur avant le swap Fraunces → 0 CLS vertical */
}

.hero__title .text-gradient-brand {
    font-style: italic;
    font-weight: 600;
    color: var(--accent);
}

/* === Subtitle === */
.hero__subtitle {
    margin: 0;
    max-width: 640px;
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: #CBD5E1;
}

.hero__subtitle em {
    font-style: italic;
    font-family: var(--font-display);
    color: var(--accent);
    font-weight: 500;
}

/* === CTAs === */
.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.hero .btn--secondary {
    color: #E2E8F0;
    border-color: rgba(226, 232, 240, 0.25);
}
.hero .btn--secondary:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
    background: rgba(0, 212, 170, 0.06);
}

/* === Bande KPI — section dédiée juste sous le hero (sous la fold sur ≥900px) === */
.hero-band {
    position: relative;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-soft) 100%);
    border-top: 1px solid rgba(0, 212, 170, 0.18);
    border-bottom: 1px solid rgba(0, 212, 170, 0.10);
    padding: clamp(2.5rem, 5vw, 3.5rem) var(--space-6);
    overflow: hidden;
    isolation: isolate;
}
.hero-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(0, 212, 170, 0.08), transparent 70%);
    z-index: -1;
    pointer-events: none;
}
.hero-band__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* === Stats === */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
    margin: 0;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.hero__stat-value {
    order: 1;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1;
    color: var(--accent);
    font-feature-settings: 'tnum' 1, 'lnum' 1;
    letter-spacing: -0.01em;
}

.hero__stat-label {
    order: 2;
    font-size: var(--fs-caption);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94A3B8;
}

/* === Illustration (colonne droite) ===
   Restée dans le flow grid (pas de position: absolute).
   min-width: 0 sur le grid item garantit qu'elle ne pousse pas .hero__content. */
.hero__illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    min-width: 0;
    margin-left: auto;
    pointer-events: none; /* ne capture pas le hover/clic, pure déco */
}

.hero__svg {
    width: 100%;
    height: auto;
    max-width: 420px;
    filter: drop-shadow(0 24px 48px rgba(0, 212, 170, 0.12));
}

/* Animation subtile d'apparition séquencée (respectée via data-reveal) */
.hero__illustration[data-reveal] .hero__svg-rings,
.hero__illustration[data-reveal] .hero__svg-area,
.hero__illustration[data-reveal] .hero__svg-curve,
.hero__illustration[data-reveal] .hero__svg-dots circle,
.hero__illustration[data-reveal] .hero__svg-bars rect,
.hero__illustration[data-reveal] .hero__svg-network,
.hero__illustration[data-reveal] .hero__svg-network-nodes circle,
.hero__illustration[data-reveal] .hero__svg-accents > * {
    opacity: 0;
    animation: heroSvgFadeIn 0.7s ease-out forwards;
}
.hero__illustration[data-reveal] .hero__svg-rings        { animation-delay: 0.10s; }
.hero__illustration[data-reveal] .hero__svg-area         { animation-delay: 0.20s; }
.hero__illustration[data-reveal] .hero__svg-curve        { animation-delay: 0.35s; }
.hero__illustration[data-reveal] .hero__svg-dots circle:nth-child(1) { animation-delay: 0.50s; }
.hero__illustration[data-reveal] .hero__svg-dots circle:nth-child(2) { animation-delay: 0.58s; }
.hero__illustration[data-reveal] .hero__svg-dots circle:nth-child(3) { animation-delay: 0.66s; }
.hero__illustration[data-reveal] .hero__svg-dots circle:nth-child(4) { animation-delay: 0.74s; }
.hero__illustration[data-reveal] .hero__svg-bars rect:nth-child(1)   { animation-delay: 0.30s; }
.hero__illustration[data-reveal] .hero__svg-bars rect:nth-child(2)   { animation-delay: 0.40s; }
.hero__illustration[data-reveal] .hero__svg-bars rect:nth-child(3)   { animation-delay: 0.50s; }
.hero__illustration[data-reveal] .hero__svg-network                  { animation-delay: 0.70s; }
.hero__illustration[data-reveal] .hero__svg-network-nodes circle     { animation-delay: 0.78s; }
.hero__illustration[data-reveal] .hero__svg-accents > *              { animation-delay: 0.85s; }

@keyframes heroSvgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Responsive === */
/* Tablette + mobile : illustration masquée, contenu prend toute la largeur.
   On retire l'illustration en-dessous de 1024px : le SVG était de toute façon
   compressé à 320px max et créait un déséquilibre visuel. Décision UX :
   sur les viewports tablette et inférieurs, le texte hero respire mieux seul. */
@media (max-width: 1024px) {
    .hero__top {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .hero__illustration { display: none !important; }
    .hero__content { max-width: 100%; }
}

/* Mobile : hero auto-sized, bande KPI immédiatement visible */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        margin-top: 56px;
        padding: var(--space-12) 0 var(--space-10);
    }
    .hero__ctas .btn { width: 100%; justify-content: center; }
}

@media (max-width: 479px) {
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    .hero__stat:last-child {
        grid-column: 1 / -1;
        padding-top: var(--space-4);
        border-top: 1px solid rgba(226, 232, 240, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__status-dot { box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.18); }
    /* Désactive les animations SVG mais garde les éléments visibles */
    .hero__illustration[data-reveal] .hero__svg-rings,
    .hero__illustration[data-reveal] .hero__svg-area,
    .hero__illustration[data-reveal] .hero__svg-curve,
    .hero__illustration[data-reveal] .hero__svg-dots circle,
    .hero__illustration[data-reveal] .hero__svg-bars rect,
    .hero__illustration[data-reveal] .hero__svg-network,
    .hero__illustration[data-reveal] .hero__svg-network-nodes circle,
    .hero__illustration[data-reveal] .hero__svg-accents > * {
        opacity: 1;
        animation: none;
        transform: none;
    }
}

/* ==========================================================================
   Section "Ils m'ont fait confiance" — tâche 4.5.1
   ========================================================================== */
.trust-clients {
    padding: var(--rhythm-section, 5rem) var(--space-4);
    background: var(--bg-elevated);
}
.trust-clients__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.trust-clients__heading {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 2.5rem;
}
.trust-clients__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.trust-client__link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.75rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent, #00D4AA);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    filter: grayscale(0.4);
}
.trust-client__link:hover,
.trust-client__link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -16px rgba(10, 22, 40, 0.18);
    border-left-color: var(--accent-hover, #14F0C0);
    filter: grayscale(0);
    outline: none;
}
.trust-client__name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
}
.trust-client__role {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}
.trust-client__duration {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep, #00A887);
    margin-top: 0.25rem;
}
@media (max-width: 640px) {
    .trust-clients__list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Bento grid "Mes super-pouvoirs SEO / Visibilité IA" — tâche 4.6.1
   ========================================================================== */
.bento {
    padding: clamp(4rem, 8vw, 7rem) var(--space-4);
    background: var(--bg-primary);
}
.bento__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.bento__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.bento__kicker {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-deep, #00A887);
    margin: 0 0 0.75rem;
}
.bento__title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--text-primary);
}
.bento__title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--primary-soft, #1E3A5F) 0%, var(--accent, #00D4AA) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bento__lead {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.bento__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(170px, auto);
    gap: 1rem;
}
.bento__cell {
    position: relative;
    grid-column: span 2;
    padding: 1.5rem 1.5rem 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.bento__cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -20px rgba(10, 22, 40, 0.18);
    border-color: rgba(0, 168, 135, 0.35);
}
.bento__cell--hero {
    grid-column: span 4;
    grid-row: span 2;
    padding: 2.25rem 2rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 212, 170, 0.18), transparent 55%),
        linear-gradient(135deg, var(--primary, #0A1628) 0%, var(--primary-soft, #1E3A5F) 100%);
    border-color: rgba(0, 212, 170, 0.25);
    color: #fff;
}
.bento__cell--hero .bento__cell-title,
.bento__cell--hero .bento__cell-text {
    color: #fff;
}
.bento__cell--hero .bento__cell-text strong { color: var(--accent-hover, #14F0C0); }
.bento__cell--hero .bento__icon {
    background: rgba(0, 212, 170, 0.22);
    color: var(--accent-hover, #14F0C0);
}

.bento__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 212, 170, 0.12);
    color: var(--accent-deep, #00A887);
    flex-shrink: 0;
}
.bento__cell-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}
.bento__cell--hero .bento__cell-title {
    font-size: clamp(1.625rem, 3vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.25rem;
}
.bento__cell--hero .bento__cell-title em {
    font-style: italic;
    color: var(--accent, #00D4AA);
}
.bento__cell-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-secondary);
}
.bento__cell-points {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.bento__cell-points li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}
.bento__cell-points li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.55rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent, #00D4AA);
}

.bento__cell--data {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.35rem;
    background: var(--bg-elevated);
    border-color: var(--border);
}
.bento__cell--data-accent {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08) 0%, rgba(30, 58, 95, 0.08) 100%);
    border-color: rgba(0, 168, 135, 0.3);
}
.bento__data-value {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--primary, #0A1628);
    font-feature-settings: 'tnum';
}
.bento__cell--data-accent .bento__data-value {
    color: var(--accent-deep, #00A887);
}
.bento__data-label {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 260px;
}

/* Dark mode */
[data-theme="dark"] .bento__cell {
    background: rgba(21, 34, 56, 0.55);
    border-color: rgba(30, 58, 95, 0.6);
}
[data-theme="dark"] .bento__cell--data {
    background: rgba(21, 34, 56, 0.75);
}
[data-theme="dark"] .bento__data-value {
    color: var(--text-primary, #E2E8F0);
}

/* Tablet */
@media (max-width: 1024px) {
    .bento__grid { grid-template-columns: repeat(4, 1fr); }
    .bento__cell { grid-column: span 2; }
    .bento__cell--hero { grid-column: span 4; grid-row: auto; }
    .bento__cell--data { grid-column: span 2; }
}

/* Mobile */
@media (max-width: 640px) {
    .bento__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 0.85rem;
    }
    .bento__cell,
    .bento__cell--hero,
    .bento__cell--data {
        grid-column: span 1;
        grid-row: auto;
    }
    .bento__cell--hero { padding: 1.75rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bento__cell { transition: none; }
    .bento__cell:hover { transform: none; }
}
