/* Aquitaine Travaux Rénovation — feuille de style principale (chargée via functions.php) */


/* ==========================================================================
   1. Design system
   ========================================================================== */
:root {
    --atr-cream:      #F8F5EF;
    --atr-beige:      #EDE4D6;
    --atr-olive:      #8A9448;
    --atr-olive-dark: #76803D;
    --atr-navy:       #1F2A44;
    --atr-taupe:      #6F6A5E;
    --atr-rule:       #B7BE8A;
    --atr-white:      #FFFFFF;
    --atr-border:     #E0D8C8;
    --atr-serif: 'Lora', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --atr-sans:  'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --atr-header-h: 86px;
    --atr-wrap: 1240px;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
body {
    background: var(--atr-white);
    color: var(--atr-navy);
    font-family: var(--atr-sans);
    font-size: 16.5px;
    line-height: 1.72;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    font-family: var(--atr-serif);
    color: var(--atr-navy);
    font-weight: 500;
    line-height: 1.18;
    margin: 0 0 18px;
}
p { margin: 0 0 18px; }
img { max-width: 100%; height: auto; }
a { color: var(--atr-olive-dark); }

/* GeneratePress / plugins — resets défensifs sur les éléments génériques */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] { font-family: var(--atr-sans); }

/* ==========================================================================
   3. Enveloppes de page
   ========================================================================== */
.atr-shell { width: 100%; overflow-x: clip; }
.atr-wrap {
    max-width: var(--atr-wrap);
    margin: 0 auto;
    padding: 0 32px;
}
.atr-wrap--narrow { max-width: 820px; }

/* ==========================================================================
   4. Boutons & liens d'action
   ========================================================================== */
.atr-btn,
a.atr-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--atr-olive) !important;
    background-color: var(--atr-olive) !important;
    color: var(--atr-white) !important;
    border: 0 !important;
    border-radius: 5px;
    padding: 14px 26px;
    font-family: var(--atr-sans);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none !important;
    transition: background-color .22s ease, transform .22s ease;
}
.atr-btn:hover,
.atr-btn:focus,
a.atr-btn:hover,
a.atr-btn:focus {
    background: var(--atr-olive-dark) !important;
    background-color: var(--atr-olive-dark) !important;
    color: var(--atr-white) !important;
    transform: translateY(-1px);
}
.atr-btn svg { width: 15px; height: 15px; flex: 0 0 15px; }

