/* ============================================================================
   Design surcharge des modules du moteur (fichiers livrés tels quels :
   actualites.css, cookies.css, devis-guide.css, devis-section.css,
   reviews-widget.css, maillage.css, services-slider.css).
   Chargé APRÈS les modules : on surcharge leurs variables sur leur racine,
   avec une spécificité supérieure, sans !important et sans modifier les
   fichiers mutualisés. Les règles mobiles de ces surcharges restent ici.
   ============================================================================ */

/* ------------------------------------------------------------ Actualités (liste, article) */
html body :is(.blog, [data-page-type="article"]) {
    --blog-accent: #c74926;
    --blog-ink: #ffffff;
    --blog-body: #e9e9e9;
    --blog-muted: #a6a6a6;
    --blog-soft: #2a2a2a;
    --blog-card: #111111;
    --blog-line: #2f2f2f;
    --blog-radius: 10px;
    --blog-font: "Red Hat Text", system-ui, sans-serif;
    --blog-maxw: 100%;
    --blog-bg: #010101;
}
html body .blog:not(.home-actus) { max-width: var(--container); margin-inline: auto; padding: 60px 15px 100px; }
html body .blog :is(.blog-card-title, .blog-feature-title, .post-body h2, .post-body h3) { font-family: "Raleway", sans-serif; }
html body .blog:not(.home-actus) .blog-card { border-radius: 10px; overflow: hidden; background: #111; box-shadow: inset 0 0 0 1px #2a2a2a; transition: box-shadow .6s cubic-bezier(.65,.05,.36,1), transform .8s cubic-bezier(.16,1,.3,1); }
html body .blog:not(.home-actus) .blog-card:hover { box-shadow: inset 0 0 0 1px #c74926; transform: translateY(-4px); }
html body .blog:not(.home-actus) .blog-card-date { background: radial-gradient(circle, #c74926 0%, #b92f27 70%, #8a363a 100%); color: #fff; border-radius: 999px; }
/* « À la une » aux couleurs des cartes d'actualité de l'accueil */
html body .blog .blog-feature { background: linear-gradient(90deg, #8a363a 0%, #b92f27 30%, #c74926 100%); border-radius: 30px; color: #fff; }
html body .blog .blog-feature :is(.blog-feature-title, .blog-feature-excerpt, .blog-feature-meta, time) { color: #fff; }
html body .blog .blog-feature-flag { background: #04171b; color: #fff; border-radius: 999px; }
html body .blog :is(.blog-cats a, .blog-pager-num, .blog-pager-arrow) { border-radius: 999px; transition: background-color .45s cubic-bezier(.65,.05,.36,1), color .45s cubic-bezier(.65,.05,.36,1); }
html body .blog :is(.blog-cats a[aria-current="page"], .blog-pager-num.is-current) { background: #c74926; color: #fff; }
html body .blog :is(.blog-cats a:hover, .blog-pager-num:hover, .blog-pager-arrow:hover) { background: #c74926; color: #fff; }
html body .blog .blog-more, html body .post-back { color: #ff8a65; }

/* ------------------------------------------------------------ Widget d'avis (page avis, bandeau .rw-band) */
html body .rw:not(.testimonials__rw) {
    --rw-card-bg: #0d0d0d;
    --rw-card-radius: 20px;
    --rw-text: #ffffff;
    --rw-ink: #ffffff;
    --rw-muted: #a6a6a6;
    --rw-star: #b92f27;
    --rw-star-off: #3a3a3a;
    --rw-accent: #c74926;
    --rw-shadow: inset 0 0 0 1px #ffffff;
    --rw-maxw: 1170px;
}
html body .rw:not(.testimonials__rw) :is(.rw-title, .rw-author) { font-family: "Raleway", sans-serif; }
html body .rw:not(.testimonials__rw) .rw-text { font-style: italic; }
html body .rw:not(.testimonials__rw) .rw-arrow { border-radius: 50%; background: #2a2a2a; color: #fff; transition: background-color .45s cubic-bezier(.65,.05,.36,1); }
html body .rw:not(.testimonials__rw) .rw-arrow:hover { background: #c74926; }
html body .rw-band { padding: 80px 15px; background: #010101; }

/* ------------------------------------------------------------ Parcours devis guidé (.dg) */
html body .dg {
    --dg-accent: #c74926;
    --dg-accent-ink: #ffffff;
    --dg-ink: #ffffff;
    --dg-muted: #a6a6a6;
    --dg-page: #010101;
    --dg-radius: 20px;
}
html body .dg :is(.dg-step-title, .dg-done h2) { font-family: "Raleway", sans-serif; }
html body .dg :is(.dg-next, .dg-submit, .dg-btn) { background: linear-gradient(90deg, #8a363a 0%, #b92f27 30%, #c74926 100%); border-radius: 10px; font-family: "Plus Jakarta Sans", sans-serif; transition: filter .45s cubic-bezier(.65,.05,.36,1); }
html body .dg :is(.dg-next, .dg-submit, .dg-btn):hover { filter: brightness(.8); }

/* ------------------------------------------------------------ Section devis (accueil moteur) */
html body .home-devis { background: #0d0d0d; }
html body .home-devis-form { background: #f4f4f4; color: #010101; border: 0; border-radius: 30px; }

/* ------------------------------------------------------------ Bandeau cookies (.ck) */
html body .ck {
    --ck-accent: #c74926;
    --ck-ink: #ffffff;
    --ck-surf: #f4f4f4;
}
html body .ck .ck-box { background: #ffffff; color: #04171b; border-radius: 20px; }
html body .ck :is(.ck-title) { font-family: "Raleway", sans-serif; color: #04171b; }
html body .ck .ck-primary { background: linear-gradient(90deg, #8a363a 0%, #b92f27 30%, #c74926 100%); color: #fff; }

/* ------------------------------------------------------------ Maillage interne (.service-mesh, .home-keyword) */
html body :is(.home-secteurs, .service-mesh) {
    --ml-text: #ffffff;
    --ml-muted: #a6a6a6;
    --ml-accent: #c74926;
    --ml-soft: #2a2a2a;
    --ml-line: rgba(255, 255, 255, .2);
    --ml-radius: 20px;
}

/* ------------------------------------------------------------ Formulaires du moteur hors page contact
   (paiement, devis simple…) : habillage générique, champs pilules sombres */
html body .contact-form:not(.contact-form--odite) :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea) {
    width: 100%; padding: 14px 20px; border: 0; border-radius: 30px; background: #f4f4f4; color: #1d1d1b; font: inherit;
}
html body .contact-form:not(.contact-form--odite) :is(input, select, textarea):focus { outline: 0; box-shadow: 0 0 0 2px #c74926; }
html body :is(.btn-contact, .btn-devis, .review-submit):not(.btn) {
    display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 28px; border: 0; border-radius: 10px;
    background: linear-gradient(90deg, #8a363a 0%, #b92f27 30%, #c74926 100%); color: #fff;
    font: 700 1rem/1.5 "Plus Jakarta Sans", sans-serif; cursor: pointer; transition: background-color .55s cubic-bezier(.65,.05,.36,1), filter .55s cubic-bezier(.65,.05,.36,1);
}
html body :is(.btn-contact, .btn-devis, .review-submit):not(.btn):hover { filter: brightness(.75); }

@media (max-width: 767.98px) {
    html body .blog:not(.home-actus) { padding: 40px 15px 70px; }
    html body .rw-band { padding: 56px 15px; }
}
