/*
Theme Name: Dépigeonnage Bâtiment
Description: Protection du bâti contre les pigeons et nettoyage des zones souillées.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: depigeonnage-batiment
*/
:root {
    color-scheme: light;
    --paper: #faf7f0;
    --ink: #242a34;
    --dark: #1d2941;
    --leaf: #f1bf89;
    --moss: #574c48;
    --line: #d7cdc0;
    --soft: #efe5d7;
    --gutter: clamp(1rem, 5vw, 5rem);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #a1502d; outline-offset: 4px; }
h1, h2, h3, p { margin: 0 0 .65em; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.9vw, 6.5rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3.65rem); }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.9rem); }
.wrap { width: min(1400px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.reading { width: min(1050px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: fixed; top: -10rem; z-index: 5; padding: .7rem; background: white; }
.skip:focus { top: .5rem; }
.mast { position: relative; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; gap: .85rem 1.65rem; }
.wordmark { display: inline-flex; gap: .7rem; align-items: center; justify-self: start; text-decoration: none; font-size: .83rem; line-height: 1.07; }
.wordmark strong { display: block; font-size: 1.25rem; letter-spacing: -.035em; }
.mark { width: 37px; height: 37px; display: grid; gap: 4px; padding: 8px; background: var(--dark); }
.mark i { height: 4px; background: var(--leaf); }
.mark i:nth-child(2) { width: 74%; }
.mark i:last-child { width: 45%; }
.top-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem clamp(.9rem, 2.7vw, 2.6rem); font-size: .91rem; font-weight: 690; }
.top-links > a { text-decoration: none; }
.top-links > a:hover { text-decoration: underline; }
.menu-disclosure { position: relative; }
.menu-disclosure summary { list-style: none; cursor: pointer; padding-block: .5rem; }
.menu-disclosure summary::-webkit-details-marker { display: none; }
.menu-disclosure summary::after { content: '＋'; margin-left: .35rem; }
.menu-disclosure[open] summary::after { content: '−'; }
.menu-panel { position: absolute; top: calc(100% + .55rem); left: 0; display: grid; width: min(500px, 90vw); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; background: var(--dark); color: var(--paper); padding: 1.25rem; border-top: 4px solid var(--leaf); box-shadow: 0 12px 28px #1d294140; }
.menu-panel .label { color: var(--leaf); margin-bottom: .7rem; }
.menu-panel a { display: block; padding: .32rem 0; }
.label { font: 670 .76rem/1.35 ui-monospace, monospace; letter-spacing: .045em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 49px; padding: .68rem .88rem; background: var(--leaf); color: var(--dark); font-size: .91rem; font-weight: 780; text-decoration: none; border: 1px solid transparent; }
.button:hover { background: #f8d2ab; border-color: var(--dark); }
.top-devis { justify-self: end; }
.stage { background: var(--dark); color: var(--paper); }
.stage-plate { display: grid; grid-template-columns: minmax(340px, .95fr) minmax(0, 1.25fr); max-width: 1650px; margin-inline: auto; }
.stage-copy { padding: clamp(2.5rem, 7vw, 7rem) 0 clamp(2.25rem, 6vw, 6rem) var(--gutter); position: relative; z-index: 1; }
.stage-copy h1 { margin-right: -.95em; max-width: 13ch; text-wrap: wrap; }
.stage-copy .label { color: var(--leaf); margin-bottom: 1.2rem; }
.stage-copy .label span { display: inline-block; width: .52rem; height: .52rem; margin-right: .35rem; background: var(--leaf); }
.stage-copy .intro { max-width: 44ch; color: #eee2d5; margin: 1.25rem 1rem 1.45rem 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; }
.stage-picture { position: relative; min-height: 27rem; }
.stage-picture img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 60%; }
.stage-picture::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark), #1d294176 16%, transparent 57%); pointer-events: none; }
.stage-index { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: var(--soft); color: var(--ink); border-bottom: 1px solid var(--line); padding-inline: var(--gutter); }
.stage-index a { display: flex; justify-content: space-between; gap: .6rem; align-items: center; min-height: 64px; padding: .65rem 1rem; border-inline-start: 1px solid var(--line); text-decoration: none; font-size: .93rem; font-weight: 720; }
.stage-index a:last-child { border-inline-end: 1px solid var(--line); }
.stage-index a:hover { background: var(--leaf); }
.home-read { padding-block: clamp(2.5rem,7vw,6rem); }
.home-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1rem, 4vw, 3.5rem); align-items: start; }
.home-split + .home-split { border-top: 1px solid var(--line); margin-top: 2.6rem; padding-top: 2.6rem; }
.home-split ul { padding-left: 1.2rem; }
.inner-heading { background: var(--soft); border-bottom: 1px solid var(--line); padding: clamp(2rem, 5vw, 4rem) 0; }
.inner-heading h1 { font-size: clamp(2.2rem, 5vw, 5.25rem); max-width: 21ch; }
.inner-heading .wrap > p:last-child { max-width: 69ch; color: var(--moss); }
.crumb { margin-bottom: 1.1rem; font-size: .84rem; }
.feature { max-width: 890px; margin: 1.7rem auto 0; }
.feature img { width: 100%; max-height: 440px; object-fit: cover; }
.prose { max-width: 790px; padding-block: 2.2rem 3.8rem; overflow-wrap: anywhere; }
.prose h2 { margin-top: 1.2em; font-size: clamp(1.55rem, 3.2vw, 2.35rem); }
.prose h3 { margin-top: 1.15em; }
.prose p, .prose li { color: #263244; }
.prose table { display: block; overflow: auto; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: .7rem; }
.article-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.interventions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; padding-block: 2rem 3.5rem; }
.interventions article { background: var(--soft); border: 1px solid var(--line); }
.sector-picture img { width: 100%; aspect-ratio: 2; object-fit: cover; }
.sector-copy { padding: 1.35rem; }
.sector-copy h2 { font-size: clamp(1.45rem,3vw,2.5rem); }
.sector-copy h2 a { text-decoration: none; }
.sector-copy h2 a:hover { text-decoration: underline; }
.guide-head { background: var(--dark); color: var(--paper); padding-block: clamp(1.5rem, 4vw, 3.2rem); }
.guide-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 28rem); align-items: end; gap: .6rem clamp(1rem, 4vw, 3rem); }
.guide-head .crumb { grid-column: 1 / -1; margin: 0; color: #f0e7de; }
.guide-head h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1.08; }
.guide-search { width: 100%; max-width: 540px; }
.guide-search label { display: block; margin-bottom: .35rem; color: #f0e7de; font-size: .89rem; font-weight: 650; }
.guide-search div { display: flex; }
.guide-search input { flex: 1; min-width: 0; min-height: 46px; padding: .55rem .75rem; border: 0; border-radius: 5px 0 0 5px; font: inherit; }
.guide-search button { background: var(--leaf); color: var(--dark); font: inherit; font-weight: 690; border: 0; border-radius: 0 5px 5px 0; padding: .55rem .85rem; cursor: pointer; }
.guide-search button:hover { background: #f8d2ab; }
.guide-list { padding-block: clamp(1.25rem, 3.5vw, 2.3rem) 3.4rem; }
.guide-topics { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.4rem; }
.guide-topics a { display: inline-flex; align-items: center; min-height: 42px; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; font-size: .91rem; font-weight: 630; }
.guide-topics a:hover { text-decoration: underline; }
.guide-topics [aria-current], .guide-topics [aria-pressed="true"] { background: var(--dark); color: var(--paper); }
.guide-count { margin: 0 0 1rem; font-size: .92rem; font-weight: 650; color: var(--moss); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.6rem); }
.guide-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 6px #1d29410d; }
.guide-card:hover, .guide-card:focus-within { border-color: var(--moss); box-shadow: 0 4px 15px #1d29411c; }
.guide-card-link { display: flex; flex-direction: column; height: 100%; border-radius: inherit; text-decoration: none; }
.guide-card-link:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; }
.guide-card-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px 9px 0 0; background: var(--soft); }
.guide-card-media:empty { display: none; }
.guide-card-media img { width: 100%; height: 100%; object-fit: cover; }
.guide-card-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(.95rem, 2vw, 1.35rem); }
.guide-card h2 { margin: 0 0 .55rem; font-size: clamp(1.16rem, 1.65vw, 1.45rem); letter-spacing: -.025em; line-height: 1.22; text-wrap: pretty; overflow-wrap: anywhere; }
.guide-card-topic { margin: 0 0 .5rem; color: var(--moss); font-size: .79rem; font-weight: 700; }
.guide-card-summary { margin: 0 0 .9rem; color: #574c48; font-size: .91rem; line-height: 1.55; }
.guide-card-action { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .65rem; border-top: 1px solid #eee5d9; color: var(--dark); font-size: .86rem; font-weight: 740; }
.guide-list .pagination { margin-top: 1.8rem; }
.guide-list .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.guide-list .page-numbers { display: grid; min-width: 40px; min-height: 40px; place-items: center; padding: .25rem .58rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.guide-list .page-numbers.current { background: var(--dark); color: var(--paper); }
.guide-empty { padding: 1rem; border: 1px solid var(--line); }
.guide-article-head { padding-block: clamp(1.5rem, 4vw, 3.2rem); }
.guide-article-head .wrap { max-width: 970px; }
.guide-article-head h1 { max-width: 30ch; font-size: clamp(1.95rem, 4.1vw, 3.65rem); line-height: 1.08; text-wrap: pretty; }
.guide-article-head .wrap > p:last-child { margin-bottom: 0; }
.guide-article-feature { max-width: 970px; }
.guide-article-feature img { aspect-ratio: 16 / 8; border-radius: 10px; }
.guide-article-feature figcaption { margin-top: .35rem; color: var(--moss); font-size: .79rem; }
.guide-article-content { padding-top: 1.75rem; }
.guide-article-content .guide-summary { margin: 0 0 1.5rem; padding: .9rem 1rem; border-inline-start: 4px solid #ad613c; border-radius: 4px; background: var(--soft); }
.guide-article-content .guide-summary p:last-child { margin-bottom: 0; }
.guide-article-content th { background: var(--soft); }
@media (max-width: 960px) {
    .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .guide-head .wrap { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
}
@media (max-width: 580px) {
    .guide-grid { grid-template-columns: minmax(0, 1fr); }
    .guide-topics { gap: .4rem; }
    .guide-topics a { padding-inline: .55rem; font-size: .85rem; }
}
.quote-layout { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: 1rem; align-items: start; padding-block: 2rem 3rem; }
.form-panel, .contact-side { padding: clamp(1.1rem,3vw,2.5rem); }
.contact-side { background: var(--dark); color: var(--paper); }
.contact-side h2 { font-size: clamp(1.35rem,3vw,2.2rem); }
.contact-side a { color: var(--leaf); overflow-wrap: anywhere; }
.form-panel { background: white; border: 1px solid var(--line); border-top: 5px solid var(--leaf); scroll-margin-top: 1rem; }
.form-panel h2 { font-size: clamp(1.35rem,3vw,2.25rem); }
.quote { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.quote label { display: grid; gap: .28rem; font-weight: 670; }
.quote .quote-full { grid-column: 1 / -1; }
.quote input, .quote textarea { width: 100%; min-width: 0; min-height: 44px; padding: .45rem; border: 1px solid var(--line); font: inherit; }
.quote button { cursor: pointer; }
.trap { position: absolute; left: -10000px; }
.notice { background: var(--soft); padding: .7rem; }
.certificate-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.assurance-card { padding: .85rem; border: 1px solid var(--line); }
.end { background: var(--dark); color: var(--paper); padding-block: clamp(2.5rem,6vw,5rem) 1.35rem; border-top: 5px solid var(--leaf); }
.end-title { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: .7rem 1.5rem; margin-bottom: 1.25rem; }
.end-title h2 { margin: 0; }
.end-title p { margin: 0; max-width: 40ch; color: #eee2d5; }
.end-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid #67776c; }
.end-actions a { display: grid; align-content: center; grid-template-columns: minmax(0,1fr) auto; min-height: 103px; padding: .7rem .9rem; gap: .18rem .55rem; border-inline-start: 1px solid #67776c; text-decoration: none; }
.end-actions a:last-child { border-inline-end: 1px solid #67776c; }
.end-actions a:hover { background: var(--leaf); color: var(--dark); }
.end-actions span { grid-row: 2; font-size: .86rem; }
.end-actions b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.2rem; }
.end-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.2rem; margin-top: 1.5rem; font-size: .86rem; }
.end-meta nav { display: flex; flex-wrap: wrap; gap: .75rem; }
.end-meta p { margin: 0; }
@media (max-width: 850px) {
    .mast-row { grid-template-columns: minmax(0,1fr) auto; padding-block: .7rem; }
    .top-links { grid-column: 1 / -1; grid-row: 2; }
    .stage-plate { display: block; }
    .stage-copy { padding-inline: var(--gutter); }
    .stage-copy h1 { margin-right: 0; max-width: 18ch; font-size: clamp(1.85rem, 8.2vw, 4.5rem); }
    .stage-picture { min-height: unset; aspect-ratio: 2.3; }
    .stage-picture::after { background: linear-gradient(180deg, #1d294144, transparent 65%); }
}
@media (max-width: 650px) {
    .stage-index, .interventions, .quote-layout, .home-split, .end-title, .end-actions { grid-template-columns: minmax(0,1fr); }
    .stage-index a, .end-actions a { min-height: 55px; border: 0; border-bottom: 1px solid var(--line); }
    .stage-index a:last-child, .end-actions a:last-child { border: 0; }
    .end-actions a { border-bottom-color: #67776c; }
    .contact-side { grid-row: 2; }
}
@media (max-width: 410px) {
    .top-devis { min-height: 40px; padding: .4rem; gap: .35rem; font-size: .8rem; }
    .top-links { gap: .4rem .75rem; font-size: .82rem; }
    .menu-panel { width: calc(100vw - 2 * var(--gutter)); }
    .quote, .certificate-grid { grid-template-columns: minmax(0,1fr); }
}
.button span[aria-hidden], .stage-index span[aria-hidden], .end-actions b[aria-hidden], .guide-card-action span {
    position: relative;
    display: inline-block;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    padding: 0;
    font-size: 0;
}
.button span[aria-hidden]::before, .stage-index span[aria-hidden]::before, .end-actions b[aria-hidden]::before, .guide-card-action span::before {
    position: absolute;
    content: '';
    inset: .15rem .16rem auto auto;
    width: .66rem;
    height: .66rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}
.button span[aria-hidden]::after, .stage-index span[aria-hidden]::after, .end-actions b[aria-hidden]::after, .guide-card-action span::after {
    position: absolute;
    content: '';
    inset: .48rem .07rem auto auto;
    width: .9rem;
    border-top: 2px solid currentColor;
    transform: rotate(-45deg);
}

/* Une présentation éditoriale qui fait place aux photographies. */
.mast { background: #fffdf9; }
.mast-row { min-height: 92px; }
.wordmark img { width: 61px; height: 52px; object-fit: contain; }
.wordmark strong { font-size: 1.14rem; line-height: 1.05; letter-spacing: -.035em; }
.top-links a { padding: .4rem .1rem; }
.button { border-radius: 5px; }
.stage { background: var(--paper); color: var(--dark); }
.stage-plate { grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); padding-block: clamp(1.7rem, 5vw, 5rem); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.stage-copy { padding: 0; }
.stage-copy .label { color: #824122; }
.stage-copy h1 { margin-right: 0; max-width: 13ch; font: 700 clamp(2.45rem, 5.4vw, 5.6rem)/.98 Georgia, serif; letter-spacing: -.062em; }
.stage-copy .intro { color: var(--ink); max-width: 47ch; }
.stage-picture { margin: 0; min-height: 0; aspect-ratio: auto; padding: .65rem; background: var(--dark); border-radius: 3px; }
.stage-picture img { position: static; height: auto; aspect-ratio: 5/4; border-radius: 2px; }
.stage-picture::after { content: none; }
.stage-picture figcaption { font-size: .75rem; margin: .35rem .15rem 0; color: #f2ebe1; }
.call-link { font-weight: 730; }
.home-read { padding-block: 1.7rem clamp(2rem, 5vw, 4rem); }
.home-read .interventions { padding-block: .5rem 0; }
.interventions { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; }
.interventions article { border-radius: 8px; overflow: hidden; background: white; }
.sector-picture img { aspect-ratio: 16/10; }
.sector-copy h2,.sector-copy h3 { font-size: clamp(1.3rem,2.25vw,1.9rem); }
.sector-copy h3 a { text-decoration: none; }
.sector-copy h3 a:hover { text-decoration: underline; }
.home-details { border-top: 1px solid var(--line); padding-block: 2rem 3.5rem; }
.inner-heading h1 { font-size: clamp(2rem,4vw,3.65rem); line-height: 1.1; }
.quote-layout { grid-template-columns: minmax(0,1.5fr) minmax(0,.75fr); gap: clamp(1rem,3vw,2.5rem); }
.form-panel,.contact-side { border-radius: 8px; }
.feature img { border-radius: 8px; }
.feature figcaption { font-size: .8rem; margin-top: .4rem; }
.footer-lead { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; padding-bottom: 1.8rem; border-bottom: 1px solid #718097; }
.footer-lead p { margin: 0; }
.footer-columns { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.3rem; margin-top: 1.8rem; }
.footer-columns h3 { font-size: 1.1rem; letter-spacing: 0; }
.footer-columns nav a { display: table; margin-bottom: .35rem; }
.end-meta { padding-top: 1rem; border-top: 1px solid #718097; }
@media(max-width: 960px) { .interventions { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 850px) { .stage-plate { display: grid; grid-template-columns: minmax(0,1fr); } .stage-picture img { aspect-ratio: 5/3; } }
@media(max-width: 650px) { .interventions,.quote-layout,.footer-columns { grid-template-columns: minmax(0,1fr); } .footer-columns { gap: 1.5rem; } }
