/* Tours Toitures — feuille de style de la candidate locale v1.0.
   Identité « ligne continue » (identite-ligne-continue-v1.0) : ardoise #26343D, pierre #F4F0E7,
   cuivre #99502F, loire #577B89, blanc. Compléments du brief maquettes v0.3 §8 : CTA vert #2F6B46,
   fonds #F5F6F1 / #EEF7FB, texte #22332C. Typographie système sans-serif (aucune police externe). */

:root {
  --ardoise: #26343D;
  --ardoise-2: #1C2830;
  --pierre: #F4F0E7;
  --cuivre: #99502F;
  --cuivre-fonce: #7E4226;
  --loire: #577B89;
  --blanc: #FFFFFF;
  --fond: #F5F6F1;
  --fond-aide: #EEF7FB;
  --vert: #2F6B46;
  --vert-fonce: #26573A;
  --vert-pale: #EAF2E5;
  --texte: #22332C;
  --texte-doux: #4A5B54;
  --bordure: #D8DED5;
  --erreur: #A33B2E;
  --ok: #2F6B46;
  --ombre: 0 1px 3px rgba(34, 51, 44, .12);
  --rayon: 10px;
  --cookie-panneau-h: 0px;
  --barre-appel-h: 58px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texte);
  background: var(--blanc);
  font-size: 18px;
  line-height: 1.6;
}
body.avec-barre { padding-bottom: var(--barre-appel-h); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ardoise); margin: 1.4em 0 .5em; }
h1 { font-size: 2.4rem; margin-top: 0; }
h2 { font-size: 1.6rem; border-bottom: 2px solid var(--pierre); padding-bottom: .3em; }
h3 { font-size: 1.2rem; }
p { margin: .8em 0; }
a { color: var(--cuivre); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--cuivre-fonce); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--loire); outline-offset: 2px; border-radius: 4px;
}
strong { color: var(--ardoise); }
main ul, main ol { padding-left: 1.3em; }
main li { margin: .35em 0; }
blockquote {
  margin: 1.2em 0; padding: .9em 1.1em;
  background: var(--fond-aide); border-left: 4px solid var(--loire);
  border-radius: 0 var(--rayon) var(--rayon) 0;
}
blockquote p { margin: 0; }
table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .95rem; background: var(--blanc); }
th, td { border: 1px solid var(--bordure); padding: .55em .7em; text-align: left; vertical-align: top; }
th { background: var(--pierre); color: var(--ardoise); }
tbody tr:nth-child(even) { background: var(--fond); }

/* ---------- Lien d'évitement ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ardoise); color: var(--blanc); font-weight: 700;
  padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100; text-decoration: none;
}
.skip:focus { left: 0; color: var(--blanc); }

#services, #demande { scroll-margin-top: 5.5rem; }

/* ---------- En-tête ---------- */
.entete {
  background: var(--ardoise); color: var(--blanc);
  position: sticky; top: 0; z-index: 40;
  box-shadow: var(--ombre);
}
.entete-inner {
  max-width: 1180px; margin: 0 auto; padding: .6rem 1rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.logo img { display: block; height: 44px; width: auto; border-radius: 6px; }
.nav-principale { display: flex; align-items: center; gap: .2rem; margin-left: auto; flex-wrap: wrap; }
.nav-principale > a, .nav-principale details > summary {
  color: var(--blanc); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .5rem .7rem; border-radius: 8px; cursor: pointer; list-style: none; white-space: nowrap;
}
.nav-principale > a:hover, .nav-principale details > summary:hover { background: var(--ardoise-2); }
.nav-principale details { position: relative; }
.nav-principale details > summary::-webkit-details-marker { display: none; }
.nav-principale details > summary::after { content: " ▾"; font-size: .8em; color: var(--pierre); }
.sous-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px;
  background: var(--blanc); color: var(--texte); border-radius: var(--rayon);
  box-shadow: 0 8px 24px rgba(34, 51, 44, .25); padding: .5rem; z-index: 50;
}
.sous-menu a { display: block; padding: .45rem .6rem; border-radius: 6px; text-decoration: none; color: var(--texte); }
.sous-menu a:hover { background: var(--pierre); color: var(--ardoise); }
.sous-menu a .famille { font-weight: 700; color: var(--ardoise); display: block; }
.sous-menu a .detail { font-size: .85rem; color: var(--texte-doux); }
.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: .4rem; }
.nav-tel { color: var(--blanc); font-weight: 700; text-decoration: none; white-space: nowrap; font-size: .95rem; }
.nav-actions .nav-devis { background: transparent; border-color: var(--pierre); color: var(--blanc) !important; }
.nav-actions .nav-devis:hover { background: var(--pierre); color: var(--ardoise) !important; }
.bouton {
  display: inline-block; background: var(--vert); color: var(--blanc) !important;
  font-weight: 700; padding: .55rem 1rem; border-radius: 8px; text-decoration: none;
  border: 2px solid var(--vert); cursor: pointer; font-size: 1rem; text-align: center;
}
.bouton:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); }
.bouton-secondaire {
  display: inline-block; background: var(--blanc); color: var(--ardoise) !important;
  border: 2px solid var(--ardoise); font-weight: 700; padding: .55rem 1rem;
  border-radius: 8px; text-decoration: none; font-size: 1rem; text-align: center;
}
.bouton-secondaire:hover { background: var(--pierre); }
.burger {
  display: none; background: none; border: 2px solid var(--pierre); border-radius: 8px;
  color: var(--blanc); font-size: 1.4rem; padding: .15rem .6rem; cursor: pointer; margin-left: auto;
}
#menu-mobile { display: none; }

