/* ==========================================================================
   8JOURS - HIGH DENSITY PAGES STYLES
   Classes: hd-* pour page-haute-densite.php
   Version: 2.0 - 17 Jan 2026
   ========================================================================== */

/* DEBUG: Si vous voyez cette bordure dorée, le CSS est chargé */
body.hd-body {
    /* border-top: 5px solid var(--gold); */ /* Décommenter pour tester */
}

/* 1. BASE LAYOUT
   ========================================================================== */
.hd-body {
    background: var(--ivory, #ffffff);
    color: var(--graphite, #393939);
}

.hd-section {
    padding: 5rem 0;
    position: relative;
}

.hd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hd-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.hd-section__label {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.hd-section__title {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 768px) {
    .hd-section__title {
        font-size: 2.25rem;
    }
}

/* 2. HERO SECTION
   ========================================================================== */
header.hd-hero,
section.hd-hero,
.hd-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0 3rem;
    background: var(--ivory);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hd-hero__glow {
    display: none; /* Désactivé : fond blanc pur demandé */
}

.hd-hero__content {
    position: relative;
    z-index: 1;
}

.hd-hero__eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hd-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(201, 150, 44, 0.1);
    color: var(--gold);
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(201, 150, 44, 0.2);
}

.hd-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hd-hero h1,
.hd-hero__title {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.1;
    margin: 0 0 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hd-hero h1,
    .hd-hero__title {
        font-size: 3.25rem;
    }
}

.hd-hero__subtitle {
    font-size: 1.25rem;
    color: var(--graphite);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.8;
}

.hd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.hd-hero__trust {
    font-size: 0.875rem;
    color: var(--graphite);
    opacity: 0.6;
}

/* 3. BUTTON STYLES
   ========================================================================== */
.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: normal;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: var(--charcoal);
    color: var(--ivory);
}

.hd-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 150, 44, 0.3);
}

.hd-btn--outline {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hd-btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}

/* 4. CARDS GRID
   ========================================================================== */
.hd-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hd-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hd-card {
    background: var(--smoke);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hd-card:hover {
    background: var(--ivory);
    border-color: rgba(201, 150, 44, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.hd-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 0.75rem;
}

.hd-card p {
    font-size: 0.95rem;
    color: var(--graphite);
    line-height: 1.7;
    margin: 0;
    opacity: 0.8;
}

/* 5. PAINS SECTION
   ========================================================================== */
.hd-pains {
    background: var(--ivory);
}

.hd-pains__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hd-pains__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hd-pains__card {
    background: var(--smoke);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hd-pains__card:hover {
    background: var(--ivory);
    border-color: rgba(201, 150, 44, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.hd-pains__card h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 0.75rem;
}

.hd-pains__card p {
    font-size: 0.95rem;
    color: var(--graphite);
    line-height: 1.7;
    margin: 0;
    opacity: 0.8;
}

/* 6. METHOD SECTION (Before/After)
   ========================================================================== */
.hd-method {
    background: var(--charcoal);
    color: var(--ivory);
}

.hd-method .hd-section__label {
    color: var(--gold);
}

.hd-method .hd-section__title {
    color: var(--ivory);
}

.hd-method__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hd-method__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hd-method .hd-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hd-method .hd-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(201, 150, 44, 0.3);
}

.hd-method .hd-card h3 {
    color: var(--ivory);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.hd-method .hd-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hd-method .hd-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.hd-method .hd-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.hd-method__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(201, 150, 44, 0.1);
    border-radius: 4px;
}

.hd-method__insight {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: rgba(201, 150, 44, 0.1);
    border-left: 3px solid var(--gold);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.hd-method__column {
    padding: 2rem;
    border-radius: 1.5rem;
}

.hd-method__column--before {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hd-method__column--after {
    background: rgba(201, 150, 44, 0.1);
    border: 1px solid rgba(201, 150, 44, 0.3);
}

.hd-method__column h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hd-method__column--before h3 {
    color: rgba(255, 255, 255, 0.6);
}

.hd-method__column--after h3 {
    color: var(--gold);
}

.hd-method__column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hd-method__column li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.hd-method__column li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.hd-method__column--after li::before {
    background: var(--gold);
}

/* 7. USE CASES
   ========================================================================== */
.hd-usecases {
    background: var(--smoke);
}

.hd-usecases__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hd-usecases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hd-usecases__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hd-usecases__card {
    background: var(--ivory);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.hd-usecases__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hd-usecases__card i,
.hd-usecases__card [data-lucide] {
    width: 2rem;
    height: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: inline-block;
}

.hd-usecases__card h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 0.5rem;
}

.hd-usecases__card p {
    font-size: 0.875rem;
    color: var(--graphite);
    line-height: 1.6;
    margin: 0;
    opacity: 0.7;
}

/* 8. TIMELINE
   ========================================================================== */
.hd-timeline {
    background: var(--ivory);
}

.hd-timeline__wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hd-timeline__wrapper {
        flex-direction: row;
        justify-content: center;
    }
}

.hd-timeline__item {
    flex: 1;
    max-width: 350px;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.hd-timeline__number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Mono', monospace;
    letter-spacing: normal;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.hd-timeline__item h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 0.5rem;
}

.hd-timeline__item p {
    font-size: 0.95rem;
    color: var(--graphite);
    line-height: 1.6;
    margin: 0;
    opacity: 0.7;
}

/* 9. PROOF / CASE STUDY
   ========================================================================== */
.hd-proof {
    background: var(--ivory);
}

.hd-proof__card {
    background: var(--ivory);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hd-proof__card {
        grid-template-columns: 1fr 1fr;
    }
}

.hd-proof__grid {
    display: grid;
    gap: 1.5rem;
}

.hd-proof__empty {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px dashed #d1d5db;
    border-radius: 1rem;
    background: #f9fafb;
    color: var(--graphite);
    text-align: center;
}

.hd-proof__empty p {
    margin: 0;
    line-height: 1.6;
}

.hd-proof__empty p + p {
    margin-top: 0.5rem;
    color: var(--graphite-secondary);
}

.hd-proof__card--dynamic {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hd-proof__card--dynamic.hd-proof__card--with-kpi {
        grid-template-columns: minmax(0, 1fr) 260px;
        align-items: stretch;
    }
}

.hd-proof__content .hd-proof__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
}

.hd-proof__content .hd-proof__meta {
    margin: -0.25rem 0 1rem;
    font-size: 0.875rem;
    color: var(--graphite-secondary);
}

.hd-proof__link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--charcoal);
    border-bottom: 1px solid rgba(12, 10, 8, 0.25);
    text-decoration: none;
}

.hd-proof__link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.hd-proof__content h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 1.5rem;
}

