/* DELESOFT — refonte page d'accueil (2026). Reprend les tokens de styles.css
   (--clr-primary, --clr-secondary, Inter) pour rester cohérent avec le reste
   du site public (about/contact/plans utilisent encore l'ancien header). */

:root {
    --dh-red: var(--clr-primary, #c52127);
    --dh-red-dark: #8f171b;
    --dh-ink: #101828;
    --dh-ink-soft: #475467;
    --dh-line: #eaecf0;
    --dh-bg-alt: #f9fafb;
    --dh-radius: 14px;
}

.dh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
    white-space: nowrap;
}
.dh-btn:hover { text-decoration: none; }
.dh-btn-lg { padding: 15px 28px; font-size: 16px; }
.dh-btn-primary { background: var(--dh-red); color: #fff; box-shadow: 0 8px 20px -8px rgba(197,33,39,.55); }
.dh-btn-primary:hover { background: var(--dh-red-dark); color: #fff; transform: translateY(-1px); }
.dh-btn-outline { background: #fff; color: var(--dh-ink); border-color: var(--dh-line); }
.dh-btn-outline:hover { border-color: var(--dh-red); color: var(--dh-red); }
.dh-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.dh-btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.dh-btn-ghost { background: transparent; color: var(--dh-ink); }
.dh-btn-ghost:hover { color: var(--dh-red); }

.dh-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dh-red);
    margin-bottom: 10px;
}
.dh-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(197,33,39,.08);
    color: var(--dh-red);
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 22px;
}

.dh-section { padding: 88px 0; }
.dh-section-alt { background: var(--dh-bg-alt); }
.dh-section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.dh-section-head h2 { font-size: 34px; font-weight: 800; color: var(--dh-ink); margin: 0 0 14px; line-height: 1.2; }
.dh-section-head p { color: var(--dh-ink-soft); font-size: 16.5px; line-height: 1.6; margin: 0; }
.dh-showcase-note, .dh-testimonial-note { font-style: italic; }

/* Header override for the redesigned homepage: the old .home-header was a
   transparent fixed bar meant to sit over a full-bleed hero photo. The new
   hero has no background image, so it needs a solid, readable header. */
.header-section.dh-header.home-header,
.header-section.dh-header.home-header.bg-0d0d16 {
    position: sticky !important;
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid var(--dh-line);
}
.header-section.dh-header.home-header a { color: var(--dh-ink) !important; }
.header-section.dh-header.home-header .nav-link { color: var(--dh-ink) !important; }
.header-section.dh-header.home-header .navbar-toggler { color: var(--dh-ink); }
.header-section.dh-header.home-header .navbar-toggler i { color: var(--dh-ink); }
.dh-header-actions .dh-btn-ghost { color: var(--dh-ink); }

/* Hero */
.dh-hero { padding: 64px 0 40px; overflow: hidden; }
.dh-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.dh-hero-title { font-size: 46px; font-weight: 800; line-height: 1.14; color: var(--dh-ink); margin: 0 0 20px; letter-spacing: -.01em; }
.dh-hero-subtitle { font-size: 17.5px; line-height: 1.65; color: var(--dh-ink-soft); margin: 0 0 30px; max-width: 560px; }
.dh-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.dh-hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; }
.dh-hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--dh-ink-soft); }
.dh-hero-trust i { color: var(--dh-red); }

.dh-browser-frame {
    background: #fff;
    border-radius: var(--dh-radius);
    box-shadow: 0 30px 60px -20px rgba(16,24,40,.25), 0 1px 0 rgba(16,24,40,.06);
    overflow: hidden;
    border: 1px solid var(--dh-line);
}
.dh-browser-bar { display: flex; gap: 6px; padding: 12px 14px; background: #f2f4f7; }
.dh-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; }
.dh-browser-frame img { display: block; width: 100%; height: auto; }
.dh-visual-caption { text-align: center; font-size: 13px; color: var(--dh-ink-soft); margin: 14px 0 0; }
.dh-browser-frame-lg { max-width: 980px; margin: 0 auto; }

/* Trust bar */
.dh-trust-bar { padding: 28px 0; border-top: 1px solid var(--dh-line); border-bottom: 1px solid var(--dh-line); }
.dh-trust-bar-title { text-align: center; font-weight: 600; color: var(--dh-ink); margin: 0 0 18px; }
.dh-trust-bar-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; padding: 0; margin: 0; }
.dh-trust-bar-list li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--dh-ink-soft); }
.dh-trust-bar-list i { color: var(--dh-red); }

