/* ============================================================================
   Design surcharge des modules du moteur (actualites.css, reviews-widget.css,
   maillage.css, cookies.css, devis-guide.css, devis-section.css).
   Les modules sont chargés AVANT ce fichier ou posent leurs variables sur leur
   racine : on surcharge avec « html body … » (spécificité supérieure, sans !important).
   ============================================================================ */

/* --------------------------------------------------- Actualités (module .blog) */
html body :is(.blog, [data-page-type="article"]) {
    --blog-accent: #aeca32;
    --blog-ink: #3d3d3b;
    --blog-body: #7d7d7d;
    --blog-muted: #7d7d7d;
    --blog-soft: #f5f5f5;
    --blog-card: #ffffff;
    --blog-line: #d3d3d3;
    --blog-radius: 20px;
    --blog-font: var(--font);
    --blog-maxw: 100%;
    --blog-gap: 30px;
    --blog-bg: transparent;
}

html body .blog-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1), 0 18px 18px rgba(0, 0, 0, .04), 0 41px 25px rgba(0, 0, 0, .02);
    transition: background-color .7s var(--ease-out), transform .8s var(--ease-out);
}

html body .blog-card-media {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 388 / 257;
    background: var(--c-green);
}

html body .blog-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .8s var(--ease-out), transform 1.4s var(--ease-out);
}

/* Logo S qui apparaît sur le visuel au survol */
html body .blog-card-media::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 63px;
    height: 90px;
    margin: -45px 0 0 -31px;
    background: url("../userfiles/icons/ico-s-white.svg") center / contain no-repeat;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}

html body .blog-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 0 10px;
}

html body .blog-card-date {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 35px;
    background: var(--c-green);
    color: #fff;
    font-size: .875rem;
    line-height: 16px;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
    transition: background-color .7s var(--ease-out), color .7s var(--ease-out);
}

html body .blog-card-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 32px;
    font-weight: 600;
    color: var(--c-dark);
}

html body .blog-card-title a,
html body .blog-card .link-more {
    color: var(--c-dark);
    transition: color .7s var(--ease-out);
}

html body .blog-card:hover {
    background: var(--c-green);
    transform: translateY(-6px);
}

html body .blog-card:hover .blog-card-media img {
    opacity: .5;
    transform: scale(1.05);
}

html body .blog-card:hover .blog-card-media::after {
    opacity: 1;
    transform: none;
}

html body .blog-card:hover .blog-card-date {
    background: var(--c-cream);
    color: var(--c-green);
}

html body .blog-card:hover .blog-card-title a,
html body .blog-card:hover .blog-card-title,
html body .blog-card:hover .link-more {
    color: var(--c-cream);
}

html body .blog-card:hover .link-more .btn-ic {
    background: var(--c-cream);
    color: var(--c-green);
}

html body .blog-card:hover .link-more .btn-ic .ic {
    transform: translate(28px, -28px);
}

html body .blog-card:hover .link-more .btn-ic .ic+.ic {
    transform: none;
}

/* Section actus de l'accueil */
.home-blog {
    padding: 60px 0 100px;
}

.home-blog .sec-head {
    margin-bottom: 60px;
    text-align: center;
}

.home-blog .blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0;
}

/* Index des actualités + catégories / pagination en pastilles */
html body .blog-cats a {
    padding: 6px 14px;
    border-radius: 80px;
    background: transparent;
    color: var(--c-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
}

html body .blog-cats a:hover {
    background: transparent;
    color: var(--c-green);
}

html body .blog-cats a[aria-current="page"] {
    background: var(--c-green);
    color: var(--c-cream);
}

html body .blog-feature {
    border-radius: 20px;
    background: var(--c-green);
    color: var(--c-cream);
}

html body .blog-feature-title,
html body .blog-feature-meta,
html body .blog-feature-excerpt {
    color: var(--c-cream);
}

html body .blog-pager-num.is-current {
    background: var(--c-green);
    color: #fff;
}

html body .post-body h2,
html body .post-body h3 {
    color: var(--c-green);
}

/* --------------------------------------------------- Avis (widget .rw) habillé comme les témoignages */
html body .rw {
    --rw-cols: 4;
    --rw-gap: 24px;
    --rw-card-bg: #ffffff;
    --rw-card-radius: 18px;
    --rw-card-pad: 30px 20px;
    --rw-text: #7d7d7d;
    --rw-ink: #3d3d3b;
    --rw-muted: #7d7d7d;
    --rw-star: #fabb05;
    --rw-star-off: #d3d3d3;
    --rw-accent: #aeca32;
    --rw-shadow: 0 5px 10px rgba(0, 0, 0, .1), 0 18px 18px rgba(0, 0, 0, .05);
    --rw-maxw: 1344px;
    font-family: var(--font);
}

/* Une carte sur deux en couleur (vert maquette) */
html body .rw .rw-slide:nth-child(even) .rw-card {
    background: var(--grad-network);
}

html body .rw .rw-slide:nth-child(even) :is(.rw-text, .rw-author, .rw-date) {
    color: var(--c-cream);
}

html body .rw .rw-text {
    font-style: italic;
}

html body .rw .rw-title {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 3rem;
    line-height: 1.25;
    color: var(--c-dark);
}

html body .rw .rw-arrow {
    background: var(--c-green);
    color: #fff;
    transition: background-color .5s var(--ease-out);
}

html body .rw .rw-arrow:hover {
    background: var(--c-teal);
}

/* --------------------------------------------------- Maillage / FAQ du moteur */
html body :is(.home-secteurs, .service-mesh) {
    --ml-text: #3d3d3b;
    --ml-muted: #7d7d7d;
    --ml-accent: #aeca32;
    --ml-line: #d3d3d3;
    --ml-radius: 18px;
    --ml-gradient: linear-gradient(180deg, #5bbbeb 0%, #aeca32 100%);
}

.faq h2 {
    margin-bottom: 24px;
}

.faq details {
    margin: 0 0 12px;
    border-radius: 40px;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .08);
    transition: border-radius .6s var(--ease-out);
}

.faq details[open] {
    border-radius: 18px;
}

.faq summary {
    position: relative;
    padding: 18px 60px 18px 24px;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--c-dark);
    transition: color .4s var(--ease-out);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border-radius: 50%;
    background: rgba(91, 187, 235, .15);
    color: var(--c-blue);
    font-weight: 400;
    line-height: 22px;
    text-align: center;
    transition: transform .6s var(--ease-out), background-color .4s, color .4s;
}

.faq details[open] summary,
.faq summary:hover {
    color: var(--c-green);
}

.faq details[open] summary::after {
    content: "−";
    background: var(--c-blue);
    color: #fff;
    transform: rotate(180deg);
}

.faq details>*:not(summary) {
    padding: 0 24px 18px;
    margin: 0;
    font-size: .875rem;
}

/* --------------------------------------------------- Bandeau cookies */
html body .ck {
    --ck-accent: #aeca32;
    --ck-ink: #ffffff;
    --ck-surf: #f5f5f5;
    font-family: var(--font);
}

/* --------------------------------------------------- Parcours devis guidé */
html body .dg {
    --dg-accent: #aeca32;
    --dg-accent-ink: #ffffff;
    --dg-ink: #3d3d3b;
    --dg-muted: #7d7d7d;
    --dg-page: #ffffff;
    --dg-radius: 18px;
}
