/* HDW Magazine - Design System Core v1.1 - Forced Scope */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --hdw-charcoal: #1A242F;
  --hdw-mustard: #E9B44C;
  --hdw-ketchup: #9B2226;
  --hdw-cream: #F8F9FA;
}

/* Force Body Font */
body, .hdw-body, p, li, span {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: var(--hdw-charcoal) !important;
}

/* Force Titles */
.hdw-body h1, .hdw-body h2, .hdw-body h3, .hdw-body .hdw-title-hero {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  color: var(--hdw-charcoal) !important;
  line-height: 1.1 !important;
}

/* Premium B2B Buttons */
.hdw-body .hdw-btn-primary {
  background-color: var(--hdw-charcoal) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  padding: 1rem 2.5rem !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  text-transform: uppercase !important;
  border: none !important;
}

.hdw-body .hdw-btn-primary:hover {
  background-color: var(--hdw-mustard) !important;
  color: var(--hdw-charcoal) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 25px rgba(233,180,76,0.3) !important;
}

.hdw-body span.hdw-marge-brute, .hdw-body .hdw-title-hero span {
  color: var(--hdw-mustard) !important;
}

.hdw-body .hdw-card-premium {
  background: white !important;
  border: 1px solid #eef2f7 !important;
  border-radius: 24px !important;
  padding: 3rem !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.04) !important;
}

.hdw-body .hdw-highlight-box {
  border-left: 6px solid var(--hdw-mustard) !important;
  padding: 1.5rem 2rem !important;
  background: var(--hdw-cream) !important;
  border-radius: 0 16px 16px 0 !important;
  margin: 2rem 0 !important;
}



/* Manual Header Fix */
.hdw-manual-header {
    background: #ffffff;
    border-bottom: 3px solid var(--hdw-mustard);
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.hdw-nav-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hdw-nav-link {
    color: var(--hdw-charcoal) !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none !important;
}
.hdw-nav-link:hover {
    color: var(--hdw-mustard) !important;
}



/* Magnificence V2 - Hero Immersive */
.hdw-hero-immersive {
    background: linear-gradient(90deg, rgba(26,36,47,0.98) 0%, rgba(26,36,47,0.85) 30%, rgba(26,36,47,0.4) 60%, transparent 100%), 
    url('/mag/wp-content/uploads/hdw/hdw-solution-restauration-premium.webp') no-repeat center right !important; 
    background-size: cover !important; 
    border-radius: 32px !important; 
    padding: 8rem 4rem !important; 
    margin-top: 2rem !important; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.3) !important;
    color: #fff !important;
}

/* Sections rhythm */
.hdw-section-dark {
    background: var(--hdw-charcoal) !important;
    color: #fff !important;
    border-radius: 32px !important;
    padding: 5rem 3rem !important;
}

.hdw-grid-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.hdw-grid-item {
    flex: 1;
    min-width: 280px;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    transition: transform 0.3s ease;
}
.hdw-grid-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.02);
}



/* Magnificence V2 - Hero Loisirs */
.hdw-hero-loisirs {
    background: linear-gradient(90deg, rgba(26,36,47,0.98) 0%, rgba(26,36,47,0.85) 30%, rgba(26,36,47,0.4) 60%, transparent 100%), 
    url('/mag/wp-content/uploads/hdw/hdw-solution-loisirs-premium.webp') no-repeat center right !important; 
    background-size: cover !important; 
    border-radius: 32px !important; 
    padding: 8rem 4rem !important; 
    margin-top: 2rem !important; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.3) !important;
    color: #fff !important;
}



/* Magnificence V2 - Hero Evenements */
.hdw-hero-evenements {
    background: linear-gradient(90deg, rgba(26,36,47,0.98) 0%, rgba(26,36,47,0.85) 30%, rgba(26,36,47,0.4) 60%, transparent 100%), 
    url('/mag/wp-content/uploads/hdw/hdw-solution-evenements-premium.webp') no-repeat center right !important; 
    background-size: cover !important; 
    border-radius: 32px !important; 
    padding: 8rem 4rem !important; 
    margin-top: 2rem !important; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.3) !important;
    color: #fff !important;
}



/* FIX: Force White text on Immersive Heros */
.hdw-hero-immersive, 
.hdw-hero-immersive h1, 
.hdw-hero-immersive .hdw-title-hero,
.hdw-hero-immersive .hdw-title-hero span,
.hdw-hero-immersive p,
.hdw-hero-immersive .lead {
    color: #ffffff !important;
}