/* ---------- Structure ---------- */
.conteneur { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.fil-ariane { font-size: .9rem; color: var(--texte-doux); padding: .8rem 0 0; }
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.fil-ariane li + li::before { content: "›"; margin-right: .4rem; color: var(--loire); }
main { padding-bottom: 2.5rem; }
section.centre { padding: 1.5rem 0; }
.etroit { max-width: 860px; }

/* ---------- Accueil : hero ---------- */
.hero { background: linear-gradient(180deg, var(--pierre) 0%, var(--blanc) 100%); }
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 2rem 1rem;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 2rem; align-items: start;
}
.hero-texte h1 { font-size: 2.6rem; }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.1rem 0; }
#place-form-ordinateur:empty, #place-form-mobile:empty { display: none; }

/* ---------- Aide au choix ---------- */
.aide { margin: 1.2rem 0; }
.aide-btn {
  background: var(--blanc); border: 2px solid var(--loire); color: var(--ardoise);
  font-weight: 700; font-size: 1rem; padding: .55rem 1rem; border-radius: 8px; cursor: pointer;
}
.aide-btn:hover { background: var(--fond-aide); }
.aide-panneau {
  margin-top: .6rem; background: var(--fond-aide); border: 1px solid var(--loire);
  border-radius: var(--rayon); padding: 1rem 1.2rem;
}
.aide-panneau h2, .aide-panneau h3 { margin-top: 0; }
.aide-panneau ul { list-style: none; padding: 0; margin: .6rem 0 0; columns: 2; column-gap: 2rem; }
.aide-panneau li { break-inside: avoid; margin: .3rem 0; }

/* ---------- Emplacements d'image réservés (aucune photo locale livrée) ---------- */
.photo-reservee {
  border: 2px dashed var(--loire); border-radius: var(--rayon);
  background: repeating-linear-gradient(45deg, var(--fond-aide), var(--fond-aide) 12px, #E4F0F6 12px, #E4F0F6 24px);
  color: var(--texte-doux); font-size: .85rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1rem; min-height: 120px;
}

/* ---------- Formulaire ---------- */
.form-zone { margin: 0; }
.carte-form {
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: 1.3rem 1.4rem;
}
.carte-form h2 { border: 0; margin-top: 0; padding-bottom: 0; }
.champ { margin: .9rem 0; }
.champ label, .canal legend { display: block; font-weight: 700; color: var(--ardoise); margin-bottom: .25rem; }
.champ .aide, .canal .aide { font-size: .85rem; color: var(--texte-doux); margin: .15rem 0 0; }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; padding: .55rem .65rem;
  border: 1.5px solid var(--bordure); border-radius: 8px; background: var(--blanc); color: var(--texte);
}
.champ input[aria-invalid="true"], .champ select[aria-invalid="true"] { border-color: var(--erreur); }
.erreur { color: var(--erreur); font-size: .9rem; font-weight: 600; margin: .2rem 0 0; min-height: 0; }
.canal { border: 0; padding: 0; margin: .9rem 0; }
.canal label { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1.1rem; font-weight: 600; cursor: pointer; }
.canal input { width: auto; }
.carte-form[data-canal="telephone"] #f-tel, .carte-form[data-canal="email"] #f-email { border-color: var(--vert); border-width: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.info-envoi { font-size: .85rem; color: var(--texte-doux); background: var(--fond); border-radius: 8px; padding: .7rem .8rem; }
.f-envoi { width: 100%; margin-top: .8rem; }
.f-envoi[disabled] { opacity: .65; cursor: not-allowed; }
.etat { margin: .8rem 0 0; font-weight: 600; }
.etat.ok { color: var(--ok); }
.etat.ko { color: var(--erreur); }
.contexte {
  background: var(--vert-pale); border-radius: 8px; padding: .55rem .7rem;
  font-size: .92rem; margin-bottom: .6rem;
}
.contexte .ctx-modifier, .contexte .ctx-retirer {
  background: none; border: none; color: var(--cuivre); font-weight: 700;
  cursor: pointer; text-decoration: underline; font-size: .92rem; padding: .1rem .3rem;
}
.ctx-choix { width: 100%; font: inherit; padding: .4rem; margin-top: .3rem; }

/* ---------- Bandeau CTA avant pied de page ---------- */
.cta-final { background: var(--pierre); margin-top: 2rem; }
.cta-final-inner {
  max-width: 1180px; margin: 0 auto; padding: 1.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.cta-final h2 { border: 0; margin: 0; padding: 0; }
.cta-final .actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--ardoise); color: var(--pierre);
  padding: 2rem 0 calc(2rem + var(--cookie-panneau-h));
  font-size: .92rem;
}
.pied a { color: var(--pierre); }
.pied a:hover { color: var(--blanc); }
.pied-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 1rem;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 1.5rem;
}
.pied h2 { color: var(--blanc); font-size: 1rem; border: 0; margin: 0 0 .5rem; padding: 0; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin: .3rem 0; }
.pied .logo img { height: 36px; margin-bottom: .6rem; }
.pied-note { border-top: 1px solid var(--ardoise-2); margin-top: 1.5rem; padding-top: 1rem; font-size: .82rem; color: #B9C4C9; }

/* ---------- Barre d'appel mobile ---------- */
.barre-appel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: .6rem; padding: .5rem .8rem;
  background: var(--blanc); border-top: 1px solid var(--bordure); box-shadow: 0 -2px 10px rgba(34,51,44,.12);
  height: var(--barre-appel-h);
}
.barre-appel a { flex: 1; display: flex; align-items: center; justify-content: center; }
.barre-appel.cachee { display: none !important; }

