/* =====================================================================
   THEME : habillage des modules mutualises du www aux couleurs IP2C.
   Les CSS de modules sont charges APRES ce fichier et posent leurs
   variables sur leur racine -> on surcharge avec plus de specificite
   (html body ...), sans !important et sans toucher aux fichiers communs.
   ===================================================================== */

/* --------------------------------------------------- Actualites (actualites.css) */
html body :is(.blog, [data-page-type="article"]) {
    --blog-accent: #f3922a;
    --blog-ink: #0e192c;
    --blog-body: #373737;
    --blog-muted: #969da8;
    --blog-soft: #ffffff;
    --blog-card: transparent;
    --blog-line: #d7d7d7;
    --blog-radius: 0px;
    --blog-font: var(--font);
    --blog-maxw: 100%;
    --blog-gap: 25px;
    --blog-bg: #fff7f5;
}
html body .blog .blog-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px 25px;
    margin: 0;
}
html body .blog .blog-card {
    position: relative;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}
html body .blog .blog-card-media {
    position: relative;
    aspect-ratio: 397 / 199;
    background: #fff;
    overflow: hidden;
}
html body .blog .blog-card-media img { transition: transform 1.2s var(--ease-out); }
html body .blog .blog-card:hover .blog-card-media img { transform: scale(1.07); }
html body .blog .blog-card-media .blog-card-date {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: 6px 20px;
    border-radius: 0 6px 0 0;
    background: var(--c-ink);
    font-family: var(--font-meta);
    font-size: 14px;
    line-height: 22px;
    text-transform: uppercase;
    color: #fff;
    transition: background-color .6s var(--ease-smooth);
}
html body .blog .blog-card:hover .blog-card-media .blog-card-date { background: var(--c-orange); }
html body .blog .blog-card-foot .blog-card-date { color: var(--c-muted); font-size: 14px; text-transform: uppercase; }
html body .blog .blog-card-body { padding: 16px 0 0; gap: 16px; }
html body .blog .blog-card-title {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 24px;
    line-height: 34px;
    letter-spacing: 0;
}
html body .blog .blog-card-title a { color: var(--c-ink); transition: color .6s var(--ease-smooth); }
html body .blog .blog-card:hover .blog-card-title a { color: var(--c-ink); }
html body .blog .blog-more {
    align-self: flex-start;
    position: relative;
    font-family: var(--font-meta);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--c-orange);
}
html body .blog .blog-more::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 1px;
    background: currentColor;
    transform-origin: left center;
    transition: transform .6s var(--ease-smooth);
}
html body .blog .blog-card:hover .blog-more::after { transform: scaleX(.45); }
html body .blog .blog-card-excerpt { font-weight: 300; font-size: 15px; line-height: 23px; }
html body .blog .blog-card-foot { font-family: var(--font-meta); }