/* Why / flow */
.dh-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 20px; align-items: stretch; }
.dh-flow-col { background: #fff; border: 1px solid var(--dh-line); border-radius: var(--dh-radius); padding: 28px; }
.dh-flow-col h3 { font-size: 17px; font-weight: 700; margin: 0 0 14px; color: var(--dh-ink); }
.dh-flow-col ul { margin: 0; padding-left: 18px; color: var(--dh-ink-soft); font-size: 14.5px; line-height: 1.7; }
.dh-flow-brand { background: var(--dh-red); color: #fff; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.dh-flow-brand h3 { color: #fff; font-size: 20px; }
.dh-flow-brand p { color: rgba(255,255,255,.92); font-size: 14.5px; margin: 0; }
.dh-flow-result { background: #f3faf5; border-color: #d3ecd9; }
.dh-flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--dh-ink-soft); font-size: 18px; }

/* Feature grid */
.dh-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dh-feature-card { background: #fff; border: 1px solid var(--dh-line); border-radius: var(--dh-radius); padding: 28px 24px; transition: transform .15s ease, box-shadow .15s ease; }
.dh-feature-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(16,24,40,.2); }
.dh-feature-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(197,33,39,.09); color: var(--dh-red); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 16px; }
.dh-feature-card h3 { font-size: 16.5px; font-weight: 700; color: var(--dh-ink); margin: 0 0 8px; }
.dh-feature-card p { font-size: 14px; line-height: 1.55; color: var(--dh-ink-soft); margin: 0; }

/* Showcase */
.dh-showcase { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.dh-showcase-callouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; max-width: 980px; }
.dh-callout { background: #fff; border: 1px solid var(--dh-line); border-radius: 12px; padding: 18px; text-align: center; }
.dh-callout-label { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dh-red); margin-bottom: 6px; }
.dh-callout-value { display: block; font-size: 14px; color: var(--dh-ink-soft); }

/* Tabs */
.dh-tabs-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.dh-tab-btn { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--dh-line); background: #fff; color: var(--dh-ink-soft); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: all .15s ease; }
.dh-tab-btn.is-active, .dh-tab-btn:hover { background: var(--dh-red); border-color: var(--dh-red); color: #fff; }
.dh-tab-panel { display: none; }
.dh-tab-panel.is-active { display: block; animation: dh-fade .25s ease; }
.dh-tab-panel-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; }
.dh-tab-panel-copy h3 { font-size: 24px; font-weight: 800; color: var(--dh-ink); margin: 0 0 12px; }
.dh-tab-panel-copy p { color: var(--dh-ink-soft); font-size: 15.5px; line-height: 1.6; margin: 0 0 18px; }
.dh-tab-panel-copy ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.dh-tab-panel-copy li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--dh-ink); }
.dh-tab-panel-copy li i { color: var(--dh-red); }

/* Personas */
.dh-persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dh-persona-card { text-align: center; padding: 30px 20px; border-radius: var(--dh-radius); border: 1px solid var(--dh-line); background: #fff; }
.dh-persona-icon { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; background: rgba(197,33,39,.09); color: var(--dh-red); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.dh-persona-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--dh-ink); }
.dh-persona-card p { font-size: 13.5px; color: var(--dh-ink-soft); margin: 0; }

/* Automation */
.dh-auto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dh-auto-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--dh-line); border-radius: var(--dh-radius); padding: 24px; }
.dh-auto-icon { width: 42px; height: 42px; flex: none; border-radius: 10px; background: rgba(197,33,39,.09); color: var(--dh-red); display: flex; align-items: center; justify-content: center; }
.dh-auto-card h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; color: var(--dh-ink); }
.dh-auto-card p { font-size: 13.5px; color: var(--dh-ink-soft); margin: 0; line-height: 1.5; }

/* Security */
.dh-security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dh-security-card { padding: 26px; border-radius: var(--dh-radius); border: 1px solid var(--dh-line); }
.dh-security-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--dh-ink); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.dh-security-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--dh-ink); }
.dh-security-card p { font-size: 13.5px; color: var(--dh-ink-soft); margin: 0; line-height: 1.55; }