.atr-link {
    display: inline-block;
    color: var(--atr-navy) !important;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    padding-bottom: 5px;
    border-bottom: 1.5px solid var(--atr-rule);
    transition: border-color .22s ease, color .22s ease;
}
.atr-link:hover,
.atr-link:focus { color: var(--atr-olive-dark) !important; border-bottom-color: var(--atr-olive); }
.atr-hero-actions .atr-link,
.atr-pledge-card .atr-link,
.atr-advice-head .atr-link { align-self: flex-start; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.atr-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--atr-white);
    border-bottom: 1px solid var(--atr-border);
}
body.admin-bar .atr-header { top: 32px; }
.atr-header-inner {
    max-width: var(--atr-wrap);
    margin: 0 auto;
    padding: 0 32px;
    min-height: var(--atr-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.atr-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
}
.atr-brand-mark { width: 44px; height: 46px; flex: 0 0 44px; color: var(--atr-olive); }
.atr-brand-name {
    font-family: var(--atr-sans);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .17em;
    color: var(--atr-navy);
    line-height: 1.25;
    text-transform: uppercase;
}
.atr-brand-sub {
    display: block;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: .16em;
    color: var(--atr-navy);
    white-space: nowrap;
}
.atr-brand-base {
    display: block;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid var(--atr-rule);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .17em;
    color: var(--atr-taupe);
}
.atr-nav { display: none; }
.atr-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.atr-nav li { margin: 0; }
.atr-nav a {
    display: block;
    padding: 9px 13px;
    color: var(--atr-navy) !important;
    font-size: 14.5px;
    font-weight: 400;
    text-decoration: none !important;
    border-radius: 4px;
    transition: color .2s ease, background-color .2s ease;
}
.atr-nav a:hover,
.atr-nav a:focus { color: var(--atr-olive-dark) !important; background: var(--atr-cream) !important; }
.atr-nav .current-menu-item > a,
.atr-nav .atr-nav-current > a { color: var(--atr-olive-dark) !important; }
a.atr-header-cta { display: none; }
@media (min-width: 1080px) { a.atr-header-cta { display: inline-flex; } }

/* Burger + drawer (CSS only) */
#atr-menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.atr-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 10px;
    cursor: pointer;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    color: var(--atr-navy) !important;
}
.atr-burger:hover,
.atr-burger:focus { background: var(--atr-cream) !important; background-color: var(--atr-cream) !important; }
.atr-burger span { display: block; height: 2px; background: var(--atr-navy); border-radius: 2px; }
.atr-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(31, 42, 68, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    z-index: 600;
}
.atr-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(330px, 86vw);
    height: 100%;
    background: var(--atr-white);
    z-index: 610;
    transform: translateX(100%);
    transition: transform .28s ease;
    padding: 26px 26px 40px;
    overflow-y: auto;
}
#atr-menu-toggle:checked ~ .atr-backdrop { opacity: 1; visibility: visible; }
#atr-menu-toggle:checked ~ .atr-drawer { transform: translateX(0); }
.atr-drawer-close {
    display: block;
    margin-left: auto;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 24px;
    color: var(--atr-navy);
    cursor: pointer;
}
.atr-drawer ul { list-style: none; margin: 18px 0 26px; padding: 0; }
.atr-drawer li { border-bottom: 1px solid var(--atr-border); }
.atr-drawer a {
    display: block;
    padding: 14px 2px;
    color: var(--atr-navy) !important;
    font-size: 15.5px;
    text-decoration: none !important;
}
.atr-drawer a:hover { color: var(--atr-olive-dark) !important; }
.atr-drawer a.atr-btn { color: var(--atr-white) !important; }
.atr-drawer a.atr-btn:hover { color: var(--atr-white) !important; }
.atr-drawer .atr-btn { width: 100%; justify-content: center; }
@media (min-width: 1080px) {
    .atr-nav { display: block; }
    .atr-burger { display: none; }
    .atr-backdrop, .atr-drawer { display: none; }
}

/* ==========================================================================
   6. Home — zone 1 : hero split
   ========================================================================== */
.atr-hero { display: grid; grid-template-columns: 1fr; background: var(--atr-cream); }
.atr-hero-text { padding: 54px 26px 58px; }
.atr-hero h1 {
    font-size: clamp(33px, 4.5vw, 48px);
    line-height: 1.14;
    margin: 0 0 20px;
    max-width: 17ch;
}
.atr-hero-lead {
    color: var(--atr-taupe);
    font-size: 15.5px;
    max-width: 30ch;
    margin: 0 0 30px;
}
.atr-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.atr-hero-media { min-height: 280px; }
.atr-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
    .atr-hero { grid-template-columns: 40% 60%; align-items: stretch; }
    .atr-hero-text {
        padding: 76px 44px 76px max(32px, calc((100vw - var(--atr-wrap)) / 2 + 32px));
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .atr-hero-media { min-height: 560px; }
}

/* ==========================================================================
   7. Home — zone 2 : expertise + réassurances + feuillage
   ========================================================================== */