/* La « une » aux couleurs de l'actualite principale de l'accueil */
html body .blog .blog-feature {
    background: var(--c-navy);
    border-radius: 0;
    color: #fff;
}
html body .blog .blog-feature-title { font-family: var(--font-title); font-weight: 400; color: #fff; letter-spacing: 0; }
html body .blog .blog-feature:hover .blog-feature-title { color: var(--c-orange); }
html body .blog .blog-feature-excerpt { color: rgba(255, 255, 255, .82); font-weight: 300; }
html body .blog .blog-feature-meta { color: rgba(255, 255, 255, .6); font-family: var(--font-meta); }
html body .blog .blog-feature-flag {
    background: var(--c-orange);
    border-radius: 0 6px 0 0;
    font-family: var(--font-meta);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: .08em;
}
html body .blog .blog-feature-media { min-height: 360px; }
html body .blog .blog-feature-media img { transition: transform 1.2s var(--ease-out); }

/* Filtres de categories + pagination en pastilles */
html body .blog .blog-cats a,
html body .blog .blog-pager-num,
html body .blog .blog-pager-arrow {
    border: 1px solid var(--c-navy);
    border-radius: 30px;
    background: transparent;
    color: var(--c-navy);
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 15px;
    transition: background-color .6s var(--ease-smooth), color .6s var(--ease-smooth);
}
html body .blog .blog-cats a:hover,
html body .blog .blog-pager-num:hover,
html body .blog .blog-pager-arrow:hover { background: var(--c-navy); color: #fff; }
html body .blog .blog-cats a[aria-current="page"],
html body .blog .blog-pager-num.is-current { background: var(--c-orange); border-color: var(--c-orange); color: #fff; }
html body .blog .blog-eyebrow { font-family: var(--font); font-weight: 400; letter-spacing: .27em; color: var(--c-orange); }

/* Page article */
html body[data-page-type="article"] main > article > h1 { font-family: var(--font-title); font-weight: 400; letter-spacing: 0; color: var(--c-navy); }
html body .post-body h2,
html body .post-body h3 { font-family: var(--font-title); font-weight: 400; color: var(--c-navy); letter-spacing: 0; }
html body .post-body p,
html body .post-body li { font-weight: 300; font-size: 15px; line-height: 26px; color: var(--c-body); }
html body .post-body a { color: var(--c-navy); text-decoration-color: var(--c-orange); }
html body .post-body blockquote { border-left: 5px solid var(--c-orange); border-radius: 0; background: #fff; font-family: var(--font-title); }
html body .post-cat { background: var(--c-orange); color: #fff; border-radius: 0 6px 0 0; font-family: var(--font-meta); }
html body .post-cover img { border-radius: 0; }

/* Page d'accueil : en-tete du bloc actualites */
.home-actus { padding: 0 0 69px; }
.home-actus-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}
.home-actus-head .sec-title { margin: 0; }
.home-actus-head .btn { margin-bottom: 0; transform: translateY(-14px); }

/* --------------------------------------------------- Avis : widget [data-rw] (reviews-widget.css) */
html body .rw:not(.testimonials__rw) {
    --rw-gap: 25px;
    --rw-card-bg: #ffffff;
    --rw-card-radius: 0px;
    --rw-card-pad: 28px;
    --rw-text: #373737;
    --rw-ink: #132137;
    --rw-muted: #969da8;
    --rw-star: #f3922a;
    --rw-star-off: #e5d6cc;
    --rw-accent: #132137;
    --rw-shadow: 0 4px 4px rgba(0, 0, 0, .1);
    --rw-maxw: 1210px;
    font-family: var(--font);
}
html body .rw .rw-title { font-family: var(--font-title); font-weight: 400; font-size: 32px; }
html body .rw-band .rw:not(.testimonials__rw) { --rw-ink: #ffffff; }

/* --------------------------------------------------- Bandeau cookies (cookies.css) */
html body .ck { --ck-accent: #f3922a; --ck-ink: #ffffff; --ck-surf: #fff7f5; font-family: var(--font); }
html body .ck :is(h2, h3, .ck-title) { font-family: var(--font-title); font-weight: 400; color: var(--c-navy); }
html body .ck :is(.ck-primary, .ck-soft) { border-radius: 30px; font-family: var(--font-title); font-weight: 400; }

/* --------------------------------------------------- Devis guide (devis-guide.css) */
html body .dg {
    --dg-accent: #f3922a;
    --dg-accent-ink: #ffffff;
    --dg-ink: #132137;
    --dg-muted: #969da8;
    --dg-page: #fff7f5;
    --dg-radius: 5px;
    font-family: var(--font);
}
html body .dg :is(h2, h3, legend) { font-family: var(--font-title); font-weight: 400; }

/* --------------------------------------------------- Maillage (maillage.css) */
html body :is(.home-secteurs, .service-mesh) {
    --ml-text: #132137;
    --ml-muted: #969da8;
    --ml-accent: #f3922a;
    --ml-soft: rgba(19, 33, 55, .06);
    --ml-line: #f3922a;
    --ml-radius: 0px;
    --ml-gradient: linear-gradient(0deg, #f3922a 0%, #132137 100%);
}
html body .service-mesh .mesh-title { font-family: var(--font-title); font-weight: 400; font-size: 22px; color: var(--c-navy); }
html body .service-mesh .mesh-links a {
    border: 1px solid var(--c-navy);
    border-radius: 30px;
    background: transparent;
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 15px;
    transition: background-color .6s var(--ease-smooth), color .6s var(--ease-smooth);
}
html body .service-mesh .mesh-links a:hover { background: var(--c-navy); color: #fff; }
