/**
 * Beriox-HUB — Page d'accueil refonte
 * Thème Finguard-style : pill buttons, stat cards, ombres douces, typo contrastée
 * Contenu et couleurs Beriox conservés.
 */

/* ---- Variables (multiples de 8) ---- */
.welcome-refonte {
    --refonte-space-8: 8px;
    --refonte-space-16: 16px;
    --refonte-space-24: 24px;
    --refonte-space-32: 32px;
    --refonte-space-48: 48px;
    --refonte-space-64: 64px;
    --refonte-space-96: 96px;
    --refonte-container-max: 1320px;
    --refonte-container-padding: clamp(24px, 6vw, 120px);
    --refonte-section-padding: clamp(64px, 10vw, 140px);
    --refonte-radius-card: 20px;
    --refonte-radius-pill: 999px;
    --refonte-shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --refonte-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    --refonte-shadow-float: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ---- Typographie ---- */
.welcome-refonte {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.welcome-refonte .landing-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.welcome-refonte .landing-hero-tagline {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 600;
}
.welcome-refonte .landing-section-title,
.welcome-refonte .landing-cta-section .landing-section-title {
    font-size: clamp(1.75rem, 3vw, 3rem);
    font-weight: 700;
}
.welcome-refonte .landing-section-lead,
.welcome-refonte .landing-block-desc,
.welcome-refonte .landing-card-desc {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ---- Grille et espacement ---- */
.welcome-refonte .landing-section .container,
.welcome-refonte .landing-section-alt .container,
.welcome-refonte .landing-cta-section .container,
.welcome-refonte .landing-hero-inner .container {
    max-width: var(--refonte-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--refonte-container-padding);
    padding-right: var(--refonte-container-padding);
}
.welcome-refonte .landing-section,
.welcome-refonte .landing-section-alt {
    padding-top: var(--refonte-section-padding);
    padding-bottom: var(--refonte-section-padding);
}
.welcome-refonte .landing-hero {
    padding-top: var(--refonte-section-padding);
    padding-bottom: var(--refonte-section-padding);
}
.welcome-refonte .landing-hero-grid {
    max-width: var(--refonte-container-max);
    gap: var(--refonte-space-64);
}
/* Texte hero : colonne gauche remontée */
.welcome-refonte .landing-hero-text {
    align-self: start;
}

/* ---- Boutons (pill, couleur pleine, icône flèche, hover scale + darken) ---- */
.welcome-refonte .btn-primary,
.welcome-refonte .btn-secondary,
.welcome-refonte .landing-hero-buttons .btn-primary,
.welcome-refonte .landing-hero-buttons .btn-secondary,
.welcome-refonte .landing-cta-section .btn-primary,
.welcome-refonte .landing-cta-section .btn-secondary {
    border-radius: var(--refonte-radius-pill);
    padding: 14px 28px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.welcome-refonte .btn-primary:hover,
.welcome-refonte .landing-hero-buttons .btn-primary:hover,
.welcome-refonte .landing-cta-section .btn-primary:hover {
    transform: scale(1.02);
    filter: brightness(0.92);
    box-shadow: var(--refonte-shadow-card);
}
.welcome-refonte .landing-hero-buttons .btn-secondary:hover,
.welcome-refonte .landing-cta-section .btn-secondary:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}
/* Icône flèche ronde dans les CTA principaux */
.welcome-refonte .landing-cta-primary svg,
.welcome-refonte .landing-hero-buttons .btn-primary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.welcome-refonte .landing-hero-buttons .btn-primary:not(:has(svg))::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
    margin-left: 4px;
}

/* ---- Stat cards (coins 16–24px, fond contrasté, gros chiffre / petit texte) ---- */
.welcome-refonte .landing-card,
.welcome-refonte .landing-block,
.welcome-refonte .landing-pillar {
    border-radius: var(--refonte-radius-card);
    box-shadow: var(--refonte-shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.welcome-refonte .landing-card:hover,
.welcome-refonte .landing-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--refonte-shadow-card);
}
.welcome-refonte .landing-card {
    padding: var(--refonte-space-32);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.welcome-refonte .landing-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.welcome-refonte .landing-card-desc {
    font-size: 0.95rem;
    color: #6b7280;
}
/* Cartes « problème » style stat card */
.welcome-refonte .landing-probleme-card {
    border-radius: var(--refonte-radius-card);
    box-shadow: var(--refonte-shadow-soft);
    padding: var(--refonte-space-24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.welcome-refonte .landing-probleme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--refonte-shadow-card);
}

/* ---- Mockup flottant (hero) : drop shadow soft, border-radius 16px ---- */
.welcome-refonte .landing-hero-mockup {
    border-radius: 16px;
    box-shadow: var(--refonte-shadow-float);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.welcome-refonte .landing-hero-mockup:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.15);
}
/* 3D léger uniquement pour le hero (perspective) */
.welcome-refonte .landing-hero-visual {
    perspective: 1200px;
}
.welcome-refonte .landing-hero-mockup {
    transform: rotateY(-4deg) rotateX(2deg);
}
.welcome-refonte .landing-hero-mockup:hover {
    transform: rotateY(-2deg) rotateX(2deg) translateY(-6px);
}

/* ---- Ombres douces, pas de skeuomorphisme, depth légère ---- */
.welcome-refonte .landing-block {
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    padding: var(--refonte-space-24);
}
.welcome-refonte .landing-block-highlight {
    box-shadow: var(--refonte-shadow-card);
}
.welcome-refonte .landing-pillar {
    border: 1px solid rgba(90, 95, 202, 0.15);
    padding: var(--refonte-space-24) var(--refonte-space-32);
}
.welcome-refonte .pills .pill {
    border-radius: var(--refonte-radius-pill);
    padding: 8px 16px;
    font-weight: 600;
    box-shadow: var(--refonte-shadow-soft);
}

/* ---- Sticky header (si le menu a une classe fixe) ---- */
.welcome-refonte [data-sticky-header] {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ---- Smooth anchor scroll ---- */
.welcome-refonte {
    scroll-behavior: smooth;
}

/* ---- Blog cards et CTA : même système d’ombres ---- */
.welcome-refonte .blog-card {
    border-radius: var(--refonte-radius-card);
    box-shadow: var(--refonte-shadow-soft);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.welcome-refonte .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--refonte-shadow-card);
}
.welcome-refonte #blog-preview .btn-primary {
    border-radius: var(--refonte-radius-pill);
}

/* ---- Newsletter block ---- */
.welcome-refonte .newsletter-block-inner {
    border-radius: var(--refonte-radius-card);
    box-shadow: var(--refonte-shadow-soft);
}
.welcome-refonte .newsletter-btn {
    border-radius: var(--refonte-radius-pill);
    font-weight: 600;
}

/* ---- Responsive : réduire espacements sur petit écran ---- */
@media (max-width: 768px) {
    .welcome-refonte .landing-hero-title {
        font-size: 2.25rem;
    }
    .welcome-refonte .landing-hero-mockup {
        transform: none;
    }
    .welcome-refonte .landing-hero-mockup:hover {
        transform: translateY(-4px);
    }
}