/* ---------- Panneau cookies (module kit consent.js) ---------- */
.cookie-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--ardoise); color: var(--blanc);
  box-shadow: 0 -4px 18px rgba(0,0,0,.25);
}
.cookie-inner {
  max-width: 1180px; margin: 0 auto; padding: 1rem;
  display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-inner h2 { color: var(--blanc); border: 0; font-size: 1.05rem; margin: 0 0 .3rem; padding: 0; }
.cookie-inner p { margin: .2rem 0; font-size: .9rem; }
.cookie-lien a { color: var(--pierre); }
.cookie-current { color: #B9C4C9; font-size: .85rem; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-actions button {
  font: inherit; font-weight: 700; padding: .5rem 1rem; border-radius: 8px; cursor: pointer; border: 2px solid var(--pierre);
}
.cookie-actions [data-choice="no"] { background: none; color: var(--blanc); }
.cookie-actions [data-choice="yes"] { background: var(--vert); border-color: var(--vert); color: var(--blanc); }
.cookie-actions .cookie-close { background: none; color: var(--pierre); border-color: transparent; text-decoration: underline; }
.cookie-panneau-fin .cookie-panel { left: auto; width: min(480px, 100%); border-radius: var(--rayon) 0 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  body { font-size: 17px; }
  h1 { font-size: 1.9rem; }
  .hero-texte h1 { font-size: 2rem; }
  .nav-principale, .nav-actions { display: none; }
  .burger { display: block; }
  #menu-mobile {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ardoise); padding: .5rem 1rem 1rem; box-shadow: var(--ombre);
  }
  #menu-mobile[hidden], #menu-mobile:not(.ouvert) { display: none; }
  #menu-mobile a {
    display: block; color: var(--blanc); text-decoration: none; font-weight: 600;
    padding: .6rem .2rem; border-bottom: 1px solid var(--ardoise-2);
  }
  #menu-mobile .nav-actions-mobile { display: flex; gap: .6rem; padding-top: .8rem; }
  #menu-mobile .nav-actions-mobile .bouton, #menu-mobile .nav-actions-mobile .bouton-secondaire { flex: 1; color: var(--blanc); }
  #menu-mobile .nav-actions-mobile .bouton-secondaire { border-color: var(--pierre); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 1.4rem; }
  .aide-panneau ul { columns: 1; }
  .pied-inner { grid-template-columns: 1fr 1fr; }
  .barre-appel { display: flex; }
  body.avec-barre .pied { padding-bottom: calc(2rem + var(--barre-appel-h)); }
  .cta-final-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-final .actions { justify-content: center; }
  table { font-size: .85rem; display: block; overflow-x: auto; }
}
@media (max-width: 560px) {
  .pied-inner { grid-template-columns: 1fr; }
  .hero-ctas .bouton, .hero-ctas .bouton-secondaire { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* ---------- Finition v1.1 : images, hiérarchie et parcours responsive ---------- */
html { scroll-padding-top: 84px; }
main p, main li { max-width: 75ch; }
.bouton, .bouton-secondaire, .aide-btn, .burger, .menu-fermer { min-height: 44px; }
.burger { display: none; align-items: center; justify-content: center; }
figure { margin: 1.2rem 0; }
figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption {
  padding: .55rem .75rem; background: var(--fond); color: var(--texte-doux);
  font-size: .78rem; line-height: 1.45;
}
.hero-photo { margin: 1.2rem 0 0; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.photo-apres-services { display: none; }
.image-page {
  margin: 0 0 1.5rem; overflow: hidden; border-radius: var(--rayon);
  border: 1px solid var(--bordure); background: var(--fond);
}
.page-service .etroit { max-width: 960px; }
.service-intro { max-width: 78ch; }
.service-intro p:first-of-type { font-size: 1.08rem; }
.service-sections h2 {
  margin-top: 2rem; padding: .65rem .85rem; border: 0; border-radius: 8px;
  background: var(--fond);
}
.service-sections h2 + p { margin-top: .9rem; }
.priorites > h2 { margin-top: 0; }
.cartes-prioritaires { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.carte-besoin {
  min-width: 0; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--blanc);
  box-shadow: var(--ombre);
}
.carte-visuel { margin: 0; }
.carte-visuel figcaption { min-height: 6.5rem; }
.carte-texte { padding: 0 1rem 1rem; }
.carte-texte h3 { margin-top: .8rem; }
.carte-texte p { font-size: .95rem; }
.resolution {
  margin-top: 1rem; padding: .9rem; border: 1px solid var(--cuivre); border-radius: 8px;
  background: var(--pierre);
}
.resolution p { margin-top: 0; font-size: .9rem; }
.resolution .bouton-secondaire { width: 100%; margin-top: .55rem; cursor: pointer; }
.a-resoudre .f-envoi { margin-top: .7rem; }
.menu-fermer {
  width: 100%; margin-bottom: .25rem; padding: .55rem .7rem;
  border: 1px solid var(--pierre); border-radius: 8px; background: transparent;
  color: var(--blanc); font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
#menu-mobile summary {
  min-height: 44px; display: flex; align-items: center; padding: .6rem .2rem;
  color: var(--blanc); font-weight: 700; cursor: pointer;
}
.sous-menu-mobile { padding: 0 0 .5rem .8rem; }
.sous-menu-mobile a { border-bottom: 0 !important; }
.sous-menu-mobile .famille { display: block; }
.sous-menu-mobile .detail { display: block; font-size: .78rem; font-weight: 400; color: var(--pierre); }
.champ input, .champ select { min-height: 44px; }
.canal label { min-height: 44px; }

@media (max-width: 1023px) {
  .hero-formulaire, .hero-photo { display: none; }
  .photo-apres-services { display: block; }
  .cartes-prioritaires { grid-template-columns: 1fr; gap: 1rem; }
  .carte-besoin { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr); }
  .carte-visuel figcaption { min-height: 0; }
  .carte-texte { padding-top: .2rem; }
  .burger { display: flex; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero-inner { padding-bottom: 1.2rem; }
  .carte-besoin { display: flex; }
  .carte-besoin .carte-visuel { display: none; }
  .carte-texte { padding: .15rem 1rem 1rem; }
  .carte-texte h3 { margin: .7rem 0 .35rem; }
  .carte-texte p { margin: .55rem 0; }
  .service-sections h2 { padding: .55rem .65rem; }
  figcaption { font-size: .75rem; }
  .barre-appel { padding-bottom: max(.5rem, env(safe-area-inset-bottom)); height: auto; min-height: var(--barre-appel-h); }
}


/* ---------- Finition v1.4 : ouverture lumineuse, overlays et obligations ---------- */
.obligation {
  display: inline-block; margin-left: .25rem; padding: .05rem .4rem;
  border-radius: 5px; background: var(--fond); color: var(--texte-doux);
  font-size: .75rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--fond-aide);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(238,247,251,.16), rgba(255,255,255,.04));
  pointer-events: none;
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2; margin: 0;
  border: 0; border-radius: 0; box-shadow: none; overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
  object-position: center 46%;
}
.hero-inner {
  position: relative; z-index: 1; padding: 3rem 1rem;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  align-items: start; gap: 1.5rem;
}
.hero-visuel { display: contents; }
.hero-gauche {
  padding: 2rem; border: 1px solid rgba(255,255,255,.8); border-radius: 14px;
  background: rgba(255,255,255,.92); box-shadow: 0 14px 40px rgba(28,40,48,.18);
}
.hero-texte h1 { font-size: 2.65rem; }
.hero-texte > p { font-size: 1.08rem; }
.hero-formulaire { display: block; }
.hero-formulaire .carte-form { background: rgba(255,255,255,.97); }
.hero .aide-btn { min-height: 44px; }

.page-service .etroit { max-width: 1040px; }

@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; padding: 1.5rem 1rem; }
  .hero-gauche { max-width: 720px; padding: 1.5rem; }
  .hero-formulaire { display: block; width: min(100%, 620px); }
  .hero-photo { display: block; }
  .hero-photo img { object-position: 58% center; }
}
@media (max-width: 600px) {
  .hero-inner { padding: 0 0 1.25rem; gap: 0; }
  .hero-gauche { display: contents; }
  .hero-visuel {
    position: relative; isolation: isolate; display: block;
    padding: 4.5rem .75rem 4.75rem;
  }
  .hero-photo { inset: 0; height: 100%; }
  .hero-photo img { object-position: 52% center; }
  .hero-texte {
    position: relative; z-index: 1; padding: 1rem; border-radius: 12px;
    border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.94);
    box-shadow: 0 10px 28px rgba(28,40,48,.16);
  }
  .hero-texte h1 { margin-bottom: .4em; font-size: 1.8rem; }
  .hero-texte > p { margin: .65em 0; font-size: 1rem; line-height: 1.5; }
  .hero-texte > p:first-of-type { margin-top: 0; }
  .hero-ctas { gap: .55rem; margin: .85rem 0 0; }
  .hero-ctas .bouton, .hero-ctas .bouton-secondaire { padding: .45rem .75rem; }
  .hero-gauche > blockquote { margin: 1rem .75rem 0; background: var(--blanc); }
  .hero-gauche > .aide { margin: 0 .75rem 1rem; }
  .hero-formulaire { padding: 0 .75rem; }
  .carte-besoin .carte-visuel { display: none; }
  .obligation { font-size: .72rem; }
}
@media (max-width: 360px) {
  .hero-visuel { padding-top: 3.75rem; padding-bottom: 4rem; }
  .hero-texte h1 { font-size: 1.65rem; }
}


