/* Couleurs et modules : accueil (bandeau d'en-tête, familles de modules) et page « Modules ».
   Reprend les variables de homepage.css ; chaque famille de modules a sa couleur (--t, --t-soft, --t-grad). */

/* ---------- palettes des familles ---------- */
.dh-theme-vendre  { --t: #c52127; --t-soft: #fdecec; --t-grad: linear-gradient(135deg, #c52127 0%, #e5646a 100%); }
.dh-theme-stock   { --t: #1d6fd1; --t-soft: #e8f1fd; --t-grad: linear-gradient(135deg, #1d6fd1 0%, #58a0f2 100%); }
.dh-theme-piloter { --t: #12805c; --t-soft: #e2f5ec; --t-grad: linear-gradient(135deg, #12805c 0%, #3cbf91 100%); }
.dh-theme-equipe  { --t: #7a4fd6; --t-soft: #efe9fc; --t-grad: linear-gradient(135deg, #7a4fd6 0%, #a98af0 100%); }

/* ---------- bandeau d'en-tête de l'accueil ---------- */
.dh-hero {
    position: relative;
    padding: 72px 0 70px;
    background:
        radial-gradient(900px 420px at 88% 8%, rgba(255, 255, 255, .16), transparent 62%),
        radial-gradient(600px 380px at 4% 100%, rgba(255, 190, 120, .20), transparent 60%),
        linear-gradient(135deg, #c52127 0%, #a51a20 52%, #7d1318 100%);
}
.dh-hero .dh-badge { background: rgba(255, 255, 255, .17); color: #fff; }
.dh-hero .dh-hero-title { color: #fff; }
.dh-hero .dh-hero-subtitle { color: rgba(255, 255, 255, .9); }
.dh-hero .dh-btn-primary { background: #fff; color: var(--dh-red); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.dh-hero .dh-btn-primary:hover { background: #fff4f4; color: var(--dh-red-dark); }
.dh-hero .dh-btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.dh-hero .dh-btn-outline:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
.dh-hero .dh-hero-trust li { color: rgba(255, 255, 255, .94); }
.dh-hero .dh-hero-trust i { color: #ffd9a8; }
.dh-hero .dh-hero-brochure-link, .dh-hero .dh-hero-brochure-link i { color: #fff; }
.dh-hero .dh-browser-frame { box-shadow: 0 34px 70px -22px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .12); }

/* icônes des cartes « Fonctionnalités » : une couleur par carte */
.dh-feature-grid .dh-feature-card:nth-child(4n+2) .dh-feature-icon { background: #e8f1fd; color: #1d6fd1; }
.dh-feature-grid .dh-feature-card:nth-child(4n+3) .dh-feature-icon { background: #e2f5ec; color: #12805c; }
.dh-feature-grid .dh-feature-card:nth-child(4n+4) .dh-feature-icon { background: #efe9fc; color: #7a4fd6; }
.dh-feature-grid .dh-feature-card:nth-child(4n+1) .dh-feature-icon { background: #fdecec; color: #c52127; }

/* ---------- section « Tous les modules » (accueil) ---------- */
#tous-les-modules { background: linear-gradient(180deg, #fff 0%, #fff9f6 100%); }
.dh-mod-group { margin-top: 26px; padding: 24px 24px 26px; border-radius: 20px; background: var(--t-soft); }
.dh-mod-group:first-of-type { margin-top: 0; }
.dh-mod-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 16px; }
.dh-mod-group-head h3 { font-size: 20px; font-weight: 800; color: var(--t); margin: 0; }
.dh-mod-group-head p { margin: 0; color: var(--dh-ink-soft); font-size: 14.5px; }
.dh-mod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
a.dh-mod-card { display: block; text-decoration: none; background: #fff; border: 1px solid transparent; border-top: 4px solid var(--t); border-radius: var(--dh-radius); padding: 18px 18px 20px; box-shadow: 0 6px 16px -12px rgba(16, 24, 40, .25); transition: transform .15s ease, box-shadow .15s ease; }
a.dh-mod-card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -16px rgba(16, 24, 40, .3); }
.dh-mod-card .dh-feature-icon { margin-bottom: 12px; background: var(--t-soft); color: var(--t); }
.dh-mod-card h4 { font-size: 15.5px; font-weight: 700; color: var(--dh-ink); margin: 0 0 6px; }
.dh-mod-card p { font-size: 13.5px; line-height: 1.5; color: var(--dh-ink-soft); margin: 0; }
.dh-mod-more { text-align: center; margin-top: 36px; }

/* ---------- page « Modules » ---------- */
.dh-mod-hero {
    padding: 64px 0 56px;
    text-align: center;
    background:
        radial-gradient(800px 380px at 85% 0%, rgba(255, 255, 255, .16), transparent 62%),
        radial-gradient(520px 340px at 6% 100%, rgba(255, 190, 120, .22), transparent 60%),
        linear-gradient(135deg, #c52127 0%, #a51a20 52%, #7d1318 100%);
}
.dh-mod-hero .dh-eyebrow { color: #ffd9a8; }
.dh-mod-hero h1 { font-size: 40px; font-weight: 800; color: #fff; margin: 0 0 14px; line-height: 1.15; }
.dh-mod-hero p { max-width: 660px; margin: 0 auto 26px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.dh-mod-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dh-mod-nav a { padding: 9px 18px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); }
.dh-mod-nav a:hover { background: #fff; color: var(--dh-red); }

.dh-mod-section { padding: 56px 0; background: linear-gradient(180deg, var(--t-soft) 0%, #fff 100%); }
.dh-mod-section .dh-section-head { margin-bottom: 30px; }
.dh-mod-section .dh-section-head h2 { color: var(--t); }
.dh-mod-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.dh-mod-detail { background: #fff; border: 1px solid var(--dh-line); border-radius: 18px; padding: 14px 14px 22px; box-shadow: 0 10px 26px -18px rgba(16, 24, 40, .35); scroll-margin-top: 90px; }
.dh-mod-banner { position: relative; height: 158px; border-radius: 12px; background: var(--t-grad); overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.dh-mod-banner::before, .dh-mod-banner::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.dh-mod-banner::before { width: 190px; height: 190px; right: -50px; top: -70px; }
.dh-mod-banner::after { width: 120px; height: 120px; left: -34px; bottom: -48px; }
.dh-mod-banner > i { position: relative; font-size: 58px; color: #fff; opacity: .95; }
.dh-mod-banner > img { position: absolute; left: 7%; right: 7%; bottom: 0; width: 86%; height: 132px; object-fit: cover; object-position: top; border-radius: 10px 10px 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .28); border: 4px solid #fff; border-bottom: 0; background: #fff; }
.dh-mod-detail-top { display: flex; align-items: center; gap: 12px; margin: 0 12px 10px; }
.dh-mod-detail-top .dh-feature-icon { margin: 0; flex: none; background: var(--t-soft); color: var(--t); }
.dh-mod-detail h3 { font-size: 19px; font-weight: 800; color: var(--dh-ink); margin: 0; }
.dh-mod-detail > p, .dh-mod-detail > ul, .dh-mod-detail-cta { margin-left: 12px; margin-right: 12px; }
.dh-mod-detail > p { color: var(--dh-ink-soft); font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.dh-mod-detail ul { list-style: none; padding: 0; margin-bottom: 0; }
.dh-mod-detail li { position: relative; padding: 5px 0 5px 24px; font-size: 14.5px; line-height: 1.5; color: var(--dh-ink); }
.dh-mod-detail li::before { content: "\f00c"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 6px; font-size: 12px; color: var(--t); }
.dh-mod-detail li strong { font-weight: 700; }
.dh-mod-detail-cta { margin-top: 16px; }
.dh-mod-detail-cta .dh-btn { border-color: var(--t); color: var(--t); }
.dh-mod-detail-cta .dh-btn:hover { background: var(--t); color: #fff; }

@media (max-width: 1100px) { .dh-mod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
    .dh-mod-grid, .dh-mod-detail-grid { grid-template-columns: 1fr; }
    .dh-mod-hero h1 { font-size: 30px; }
    .dh-mod-group { padding: 18px 14px 20px; }
    .dh-hero { padding: 40px 0 44px; }
}