.atr-expertise { position: relative; background: var(--atr-cream); padding: 66px 0 60px; overflow: hidden; }
.atr-expertise h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 22px; }
.atr-expertise p { color: var(--atr-taupe); font-size: 15.5px; max-width: 60ch; }
.atr-leaf {
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 420px;
    color: var(--atr-rule);
    opacity: .75;
    pointer-events: none;
    display: none;
}
@media (min-width: 1000px) { .atr-leaf { display: block; } }
.atr-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 44px;
    max-width: 900px;
}
@media (min-width: 620px) { .atr-trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .atr-trust { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.atr-trust-item { display: flex; align-items: flex-start; gap: 14px; }
.atr-trust-item svg { width: 34px; height: 34px; flex: 0 0 34px; color: var(--atr-olive); }
.atr-trust-item span { font-size: 14px; line-height: 1.45; color: var(--atr-taupe); }
.atr-trust-item strong { display: block; font-weight: 700; color: var(--atr-navy); }

/* ==========================================================================
   8. Home — zones 3 & 5 : bandes photo / texte alternées
   ========================================================================== */
.atr-split { display: grid; grid-template-columns: 1fr; background: var(--atr-white); }
.atr-split-media { min-height: 260px; }
.atr-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atr-split-text { padding: 48px 26px 54px; }
.atr-split-text h2 { font-size: clamp(27px, 3.4vw, 38px); margin: 0 0 18px; }
.atr-split-text p { color: var(--atr-taupe); font-size: 15.5px; max-width: 46ch; margin-bottom: 28px; }
@media (min-width: 900px) {
    .atr-split { grid-template-columns: 62% 38%; align-items: stretch; }
    .atr-split-media { min-height: 460px; }
    .atr-split-text {
        padding: 0 max(32px, calc((100vw - var(--atr-wrap)) / 2 + 32px)) 0 52px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .atr-split--reverse { grid-template-columns: 38% 62%; }
    .atr-split--reverse .atr-split-media { order: 2; }
    .atr-split--reverse .atr-split-text {
        order: 1;
        padding: 0 52px 0 max(32px, calc((100vw - var(--atr-wrap)) / 2 + 32px));
    }
}

/* Zone 5 : carte blanche posée sur un fond végétal */
.atr-pool { position: relative; background: var(--atr-white); }
.atr-pool-grid { display: grid; grid-template-columns: 1fr; }
.atr-pool-side { position: relative; background: var(--atr-cream); padding: 26px; }
.atr-pool-side-bg { position: absolute; inset: 0; }
.atr-pool-side-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atr-pool-card { position: relative; background: var(--atr-white); padding: 34px 30px 38px; }
.atr-pool-card h2 { font-size: clamp(26px, 3.2vw, 35px); margin: 0 0 16px; }
.atr-pool-card p { color: var(--atr-taupe); font-size: 15px; margin-bottom: 26px; }
.atr-pool-media { min-height: 260px; }
.atr-pool-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
    .atr-pool-grid { grid-template-columns: 38% 62%; align-items: stretch; }
    .atr-pool-side { padding: 34px 34px 34px max(24px, calc((100vw - var(--atr-wrap)) / 2 + 12px)); display: flex; align-items: center; }
    .atr-pool-card { padding: 46px 40px 48px; }
    .atr-pool-media { min-height: 440px; }
}

/* ==========================================================================
   9. Home — zone 4 : domaines d'intervention (5 colonnes + filets)
   ========================================================================== */
.atr-domains { background: var(--atr-white); padding: 70px 0 74px; }
.atr-domains h2 { text-align: center; font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 48px; }
.atr-domains-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.atr-domain {
    padding: 26px 4px;
    border-top: 1px solid var(--atr-border);
    text-decoration: none !important;
    display: block;
}
.atr-domain:first-child { border-top: 0; }
.atr-domain svg { width: 38px; height: 38px; color: var(--atr-olive); margin-bottom: 18px; display: block; }
.atr-domain h3 { font-family: var(--atr-sans); font-size: 15.5px; font-weight: 700; margin: 0 0 12px; }
.atr-domain p { color: var(--atr-taupe); font-size: 13.5px; line-height: 1.62; margin: 0; }
.atr-domain:hover h3 { color: var(--atr-olive-dark); }
.atr-domain:hover svg { color: var(--atr-olive-dark); }
@media (min-width: 700px) { .atr-domains-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) {
    .atr-domains-grid { grid-template-columns: repeat(5, 1fr); }
    .atr-domain {
        padding: 6px 26px;
        border-top: 0;
        border-left: 1px solid var(--atr-border);
    }
    .atr-domain:first-child { padding-left: 0; border-left: 0; }
    .atr-domain:last-child { padding-right: 0; }
}

/* ==========================================================================
   10. Home — zone Conseils (derniers articles)
   ========================================================================== */
.atr-advice { background: var(--atr-cream); padding: 68px 0 72px; }
.atr-advice-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 38px;
}
.atr-advice-head h2 { font-size: clamp(27px, 3.4vw, 38px); margin: 0; }
.atr-advice-head p { color: var(--atr-taupe); font-size: 15px; margin: 10px 0 0; max-width: 52ch; }
.atr-cards { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 680px) { .atr-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .atr-cards { grid-template-columns: repeat(3, 1fr); } }
.atr-card {
    background: var(--atr-white);
    border: 1px solid var(--atr-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color .22s ease, transform .22s ease;
}
.atr-card:hover { border-color: var(--atr-rule) !important; transform: translateY(-3px) !important; }
.atr-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--atr-beige); }
.atr-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.atr-card:hover .atr-card-media img { transform: scale(1.04); }
.atr-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.atr-cat {
    align-self: flex-start;
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--atr-olive-dark) !important;
    text-decoration: none !important;
}
.atr-card h3 { font-size: 20px; line-height: 1.3; margin: 0 0 12px; }
.atr-card h3 a { color: var(--atr-navy) !important; text-decoration: none !important; }
.atr-card h3 a:hover { color: var(--atr-olive-dark) !important; }
.atr-card p { color: var(--atr-taupe); font-size: 14px; line-height: 1.62; margin: 0 0 20px; }
.atr-card .atr-meta { margin-top: auto; font-size: 12.5px; color: var(--atr-taupe); }