/* ---------- Refonte v1.6 : respiration, cartes et formulaire progressif ---------- */
.section-intro { margin: -.15rem 0 1.2rem; color: var(--texte-doux); }
.cartes-prioritaires, .cartes-conseils {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem;
}
.carte-besoin, .carte-guide {
  min-width: 0; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--bordure); border-radius: 12px; background: var(--blanc);
  box-shadow: 0 3px 12px rgba(34,51,44,.09);
}
.carte-besoin .carte-visuel, .carte-guide .carte-visuel { display: block; margin: 0; }
.carte-besoin .carte-visuel img, .carte-guide .carte-visuel img {
  width: 100%; height: 150px; aspect-ratio: auto; object-fit: cover;
}
.carte-besoin .carte-texte, .carte-guide .carte-texte {
  display: flex; flex: 1; flex-direction: column; padding: .25rem 1rem .9rem;
}
.carte-besoin h3, .carte-guide h3 { margin: .75rem 0 .35rem; font-size: 1.12rem; }
.carte-besoin h3 a, .carte-guide h3 a { color: var(--ardoise); text-decoration: none; }
.carte-besoin h3 a:hover, .carte-guide h3 a:hover { color: var(--cuivre); text-decoration: underline; }
.carte-besoin .carte-texte > p, .carte-guide .carte-texte > p { margin: .4rem 0; font-size: .92rem; line-height: 1.5; }
.carte-action { margin-top: auto !important; padding-top: .45rem; font-weight: 700; }
.carte-action a::after { content: " →"; }
.guides-cartes > h2 { margin-top: 0; }
.page-standard .etroit { max-width: 1040px; }
.page-standard main > .centre > section { margin: 1.8rem 0; }

/* Le nom et les précisions restent disponibles sans alourdir la première lecture. */
.carte-form { padding: 1rem 1.1rem; }
.carte-form .champ, .carte-form .canal { margin: .65rem 0; }
.carte-form .champ .aide, .carte-form .canal .aide { line-height: 1.35; }
.form-options { margin: .75rem 0; border-top: 1px solid var(--bordure); padding-top: .55rem; }
.form-options summary {
  min-height: 44px; display: flex; align-items: center; cursor: pointer;
  color: var(--cuivre); font-weight: 700; font-size: .92rem;
}
.form-options-inner { padding-top: .15rem; }
.carte-form .info-envoi { margin: .65rem 0; padding: .55rem .65rem; line-height: 1.4; }
.carte-form .f-envoi { margin-top: .35rem; }

/* Deux bandes continues de la photo restent visibles autour des panneaux desktop. */
@media (min-width: 1024px) {
  .hero-inner { padding: 5rem 1rem 5.5rem; gap: 1.4rem; }
  .hero-gauche { padding: 1.65rem; }
  .hero-texte h1 { font-size: 2.45rem; }
  .hero-gauche > blockquote { margin-bottom: .75rem; }
  .hero-gauche > .aide { margin: .65rem 0 0; }
  .hero-formulaire { padding-top: .25rem; }
}

