/**
 * Centrale Digitale — Section Styles
 * Styles for all section types rendered by the Page Builder.
 */

/* ===== SECTION BACKGROUNDS ===== */
.cd-section { padding: 100px 40px; }
.cd-section.bg-white    { background: var(--white); }
.cd-section.bg-light    { background: var(--bg-light); }
.cd-section.bg-primary  { background: var(--primary); color: var(--white); }
.cd-section.bg-gradient { background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .tag-label {
    display: inline-block; background: rgba(30,127,216,0.1);
    color: var(--secondary); padding: 6px 16px; border-radius: 50px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 3.5vw, 42px); font-weight: 800;
    color: var(--primary); line-height: 1.2; margin-bottom: 12px;
}
.bg-primary .section-title { color: var(--white); }
.section-subtitle { font-size: 16px; color: #666; margin-bottom: 40px; line-height: 1.6; }
.bg-primary .section-subtitle { color: rgba(255,255,255,0.7); }

/* ===== HERO ===== */
.cd-section.bg-gradient[id] {
    min-height: 100vh; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex; align-items: center;
    padding-top: 0; padding-bottom: 0;
}
/* Hero with primary bg (dark blue gradient) */
.cd-section.hero-section {
    min-height: 100vh; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex; align-items: center;
    padding-top: 0; padding-bottom: 0;
}
#particles-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-container {
    position: relative; z-index: 1; width: 100%; max-width: 1280px;
    margin: 0 auto; padding: 120px 40px 80px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
    color: var(--white); padding: 8px 16px; border-radius: 50px;
    font-size: 13px; font-weight: 600; margin-bottom: 24px;
    backdrop-filter: blur(10px); animation: fadeSlideUp 0.8s ease 0.2s both;
}
.hero-title {
    font-size: clamp(36px, 4vw, 58px); font-weight: 800;
    color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.hero-title .word { display: inline-block; opacity: 0; transform: translateY(20px); animation: wordAppear 0.5s ease forwards; margin-right: 12px; }
.hero-subtitle {
    font-size: 18px; font-weight: 400; color: rgba(255,255,255,0.85);
    line-height: 1.7; margin-bottom: 36px; animation: fadeSlideUp 0.8s ease 1.5s both;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeSlideUp 0.8s ease 1.8s both; }
.hero-visual { animation: fadeSlideUp 1s ease 0.5s both; display: flex; justify-content: center; }

/* Dashboard card */
.dashboard-card {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 28px;
    width: 100%; max-width: 480px;
}
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-title { color: var(--white); font-weight: 700; font-size: 16px; }
.dash-badge { background: rgba(245,197,24,0.2); color: var(--accent); padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.dash-stat { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 12px; text-align: center; }
.dash-stat-val { color: var(--white); font-weight: 800; font-size: 18px; }
.dash-stat-lbl { color: rgba(255,255,255,0.6); font-size: 10px; margin-top: 2px; }
.dash-chart { position: relative; height: 120px; }
.chart-svg { width: 100%; height: 100%; }
.bar-group rect { rx: 4; }
.dash-marketplaces { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.mp-pill { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); padding: 4px 10px; border-radius: 50px; font-size: 11px; font-weight: 500; }

/* ===== MARKETPLACE SLIDER ===== */
.section-label {
    text-align: center; font-size: 13px; font-weight: 600;
    color: var(--secondary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 32px;
}
.slider-track {
    overflow: hidden; position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.slider-inner { display: flex; gap: 40px; width: max-content; animation: sliderLoop 30s linear infinite; }
.slider-inner:hover { animation-play-state: paused; }
.mp-logo {
    display: flex; align-items: center; justify-content: center;
    padding: 16px 28px; border-radius: 12px; border: 1.5px solid #f0f0f0;
    font-weight: 800; font-size: 16px; white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s; min-width: 150px; cursor: default;
}
.mp-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mp-amazon { color: #FF9900; } .mp-cdiscount { color: #E2001A; }
.mp-fnac { color: #E5961A; } .mp-manomano { color: #3CB878; }
.mp-leroymerlin { color: #78BE20; } .mp-darty { color: #E2001A; }
.mp-boulanger { color: #0076BF; } .mp-laredoute { color: #E31616; }
.mp-rue { color: #E2A400; } .mp-veepee { color: #7B2D8B; }

/* ===== STATS ===== */
/* (managed in individual page templates) */

/* ===== CALCULATOR ===== */
.calc-container { max-width: 800px; margin: 0 auto; background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: 48px; }
.slider-group { margin-bottom: 32px; }
.slider-label { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; color: var(--primary); margin-bottom: 12px; }
.slider-val { background: var(--primary); color: var(--white); padding: 4px 14px; border-radius: 50px; font-size: 14px; font-weight: 700; }
input[type="range"] { width: 100%; -webkit-appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--secondary) var(--pct, 0%), #e0e8f0 var(--pct, 0%)); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); border: 3px solid var(--accent); cursor: pointer; box-shadow: 0 2px 8px rgba(26,43,107,0.3); transition: transform 0.2s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-result { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 16px; padding: 32px; text-align: center; margin-top: 8px; }
.result-label { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.result-amount { font-size: 52px; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 8px; transition: color 0.2s; }
.result-note { color: rgba(255,255,255,0.7); font-size: 12px; }
.calc-cta { margin-top: 24px; text-align: center; }
.btn-cta-calc { background: var(--accent); color: var(--primary); padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; display: inline-block; transition: transform 0.2s, box-shadow 0.2s; }
.btn-cta-calc:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(245,197,24,0.4); }

/* ===== BENEFITS ===== */
.benefits-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.benefit-card { background: var(--white); border: 1.5px solid #e8eef6; border-radius: 20px; padding: 40px 32px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); cursor: default; }
.benefit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--secondary); }
.card-icon { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, rgba(26,43,107,0.08), rgba(30,127,216,0.12)); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; transition: background var(--transition); }
.benefit-card:hover .card-icon { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.benefit-card:hover .card-icon svg { stroke: white; }
.card-title { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.card-text { font-size: 15px; color: #666; line-height: 1.7; }

/* ===== PROCESS ===== */
.process-container { max-width: 1100px; margin: 0 auto; }
.process-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; position: relative; margin-top: 60px; }
.process-line { position: absolute; top: 52px; left: calc(16.67% + 20px); right: calc(16.67% + 20px); height: 3px; background: #e8eef6; z-index: 0; }
.process-line-active { position: absolute; top: 52px; left: calc(16.67% + 20px); right: calc(16.67% + 20px); height: 3px; z-index: 1; background: linear-gradient(90deg, var(--primary), var(--secondary)); transform-origin: left; transform: scaleX(0); transition: transform 1.5s ease; }
.process-step { position: relative; z-index: 2; text-align: center; padding: 0 10px; }
.step-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 3px solid var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 20px; font-weight: 800; color: var(--primary); transition: background var(--transition), transform var(--transition); }
.step-circle:hover { background: var(--primary); color: var(--white); transform: scale(1.05); }
.step-title { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.step-text { font-size: 14px; color: #666; line-height: 1.6; }

/* ===== OFFERS ===== */
/* (managed in template-accueil.php inline CSS) */

/* ===== TESTIMONIALS ===== */
.testimonials-container { max-width: 900px; margin: 60px auto 0; }
.testi-slider { overflow: hidden; }
.testi-track { display: flex; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.testi-slide { min-width: 100%; padding: 40px; }
.testi-quote { font-size: 18px; line-height: 1.7; color: var(--text); margin-bottom: 28px; font-style: italic; position: relative; }
.testi-quote::before { content: '❝'; font-size: 48px; color: rgba(30,127,216,0.07); position: absolute; top: -20px; left: 50%; transform: translateX(-50%); line-height: 1; z-index: -1; }
.testi-author { display: flex; align-items: center; gap: 6px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font-weight: 700; color: var(--primary); font-size: 15px; }
.author-role { color: #888; font-size: 13px; }
.testi-stars { margin-top: 8px; font-size: 14px; }
.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: background 0.2s; }
.dot.active { background: var(--accent); }

/* ===== CTA FINAL ===== */
.cta-wrapper { text-align: center; padding: 80px 40px; border-radius: 24px; max-width: 900px; margin: 0 auto; position: relative; overflow: hidden; }
.cta-primary-bg { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.cta-light-bg { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); }
.cta-title { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.cta-light-bg .cta-title { color: var(--primary); }
.cta-subtitle { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 32px; line-height: 1.6; }
.cta-light-bg .cta-subtitle { color: rgba(26,43,107,0.7); }
.btn-cta-final { background: var(--accent); color: var(--primary); padding: 18px 42px; border-radius: 50px; font-weight: 800; font-size: 17px; display: inline-block; transition: transform 0.2s, box-shadow 0.2s; animation: pulseCta 2s ease infinite; }
.cta-light-bg .btn-cta-final { background: var(--primary); color: var(--white); }
.btn-cta-final:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(245,197,24,0.5); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid #e8eef6; border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.faq-item summary { padding: 20px 24px; font-weight: 600; cursor: pointer; color: var(--primary); outline: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 24px 20px; color: #666; line-height: 1.7; }

/* ===== CONTACT FORM ===== */
/* (managed in template-contact.php inline CSS) */

/* ===== CONTACT INFO CARDS ===== */
.info-cards { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.info-card { background: var(--white); border: 1px solid #e0e8f0; border-radius: 16px; padding: 32px; text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card-icon { margin-bottom: 16px; display: flex; justify-content: center; }
.info-card h4 { font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.info-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* ===== TIMELINE ===== */
/* (managed in template-a-propos.php inline CSS) */

/* ===== PARTNERS ===== */
.partners-grid { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center; }
.partner-logo { text-align: center; }
.partner-logo img { max-height: 60px; opacity: 0.6; transition: opacity 0.3s; }
.partner-logo img:hover { opacity: 1; }
.partner-name { display: block; font-size: 11px; color: #999; margin-top: 8px; }

/* ===== MAP ===== */
.map-container { max-width: 900px; margin: 0 auto; }
.map-embed iframe { width: 100%; height: 400px; border: none; border-radius: 16px; }
.map-placeholder { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 16px; padding: 40px; }
.map-card { color: var(--white); }
.map-card h3 { font-weight: 800; font-size: 22px; margin-bottom: 12px; }
.map-card p { font-size: 15px; color: rgba(255,255,255,0.8); margin-bottom: 20px; line-height: 1.7; }

/* ===== FEATURES ===== */
.features-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; }
.check-icon { flex-shrink: 0; margin-top: 2px; }

/* ===== PRICING ===== */
.pricing-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.pricing-card { background: var(--white); border: 1.5px solid #e8eef6; border-radius: 20px; padding: 40px 32px; position: relative; text-align: center; transition: transform var(--transition), box-shadow var(--transition); }
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pricing-tag { display: inline-block; background: var(--accent); color: var(--primary); padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; margin-bottom: 16px; }

/* ===== CASE STUDY ===== */
.case-visual img { width: 100%; max-width: 600px; border-radius: 16px; display: block; margin: 0 auto 32px; }
.case-content { max-width: 800px; margin: 0 auto; font-size: 16px; line-height: 1.8; color: var(--text); }

/* ===== INTRO ===== */
.intro-content { max-width: 800px; margin: 0 auto 32px; text-align: center; font-size: 18px; line-height: 1.8; color: var(--text); }
.intro-image img { max-width: 600px; border-radius: 16px; display: block; margin: 0 auto; }

/* ===== TEXT + IMAGE ===== */
.text-image-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.text-image-visual img { width: 100%; border-radius: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; padding: 100px 30px 60px; }
    .hero-buttons { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .benefits-grid, .values-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: 1fr; max-width: 500px; margin: 60px auto 0; }
    .process-line, .process-line-active { display: none; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .text-image-grid { grid-template-columns: 1fr; }
    .info-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .cd-section { padding: 60px 20px; }
    .hero-container { padding: 100px 20px 40px; }
    .benefits-grid, .values-grid, .pricing-grid, .team-grid, .features-grid { grid-template-columns: 1fr; }
    .info-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .calc-container { padding: 32px 20px; }
    .result-amount { font-size: 36px; }
}