/* ==========================================================================
   11. Home — zone 6 : bandeau devis
   ========================================================================== */
.atr-quote-band { position: relative; background: var(--atr-cream); padding: 62px 0 66px; overflow: hidden; }
.atr-quote-inner { position: relative; z-index: 2; text-align: center; max-width: 620px; margin: 0 auto; }
.atr-quote-band h2 { font-size: clamp(27px, 3.4vw, 37px); margin: 0 0 16px; }
.atr-quote-band p { color: var(--atr-taupe); font-size: 15px; margin: 0 0 28px; }
.atr-houses {
    position: absolute;
    right: 2%;
    bottom: 0;
    width: 380px;
    color: var(--atr-rule);
    opacity: .8;
    display: none;
    pointer-events: none;
}
@media (min-width: 1100px) { .atr-houses { display: block; } }

/* ==========================================================================
   12. Home — zone 7 : engagement (carte navy + photo)
   ========================================================================== */
.atr-pledge { display: grid; grid-template-columns: 1fr; background: var(--atr-beige); }
.atr-pledge-card { background: var(--atr-navy); color: var(--atr-white); padding: 44px 30px 48px; }
.atr-pledge-card h2 { color: var(--atr-white); font-size: clamp(25px, 3vw, 33px); margin: 0 0 20px; }
.atr-pledge-card p { color: rgba(255, 255, 255, .82); font-size: 14.5px; line-height: 1.7; }
.atr-pledge-card .atr-link { color: var(--atr-white) !important; border-bottom-color: var(--atr-rule); }
.atr-pledge-card .atr-link:hover { color: var(--atr-rule) !important; }
.atr-pledge-media { min-height: 260px; }
.atr-pledge-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
    .atr-pledge { grid-template-columns: 40% 60%; align-items: stretch; }
    .atr-pledge-card {
        padding: 56px 46px 60px max(32px, calc((100vw - var(--atr-wrap)) / 2 + 32px));
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .atr-pledge-media { min-height: 420px; }
}

/* ==========================================================================
   13. Bandeau de page (archives, recherche, 404, pages)
   ========================================================================== */
.atr-pagehead { background: var(--atr-cream); padding: 50px 0 44px; border-bottom: 1px solid var(--atr-border); }
.atr-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--atr-olive-dark);
    margin-bottom: 14px;
}
.atr-pagehead h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 14px; }
.atr-pagehead p { color: var(--atr-taupe); font-size: 15px; max-width: 62ch; margin: 0; }
.atr-pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 0; }
.atr-pill {
    display: inline-block;
    padding: 8px 17px;
    border: 1px solid var(--atr-border);
    border-radius: 999px;
    background: var(--atr-white);
    color: var(--atr-navy) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .2s ease;
}
.atr-pill:hover { border-color: var(--atr-olive) !important; color: var(--atr-olive-dark) !important; }
.atr-pill.is-active {
    background: var(--atr-olive) !important;
    border-color: var(--atr-olive) !important;
    color: var(--atr-white) !important;
}

/* ==========================================================================
   14. Listes d'articles
   ========================================================================== */