/* Rythme de lecture commun, sans modifier la matière ni les données. */
.service-sections h2, .page-standard h2 { margin-top: 1.8em; }
.service-sections p, .page-standard p { line-height: 1.65; }
main blockquote { margin-top: 1rem; margin-bottom: 1rem; }

@media (max-width: 1023px) and (min-width: 601px) {
  .cartes-prioritaires, .cartes-conseils { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carte-besoin .carte-visuel img, .carte-guide .carte-visuel img { height: 170px; }
  .hero-inner { padding-top: 2.5rem; padding-bottom: 3rem; }
}

@media (max-width: 600px) {
  /* Conserver l'ouverture mobile validée en v1.5, avec le texte v1.6 plus court. */
  .hero-texte h1 { font-size: 1.8rem; }
  .hero-gauche > blockquote { font-size: .94rem; line-height: 1.45; }
  .hero-formulaire .carte-form { padding: .85rem; }
  .cartes-prioritaires, .cartes-conseils { grid-template-columns: 1fr; gap: .8rem; }
  .carte-besoin, .carte-guide {
    display: grid; grid-template-columns: 116px minmax(0, 1fr); min-height: 150px;
  }
  .carte-besoin .carte-visuel, .carte-guide .carte-visuel { display: block; height: 100%; }
  .carte-besoin .carte-visuel img, .carte-guide .carte-visuel img {
    width: 100%; height: 100%; min-height: 150px; object-fit: cover;
  }
  .carte-besoin .carte-texte, .carte-guide .carte-texte { padding: .15rem .8rem .7rem; }
  .carte-besoin h3, .carte-guide h3 { margin: .55rem 0 .25rem; font-size: 1.02rem; }
  .carte-besoin .carte-texte > p, .carte-guide .carte-texte > p { font-size: .85rem; line-height: 1.4; }
  .carte-action { padding-top: .2rem; }
  .page-standard .etroit { max-width: 100%; }
  .page-standard main > .centre > section { margin: 1.3rem 0; }
}

@media (max-width: 360px) {
  .hero-texte h1 { font-size: 1.65rem; }
  .carte-besoin, .carte-guide { grid-template-columns: 104px minmax(0, 1fr); }
  .carte-besoin .carte-texte, .carte-guide .carte-texte { padding-left: .65rem; padding-right: .65rem; }
}

/* Une seule coordonnée est mise en avant ; l'autre reste disponible au changement de canal. */
.carte-form[data-canal="telephone"] .champ-canal-email,
.carte-form[data-canal="email"] .champ-canal-tel { display: none; }


/* ---------- Correction v1.7 : toiture réellement visible à l’ouverture ---------- */
.hero-inner {
  display: block; min-height: 540px; padding: 3rem 1rem;
}
.hero-gauche {
  width: min(100%, 480px); max-width: 480px; padding: 1.5rem;
  background: rgba(255,255,255,.95);
}
.hero-texte h1 { font-size: 2.25rem; }
.hero-texte > p { font-size: 1rem; line-height: 1.55; }
.hero-photo img { object-position: center 22%; }
.accueil-suite {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  gap: 2rem; align-items: start; padding-top: 1.5rem; padding-bottom: 1.5rem;
}
.accueil-aide > blockquote { margin: 0 0 .75rem; background: var(--blanc); }
.accueil-aide > .aide { margin: .75rem 0 0; }
.accueil-suite .hero-formulaire { display: block; width: 100%; padding: 0; }

@media (max-width: 1023px) {
  .hero-inner { min-height: 0; padding: 2.5rem 1rem; }
  .accueil-suite { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 600px) {
  .hero-inner { padding: 0; }
  .hero-visuel { padding: 12.5rem .75rem 1rem; }
  .hero-gauche { width: 100%; max-width: none; }
  .hero-texte { padding: 1rem; background: rgba(255,255,255,.96); }
  .hero-texte h1 { font-size: 1.75rem; }
  .hero-texte > p { font-size: .96rem; line-height: 1.45; }
  .hero-photo img { object-position: 50% 20%; }
  .accueil-suite { padding: 1rem 1rem 1.25rem; }
  .accueil-aide > blockquote { font-size: .94rem; line-height: 1.45; }
  .accueil-suite .hero-formulaire { padding: 0; }
}

@media (max-width: 360px) {
  .hero-visuel { padding-top: 11.5rem; }
  .hero-texte h1 { font-size: 1.6rem; }
}


/* ---------- Intégration v1.8 : aide illustrée, étapes, FAQ et grille équilibrée ---------- */
.aide-photo {
  margin: 1rem 0 0; overflow: hidden; border: 1px solid var(--bordure);
  border-radius: 12px; background: var(--fond);
}
.aide-photo img { width: 100%; height: 230px; object-fit: cover; object-position: center 48%; }
.aide-photo figcaption { font-size: .82rem; }
.etapes-demande { margin: 2.4rem 0; }
.etapes-layout {
  display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: 1.6rem; align-items: stretch;
}
.etapes-visuel { margin: 0; overflow: hidden; border-radius: 14px; background: var(--fond); }
.etapes-visuel img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.liste-etapes { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .8rem; }
.liste-etapes li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: .9rem;
  margin: 0; padding: 1rem; border: 1px solid var(--bordure); border-radius: 12px;
  background: var(--fond); max-width: none;
}
.etape-numero {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--ardoise); color: var(--blanc);
  font-size: 1.3rem; font-weight: 800;
}
.liste-etapes h3 { margin: .05rem 0 .35rem; font-size: 1.12rem; }
.liste-etapes p { margin: 0; font-size: .94rem; line-height: 1.5; }
.etapes-note { margin: .8rem 0 0; color: var(--texte-doux); font-size: .9rem; }