/* Testimonials */
.dh-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dh-testimonial-card { background: #fff; border: 1px solid var(--dh-line); border-radius: var(--dh-radius); padding: 26px; }
.dh-testimonial-stars { color: #f5a623; margin-bottom: 12px; font-size: 13px; }
.dh-testimonial-card p { font-size: 14.5px; color: var(--dh-ink); line-height: 1.6; margin: 0 0 18px; }
.dh-testimonial-author strong { display: block; font-size: 14px; color: var(--dh-ink); }
.dh-testimonial-author span { font-size: 12.5px; color: var(--dh-ink-soft); }

/* FAQ */
.dh-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.dh-faq-item { border: 1px solid var(--dh-line); border-radius: 12px; overflow: hidden; background: #fff; }
.dh-faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: none; border: none; text-align: left; font-size: 15.5px; font-weight: 600; color: var(--dh-ink); cursor: pointer; }
.dh-faq-question i { color: var(--dh-ink-soft); transition: transform .2s ease; flex: none; }
.dh-faq-item.is-open .dh-faq-question i { transform: rotate(180deg); color: var(--dh-red); }
.dh-faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.dh-faq-answer p { margin: 0; padding: 0 20px 18px; color: var(--dh-ink-soft); font-size: 14.5px; line-height: 1.6; }

/* CTA final */
.dh-cta-final { background: var(--dh-ink); padding: 80px 0; }
.dh-cta-final-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.dh-cta-final-inner h2 { color: #fff; font-size: 32px; font-weight: 800; margin: 0 0 14px; }
.dh-cta-final-inner p { color: rgba(255,255,255,.75); font-size: 16px; margin: 0 0 30px; }
.dh-cta-final-actions { justify-content: center; margin-bottom: 0; }

/* Scroll reveal (respects prefers-reduced-motion, see homepage.js) */
[data-dh-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
[data-dh-reveal].dh-in-view { opacity: 1; transform: translateY(0); }
[data-dh-reveal][data-dh-reveal-delay="1"] { transition-delay: .12s; }
.dh-no-animate [data-dh-reveal] { opacity: 1; transform: none; transition: none; }

@keyframes dh-fade { from { opacity: 0; } to { opacity: 1; } }

/* Pages légales / contact — mise en page simple, cohérente avec le reste du site */
.dh-page-banner { padding: 48px 0 40px; background: var(--dh-bg-alt); border-bottom: 1px solid var(--dh-line); }
.dh-page-banner .dh-breadcrumb { font-size: 14px; color: var(--dh-ink-soft); margin: 0; }
.dh-page-banner .dh-breadcrumb a { color: var(--dh-ink-soft); }
.dh-page-banner .dh-breadcrumb a:hover { color: var(--dh-red); }
.dh-page-banner .dh-breadcrumb .sep { margin: 0 8px; }
.dh-legal-page { padding: 56px 0 88px; }
.dh-legal-page h1 { font-size: 32px; font-weight: 800; color: var(--dh-ink); margin: 0 0 28px; }
.dh-legal-page .dh-legal-body { max-width: 820px; }
.dh-legal-page .dh-legal-body p { font-size: 15.5px; line-height: 1.75; color: var(--dh-ink-soft); margin: 0 0 20px; }
.dh-contact-section { padding: 56px 0 88px; }
.dh-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 1040px; margin: 0 auto; }
.dh-contact-visual img { width: 100%; border-radius: var(--dh-radius); }
.dh-contact-form label { font-weight: 600; font-size: 14px; color: var(--dh-ink); margin-bottom: 6px; display: block; }
.dh-contact-form .form-control { border: 1px solid var(--dh-line); border-radius: 10px; padding: 11px 14px; font-size: 14.5px; }
.dh-contact-form .form-control:focus { border-color: var(--dh-red); box-shadow: 0 0 0 3px rgba(197,33,39,.12); }

.dh-demo-form-wrap { max-width: 760px; margin: 0 auto; }
.dh-demo-form label { font-weight: 600; font-size: 14px; color: var(--dh-ink); margin-bottom: 6px; display: block; }
.dh-demo-form .form-control { border: 1px solid var(--dh-line); border-radius: 10px; padding: 11px 14px; font-size: 14.5px; }
.dh-demo-form .form-control:focus { border-color: var(--dh-red); box-shadow: 0 0 0 3px rgba(197,33,39,.12); }
.dh-checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dh-radio-row { display: flex; flex-wrap: wrap; gap: 18px; }
.dh-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; font-size: 14px; color: var(--dh-ink-soft); cursor: pointer; margin-bottom: 0 !important; }
.dh-checkbox input { width: 16px; height: 16px; accent-color: var(--dh-red); flex: none; }
@media (max-width: 576px) {
    .dh-checkbox-grid { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .dh-contact-grid { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 1200px) {
    .dh-feature-grid, .dh-persona-grid, .dh-auto-grid, .dh-security-grid, .dh-testimonial-grid, .dh-showcase-callouts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .dh-hero-grid { grid-template-columns: 1fr; }
    .dh-hero-visual { order: -1; }
    .dh-flow { grid-template-columns: 1fr; }
    .dh-flow-arrow { transform: rotate(90deg); padding: 4px 0; }
    .dh-tab-panel-grid { grid-template-columns: 1fr; }
    .dh-tab-panel-visual { order: -1; }
}
@media (max-width: 768px) {
    .dh-hero-title { font-size: 32px; }
    .dh-section { padding: 60px 0; }
    .dh-section-head h2 { font-size: 26px; }
    .dh-feature-grid, .dh-persona-grid, .dh-auto-grid, .dh-security-grid, .dh-testimonial-grid, .dh-showcase-callouts { grid-template-columns: 1fr; }
    .dh-hero-ctas, .dh-cta-final-actions { flex-direction: column; align-items: stretch; }
    .dh-hero-ctas .dh-btn, .dh-cta-final-actions .dh-btn { width: 100%; }
    .dh-tabs-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    [data-dh-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .dh-tab-panel.is-active { animation: none; }
}

/* Header logo */
.header-logo img { border-radius: 8px; }

/* Brochure link (hero) */
.dh-hero-brochure-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--dh-ink-soft); text-decoration: none; }
.dh-hero-brochure-link:hover { color: var(--dh-red); }
.dh-hero-brochure-link i { color: var(--dh-red); }

/* Floating WhatsApp button */
.dh-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
    z-index: 1050;
    transition: transform .2s ease, box-shadow .2s ease;
}
.dh-whatsapp-float:hover { color: #fff; transform: scale(1.07); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
@media (max-width: 576px) {
    .dh-whatsapp-float { width: 50px; height: 50px; font-size: 24px; bottom: 16px; right: 16px; }
}