.atr-list { padding: 54px 0 66px; background: var(--atr-white); }
.atr-empty {
    background: var(--atr-cream);
    border: 1px solid var(--atr-border);
    padding: 40px 32px;
    text-align: center;
    color: var(--atr-taupe);
}
.atr-pagination { margin-top: 48px; }
.atr-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.atr-pagination .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 9px 13px;
    text-align: center;
    border: 1px solid var(--atr-border);
    color: var(--atr-navy) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
}
.atr-pagination .page-numbers:hover { border-color: var(--atr-olive) !important; color: var(--atr-olive-dark) !important; }
.atr-pagination .page-numbers.current {
    background: var(--atr-olive) !important;
    border-color: var(--atr-olive) !important;
    color: var(--atr-white) !important;
}

/* ==========================================================================
   15. Article (single) & pages
   ========================================================================== */
.atr-article-head { background: var(--atr-cream); padding: 46px 0 42px; border-bottom: 1px solid var(--atr-border); }
.atr-article-head h1 { font-size: clamp(29px, 4vw, 44px); margin: 0 0 16px; max-width: 22ch; }

/* Titre d'article ample ET centré à partir du desktop — le rendu mobile reste inchangé. */
@media (min-width: 1024px) {
    .atr-article-head { padding: 74px 0 62px; text-align: center; }
    .atr-article-head .atr-breadcrumb { margin-bottom: 24px; text-align: center; }
    .atr-article-head h1 {
        font-size: clamp(46px, 4.1vw, 60px);
        line-height: 1.08;
        letter-spacing: -.012em;
        max-width: 19ch;
        margin: 0 auto 26px;
        text-align: center;
    }
    .atr-article-head .atr-meta { font-size: 14px; text-align: center; }
    .atr-single-grid { padding-top: 56px; }
}
.atr-breadcrumb { font-size: 12.5px; color: var(--atr-taupe); margin-bottom: 16px; }
.atr-breadcrumb a { color: var(--atr-taupe) !important; text-decoration: none !important; }
.atr-breadcrumb a:hover { color: var(--atr-olive-dark) !important; }
.atr-meta { font-size: 13px; color: var(--atr-taupe); }
.atr-meta span + span::before { content: '·'; margin: 0 8px; color: var(--atr-rule); }

.atr-single { padding: 0 0 70px; }
.atr-single-cover { margin: 0; }
.atr-single-cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.atr-single-grid { display: grid; grid-template-columns: 1fr; gap: 44px; padding-top: 44px; }
/* Colonnes de grille : min-width 0, sinon la min-width:560px d'un tableau élargit
   la colonne au-delà du viewport et le wrapper .atr-table-scroll devient inopérant. */
.atr-single-grid > * { min-width: 0; }
.atr-content { min-width: 0; max-width: 100%; }
@media (min-width: 1000px) { .atr-single-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.atr-aside { align-self: start; }
@media (min-width: 1000px) { .atr-aside { position: sticky; top: calc(var(--atr-header-h) + 22px); } }
.atr-aside-box { background: var(--atr-cream); border: 1px solid var(--atr-border); padding: 24px 22px 26px; margin-bottom: 26px; }
.atr-aside-box h2 { font-size: 17px; margin: 0 0 16px; }
.atr-aside-list { list-style: none; margin: 0; padding: 0; }
.atr-aside-list li { border-top: 1px solid var(--atr-border); padding: 12px 0; }
.atr-aside-list li:first-child { border-top: 0; padding-top: 0; }
.atr-aside-list a { color: var(--atr-navy) !important; font-size: 14px; line-height: 1.45; text-decoration: none !important; }
.atr-aside-list a:hover { color: var(--atr-olive-dark) !important; }
.atr-aside-cta { background: var(--atr-navy); padding: 26px 22px 28px; }
.atr-aside-cta h2 { color: var(--atr-white); font-size: 19px; margin: 0 0 12px; }
.atr-aside-cta p { color: rgba(255, 255, 255, .8); font-size: 13.5px; margin: 0 0 20px; }

/* Contenu éditorial (the_content) */
.atr-content { font-size: 17px; line-height: 1.78; color: #3B4351; }
.atr-content h2 { font-size: 27px; margin: 42px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--atr-border); }
.atr-content h3 { font-size: 21px; margin: 32px 0 12px; }
.atr-content h4 { font-family: var(--atr-sans); font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
.atr-content a { color: var(--atr-olive-dark) !important; text-decoration: underline !important; }
.atr-content a:hover { color: var(--atr-navy) !important; }
.atr-content img { height: auto; }
.atr-content ul { list-style-type: disc !important; margin: 18px 0 !important; padding-left: 24px !important; }
.atr-content ol { list-style-type: decimal !important; margin: 18px 0 !important; padding-left: 24px !important; }
.atr-content li { display: list-item !important; list-style: inherit !important; margin-bottom: 8px; }
.atr-content blockquote {
    margin: 26px 0;
    padding: 6px 0 6px 22px;
    border-left: 3px solid var(--atr-olive);
    color: var(--atr-taupe);
    font-style: italic;
}
.atr-content figure { margin: 26px 0; }
.atr-content iframe, .atr-content video { max-width: 100%; }
.atr-table-scroll { overflow-x: auto; margin: 26px 0; border: 1px solid var(--atr-border); }
.atr-content table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0 !important; font-size: 15px; }
.atr-content th { background: var(--atr-navy); color: var(--atr-white); text-align: left; padding: 12px 14px; font-weight: 700; }
.atr-content td { padding: 11px 14px; border-top: 1px solid var(--atr-border); }
.atr-content tbody tr:nth-child(even) { background: var(--atr-cream); }

.atr-related { background: var(--atr-cream); padding: 60px 0 66px; border-top: 1px solid var(--atr-border); }
.atr-related h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 32px; }