.faq-item {
  margin: .65rem 0; border: 1px solid var(--bordure); border-radius: 10px;
  background: var(--blanc); overflow: hidden;
}
.faq-item > summary {
  min-height: 48px; display: flex; align-items: center; gap: .65rem;
  padding: .75rem 2.6rem .75rem 1rem; position: relative;
  color: var(--ardoise); font-weight: 750; line-height: 1.4; cursor: pointer;
  touch-action: manipulation;
}
.faq-item > summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--cuivre); font-size: 1.35rem; font-weight: 500;
}
.faq-item[open] > summary { background: var(--fond-aide); }
.faq-item[open] > summary::after { content: "−"; }
.faq-reponse { padding: .2rem 1rem .85rem; }
.faq-reponse > :first-child { margin-top: .65rem; }
.faq-reponse > :last-child { margin-bottom: .2rem; }

@media (min-width: 1024px) {
  .cartes-prioritaires > .carte-besoin:last-child:nth-child(3n+1) {
    grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 2fr);
  }
  .cartes-prioritaires > .carte-besoin:last-child:nth-child(3n+1) .carte-visuel,
  .cartes-prioritaires > .carte-besoin:last-child:nth-child(3n+1) .carte-visuel img { height: 100%; min-height: 210px; }
  .cartes-prioritaires > .carte-besoin:last-child:nth-child(3n+1) .carte-texte { justify-content: center; padding: 1.2rem 1.5rem; }
}
@media (max-width: 760px) {
  .etapes-layout { grid-template-columns: 1fr; gap: 1rem; }
  .etapes-visuel img { min-height: 0; height: 240px; }
}
@media (max-width: 600px) {
  .aide-photo img { height: 190px; }
  .liste-etapes li { grid-template-columns: 42px minmax(0, 1fr); gap: .7rem; padding: .8rem; }
  .etape-numero { width: 40px; height: 40px; font-size: 1.1rem; }
  .faq-item > summary { padding-left: .8rem; padding-right: 2.3rem; font-size: .96rem; }
  .faq-reponse { padding-left: .8rem; padding-right: .8rem; }
}

/* ---------- v1.10 : ouvertures de services, le texte ne recouvre plus le sujet ---------- */
/* Ordinateur : texte et photo côte à côte. Tablette et mobile : photo puis texte, sans superposition. */
.service-ouverture {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  grid-template-areas: "intro visuel"; align-items: stretch;
  margin: 0 0 1.75rem; overflow: hidden; border: 1px solid var(--bordure);
  border-radius: 14px; background: var(--blanc); box-shadow: 0 10px 30px rgba(28,40,48,.10);
}
.service-ouverture .service-visuel {
  grid-area: visuel; position: relative; display: flex; flex-direction: column;
  margin: 0; min-width: 0; background: var(--fond);
}
.service-ouverture .service-visuel img {
  flex: 1 1 auto; width: 100%; height: 100%; min-height: 330px; aspect-ratio: auto;
  object-fit: cover; object-position: var(--cadrage, center);
}
.service-ouverture .service-visuel figcaption {
  position: static; padding: .5rem .8rem; background: var(--fond); color: var(--texte-doux);
}
.service-ouverture .service-intro {
  grid-area: intro; align-self: center; max-width: none; margin: 0; padding: 1.8rem 2rem;
}
.service-ouverture .service-intro h1 { margin: 0 0 .7rem; font-size: 2.05rem; line-height: 1.2; }
.service-ouverture .service-intro p { margin: .6rem 0; font-size: 1rem; line-height: 1.55; }
.service-ouverture .service-intro p:first-of-type { font-size: 1.04rem; }
.service-ouverture .service-intro p:last-child { margin-bottom: 0; }
@media (max-width: 1023px) {
  .service-ouverture { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visuel" "intro"; }
  .service-ouverture .service-visuel img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .service-ouverture .service-intro { padding: 1.3rem 1.4rem 1.5rem; }
  .service-ouverture .service-intro h1 { font-size: 1.85rem; }
}
@media (max-width: 600px) {
  .service-ouverture { border-radius: 10px; }
  .service-ouverture .service-visuel img { aspect-ratio: 3 / 2; }
  .service-ouverture .service-visuel figcaption { padding: .45rem .65rem; font-size: .8rem; }
  .service-ouverture .service-intro { padding: 1rem 1rem 1.15rem; }
  .service-ouverture .service-intro h1 { font-size: 1.6rem; }
  .service-ouverture .service-intro p { font-size: .95rem; line-height: 1.5; }
}
/* Les deux accès de l’ouverture prennent la forme de boutons (cible tactile de 44 px). */
.service-ouverture .service-intro p > strong > a[href^="tel:"],
.service-ouverture .service-intro p > strong > a[href^="/devis/"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  margin: 0; padding: .5rem 1rem; border-radius: 8px; white-space: nowrap;
  border: 2px solid var(--vert); background: var(--vert); color: var(--blanc);
  text-decoration: none; line-height: 1.25;
}
.service-ouverture .service-intro p > strong > a[href^="/devis/"] {
  border-color: var(--ardoise); background: var(--blanc); color: var(--ardoise);
}
.service-ouverture .service-intro p > strong > a[href^="tel:"]:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); }
.service-ouverture .service-intro p > strong > a[href^="/devis/"]:hover { background: var(--pierre); }
/* Paragraphe d’accès : les deux liens deviennent deux boutons ; le point séparateur n’est plus affiché. */
.service-ouverture .service-intro p:has(> strong > a[href^="tel:"]) {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; max-width: none; margin-top: 1.1rem; font-size: 0;
}
.service-ouverture .service-intro p:has(> strong > a[href^="tel:"]) > strong { font-size: 1rem; }
@media (max-width: 600px) {
  .service-ouverture .service-intro p:has(> strong > a[href^="tel:"]) > strong { flex: 1 1 100%; }
  .service-ouverture .service-intro p > strong > a[href^="tel:"],
  .service-ouverture .service-intro p > strong > a[href^="/devis/"] { display: flex; width: 100%; white-space: normal; text-align: center; }
}
/* Le fil d’Ariane garde la marge latérale du conteneur (il touchait le bord de l’écran sur mobile). */
.fil-ariane.conteneur { padding-left: 1rem; padding-right: 1rem; }

