/* peintre-lyon.com, feuille de style unique.
   Aucune ressource externe : la police d'origine venait de Google Fonts, ce qui
   bloquait le rendu et envoyait l'IP du visiteur à un tiers. Remplacée par la
   pile système. */

:root {
  --primary: #0F2E4C;
  --primary-dark: #0A2137;
  --primary-light: #1D5B8F;
  --accent: #E8940C;
  --accent-dark: #C97A05;
  --ink: #16202B;
  --muted: #55636F;
  --line: #DFE5EB;
  --bg: #FFFFFF;
  --bg-soft: #F5F7F9;
  --bg-dark: #0F2E4C;
  --ok: #0B7A54;
  --err: #B42318;
  --warn: #8A5A00;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 32, 43, .06), 0 8px 24px -12px rgba(16, 32, 43, .18);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; color: var(--primary); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.ico { vertical-align: -.18em; flex: none; }
.muted { color: var(--muted); font-size: .95rem; }
.optional { color: var(--muted); font-weight: 400; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #000; padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 0; }

.section-container { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section-container.narrow { max-width: 820px; }
.section { padding: 56px 0; }
.section-light { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #EAF1F7; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-header p { color: #B9CCDD; }
.section-header { max-width: 700px; margin-bottom: 32px; }
.section-header p { color: var(--muted); margin: 0; }
.prose h2 { margin-top: 1.8em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .96rem; cursor: pointer;
  text-decoration: none; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #1A1204; }
.btn-accent:hover { background: var(--accent-dark); color: #1A1204; }
.btn-phone { background: var(--primary); color: #fff; }
.btn-phone:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-outline:hover { background: var(--bg-soft); color: var(--primary); }
.section-dark .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .35); }
/* Contour clair sur fond sombre. Sert au bouton devis de l'en-tête : deux
   boutons pleins côte à côte s'annulent, l'accent reste sur le téléphone. */
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .93rem; }

/* ---------- En-tête ----------
   Le bandeau d'informations qui coiffait l'en-tête a été retiré le 2026-08-18.
   Ses deux arguments (« devis sous 24 h », « Lyon et Grand Lyon ») sont déjà
   dans le hero et dans les balises ; il ne servait donc plus qu'à porter le
   numéro, qui est maintenant dans l'en-tête même. Structure retenue, calquée
   sur epaviste-grenoble.com : logo à gauche, numéro en pastille à droite,
   visible sur toutes les pages et à tous les formats sans scroller. */
.header-main {
  background: var(--primary); color: #fff;
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 2px 16px rgba(10, 33, 55, .28);
}
.nav-container {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 16px; min-height: 70px;
}
.logo-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-icon {
  width: 40px; height: 40px; border-radius: var(--radius); background: rgba(255, 255, 255, .13);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.logo-text { font-weight: 800; font-size: 1.12rem; line-height: 1.05; display: block; }
.logo-text b { color: var(--accent); }
/* L'extension en plus petit : le mot-marque lit comme un domaine sans coûter la
   largeur de quatre caracteres pleins, ce qui garderait l'en-tete sur une ligne. */
/* Meme corps et meme blanc que le reste du mot-marque : en gris-bleu, l'extension
   se lisait comme un caractere plus petit alors qu'elle fait la meme taille. */
.logo-text .tld { color: inherit; }
.logo-text small { display: block; font-size: .68rem; font-weight: 600; color: #A7C0D6; letter-spacing: .02em; }

.nav-main { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #E4EDF5; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; display: inline-block; }
.nav-links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-cta { margin-left: 6px; }

/* Pastille téléphone. Texte sombre sur l'orange : du blanc n'y passerait pas
   le rapport de contraste 4,5:1. */
.header-phone {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  padding: 11px 20px; border-radius: 999px;
  background: var(--accent); color: #1A1204;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .01em;
  white-space: nowrap; text-decoration: none;
  box-shadow: 0 0 0 4px rgba(232, 148, 12, .17);
  transition: background-color .16s, box-shadow .16s;
}
.header-phone:hover { background: #FFA61C; color: #1A1204; box-shadow: 0 0 0 6px rgba(232, 148, 12, .26); }
/* Mot d'appel affiche seulement quand la pastille est etiree et qu'il reste de
   la place : il remplit l'orange avec du contenu plutot qu'avec du vide. */
.tel-label { display: none; }
/* Le mot d'appel ne sort que quand la pastille est assez large pour l'accueillir :
   il remplit l'orange avec du contenu plutot qu'avec du vide. Le combine saute
   sous 416 px, ou il ne rentre plus a cote d'un mot-marque en forme de domaine. */
@media (min-width: 500px) and (max-width: 620px) { .tel-label { display: inline; } }
@media (max-width: 415px) { .header-phone .ico { display: none; } }

.menu-toggle { display: none; }
.nav-toggle { display: none; }

.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .86rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 52px 0 60px; }
.hero-media { display: none; }
.hero-compact { padding: 40px 0 34px; }
.hero-compact .section-container { max-width: 900px; }
.hero-grid {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .84rem; font-weight: 700; color: var(--primary);
}
.lead { font-size: 1.09rem; color: var(--muted); max-width: 62ch; }
.promise-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; }
.promise-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.promise-list .ico { color: var(--ok); margin-top: .18em; }

.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; }
.quote-card-head h2 { font-size: 1.22rem; margin-bottom: .3em; }
.quote-card-head p { color: var(--muted); font-size: .9rem; }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .96rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form-control:focus { border-color: var(--primary-light); }
textarea.form-control { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px; }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.form-card legend { font-weight: 800; font-size: 1.05rem; color: var(--primary); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.step-num {
  width: 27px; height: 27px; border-radius: 50%; background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 800; flex: none;
}

/* ---------- Cartes ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.card-media { position: relative; }
.card-media img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.card-tag {
  position: absolute; left: 12px; bottom: 12px; background: rgba(15, 46, 76, .92); color: #fff;
  padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h2, .card-body h3 { margin: 0; font-size: 1.08rem; }
.card-body h2 a, .card-body h3 a { color: var(--primary); text-decoration: none; }
.card-body h2 a:hover, .card-body h3 a:hover { text-decoration: underline; }
.card-body p { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }

/* ---------- Explications, points, Q/R ---------- */
.explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.explainer h3 { color: var(--primary); }
.explainer p { color: var(--muted); font-size: .96rem; margin: 0; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 28px 0; }
.point { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 20px; }
.point h3 { display: flex; align-items: flex-start; gap: 9px; font-size: 1rem; margin-bottom: .45em; }
.point h3 .ico { color: var(--accent-dark); margin-top: .15em; }
.point p { color: var(--muted); font-size: .93rem; margin: 0; }

.qa { display: grid; gap: 6px; }
.qa article { border-top: 1px solid var(--line); padding: 20px 0; }
.qa article:last-child { border-bottom: 1px solid var(--line); }
.qa h3 { margin-bottom: .4em; }
.qa p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps h3 { margin-bottom: .3em; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }

.figure-wide { margin: 0 0 28px; }
.figure-wide img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 8 / 5; object-fit: cover; }

.price-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 30px 0 0; }
.price-box h2 { font-size: 1.1rem; margin-bottom: .3em; }
.price-value { font-size: 1.7rem; font-weight: 800; color: var(--accent-dark); margin: 0 0 .35em; }
.price-box p:last-child { margin: 0; color: var(--muted); font-size: .93rem; }

.table-wrap { overflow-x: auto; margin: 0 0 14px; }
table caption { text-align: left; font-size: .86rem; color: var(--muted); padding-bottom: 8px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .95rem; }
thead th { background: var(--primary); color: #fff; font-size: .88rem; }
tbody tr:nth-child(even) { background: var(--bg-soft); }

/* ---------- Simulateur ---------- */
.simulator { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg); padding: 28px; }
.simulator-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.sim-group { margin-bottom: 20px; }
.sim-group label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: #DCE8F2; }
.sim-group input[type="range"] { width: 100%; accent-color: var(--accent); }
.sim-group output { color: var(--accent); font-weight: 800; font-size: 1.15rem; }
.sim-result { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; }
.sim-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.sim-price { font-size: 1.55rem; font-weight: 800; color: var(--primary); margin: 0 0 12px; }
.sim-note { font-size: .84rem; color: var(--muted); margin: 0 0 18px; }

/* ---------- Secteurs ---------- */
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sector-card {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink);
  min-height: 58px;
}
.sector-card:hover { border-color: var(--primary-light); background: var(--bg-soft); }
.sector-name { font-weight: 700; font-size: .96rem; }
.sector-zip { color: var(--muted); font-size: .85rem; margin-left: auto; }
.sector-arrow { color: var(--primary-light); }

.sector-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.sector-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sector-item h3 { margin-bottom: .3em; font-size: 1.05rem; }
.sector-item p { margin: 0 0 .5em; font-size: .92rem; color: var(--muted); }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--primary); color: #fff; padding: 52px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C6DAEA; max-width: 55ch; margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-ico {
  width: 44px; height: 44px; border-radius: var(--radius); background: var(--bg-soft);
  color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.contact-label { font-size: .82rem; color: var(--muted); margin: 0; }
.contact-value { font-weight: 700; font-size: 1rem; margin: 0; }

/* ---------- Encarts ---------- */
.notice { border-radius: var(--radius); padding: 18px 20px; margin: 0 0 22px; border-left: 4px solid; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice-warning { background: #FFF8E6; border-color: var(--warn); color: #5B3D00; }
.notice-error { background: #FEF3F2; border-color: var(--err); color: #7A1710; }
.notice-success { background: #ECFDF3; border-color: var(--ok); color: #07543A; }
.notice-success h1, .notice-success h2 { color: #07543A; }
.notice-lg { text-align: center; border-left: 0; border-top: 5px solid var(--ok); padding: 40px 30px; }
.notice-ico { color: var(--ok); display: block; margin-bottom: 10px; }
.legal-missing { color: var(--warn); font-style: italic; }
.legal-list { list-style: none; padding: 0; }
.legal-list li { border-bottom: 1px solid var(--line); padding: 9px 0; font-size: .96rem; }
.side-note { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-top: 28px; }
.side-note h2 { font-size: 1.1rem; }
.side-note ol { margin: 0 0 1em; padding-left: 1.3em; }
.side-note li { margin-bottom: .5em; font-size: .95rem; }

.error-page { text-align: center; padding: 30px 0 20px; }
.error-code { font-size: 4.5rem; font-weight: 800; color: var(--accent); line-height: 1; margin: 0; }
.error-links { list-style: none; padding: 0; margin: 26px auto 0; max-width: 460px; text-align: left; }
.error-links li { border-bottom: 1px solid var(--line); }
.error-links a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; text-decoration: none; font-weight: 600; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--primary-dark); color: #B7CADC; padding: 52px 0 24px; font-size: .93rem; }
.footer-grid {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px;
}
.site-footer h2 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; }

/* Colonnes repliables : sur grand écran, le <summary> doit ressembler à un
   simple titre et ne pas réagir au clic. */
.foot-group > summary { list-style: none; }
.foot-group > summary::-webkit-details-marker { display: none; }
.foot-group > summary::after { content: none; }
@media (min-width: 981px) {
  .foot-group > summary { pointer-events: none; }
}
.site-footer .logo-icon { background: rgba(255, 255, 255, .12); }
.site-footer .logo-text { color: #fff; }
.site-footer .logo-text b { color: var(--accent); }
.footer-brand p { margin: 14px 0 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #B7CADC; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  max-width: var(--wrap); margin: 34px auto 0; padding: 18px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.footer-legal a { color: #B7CADC; }

/* ---------- Barre d'action mobile ---------- */
.sticky-cta { display: none; }
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 18px 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.consent-banner p { margin: 0; font-size: .9rem; }
.consent-banner div { display: flex; gap: 10px; }

/* ---------- Adaptatif ---------- */
@media (max-width: 980px) {
  .hero-grid, .explainer, .simulator-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }

  /* En une colonne, le hero se reduisait a un empilement de texte sans aucune
     accroche visuelle. La photo passe en fond du bloc, le degrade navy monte
     jusqu'a l'opaque en bas pour que la liste et les boutons restent lisibles,
     et la carte de devis blanche redevient le point clair de la page. */
  .hero-visual { position: relative; isolation: isolate; background: var(--primary-dark); padding: 30px 0 40px; }
  /* La bande garde le ratio exact de la photo (1200x750) au lieu de couvrir tout
     le bloc : en cover sur 800 px de haut, l'image se reduit a une tranche
     verticale illisible. Ici elle s'affiche entiere, puis fond dans le navy. */
  .hero-visual .hero-media { display: block; position: absolute; top: 0; left: 0; width: 100%; height: clamp(260px, 78vw, 360px); z-index: -1; }
  .hero-visual .hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 32% 38%; }
  .hero-visual .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 33, 55, .20) 0%, rgba(10, 33, 55, .60) 40%, rgba(10, 33, 55, .92) 80%, var(--primary-dark) 100%);
  }
  .hero-visual .hero-copy { color: #fff; }
  .hero-visual .hero-copy h1 { color: #fff; }
  .hero-visual .hero-copy .lead { color: #C6D8E8; }
  .hero-visual .hero-copy .promise-list li { color: #E4EDF5; }
  .hero-visual .hero-copy .promise-list .ico { color: #5FD08A; }
  .hero-visual .hero-copy .eyebrow {
    background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff;
    backdrop-filter: blur(2px);
  }
  .hero-visual .hero-copy .btn-outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
  .hero-visual .hero-copy .btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
  .hero-visual .quote-card { margin-top: 30px; }

  /* Pied de page : 23 liens empilés faisaient 1 359 px de haut, soit plus d'un
     écran et demi. Chaque groupe devient un accordéon. */
  .footer-grid { gap: 0; }
  .footer-brand { margin-bottom: 22px; }
  .footer-brand .btn { display: none; }   /* doublon de la barre d'action fixe */
  .foot-group { border-top: 1px solid rgba(255, 255, 255, .14); }
  .foot-group > summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 15px 2px; cursor: pointer;
  }
  .foot-group > summary h2 { margin: 0; }
  .foot-group > summary::after {
    content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
    border-right: 2px solid #B7CADC; border-bottom: 2px solid #B7CADC;
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
  }
  .foot-group[open] > summary::after { transform: rotate(-135deg); }
  .foot-group .footer-links { padding-bottom: 14px; }
  .foot-group .footer-links li { margin-bottom: 2px; }
  .foot-group .footer-links a { display: block; padding: 9px 2px; }
}

@media (max-width: 860px) {
  .nav-container { flex-wrap: wrap; gap: 12px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .32);
    border-radius: var(--radius); background: transparent; color: #fff; cursor: pointer;
  }
  /* C'est la pastille qui porte la marge automatique : elle sépare le logo du
     bouton de menu. Ligne visible = logo | téléphone | menu, la navigation
     passe en dessous (order: 3) et reste repliée. */
  .header-phone { margin-left: auto; }
  .nav-main {
    display: none; order: 3; width: 100%; margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 12px;
  }
  .nav-toggle:checked ~ .nav-main { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li + li:not(.nav-cta) { border-top: 1px solid rgba(255, 255, 255, .13); }
  .nav-links a { padding: 14px 4px; border-radius: 0; }
  .nav-cta { margin: 12px 0 4px; }
  .nav-cta a { width: 100%; justify-content: center; border-radius: var(--radius); padding: 13px; }
  .form-row { grid-template-columns: 1fr; }
  body { padding-bottom: 74px; }
  .sticky-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 12px;
  }
  .sticky-cta .btn { flex: 1; font-size: .9rem; padding: 12px 10px; }
  .consent-banner { bottom: 86px; }
}

/* Logo, numéro et bouton de menu doivent tenir sur UNE ligne : dès qu'un
   élément passe à la suivante, l'en-tête sticky double de hauteur et mange la
   ligne de flottaison. Budget à 360 px = 360 − 28 de padding − 20 de gouttières
   = 312 px pour trois éléments. Le pictogramme du logo (36 px + 10 de
   gouttière) est donc déposé : il est décoratif, le mot-marque porte la marque.
   Ordre de sacrifice si un élément devait encore s'ajouter : sous-titre, puis
   pictogramme, puis corps du mot-marque. Jamais le numéro. */
@media (max-width: 620px) {
  .nav-container { gap: 10px; padding: 8px 14px; min-height: 60px; }
  .logo-brand { flex: none; }
  .logo-icon { display: none; }
  .logo-text { font-size: clamp(.88rem, 3vw, 1.1rem); white-space: nowrap; }
  .logo-text small { display: none; }
  /* La pastille comble la ligne pour qu'aucun trou ne se forme entre le
     mot-marque et le bouton de menu. margin-left doit repasser a 0 : une marge
     auto avale tout l'espace libre et annule le flex-grow.
     max-width borne l'etirement : au-dela, c'est de l'orange vide autour du
     numero, ce qui est pire qu'un ecart. */
  .header-phone {
    flex: 1 1 auto; justify-content: center; margin-left: 0; max-width: 300px;
    padding: 10px 14px; gap: 8px; box-shadow: none;
    font-size: clamp(.92rem, 2.9vw, 1.08rem);
  }
  .menu-toggle { width: 42px; height: 42px; }
}

/* Sous 380 px (iPhone SE et consorts) il ne reste plus rien à rogner ailleurs :
   le mot-marque et la pastille se resserrent ensemble. */
@media (max-width: 380px) {
  .nav-container { gap: 6px; padding: 8px 10px; }
  .logo-text { font-size: .84rem; }
  /* Etape suivante de l'ordre de sacrifice : sous 380 px l'extension saute.
     Le nom de marque reste lisible, le numero garde sa taille, et la ligne
     tient toujours en une seule rangee. */
  .logo-text .tld { display: none; }
  .header-phone { padding: 8px 10px; font-size: .9rem; gap: 5px; }
  .menu-toggle { width: 40px; height: 40px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  .form-card { padding: 20px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Galerie de chantiers (/realisations) ----------
   Les photos gardent leur cadrage d'origine : certaines sont verticales, d'autres
   horizontales, et rien n'est recoupé à un format commun. La grille aligne donc
   les vignettes par le haut (align-items: start) et accepte des bas de ligne
   irréguliers ; c'est le prix à payer pour ne pas amputer une photo de chantier.
   Les width/height des <img> viennent de data/realisations.json, donc aucun CLS. */
.note {
  display: flex; align-items: center; gap: 9px;
  margin: 16px 0 0; font-size: .9rem; color: var(--muted);
}
.note .ico { color: var(--primary); flex: none; }

.chantier { margin: 0 0 56px; }
.chantier:last-child { margin-bottom: 0; }
.chantier-head { max-width: 70ch; margin: 0 0 24px; }
.chantier-head h2 { margin: 0 0 .45em; }
.chantier-head p { color: var(--muted); margin: 0 0 .8em; }
.chantier-head p:last-child { margin-bottom: 0; }
.chantier-tag {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; font-size: .82rem; font-weight: 700; color: var(--primary);
}

.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px; align-items: start;
}
.photo-grid figure { margin: 0; }
.photo-grid img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-lg); background: var(--bg-soft);
}
.photo-grid figcaption {
  margin-top: 9px; font-size: .87rem; line-height: 1.45; color: var(--muted);
}

@media (max-width: 620px) {
  .chantier { margin-bottom: 40px; }
  .photo-grid { gap: 18px; }
}

/* Aperçu sur l'accueil : quatre vignettes, sans légende, vers /realisations. */
.photo-grid-teaser { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.photo-grid-teaser img { aspect-ratio: 4 / 5; object-fit: cover; }
.band-more { margin-top: 26px; }

/* ---------- En-tête entre 981 et 1219 px ----------
   La navigation ne se replie qu'à 980 px. Entre ce seuil et ~1220 px, le sixième
   lien (« Réalisations », ajouté le 2026-08-24) ne laissait plus assez de place :
   le mot-marque et le bouton devis passaient chacun sur deux lignes et l'en-tête
   sticky doublait de hauteur. Même ordre de sacrifice que sur mobile : on resserre
   les gouttières, puis le sous-titre du logo, JAMAIS la pastille téléphone. */
@media (min-width: 981px) and (max-width: 1219px) {
  .nav-container { gap: 10px; }
  .logo-brand { flex: none; }
  .logo-text { white-space: nowrap; }
  .logo-text small { display: none; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; font-size: .9rem; }
  .nav-cta { margin-left: 4px; }
  .nav-cta .btn { padding: 9px 13px; font-size: .88rem; white-space: nowrap; }
  .header-phone { padding: 10px 15px; font-size: 1rem; gap: 7px; }
}
/* Sous 1100 px il manque encore une soixantaine de pixels : le pictogramme du
   logo part à son tour (40 px + sa gouttière), le mot-marque porte la marque à
   lui seul. Sans ce palier, `white-space: nowrap` ci-dessus transformait le
   passage à la ligne en débordement et la pastille téléphone sortait de l'écran. */
@media (min-width: 981px) and (max-width: 1099px) {
  .logo-icon { display: none; }
  .nav-links a { padding: 8px 7px; font-size: .88rem; }
  .nav-cta .btn { padding: 9px 11px; font-size: .86rem; }
  .header-phone { padding: 10px 13px; font-size: .97rem; gap: 6px; }
}

/* Prix d'une carte sans photo. Deux prestations n'ont aucune photo qui montre ce
   qu'elles décrivent (appartements anciens, papier peint) : leur carte part sans
   image plutôt qu'avec une image hors sujet. La pastille de prix, qui vit
   normalement sur la photo, repasse alors en tête du corps de carte. */
.card-tag-inline { position: static; align-self: flex-start; }

/* Mention sous une image de synthèse. Discrète, mais toujours visible : la
   distinction entre photo de chantier et illustration est aussi dans les
   mentions légales, elle ne doit pas exister qu'à cet endroit. */
.figure-wide figcaption {
  margin-top: 9px; font-size: .85rem; color: var(--muted); line-height: 1.45;
}
