/* ============================================================
   Emmanuel Henneville, couvreur a Laon. Famille « local ».
   Chaleureux, proximite : fonds teintes, pilules, cartes tres
   arrondies, separateurs en diagonale, typo humaniste.
   Mobile-first strict. Prefixe `hnv-` propre a ce site.
   Aucune classe, aucune valeur et aucun script communs avec un
   autre site du reseau (anti-footprint, regles 1 a 7).
   ============================================================ */
@font-face{
  font-family:'Nunito';
  src:url('/assets/fonts/nunito-variable.woff2') format('woff2-variations');
  font-weight:300 900;font-style:normal;font-display:swap;
}

:root{
  --hnv-creme:#fbf7f1;
  --hnv-sable:#f4ebe0;
  --hnv-brique:#ede0d2;
  --hnv-ardoise:#2b3a4a;
  --hnv-ardoise-pale:#4d6076;
  --hnv-tuile:#c2561f;
  --hnv-tuile-vive:#d9631f;
  --hnv-olive:#5e6b43;
  --hnv-trait:#e2d4c3;
  --hnv-conteneur:1180px;
  --hnv-respire:clamp(2.5rem,6.5vw,4.5rem);
  --hnv-rond:18px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--hnv-creme);color:var(--hnv-ardoise);
  font:400 17px/1.7 'Nunito',Verdana,'Trebuchet MS',Geneva,sans-serif;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--hnv-tuile)}