/* v1.11 — calculateur du guide G10 : calcul local, champs lisibles au clavier et sur mobile. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.calculateur { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.2rem 1.3rem; }
.calculateur [hidden] { display: none !important; }
.calc-sans-js { margin: 0; font-weight: 600; color: var(--ardoise); }
.calculateur h3 { margin-top: 0; }
.calc-modes { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1rem; }
.calc-mode { min-height: 44px; padding: .5rem .9rem; font: inherit; font-weight: 700; border: 2px solid var(--ardoise); border-radius: 999px; background: var(--blanc); color: var(--ardoise); cursor: pointer; }
.calc-mode[aria-pressed="true"] { background: var(--ardoise); color: var(--blanc); }
.calc-panneau { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc-panneau legend { font-weight: 700; color: var(--ardoise); font-size: 1.05rem; margin-bottom: .3rem; padding: 0; }
.calc-ligne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; }
.calc-champ { margin: .75rem 0; min-width: 0; }
.calc-champ label { display: block; font-weight: 700; color: var(--ardoise); margin-bottom: .25rem; }
.calc-facultatif { font-weight: 400; color: var(--texte-doux); }
.calc-champ input, .calc-champ select, .calc-resume { width: 100%; min-height: 44px; font: inherit; padding: .55rem .65rem; border: 1.5px solid var(--bordure); border-radius: 8px; background: var(--blanc); color: var(--texte); }
.calc-champ input[aria-invalid="true"] { border-color: var(--erreur); border-width: 2px; }
.calc-aide { font-size: .85rem; color: var(--texte-doux); margin: .2rem 0 0; }
.calc-erreur { color: var(--erreur); font-size: .9rem; font-weight: 600; margin: .2rem 0 0; }
.calc-erreur:empty { display: none; }
.calc-reprise { margin: -.2rem 0 .4rem; }
.calc-reprise button:disabled { opacity: .55; cursor: not-allowed; }
.calc-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.calc-actions button { cursor: pointer; font: inherit; }
.calc-resultat { margin-top: 1.2rem; padding: 1rem 1.1rem; border-left: 5px solid var(--vert); background: var(--vert-pale); border-radius: 0 var(--rayon) var(--rayon) 0; }
.calc-resultat:focus { outline: 3px solid var(--loire); outline-offset: 2px; }
.calc-cle { font-size: 1.2rem; font-weight: 700; color: var(--vert-fonce); margin: .3rem 0 .6rem; }
.calc-resultat ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
.calc-resume-label { display: block; font-weight: 700; color: var(--ardoise); margin-top: .6rem; }
.calc-resume { min-height: 7rem; font-size: .9rem; resize: vertical; }
.calc-note { font-size: .85rem; color: var(--texte-doux); margin: .8rem 0 0; }
@media (max-width: 600px) {
  .calculateur { padding: 1rem .85rem; }
  .calc-ligne { grid-template-columns: 1fr; }
  .calc-mode { flex: 1 1 100%; }
  .calc-actions button { flex: 1 1 100%; }
}

/* v1.11 — repères de prix du guide G12 : tableau sur ordinateur, fiches empilées sur mobile. */
.tableau-prix-conteneur { margin: 1.2em 0 .4em; }
.tableau-prix { margin: 0; }
.prix-renvoi { font-size: .92rem; color: var(--texte-doux); margin-top: .3rem; }
@media (max-width: 600px) {
  .tableau-prix, .tableau-prix tbody, .tableau-prix tr, .tableau-prix td { display: block; width: 100%; }
  .tableau-prix { overflow: visible; font-size: .95rem; }
  .tableau-prix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau-prix tr { border: 1px solid var(--bordure); border-radius: 8px; margin: 0 0 .7rem; background: var(--blanc); }
  .tableau-prix tbody tr:nth-child(even) { background: var(--blanc); }
  .tableau-prix td { border: 0; border-top: 1px solid var(--bordure); padding: .45em .7em; }
  .tableau-prix td:first-child { border-top: 0; font-weight: 700; color: var(--ardoise); background: var(--pierre); border-radius: 8px 8px 0 0; }
  .tableau-prix td:not(:first-child)::before { content: attr(data-label) " : "; font-weight: 700; color: var(--ardoise); }
}

