/* ==========================================================================
   EstimAppart75 — feuille de style v4 « Ciel de Paris »
   Lumineux : fond blanc bleuté, encre profonde, corail vif, touches ciel et beurre.
   Polices : Bricolage Grotesque (titres) + Figtree (texte).
   PHOTOS (à la racine du dépôt, à côté de style.css) :
     hero-paris.jpg      → photo de l'accueil, format un peu portrait (1400 × 1600 px conseillé)
     hero-interieur.jpg  → fond du bandeau corail d'appel à l'action (facultatif, 2000 × 1200 px)
   Sans photo, un dégradé ciel/beurre quadrillé comme des fenêtres s'affiche.
   Couleur d'accent : modifiez --accent, --accent-h et --blush pour changer de teinte.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Figtree:wght@400;500;600;700&display=swap");

:root {
  --bg: #FBFCFE;
  --ink: #101828;
  --text: #384254;
  --soft: #667085;
  --line: #E4E8EF;
  --sky: #DCEBFF;
  --sky-l: #EEF5FF;
  --butter: #FFF0C2;
  --blush: #FFE3DA;
  --accent: #E5401F;
  --accent-h: #C9341A;
  --ok: #1F8A5B;
  --err: #B3261E;
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 28px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --photo-home: url("hero-paris.jpg");
  --photo-inner: url("hero-interieur.jpg");
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='19' fill='%23E5401F'/%3E%3Cpath d='M13 31 32 14.5 51 31' fill='none' stroke='%23fff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath fill-rule='evenodd' fill='%23fff' d='M19 34.5 32 23.5 45 34.5V47a3 3 0 0 1-3 3H22a3 3 0 0 1-3-3ZM28 50V41a4 4 0 0 1 8 0v9Z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; interpolate-size: allow-keywords; }
@view-transition { navigation: auto; }
body { margin: 0; font: 400 1.07rem/1.7 var(--sans); color: var(--text);
  background: radial-gradient(50% 520px at 92% 0, var(--sky), transparent 75%) no-repeat, radial-gradient(40% 420px at 0% 760px, var(--butter), transparent 75%) no-repeat, var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; color: var(--ink); margin: 0 0 .55em; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.6vw, 5.8rem); font-weight: 800; letter-spacing: -.055em; line-height: .96; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.4rem; letter-spacing: -.03em; line-height: 1.12; }
p { margin: 0 0 1em; text-wrap: pretty; text-align: justify; text-align-last: left; text-justify: inter-word; hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: normal; }
.crumbs, .meta, .req-note, .msg { text-align: left; }
a { color: var(--ink); text-decoration-color: rgba(229, 64, 31, .55); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .25s, text-decoration-color .25s; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

@supports (animation-timeline: scroll()) {
  body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; background: var(--accent); transform-origin: left; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root block); }
}
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- En-tête flottant (capsule fixe) ---------- */
header { position: sticky; top: 0; z-index: 60; padding: .8rem 1rem 0; background: none; pointer-events: none; }
header .wrap {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 1180px; padding: .55rem .6rem .55rem 1.3rem; border-radius: 999px;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
  border: 1px solid rgba(16, 24, 40, .07); box-shadow: 0 8px 24px -14px rgba(16, 24, 40, .25);
  transition: box-shadow .4s var(--ease), background .4s, transform .5s var(--ease);
}
header.scrolled .wrap { background: rgba(255, 255, 255, .94); box-shadow: 0 18px 40px -16px rgba(16, 24, 40, .3); }
.logo { display: inline-flex; align-items: center; font: 800 1.45rem/1 var(--display); letter-spacing: -.045em; color: var(--ink); text-decoration: none; }
.logo::before { content: ""; width: 2.1rem; height: 2.1rem; flex: none; margin-right: .6rem; background: var(--mark) center / contain no-repeat; transition: transform .55s var(--spring); }
.logo:hover::before { transform: rotate(-12deg) scale(1.1); }
.logo span { color: var(--accent); }
.logo:hover { color: var(--ink); }
nav { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .94rem; padding: .6rem .95rem; border-radius: 999px; transition: background .3s, color .25s; }
nav a:hover { background: var(--sky-l); color: var(--ink); }
nav a[aria-current] { background: var(--sky); color: var(--ink); }
nav a:last-child { margin-left: .3rem; background: var(--accent); color: #fff; font-weight: 700; padding: .7rem 1.3rem; transition: background .3s, transform .35s var(--spring); }
nav a:last-child:hover, nav a:last-child[aria-current] { background: var(--ink); color: #fff; transform: scale(1.04); }

/* ---------- Boutons (sans flèche) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; text-decoration: none;
  font: 700 1rem var(--sans); padding: 1.05rem 1.9rem; border-radius: 999px; color: #fff; background: var(--accent);
  box-shadow: 0 14px 28px -12px rgba(229, 64, 31, .7);
  transition: background .3s, transform .4s var(--spring), box-shadow .4s var(--ease);
}
.btn:hover { color: #fff; background: var(--ink); transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 32px -14px rgba(16, 24, 40, .6); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
form .btn { width: 100%; padding: 1.15rem 2rem; font-size: 1.05rem; }

/* ---------- Héros ---------- */
.hero {
  position: relative; padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero h1 { max-width: 15ch; }
.hero p { max-width: 54ch; font-size: 1.2rem; color: var(--text); }
.hero .wrap > *, .hero-in > div > * { animation: rise .9s var(--ease) both; }
.hero .wrap > :nth-child(2), .hero-in > div > :nth-child(2) { animation-delay: .1s; }
.hero .wrap > :nth-child(3), .hero-in > div > :nth-child(3) { animation-delay: .2s; }
.hero .wrap > :nth-child(4), .hero-in > div > :nth-child(4) { animation-delay: .3s; }
.crumbs { display: inline-block; font-size: .88rem; font-weight: 600; color: var(--soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem 1rem; margin-bottom: 1.4rem; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.meta { color: var(--soft); font-size: .95rem; font-weight: 500; }

/* Accueil : texte + photo arrondie + pastille */
.hero:has(.hero-in) { padding-top: clamp(2.5rem, 5vw, 3.8rem); }
.hero-in { --g: clamp(2rem, 5vw, 4.5rem); position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--g); align-items: center; }
.hero-in > div { max-width: 640px; }
.hero-in > img { display: none; } /* l'ancienne illustration est remplacée par la photo */
.hero-in::after {
  content: ""; align-self: stretch; min-height: clamp(400px, 46vw, 660px); border-radius: 44px; box-shadow: 18px 18px 0 -2px var(--sky);
  background-image: var(--photo-home),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 3px, transparent 3px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .55) 0 3px, transparent 3px 64px),
    linear-gradient(155deg, #BFD9F7, #FFE7B8);
  background-size: cover, auto, auto, auto; background-position: center;
  animation: photo 1.2s .1s var(--ease) both;
}
.hero-in::before { /* pastille autocollant */
  content: "Estimation\A gratuite"; white-space: pre; text-align: center; position: absolute; z-index: 2;
  display: grid; place-items: center; width: 7.6rem; height: 7.6rem; border-radius: 50%;
  left: calc((100% - var(--g)) * .55 + var(--g) - 4.2rem); bottom: 2.4rem;
  background: var(--accent); color: #fff; font: 800 1.05rem/1.15 var(--display); letter-spacing: -.02em;
  box-shadow: 0 18px 30px -12px rgba(229, 64, 31, .75); transform: rotate(-10deg);
  animation: sticker 5s 1.2s ease-in-out infinite alternate;
}
.trust { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 2.2rem 0 0; }
.trust li { display: inline-flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1.1rem .45rem .5rem; font-weight: 600; font-size: .94rem; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(16, 24, 40, .25); transition: transform .4s var(--spring); }
.trust li:hover { transform: translateY(-3px) rotate(-1.5deg); }
.trust li::before { content: "✓"; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; flex: none; border-radius: 50%; background: var(--blush); color: var(--accent); font-size: .78rem; font-weight: 800; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.alt { margin: 0 clamp(.5rem, 2vw, 1.5rem); border-radius: clamp(28px, 4vw, 52px); background: var(--sky-l); }
.grid, .cards { margin-top: 2.6rem; display: grid; gap: 1.4rem; }
.grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid + p, .cards + p { margin-top: 2.6rem; }

/* ---------- Cartes colorées ---------- */
.box, .steps li, .card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; transition: transform .5s var(--spring), box-shadow .5s var(--ease), border-color .3s; }
.box:nth-child(3n+1), .steps li:nth-child(3n+1) { background: var(--butter); border-color: transparent; }
.box:nth-child(3n+2), .steps li:nth-child(3n+2) { background: var(--sky); border-color: transparent; }
.box:nth-child(3n), .steps li:nth-child(3n) { background: var(--blush); border-color: transparent; }
.box:hover, .steps li:hover, .card:hover { transform: translateY(-8px) rotate(-.7deg); box-shadow: 0 30px 50px -28px rgba(16, 24, 40, .35); }
.box img { width: 26px; height: 26px; padding: 14px; box-sizing: content-box; margin-bottom: 1.1rem; background: #fff; border-radius: 50%; filter: grayscale(1) contrast(1.7); transition: transform .5s var(--spring); }
.box:hover img { transform: rotate(-10deg) scale(1.1); }
.box p, .steps p { color: var(--ink); opacity: .82; margin: 0; }

/* ---------- Étapes ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 800 4.2rem/1 var(--display); letter-spacing: -.06em; color: var(--accent); margin-bottom: 1rem; }
.steps h2, .steps h3 { font-size: 1.45rem; padding: 0; }

/* ---------- Arrondissements ---------- */
.arr-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); list-style: none; padding: 0; margin: 2.4rem 0 0; }
.arr-grid a { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1rem 1.3rem; text-decoration: none; color: var(--ink); font: 700 1.02rem var(--display); letter-spacing: -.02em; transition: background .3s, color .3s, transform .45s var(--spring), border-color .3s, box-shadow .4s; }
.arr-grid a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 18px 30px -14px rgba(229, 64, 31, .6); }
.arr-grid small { font: 500 .82rem var(--sans); letter-spacing: 0; color: var(--soft); transition: color .3s; }
.arr-grid a:hover small { color: rgba(255, 255, 255, .85); }

/* ---------- Divers ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1.15rem; font-size: .93rem; font-weight: 600; color: var(--ink); transition: background .3s, border-color .3s, transform .4s var(--spring); }
.chips li:hover { background: var(--blush); border-color: transparent; transform: translateY(-2px); }

/* ---------- FAQ ---------- */
details { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 0 1.9rem; margin-bottom: 1.1rem; transition: border-color .3s, box-shadow .4s; }
details:hover { box-shadow: 0 18px 36px -24px rgba(16, 24, 40, .3); }
details[open] { border-color: var(--accent); }
summary { cursor: pointer; font: 700 1.15rem/1.3 var(--display); letter-spacing: -.025em; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.6rem 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--blush); color: var(--accent); font: 600 1.4rem/1 var(--sans); transition: transform .5s var(--spring), background .3s, color .3s; }
details[open] summary::after { transform: rotate(135deg); background: var(--accent); color: #fff; }
details p { margin: 0; padding-bottom: 1.7rem; color: var(--text); }
details[open] p { animation: fade .5s var(--ease) both; }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
details[open]::details-content { block-size: auto; }

/* ---------- Formulaire ---------- */
form { display: grid; gap: 1.25rem; max-width: 660px; margin-top: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 36px; padding: 2.6rem; box-shadow: 0 40px 70px -36px rgba(16, 24, 40, .3), 14px 14px 0 -2px var(--sky); }
label { display: block; font-weight: 600; font-size: .94rem; color: var(--ink); }
label > input:not([type=checkbox]), label > select { display: block; width: 100%; margin-top: .45rem; }
input, select { font: inherit; font-weight: 500; color: var(--ink); background: #F7F9FC; padding: .95rem 1.1rem; border: 1.5px solid #DDE3EC; border-radius: 16px; transition: border-color .25s, box-shadow .25s, background .25s; }
input:hover, select:hover { border-color: #B9C3D3; }
input:focus, select:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(229, 64, 31, .15); }
input[type=checkbox] { accent-color: var(--accent); width: 1.2rem; height: 1.2rem; padding: 0; }
.chk { display: flex; gap: .7rem; font-weight: 400; align-items: flex-start; font-size: .9rem; color: var(--soft); flex-wrap: wrap; }
.chk input { margin-top: .25rem; }
.chk .lt { flex: 1 1 0; min-width: 0; }
.chk .fe { flex: 1 0 100%; }
.req { color: var(--accent); }
.req-note { font-size: .9rem; color: var(--soft); margin: 0; }
.fe { display: block; margin-top: .4rem; color: var(--err); font-size: .88rem; font-weight: 600; animation: shake .4s both; }
[aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.msg { padding: 1rem 1.3rem; border-radius: 16px; background: #E6F6EE; border-left: 4px solid var(--ok); animation: rise .5s var(--ease) both; }
.msg.err { background: #FDECEA; border-left-color: var(--err); color: #7A1812; }
[hidden] { display: none !important; }

/* ---------- Blog / articles ---------- */
.cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.card:hover { color: var(--text); }
.card h3 { margin: 1.1rem 0 .6rem; font-size: 1.5rem; }
.card p { color: var(--soft); flex: 1; }
.tag { align-self: flex-start; font-size: .82rem; font-weight: 700; color: var(--ink); background: var(--butter); padding: .25rem .85rem; border-radius: 999px; }
.card:nth-child(3n+2) .tag { background: var(--sky); }
.card:nth-child(3n) .tag { background: var(--blush); }
.more { align-self: flex-start; font-weight: 700; color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-underline-offset .35s var(--ease); }
.card:hover .more { text-underline-offset: 8px; }
.article { max-width: 740px; }
.article > p:first-child { font-size: 1.3rem; line-height: 1.55; color: var(--ink); font-weight: 500; }
.article h2 { margin-top: 2.8rem; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.article ul { padding-left: 1.2rem; }
.article li { margin-bottom: .55rem; padding-left: .2rem; }
.article li::marker { color: var(--accent); }

.cta-band { position: relative; overflow: hidden; margin-top: 3.4rem; border-radius: 40px; padding: clamp(2rem, 5vw, 3.4rem); background-color: var(--accent); background-image: linear-gradient(rgba(229, 64, 31, .9), rgba(190, 45, 18, .95)), var(--photo-inner); background-size: cover; background-position: center; }
.cta-band::before { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -140px; border-radius: 50%; background: var(--butter); opacity: .22; animation: drift 12s ease-in-out infinite alternate; }
.cta-band > * { position: relative; }
.cta-band h3 { color: #fff; margin-top: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p { color: #FFE9E2; }
.cta-band .btn { background: #fff; color: var(--ink); box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .5); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }

/* ---------- Pied de page ---------- */
footer { margin-top: clamp(2rem, 5vw, 4rem); background: var(--ink); color: #A9B2C3; padding: 3.5rem 0; font-size: .93rem; border-radius: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px) 0 0; }
footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .3); text-decoration-thickness: 1px; }
footer a:hover { color: #FFB4A3; text-decoration-color: #FFB4A3; }
footer strong { color: #fff; font-family: var(--display); font-size: 1.1rem; letter-spacing: -.02em; }
footer .wrap { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between; }
.fcol { flex: 1 1 100%; }
.footarr { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; padding: 0; margin: .7rem 0 0; }

/* ---------- Apparition au défilement (script.js) ---------- */
.js .reveal { opacity: 0; translate: 0 30px; scale: .985; transition: opacity .8s var(--ease), translate .8s var(--ease), scale .8s var(--ease), transform .5s var(--spring), box-shadow .5s var(--ease), border-color .3s, background .3s, color .3s; }
.js .reveal.in { opacity: 1; translate: 0 0; scale: 1; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes photo { from { opacity: 0; transform: translateY(40px) scale(.95) rotate(1.5deg); } to { opacity: 1; transform: none; } }
@keyframes sticker { from { transform: rotate(-12deg) scale(1); } to { transform: rotate(-3deg) scale(1.06); } }
@keyframes drift { to { transform: translate(-70px, 50px) scale(1.15); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shake { 0% { transform: translateX(-5px); opacity: 0; } 40% { transform: translateX(4px); } 100% { transform: none; opacity: 1; } }

/* ---------- Bandeau cookies ---------- */
#tarteaucitronRoot div#tarteaucitronAlertBig { background: var(--ink) !important; font-family: var(--sans) !important; }
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPersonalize2 { background: var(--accent) !important; border-radius: 999px !important; }

/* ---------- Respiration : boutons d'appel à l'action, FAQ, blog ---------- */
/* Bouton seul dans son paragraphe (accueil, arrondissements, FAQ) : plus d'air au-dessus */
p:has(> .btn:only-child) { margin: clamp(2.2rem, 4vw, 3rem) 0 0; }
.hero p:has(> .btn:only-child) { margin-top: clamp(2.2rem, 4vw, 3rem); }
/* Bouton de la bande orange (fin des articles) */
.cta-band p { margin-bottom: 1.8rem; }
/* FAQ : titre plus dégagé, et bouton nettement plus bas que la dernière question */
h2 + details { margin-top: 2.2rem; }
details ~ p:has(> .btn:only-child) { margin-top: clamp(3rem, 6vw, 4.5rem); }
.alt:has(details) { padding-bottom: clamp(4.5rem, 9vw, 7rem); }
/* Blog : on resserre le vide entre l'introduction et les cartes d'articles */
.hero:has(+ section > .wrap > .cards:first-child) { padding-bottom: clamp(1.2rem, 3vw, 2rem); }
.hero + section:has(> .wrap > .cards:first-child) { padding-top: 0; }
.hero + section > .wrap > .cards:first-child { margin-top: 0; }
/* Mention de source sous une donnée chiffrée */
.source { margin: -.2rem 0 0; font-size: .88rem; color: var(--soft); text-align: left; text-align-last: auto; }
.source a { color: var(--soft); text-decoration-color: rgba(102, 112, 133, .45); text-decoration-thickness: 1px; }
.source a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Pages d'arrondissement : on resserre l'espace entre le bouton du haut et « Le X arrondissement en bref » */
.hero:has(.btn[href*="?arr="]) { padding-bottom: clamp(1rem, 2vw, 1.5rem); }
.hero:has(.btn[href*="?arr="]) + section { padding-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  header { padding: .6rem .6rem 0; }
  header .wrap { border-radius: 28px; padding: .6rem .8rem .6rem 1.1rem; }
  nav { gap: 0; }
  nav a { padding: .45rem .6rem; font-size: .88rem; }
  nav a:last-child { padding: .5rem .9rem; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-in::after { min-height: 400px; box-shadow: 10px 10px 0 -2px var(--sky); }
  .hero-in::before { left: auto; right: .8rem; bottom: 1.4rem; width: 6.2rem; height: 6.2rem; font-size: .9rem; }
  form { padding: 1.6rem; border-radius: 28px; }
}
@media (max-width: 480px) {
  p { text-align: left; } /* sur très petit écran, la justification crée de gros trous entre les mots */
}
@media (max-width: 600px) {
  header .wrap { flex-wrap: nowrap; }
  nav a:not(:last-child) { display: none; } /* sur petit écran : logo + bouton, pour garder un en-tête fin */
  nav a:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: none; scale: 1; }
}