/* ==========================================================================
   16. Recherche
   ========================================================================== */
.atr-searchform { display: flex; gap: 10px; max-width: 520px; margin-top: 24px; }
.atr-searchform input[type="search"],
.atr-searchform input[type="text"] {
    flex: 1;
    padding: 13px 16px;
    border: 1px solid var(--atr-border);
    background: var(--atr-white);
    font-family: var(--atr-sans);
    font-size: 15px;
    color: var(--atr-navy);
    border-radius: 4px;
}
.atr-searchform input:focus { outline: 2px solid var(--atr-rule); outline-offset: 1px; }
.atr-searchform button {
    background: var(--atr-olive) !important;
    background-color: var(--atr-olive) !important;
    color: var(--atr-white) !important;
    border: 0 !important;
    border-radius: 4px;
    padding: 13px 22px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
}
.atr-searchform button:hover,
.atr-searchform button:focus {
    background: var(--atr-olive-dark) !important;
    background-color: var(--atr-olive-dark) !important;
    color: var(--atr-white) !important;
}

/* ==========================================================================
   17. Footer
   ========================================================================== */
.atr-footer { border-top: 1px solid rgba(255, 255, 255, .14); background: var(--atr-navy); color: rgba(255, 255, 255, .78); margin-top: 0 !important; padding: 58px 0 26px; }
.atr-footer-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
@media (min-width: 640px) { .atr-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .atr-footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.atr-footer h2 {
    font-family: var(--atr-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--atr-rule);
    margin: 0 0 18px;
}
.atr-footer p { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .72); }
.atr-footer ul { list-style: none; margin: 0; padding: 0; }
.atr-footer li { margin-bottom: 11px; }
.atr-footer a { color: rgba(255, 255, 255, .78) !important; font-size: 14px; text-decoration: none !important; }
.atr-footer a:hover { color: var(--atr-rule) !important; background-color: transparent !important; }
.atr-footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.atr-footer-brand svg { width: 38px; height: 40px; color: var(--atr-rule); }
.atr-footer-brand strong { font-size: 15px; font-weight: 700; letter-spacing: .16em; color: var(--atr-white); text-transform: uppercase; line-height: 1.3; }
.atr-footer-brand span { display: block; font-size: 11px; font-weight: 400; letter-spacing: .15em; color: rgba(255, 255, 255, .7); }
.atr-footer-bottom {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .6);
}

/* ==========================================================================
   18. Mobile
   ========================================================================== */