@media print {
  .page-g10 .entete, .page-g10 header, .page-g10 footer, .page-g10 .barre-appel, .page-g10 .cta-final, .page-g10 .fil-ariane,
  .page-g10 .skip, .page-g10 .calc-actions, .page-g10 .calc-modes, .page-g10 .calc-reprise, .page-g10 .cookie-panel { display: none !important; }
  .page-g10 .calculateur { box-shadow: none; border: 1px solid #999; }
  .page-g10 .calc-resume { border: 0; padding: 0; min-height: 0; }
}

/* v1.11.1 — accès directs du premier écran (G10 calculateur, G12 repères) : la cible ne passe pas sous l’en-tête. */
#calculateur, #reperes { display: block; scroll-margin-top: 4.25rem; }

/* v1.11.2 — Conseils : encadré Lexique à droite des liens d’appel (ordinateur), pleine largeur avant la grille (mobile). */
.conseils-acces { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin: 1rem 0 1.6rem; }
.conseils-acces > p { margin: 0; flex: 1 1 auto; }
.encadre-lexique { flex: 0 1 25rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .15rem 1rem;
  padding: .75rem 1rem; background: #EEF2F4; border: 2px solid #9DB0BA; border-radius: 10px; }
.encadre-lexique h2 { grid-column: 1 / -1; margin: 0; font-size: 1.02rem; color: var(--ardoise); }
.encadre-lexique p { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--texte); }
.encadre-lexique .encadre-lien { white-space: nowrap; }
.encadre-lexique .encadre-lien a { font-weight: 700; color: #1F4E5F; text-decoration: underline; text-underline-offset: 2px; }
.encadre-lexique .encadre-lien a::after { content: " →"; }
.encadre-lexique .encadre-lien a:focus-visible { outline: 3px solid var(--loire); outline-offset: 2px; border-radius: 3px; }
/* Onze cartes : le dernier rang est centré (3 colonnes sur ordinateur, 2 sur tablette). */
@media (min-width: 1024px) {
  .cartes-conseils { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cartes-conseils > .carte-guide { grid-column: span 2; }
  .cartes-conseils > .carte-guide:nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / span 2; }
  .cartes-conseils > .carte-guide:nth-child(3n + 1):nth-last-child(1) { grid-column: 3 / span 2; }
}
@media (max-width: 1023px) and (min-width: 601px) {
  .cartes-conseils { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cartes-conseils > .carte-guide { grid-column: span 2; }
  .cartes-conseils > .carte-guide:nth-child(2n + 1):nth-last-child(1) { grid-column: 2 / span 2; }
}
@media (max-width: 860px) {
  .conseils-acces { flex-direction: column; align-items: stretch; }
  .encadre-lexique { flex-basis: auto; }
}
@media (max-width: 600px) {
  .encadre-lexique { grid-template-columns: 1fr; gap: .3rem; }
}

/* v1.11.2 — aide visuelle du calculateur : bouton « ? », info-bulle et schémas de mesure. */
.calc-libelle { display: flex; align-items: flex-start; gap: .45rem; margin-bottom: .25rem; }
.calc-libelle label { margin-bottom: 0; flex: 0 1 auto; }
.calc-info { position: relative; flex: 0 0 auto; width: 30px; height: 30px; margin-top: -3px; border-radius: 50%; border: 2px solid var(--loire); background: var(--blanc); color: #1F4E5F; font: 700 1rem/1 inherit; cursor: pointer; }
.calc-info::before { content: ""; position: absolute; inset: -7px; } /* zone tactile de 44 px */
.calc-info[aria-expanded="true"] { background: #1F4E5F; border-color: #1F4E5F; color: var(--blanc); }
.calc-info:focus-visible { outline: 3px solid var(--loire); outline-offset: 2px; }
.calc-bulle { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: 14rem; padding: .35rem .55rem; border-radius: 6px; background: var(--ardoise); color: var(--blanc); font-size: .8rem; font-weight: 600; line-height: 1.3; text-align: left; white-space: normal; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s; }
.calc-info:hover .calc-bulle, .calc-info:focus-visible .calc-bulle { opacity: 1; visibility: visible; }
.calc-info[aria-expanded="true"] .calc-bulle { opacity: 0; visibility: hidden; }
.calc-schema { margin: .6rem 0 .2rem; padding: .75rem .85rem; border: 1.5px solid #9DB0BA; border-radius: 10px; background: #F5F8F9; }
.calc-schema-titre { margin: 0 0 .35rem; font-weight: 700; color: var(--ardoise); }
.calc-schema-dessin svg { display: block; width: 100%; max-width: 30rem; height: auto; margin: 0 auto; }
.calc-schema-texte { margin: .4rem 0 .2rem; font-size: .92rem; line-height: 1.45; }
.calc-schema-note { margin: 0 0 .5rem; font-size: .8rem; color: var(--texte-doux); }
.sch .sch-mur { fill: #E4DDD1; stroke: #B7AA96; stroke-width: 2; }
.sch .sch-mur-face { fill: #EDE7DC; }
.sch .sch-pan { fill: #C9D6DB; stroke: var(--ardoise); stroke-width: 2.5; stroke-linejoin: round; }
.sch .sch-pan-arriere { fill: #B2C3CA; }
.sch .sch-pignon { fill: #EDE7DC; stroke: var(--ardoise); stroke-width: 2.5; stroke-linejoin: round; }
.sch .sch-toit { stroke: var(--ardoise); stroke-width: 7; stroke-linecap: round; }
.sch .sch-faitage { stroke: var(--ardoise); stroke-width: 4; }
.sch .sch-rang { stroke: #9FB2BA; stroke-width: 1.5; }
.sch .sch-rang-arriere { stroke: #93A7AF; }
.sch .sch-rive { stroke: var(--ardoise); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.sch .sch-axe { stroke: #8C9AA0; stroke-width: 1.5; stroke-dasharray: 5 5; }
.sch .sch-murs-plan { fill: none; stroke: #8C7B66; stroke-width: 2.5; stroke-dasharray: 8 6; }
.sch .sch-rappel { stroke: #8C9AA0; stroke-width: 1.5; stroke-dasharray: 4 4; }
.sch .sch-cote { stroke: #6B7A80; stroke-width: 2; }
.sch .sch-cote.sch-vive { stroke: var(--cuivre); stroke-width: 4; }
.sch .sch-pointe { fill: #6B7A80; }
.sch .sch-pointe-vive { fill: var(--cuivre); }
.sch .sch-txt { font: 600 22px/1 system-ui, -apple-system, "Segoe UI", sans-serif; fill: var(--texte); }
.sch .sch-repere { fill: #4A5A61; font-weight: 600; }
.sch .sch-txt-vif { fill: var(--cuivre); font-weight: 800; font-size: 24px; }
.sch .sch-longueur-pente-txt { fill: #2F6E85; font-style: italic; }
.sch .sch-txt-petit { font-size: 19px; }
@media print { .calc-info, .calc-schema { display: none !important; } }
@media (max-width: 600px) {
  /* Le schéma est réduit de moitié environ : libellés agrandis pour rester lisibles (≈ 15 px). */
  .sch .sch-txt { font-size: 29px; }
  .sch .sch-txt-vif { font-size: 30px; }
  .sch .sch-txt-petit { font-size: 24px; }
  .calc-schema { padding: .65rem .6rem; }
}