/* Maintain Mustard for specific spans if needed, but ensure they are bright */
.hdw-hero-immersive h1 span,
.hdw-hero-immersive .hdw-title-hero span {
    color: var(--hdw-mustard) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hdw-hero-immersive p.lead {
    opacity: 1 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}



/* FIX: Force Dark Text for Tables inside White Cards */
.hdw-card-premium table, 
.hdw-card-premium table tr td, 
.hdw-card-premium table tr th {
    color: var(--hdw-charcoal) !important;
}

/* Specific fix for the comparison table background contrast */
.hdw-card-premium table tr td {
    padding: 1rem 0.5rem !important;
    border-bottom: 1px solid #eee !important;
}

/* Ensure child guides in cards are also dark */
.hdw-card-premium a h3 {
    color: var(--hdw-charcoal) !important;
}
.hdw-card-premium a:hover h3 {
    color: var(--hdw-mustard) !important;
}



/* MAGNIFICENCE Pass - Home Page & Dark Sections */

/* Specific fix for text inside DARK sections */
.hdw-section-dark p, 
.hdw-section-dark li, 
.hdw-section-dark span:not(.hdw-marge-brute) {
    color: rgba(255, 255, 255, 0.7) !important;
}
.hdw-section-dark h1, 
.hdw-section-dark h2, 
.hdw-section-dark h3, 
.hdw-section-dark h4 {
    color: #ffffff !important;
}

/* Home Solution Cards - High Authority */
#hdw-solutions-pro .hdw-grid-item {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 24px !important;
    padding: 3.5rem 2rem !important;
}
#hdw-solutions-pro .hdw-grid-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08) !important;
    border-color: var(--hdw-mustard) !important;
}

/* Icons styling for 3-points section */
.hdw-expertise-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Social Proof Section for Mag Home */
.hdw-mag-trust {
    background: var(--hdw-cream);
    padding: 4rem 2rem;
    border-radius: 40px;
    margin: 4rem 0;
    text-align: center;
}
.hdw-mag-trust h4 {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #adb5bd;
    margin-bottom: 3rem;
}
.hdw-mag-trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 5rem;
    align-items: center;
}
.hdw-mag-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--hdw-charcoal);
    font-weight: 800;
    font-size: 0.8rem;
    opacity: 0.6;
}
.hdw-mag-trust-item i {
    font-size: 2rem;
    color: var(--hdw-mustard);
}



/* ULTIME MASTER SWEEP - MAGNIFICENCE & FIXES */

/* Fix Header Overlap */
body { padding-top: 0 !important; }
.hdw-manual-header { position: sticky; top: 0; z-index: 9999; }

/* Mobile Hero Perfection */
@media (max-width: 767.98px) {
    .hdw-hero-immersive {
        background: linear-gradient(180deg, rgba(26,36,47,0.95) 0%, rgba(26,36,47,0.8) 100%), 
        url('/img/cms/hdw/hero-hdw-pro-2026.webp') no-repeat center center !important;
        padding: 4rem 1.5rem !important;
        text-align: center;
    }
}

/* Premium Rhythm & Contrast */
.hdw-mag-trust {
    background: rgba(233, 180, 76, 0.04) !important;
    border: 1px solid rgba(233, 180, 76, 0.1);
    box-shadow: inset 0 0 50px rgba(233, 180, 76, 0.02);
}

/* Button Glow Effect */
.hdw-btn-primary:hover {
    box-shadow: 0 0 20px rgba(233, 180, 76, 0.4), 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Fix for any remaining dark-on-dark in lists */
.hdw-body ul li { color: var(--hdw-charcoal); }
.hdw-section-dark ul li { color: rgba(255,255,255,0.8) !important; }



/* RECTIFICATION MAGNIFICENCE V3 */

/* Hero Alignment & Buttons */
.hdw-hero-immersive {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 500px;
}
.hdw-hero-content {
    max-width: 650px;
    text-align: left;
}
.hdw-btn-outline {
    background: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    margin-left: 1rem;
}
.hdw-btn-outline:hover {
    background: #ffffff !important;
    color: var(--hdw-charcoal) !important;
}

/* Solutions Cards Grid */
.hdw-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Why Section Refonte */
.hdw-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}
.hdw-why-item {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.hdw-why-item:hover {
    background: rgba(255,255,255,0.05);
    transform: scale(1.05);
}

/* Icon Circles */
.hdw-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--hdw-mustard);
    color: var(--hdw-charcoal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(233,180,76,0.2);
}