@media (max-width: 768px) {
    :root { --atr-header-h: 66px; }
    .atr-wrap { padding: 0 18px; }
    .atr-header-inner { padding: 0 18px; min-height: 66px; }
    .atr-brand-mark { width: 36px; height: 38px; flex: 0 0 36px; }
    .atr-brand-name { font-size: 14px; letter-spacing: .13em; }
    .atr-brand-sub { font-size: 10.5px; }
    .atr-brand-base { display: none; }
    .atr-hero-text { padding: 38px 18px 40px; }
    .atr-expertise { padding: 44px 0 40px; }
    .atr-domains { padding: 44px 0 46px; }
    .atr-domains h2 { margin-bottom: 26px; }
    .atr-advice { padding: 44px 0 48px; }
    .atr-quote-band { padding: 42px 0 46px; }
    .atr-split-text { padding: 32px 18px 38px; }
    .atr-pledge-card { padding: 34px 20px 38px; }
    .atr-pool-side { padding: 18px; }
    .atr-pool-card { padding: 26px 20px 30px; }
    .atr-pagehead { padding: 32px 0 30px; }
    .atr-list { padding: 32px 0 44px; }
    .atr-single-grid { padding-top: 28px; gap: 32px; }
    .atr-single { padding-bottom: 44px; }
    .atr-related { padding: 40px 0 44px; }
    .atr-content { font-size: 16.5px; }
    .atr-content h2 { font-size: 23px; margin-top: 32px; }
    .atr-content h3 { font-size: 19px; }
    .atr-footer { padding: 40px 0 22px; }
}


/* ==========================================================================
   19. Formulaire (WPForms) — page devis
   ========================================================================== */
.atr-form .wpforms-container { margin: 0 !important; }
.atr-form .wpforms-field-label { font-family: var(--atr-sans) !important; font-size: 14.5px !important; font-weight: 700 !important; color: var(--atr-navy) !important; }
.atr-form .wpforms-field-sublabel { color: var(--atr-taupe) !important; }
.atr-form input[type="text"],
.atr-form input[type="email"],
.atr-form input[type="tel"],
.atr-form input[type="url"],
.atr-form select,
.atr-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid var(--atr-border) !important;
    border-radius: 4px !important;
    background: var(--atr-white) !important;
    font-family: var(--atr-sans) !important;
    font-size: 15.5px !important;
    color: var(--atr-navy) !important;
    box-shadow: none !important;
}
.atr-form input:focus,
.atr-form select:focus,
.atr-form textarea:focus { border-color: var(--atr-olive) !important; outline: 2px solid rgba(138, 148, 72, .18) !important; }
.atr-form button[type="submit"],
.atr-form .wpforms-submit {
    background: var(--atr-olive) !important;
    background-color: var(--atr-olive) !important;
    color: var(--atr-white) !important;
    border: 0 !important;
    border-radius: 5px !important;
    padding: 14px 28px !important;
    font-family: var(--atr-sans) !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    cursor: pointer;
}
.atr-form button[type="submit"]:hover,
.atr-form .wpforms-submit:hover,
.atr-form .wpforms-submit:focus {
    background: var(--atr-olive-dark) !important;
    background-color: var(--atr-olive-dark) !important;
    color: var(--atr-white) !important;
}
.atr-form .atr-trust { grid-template-columns: 1fr; }
@media (min-width: 760px) { .atr-form .atr-trust { grid-template-columns: repeat(3, 1fr); } }


/* ==========================================================================
   20. Pages éditoriales — « Nos guides » & « À propos »
   ========================================================================== */

/* Grille des 6 univers : même langage que les domaines de la home, en 3 colonnes */
@media (min-width: 700px) and (max-width: 1039px) {
    .atr-domains-grid--3 { column-gap: 36px; }
    .atr-domains-grid--3 .atr-domain:nth-child(2) { border-top: 0; }
}
@media (min-width: 1040px) {
    .atr-domains-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .atr-domains-grid--3 .atr-domain {
        padding: 32px 32px 34px;
        border-top: 1px solid var(--atr-border);
        border-left: 1px solid var(--atr-border);
    }
    .atr-domains-grid--3 .atr-domain:nth-child(3n+1) { padding-left: 0; border-left: 0; }
    .atr-domains-grid--3 .atr-domain:nth-child(3n) { padding-right: 0; }
    .atr-domains-grid--3 .atr-domain:nth-child(-n+3) { border-top: 0; padding-top: 6px; }
}
.atr-univers { background: var(--atr-white); padding: 66px 0 70px; }
.atr-univers-head { margin: 0 0 40px; }
.atr-univers-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 14px; }
.atr-univers-head p { color: var(--atr-taupe); font-size: 15.5px; max-width: 62ch; margin: 0; }
.atr-univers .atr-domain p { margin-bottom: 14px; }
.atr-univers-count {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--atr-olive-dark);
}