h1,h2,h3,h4{margin:0 0 .6em;line-height:1.2;font-weight:800;letter-spacing:-.01em}
h1{font-size:clamp(1.9rem,5.8vw,3rem)}
h2{font-size:clamp(1.45rem,4.2vw,2.15rem)}
h3{font-size:clamp(1.1rem,2.9vw,1.35rem)}
h4{font-size:1rem}
p{margin:0 0 1.05em}
.hnv-boite{width:100%;max-width:var(--hnv-conteneur);margin:0 auto;padding:0 20px}
.hnv-oeil{
  display:inline-block;background:var(--hnv-brique);color:var(--hnv-tuile);
  font-size:.74rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;
  padding:.4rem .85rem;border-radius:999px;margin-bottom:1rem;
}
.hnv-intro{font-size:1.1rem;color:var(--hnv-ardoise-pale);max-width:60ch}
.hnv-evite{position:absolute;left:-9999px}
.hnv-evite:focus{left:10px;top:10px;background:#fff;padding:10px 15px;z-index:999;border-radius:8px;border:2px solid var(--hnv-tuile)}

/* ---------- Bandeau superieur : la zone en toutes lettres -------------- */
.hnv-ruban{background:var(--hnv-ardoise);color:#e7dcce;font-size:.82rem;padding:.45rem 0}
.hnv-ruban__rang{display:flex;align-items:center;justify-content:center;gap:.5rem;text-align:center}
.hnv-ruban a{color:#fff;font-weight:700}

/* ---------- En-tete ---------------------------------------------------- */
.hnv-chapeau{position:sticky;top:0;z-index:60;background:var(--hnv-creme);box-shadow:0 1px 0 var(--hnv-trait)}
.hnv-chapeau__rang{display:flex;align-items:center;gap:12px;min-height:64px}
.hnv-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--hnv-ardoise)}
.hnv-logo__ecu{
  flex:0 0 auto;width:40px;height:40px;border-radius:50%;background:var(--hnv-ardoise);
  display:grid;place-items:center;color:var(--hnv-creme);
}
.hnv-logo__ecu svg{width:22px;height:22px;stroke-width:2.3}
.hnv-logo b{display:block;font-weight:800;font-size:1.02rem;line-height:1.15;white-space:nowrap}
.hnv-logo span{display:block;font-size:.7rem;color:var(--hnv-ardoise-pale);font-weight:700;white-space:nowrap}
.hnv-pousse{margin-left:auto}
.hnv-menu{display:none}
.hnv-menu a{display:block;padding:14px 0;text-decoration:none;color:var(--hnv-ardoise);font-weight:700;border-bottom:1px solid var(--hnv-trait)}
.hnv-menu a[aria-current="page"]{color:var(--hnv-tuile)}
.hnv-hamb{
  min-width:46px;min-height:46px;display:grid;place-items:center;border-radius:999px;
  background:var(--hnv-sable);border:0;color:var(--hnv-ardoise);cursor:pointer;
}
.hnv-hamb svg{width:22px;height:22px}

/* Panneau mobile : devis et e-mail en tete, avant la navigation. */
.hnv-panneau{
  position:fixed;inset:0;z-index:90;background:var(--hnv-creme);
  padding:16px 20px calc(26px + env(safe-area-inset-bottom));
  overflow-y:auto;transform:translateY(-100%);transition:transform .24s ease;visibility:hidden;
}
.hnv-panneau.hnv-visible{transform:translateY(0);visibility:visible}
.hnv-panneau__rang{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.hnv-panneau__actes{display:grid;gap:10px;margin-bottom:24px}
@media (prefers-reduced-motion:reduce){.hnv-panneau{transition:none}}

/* Sous 560px la rangée ne tient pas : logo + pilule « Devis gratuit » +
   burger débordent (mesuré au rendu : scrollWidth 413 pour 390, burger à
   x=367). Le CTA d'en-tête se replie : il reste présent dans le tiroir ET
   dans la barre basse, donc rien n'est perdu. */
@media (max-width:559.98px){
  .hnv-chapeau__rang > .hnv-pilule{display:none}
  .hnv-logo__ecu{width:36px;height:36px}
  .hnv-logo b{font-size:.97rem}
}
@media (max-width:379.98px){
  .hnv-logo span span{display:none}
}

/* ---------- Boutons pilules ------------------------------------------- */
.hnv-pilule{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:54px;padding:0 26px;border-radius:999px;font-size:1rem;font-weight:800;
  text-decoration:none;border:2px solid var(--hnv-tuile);background:var(--hnv-tuile);color:#fff;
  cursor:pointer;text-align:center;line-height:1.2;
}
.hnv-pilule:hover{background:var(--hnv-tuile-vive);border-color:var(--hnv-tuile-vive)}
.hnv-pilule--ligne{background:transparent;color:var(--hnv-ardoise);border-color:var(--hnv-ardoise)}
.hnv-pilule--ligne:hover{background:var(--hnv-ardoise);color:var(--hnv-creme)}
.hnv-pilule--clair{background:var(--hnv-creme);color:var(--hnv-ardoise);border-color:var(--hnv-creme)}

/* ---------- Heros inverse : formulaire a GAUCHE en desktop ------------ */
.hnv-accroche{background:var(--hnv-sable);padding:2.2rem 0 2.6rem;position:relative}
.hnv-accroche__duo{display:grid;gap:1.9rem}
.hnv-fiche{
  background:var(--hnv-creme);border-radius:var(--hnv-rond);padding:1.3rem;
  box-shadow:0 10px 30px rgba(43,58,74,.09);
}
.hnv-fiche h2{font-size:1.2rem;margin-bottom:.2em}
.hnv-fiche__note{font-size:.84rem;color:var(--hnv-ardoise-pale);margin:0 0 1rem}
.hnv-promesses{list-style:none;margin:1.4rem 0 0;padding:0;display:grid;gap:.7rem}
.hnv-promesses li{display:flex;gap:.65rem;align-items:flex-start;font-size:.96rem;color:var(--hnv-ardoise-pale)}
.hnv-promesses svg{flex:0 0 auto;width:19px;height:19px;margin-top:3px;color:var(--hnv-olive)}
.hnv-promesses b{color:var(--hnv-ardoise)}
.hnv-actes{display:flex;flex-wrap:wrap;gap:11px;margin-top:1.5rem}

/* Separateur en diagonale (signature de la famille). */
.hnv-biais{display:block;width:100%;height:46px;color:var(--hnv-creme)}
.hnv-biais--sable{color:var(--hnv-sable)}
.hnv-biais--ardoise{color:var(--hnv-ardoise)}

/* ---------- Formulaire ------------------------------------------------- */
.hnv-form{display:grid;gap:.75rem}
.hnv-ligne{display:grid;gap:.3rem}
.hnv-ligne label{font-size:.82rem;font-weight:800;color:var(--hnv-ardoise)}
.hnv-ligne input,.hnv-ligne select,.hnv-ligne textarea{
  width:100%;font:400 16px/1.45 'Nunito',Verdana,sans-serif;color:var(--hnv-ardoise);
  background:#fff;border:1.5px solid var(--hnv-trait);border-radius:12px;padding:12px 14px;
  min-height:48px;-webkit-appearance:none;appearance:none;
}
.hnv-ligne select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234d6076' stroke-width='1.8'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px;padding-right:36px}
.hnv-ligne textarea{min-height:96px;resize:vertical;border-radius:14px}
.hnv-ligne input:focus,.hnv-ligne select:focus,.hnv-ligne textarea:focus{outline:3px solid rgba(194,86,31,.3);outline-offset:0;border-color:var(--hnv-tuile)}
.hnv-form .hnv-pilule{width:100%}
.hnv-leurre{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.hnv-fin{font-size:.79rem;color:var(--hnv-ardoise-pale);margin:0}

/* ---------- Sections --------------------------------------------------- */
.hnv-zone{padding:var(--hnv-respire) 0}
.hnv-zone--sable{background:var(--hnv-sable)}
.hnv-zone--ardoise{background:var(--hnv-ardoise);color:#ddd2c4}
.hnv-zone--ardoise h1,.hnv-zone--ardoise h2,.hnv-zone--ardoise h3{color:var(--hnv-creme)}
.hnv-zone--ardoise .hnv-intro{color:#c3b9ab}
.hnv-zone--ardoise .hnv-oeil{background:rgba(255,255,255,.12);color:#f0c9a8}
.hnv-tete{max-width:62ch;margin-bottom:2rem}

/* Cartes tres arrondies */
.hnv-cartes{display:grid;gap:1.1rem}
.hnv-carte{background:var(--hnv-creme);border-radius:var(--hnv-rond);overflow:hidden;box-shadow:0 6px 20px rgba(43,58,74,.07);display:flex;flex-direction:column}
.hnv-zone--sable .hnv-carte{background:#fff}
.hnv-carte img{width:100%;aspect-ratio:4/3;object-fit:cover}
.hnv-carte__texte{padding:1.1rem 1.2rem 1.3rem;display:flex;flex-direction:column;flex:1 1 auto}
.hnv-carte ul{margin:0 0 1em;padding-left:1.1em;font-size:.94rem;color:var(--hnv-ardoise-pale)}
.hnv-carte li{margin-bottom:.25em}
.hnv-carte__pied{margin-top:auto}
.hnv-fleche{font-weight:800;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.hnv-fleche svg{width:17px;height:17px}

/* Communes : pastilles (la proximite est l'argument n 1) */
.hnv-pastilles{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.hnv-pastilles li{
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);
  border-radius:999px;padding:.42rem .9rem;font-size:.9rem;font-weight:700;
}
.hnv-zone:not(.hnv-zone--ardoise) .hnv-pastilles li{background:var(--hnv-brique);border-color:var(--hnv-trait);color:var(--hnv-ardoise)}

/* Etapes : bulles numerotees rondes */
.hnv-marches{list-style:none;counter-reset:m;margin:0;padding:0;display:grid;gap:1.4rem}
.hnv-marches li{counter-increment:m;display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:start}
.hnv-marches li::before{
  content:counter(m);width:40px;height:40px;border-radius:50%;background:var(--hnv-tuile);color:#fff;
  display:grid;place-items:center;font-weight:800;font-size:1.05rem;
}
.hnv-marches h3{margin-bottom:.25em}
.hnv-marches p{margin:0;color:var(--hnv-ardoise-pale)}

/* Postes de prix */
.hnv-postes{display:grid;gap:.8rem;margin:0;padding:0;list-style:none}
.hnv-postes li{background:var(--hnv-creme);border-radius:14px;padding:1rem 1.15rem}
.hnv-zone--sable .hnv-postes li{background:#fff}
.hnv-postes strong{display:block;margin-bottom:.2rem}
.hnv-postes small{color:var(--hnv-ardoise-pale);font-size:.9rem;line-height:1.55;display:block}

/* Realisations */
.hnv-galerie{display:grid;gap:1.1rem}
.hnv-galerie figure{margin:0;background:#fff;border-radius:var(--hnv-rond);overflow:hidden;box-shadow:0 6px 20px rgba(43,58,74,.07)}
.hnv-galerie img{width:100%;aspect-ratio:4/3;object-fit:cover}
.hnv-galerie figcaption{padding:1rem 1.15rem 1.25rem}
.hnv-galerie h2,.hnv-galerie h3{font-size:1.06rem;margin-bottom:.25em}
.hnv-galerie p{margin:0;font-size:.92rem;color:var(--hnv-ardoise-pale)}
.hnv-ou{display:inline-block;background:var(--hnv-brique);color:var(--hnv-tuile);border-radius:999px;padding:.24rem .7rem;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.55rem}

/* FAQ */
.hnv-faq{display:grid;gap:.75rem}
.hnv-faq details{background:var(--hnv-creme);border-radius:14px;padding:0 1.15rem}
.hnv-zone--sable .hnv-faq details{background:#fff}
.hnv-faq summary{cursor:pointer;padding:1.1rem 0;font-weight:800;list-style:none;display:flex;gap:1rem;align-items:flex-start}
.hnv-faq summary::-webkit-details-marker{display:none}
.hnv-faq summary::after{content:'+';margin-left:auto;color:var(--hnv-tuile);font-weight:800;flex:0 0 auto}
.hnv-faq details[open] summary::after{content:'\2212'}
.hnv-faq__dit{padding-bottom:1.1rem;color:var(--hnv-ardoise-pale)}
.hnv-faq__dit p:last-child{margin-bottom:0}

/* Coordonnees */
.hnv-infos{list-style:none;margin:0;padding:0;display:grid;gap:1rem}
.hnv-infos li{display:grid;grid-template-columns:auto 1fr;gap:.85rem;align-items:start}
.hnv-infos svg{width:21px;height:21px;color:var(--hnv-tuile);margin-top:3px}
.hnv-infos span{display:block;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--hnv-ardoise-pale)}
.hnv-infos a{color:inherit}
.hnv-duo{display:grid;gap:1.9rem}

/* ---------- Pied de page ---------------------------------------------- */
.hnv-socle{background:var(--hnv-ardoise);color:#c3b9ab;padding:2.6rem 0 1.5rem;font-size:.93rem}
.hnv-socle__grille{display:grid;gap:1.9rem}
.hnv-socle h3{color:var(--hnv-creme);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.9rem}
.hnv-socle a{color:#c3b9ab;text-decoration:none}
.hnv-socle a:hover{color:#fff;text-decoration:underline}
.hnv-socle ul{list-style:none;margin:0;padding:0}
.hnv-socle li{margin-bottom:.45rem}
.hnv-nap{margin:0}
.hnv-nap b{color:var(--hnv-creme);display:block;font-weight:800;margin-bottom:.3rem}
.hnv-socle__ourlet{margin-top:2rem;padding-top:1.1rem;border-top:1px solid rgba(255,255,255,.12);display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;font-size:.84rem}

/* ---------- Pages interieures ----------------------------------------- */
.hnv-piste{font-size:.83rem;color:var(--hnv-ardoise-pale);padding:.9rem 0 0}
.hnv-piste ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem}
.hnv-piste a{color:var(--hnv-ardoise-pale);display:inline-block;padding:.55rem 0}
.hnv-piste li{display:flex;align-items:center}
.hnv-faitiere{padding:1.5rem 0 2rem}
.hnv-texte h2{margin-top:2.2rem}
.hnv-texte h3{margin-top:1.6rem}
.hnv-texte ul,.hnv-texte ol{padding-left:1.15em}
.hnv-texte li{margin-bottom:.4em}
.hnv-large{max-width:68ch}
[id]{scroll-margin-top:78px}

/* ---------- Desktop ---------------------------------------------------- */
@media (min-width:880px){
  .hnv-hamb{display:none}
  .hnv-menu{display:flex;gap:1.35rem;margin-left:1.5rem}
  .hnv-menu a{padding:0;border:0;font-size:.93rem;white-space:nowrap}
  .hnv-menu a:hover{color:var(--hnv-tuile)}
  .hnv-chapeau__rang{min-height:76px}
  .hnv-accroche{padding:3.2rem 0 3.4rem}
  /* Famille « local » : le duo est INVERSE, formulaire a gauche. */
  .hnv-accroche__duo{grid-template-columns:.92fr 1.08fr;gap:2.8rem;align-items:center}
  .hnv-fiche{order:-1;padding:1.6rem 1.7rem}
  .hnv-cartes{grid-template-columns:repeat(3,1fr);gap:1.4rem}
  .hnv-cartes--paire{grid-template-columns:repeat(2,1fr)}
  .hnv-galerie{grid-template-columns:repeat(3,1fr);gap:1.4rem}
  .hnv-postes{grid-template-columns:repeat(2,1fr);gap:1rem}
  .hnv-marches{grid-template-columns:repeat(2,1fr);gap:1.8rem 2.4rem}
  .hnv-duo{grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
  .hnv-socle__grille{grid-template-columns:1.5fr 1fr 1.2fr;gap:3rem}
  .hnv-biais{height:62px}
  /* Casse la symetrie : le titre de section deborde a droite. */
  .hnv-tete--pousse{margin-left:auto;text-align:right}
}
@media (min-width:1120px){.hnv-accroche__duo{gap:3.6rem}}