.hd-proof__content p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--graphite);
    line-height: 1.7;
}

.hd-proof__content strong {
    color: var(--charcoal);
}

.hd-proof__kpi {
    text-align: center;
    padding: 2rem;
    background: var(--charcoal);
    border-radius: 1.5rem;
    color: var(--ivory);
    margin-bottom: 1.5rem;
}

.hd-proof__card--dynamic .hd-proof__kpi {
    margin-bottom: 0;
}

.hd-proof__kpi span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

.hd-proof__kpi strong {
    font-family: 'DM Mono', monospace;
    letter-spacing: normal;
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--gold);
    display: block;
}

.hd-proof__kpi p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0 0;
}

.hd-proof__testimonials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hd-proof__testimonial {
    background: var(--smoke);
    padding: 1.5rem;
    border-radius: 1rem;
}

.hd-proof__testimonial p {
    font-style: italic;
    margin: 0 0 0.75rem;
    color: var(--graphite);
}

.hd-proof__testimonial strong {
    font-size: 0.875rem;
    color: var(--charcoal);
}

/* 10. FAQ
   ========================================================================== */
.hd-faq {
    background: var(--ivory);
}

.hd-faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.hd-faq__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hd-faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--charcoal);
    text-align: left;
}

.hd-faq__question span {
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.hd-faq__item.is-open .hd-faq__question span {
    transform: rotate(45deg);
}

.hd-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.hd-faq__answer p {
    padding: 0 0 1.5rem;
    color: var(--graphite);
    line-height: 1.7;
    margin: 0;
}

/* 11. CTA SECTION
   ========================================================================== */
.hd-cta {
    background: var(--charcoal);
    text-align: center;
}

.hd-cta__card {
    padding: 3rem;
}

.hd-cta__card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin: 0 0 1rem;
}

.hd-cta__card h2 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ivory);
    margin: 0 0 2rem;
}

.hd-cta .hd-btn {
    background: var(--gold);
    color: var(--charcoal);
    box-shadow: 0 12px 28px rgba(201, 150, 44, 0.35);
}

.hd-cta .hd-btn:hover {
    background: var(--ivory);
    color: var(--charcoal);
    box-shadow: 0 16px 34px rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .hd-cta__card h2 {
        font-size: 2.25rem;
    }
}

/* 12. ANIMATIONS
   ========================================================================== */

/* Par défaut, le contenu est visible (fallback no-JS) */
.hd-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Quand JS est actif, on cache pour animer */
.js-loaded .hd-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Animation déclenchée */
.js-loaded .hd-reveal.is-visible,
.hd-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback : si pas de JS après 2s, afficher tout */
@keyframes forceVisible {
    to { opacity: 1; transform: translateY(0); }
}

.hd-reveal {
    animation: forceVisible 0s 2s forwards;
}