/* Bandes photo / texte alternées, avec sommaire d'articles réels */
.atr-guide-band { display: grid; grid-template-columns: 1fr; background: var(--atr-white); }
.atr-guide-band--cream { background: var(--atr-cream); }
.atr-guide-media { min-height: 240px; }
.atr-guide-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atr-guide-text { padding: 42px 26px 48px; }
.atr-guide-text h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 16px; }
.atr-guide-text > p { color: var(--atr-taupe); font-size: 15.5px; max-width: 54ch; margin: 0 0 26px; }
.atr-guide-links { list-style: none; margin: 0 0 28px; padding: 0; max-width: 54ch; }
.atr-guide-links li { border-top: 1px solid var(--atr-border); padding: 12px 0; }
.atr-guide-links li:first-child { border-top: 1.5px solid var(--atr-rule); }
.atr-guide-links a { color: var(--atr-navy) !important; font-size: 14.5px; line-height: 1.5; text-decoration: none !important; }
.atr-guide-links a:hover, .atr-guide-links a:focus { color: var(--atr-olive-dark) !important; }
@media (min-width: 900px) {
    .atr-guide-band { grid-template-columns: 46% 54%; align-items: stretch; }
    .atr-guide-media { min-height: 430px; }
    .atr-guide-text {
        padding: 56px max(32px, calc((100vw - var(--atr-wrap)) / 2 + 32px)) 60px 52px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .atr-guide-band--reverse { grid-template-columns: 54% 46%; }
    .atr-guide-band--reverse .atr-guide-media { order: 2; }
    .atr-guide-band--reverse .atr-guide-text {
        order: 1;
        padding: 56px 52px 60px max(32px, calc((100vw - var(--atr-wrap)) / 2 + 32px));
    }
}

/* Bandeau de clôture des pages éditoriales */
.atr-editorial-end { background: var(--atr-cream); border-top: 1px solid var(--atr-border); padding: 58px 0 62px; }
.atr-editorial-end h2 { font-size: clamp(25px, 3vw, 34px); margin: 0 0 14px; }
.atr-editorial-end p { color: var(--atr-taupe); font-size: 15.5px; max-width: 56ch; margin: 0 0 26px; }
.atr-editorial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

/* Page « À propos » — chapeau photo + prose */
.atr-about-lead { display: grid; grid-template-columns: 1fr; background: var(--atr-white); }
.atr-about-media { min-height: 240px; }
.atr-about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atr-about-claim { padding: 42px 26px 46px; background: var(--atr-beige); }
.atr-about-claim p {
    font-family: var(--atr-serif);
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.5;
    color: var(--atr-navy);
    margin: 0 0 18px;
}
.atr-about-claim p:last-child { margin-bottom: 0; }
.atr-about-claim .atr-univers-count { margin-top: 22px; }
@media (min-width: 900px) {
    .atr-about-lead { grid-template-columns: 52% 48%; align-items: stretch; }
    .atr-about-media { min-height: 400px; }
    .atr-about-claim {
        padding: 52px max(32px, calc((100vw - var(--atr-wrap)) / 2 + 32px)) 56px 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
.atr-about-facts { background: var(--atr-white); padding: 0 0 6px; }
.atr-about-facts .atr-trust { margin: 0; }

@media (max-width: 768px) {
    .atr-univers { padding: 42px 0 44px; }
    .atr-univers-head { margin-bottom: 26px; }
    .atr-guide-text { padding: 32px 18px 38px; }
    .atr-about-claim { padding: 30px 18px 34px; }
    .atr-editorial-end { padding: 38px 0 42px; }
}

/* Repères chiffrés de la page « À propos » : 3 colonnes alignées sur la grille, pas centrées */
.atr-about-facts .atr-trust { max-width: none; margin: 44px 0 0; }
@media (min-width: 980px) { .atr-about-facts .atr-trust { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
@media (max-width: 768px) { .atr-about-facts .atr-trust { margin-top: 30px; } }
