/* Expertise Évaluation : feuille de style
   Palette : papier blanc, encre vert très sombre, vert registre, repère laiton.
   Motif : la règle graduée (en-tête, séparateurs) et la fourchette de valeurs. */

@font-face { font-family: "Literata"; src: url("fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --papier: #ffffff;
  --papier-2: #eff3f1;
  --encre: #15211d;
  --encre-2: #4a5a53;
  --vert: #1f5f4e;
  --vert-fonce: #164637;
  --laiton: #b8892b;
  --filet: #d5ddd9;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mesure: 66ch;
  --marge-page: clamp(1.25rem, 4vw, 3rem);
  --graduation: repeating-linear-gradient(90deg, var(--encre) 0 1px, transparent 1px 8px);
  --graduation-forte: repeating-linear-gradient(90deg, var(--encre) 0 1px, transparent 1px 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--vert); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--vert-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--laiton); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.05rem, 4.2vw, 3.15rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }

.skip { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: 0.6rem 1rem; font-family: var(--sans); z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: 74rem; margin: 0 auto; padding-inline: var(--marge-page); }

/* En-tête : une règle graduée en guise de filet */
.site-head { background: var(--papier); position: relative; z-index: 5; }
.site-head::after { content: ""; display: block; height: 9px; background: var(--graduation-forte) 0 0 / 100% 9px no-repeat, var(--graduation) 0 5px / 100% 4px no-repeat; opacity: 0.28; }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.95rem; flex-wrap: wrap; position: relative; }
.marque { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; color: var(--encre); text-decoration: none; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto; }
.marque:hover { color: var(--encre); }
.marque svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 1.25rem; font-family: var(--sans); font-weight: 500; font-size: 0.95rem; }
.nav a { color: var(--encre); text-decoration: none; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--vert); }
.nav a[aria-current="page"] { border-bottom-color: var(--laiton); }

.menu > summary { list-style: none; cursor: pointer; color: var(--encre); padding-block: 0.3rem; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 0.35rem; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: 0.42em; height: 0.42em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.15em) rotate(45deg); transition: transform 0.15s; }
.menu[open] > summary::after { transform: translateY(0.1em) rotate(-135deg); }
.menu > summary:hover { color: var(--vert); }
.menu > summary.actif { border-bottom-color: var(--laiton); }
.menu-panneau { position: absolute; left: var(--marge-page); right: var(--marge-page); top: calc(100% + 9px); background: var(--papier); border: 1px solid var(--filet); border-top: 3px solid var(--vert); box-shadow: 0 18px 36px -24px rgba(21, 33, 29, 0.5); padding: 1.4rem 1.6rem 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2.5rem; }
.menu-groupe p { margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--encre-2); }
.menu-groupe ul { list-style: none; margin: 0; padding: 0; }
.menu-groupe li { margin: 0; }
.menu-groupe a { display: block; padding: 0.4rem 0; font-family: var(--serif); font-size: 1.02rem; font-weight: 500; border-bottom: 0; }
.menu-groupe a[aria-current="page"] { color: var(--vert); border-bottom: 0; text-decoration: underline; text-decoration-color: var(--laiton); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }

.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; padding: 0.8rem 1.25rem; border-radius: 2px; border: 1.5px solid var(--vert); background: var(--vert); color: #fff; cursor: pointer; }
.btn:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #fff; text-decoration: none; }
.btn-second { background: transparent; color: var(--vert); }
.btn-second:hover { background: var(--papier-2); color: var(--vert-fonce); }
.btn-tete { padding: 0.55rem 0.95rem; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

@media (max-width: 760px) {
  .site-head .wrap { gap: 0.6rem 0.75rem; padding-block: 0.8rem 0.5rem; }
  .marque { font-size: 1.02rem; gap: 0.4rem; }
  .marque svg { width: 26px; height: 26px; }
  .btn-tete { padding: 0.4rem 0.65rem; font-size: 0.85rem; }
  .nav { order: 3; width: 100%; gap: 1.05rem; font-size: 0.9rem; }
  .nav a, .menu > summary { white-space: nowrap; }
  .menu-panneau { grid-template-columns: 1fr; gap: 1rem; padding: 1.1rem 1.2rem 1.2rem; max-height: calc(100vh - 7rem); overflow-y: auto; }
}
@media (max-width: 380px) { .marque svg { display: none; } .nav { gap: 0.8rem; font-size: 0.86rem; } }

/* Accueil */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4.25rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 17ch; }
.hero .chapeau { font-size: 1.22rem; line-height: 1.55; color: var(--encre-2); max-width: 36rem; }
.hero .precision { font-family: var(--sans); font-size: 0.88rem; color: var(--encre-2); margin-top: 1rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* La fourchette : synthèse des méthodes, comme en conclusion d'un rapport */
.fourchette { margin: 0; background: var(--papier-2); padding: 1.5rem 1.5rem 1.2rem; border-left: 3px solid var(--vert); }
.fourchette h2 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.fourchette .sous { font-family: var(--sans); font-size: 0.84rem; color: var(--encre-2); margin-bottom: 0.9rem; }
.fourchette svg { display: block; width: 100%; height: auto; overflow: visible; }
.fourchette .legende { font-family: var(--sans); font-size: 0.84rem; color: var(--encre-2); margin: 0.6rem 0 0; }
.fourchette .barre { fill: var(--vert); opacity: 0.85; }
.fourchette .barre-claire { fill: var(--vert); opacity: 0.35; }
.fourchette .axe { stroke: var(--encre); stroke-width: 1; opacity: 0.45; }
.fourchette .tic { stroke: var(--encre); stroke-width: 1; opacity: 0.35; }
.fourchette .etiq { font-family: var(--sans); font-size: 13px; fill: var(--encre); }
.fourchette .etiq-axe { font-family: var(--sans); font-size: 11px; fill: var(--encre-2); }
.fourchette .repere { stroke: var(--laiton); stroke-width: 2.5; }
.fourchette .repere-pointe { fill: var(--laiton); }
.fourchette .repere-texte { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--encre); }
@media (prefers-reduced-motion: no-preference) {
  .fourchette .curseur { animation: placer 1.1s cubic-bezier(.3,.8,.25,1) 0.4s both; }
  @keyframes placer { from { transform: translateX(-140px); opacity: 0; } 40% { opacity: 1; } to { transform: translateX(0); opacity: 1; } }
}

.bloc { padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.bloc-gris { background: var(--papier-2); }
.bloc .intro { max-width: var(--mesure); color: var(--encre-2); }
.graduee { height: 9px; background: var(--graduation-forte) 0 0 / 100% 9px no-repeat, var(--graduation) 0 5px / 100% 4px no-repeat; opacity: 0.22; margin: 0; border: 0; }

.missions { list-style: none; padding: 0; margin: 2rem 0 0; }
.missions li { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) auto; gap: 0.5rem 2rem; padding: 1.3rem 0; border-top: 1px solid var(--filet); margin: 0; align-items: baseline; }
.missions li:last-child { border-bottom: 1px solid var(--filet); }
.missions h3 { margin: 0; font-size: 1.18rem; }
.missions h3 a { color: var(--encre); text-decoration: none; }
.missions h3 a:hover { color: var(--vert); text-decoration: underline; }
.missions p { margin: 0; color: var(--encre-2); }
.missions .prix { font-family: var(--sans); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.missions .prix small { display: block; font-weight: 400; color: var(--encre-2); font-size: 0.8rem; }
@media (max-width: 760px) { .missions li { grid-template-columns: 1fr; } .missions .prix { text-align: left; } }

.etapes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: etape; }
.etapes li { counter-increment: etape; margin: 0; padding-top: 0.9rem; border-top: 2px solid var(--encre); position: relative; }
.etapes li::before { content: counter(etape); position: absolute; top: -0.85rem; left: 0; background: inherit; font-family: var(--sans); font-weight: 600; font-size: 0.85rem; color: var(--vert); }
.bloc-gris .etapes li::before { background: var(--papier-2); padding-right: 0.5rem; }
.bloc:not(.bloc-gris) .etapes li::before, .doc .etapes li::before { background: var(--papier); padding-right: 0.5rem; }
.etapes h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.etapes p { color: var(--encre-2); font-size: 0.98rem; margin: 0; }
@media (max-width: 900px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }

.garanties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3rem; margin-top: 2rem; }
.garanties h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.garanties p { margin: 0; color: var(--encre-2); }
@media (max-width: 760px) { .garanties { grid-template-columns: 1fr; } }

.faq { max-width: var(--mesure); margin-top: 1.5rem; }
.faq details { border-top: 1px solid var(--filet); }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 500; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-family: var(--sans); font-size: 1.35rem; color: var(--vert); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.1rem; color: var(--encre-2); }

/* Pages de contenu */
.doc-tete { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--filet); }
.fil { font-family: var(--sans); font-size: 0.86rem; color: var(--encre-2); margin-bottom: 1.2rem; }
.fil a { color: var(--encre-2); }
.doc-tete h1 { max-width: 24ch; }
.chapeau { font-size: 1.2rem; line-height: 1.55; color: var(--encre-2); max-width: 44rem; margin-bottom: 0; }
.doc-tete .actions { margin-top: 1.5rem; }
.doc-tete .sommaire { font-family: var(--sans); font-size: 0.93rem; color: var(--encre-2); margin: 1rem 0 0; max-width: var(--mesure); line-height: 1.7; }

.doc { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(3rem, 6vw, 4.5rem); }
.doc section { display: grid; grid-template-columns: minmax(0, var(--mesure)) minmax(0, 15rem); column-gap: clamp(2rem, 5vw, 4rem); margin-bottom: 2.6rem; }
.doc section > * { grid-column: 1; }
.doc section.large { display: block; }
.doc section > .note { grid-column: 2; grid-row: 1 / span 20; align-self: start; }
.doc section[id] { scroll-margin-top: 1.5rem; }
.doc h2 { margin-bottom: 0.7em; }
.doc h3 { margin-top: 1.4em; }
.note { font-family: var(--sans); font-size: 0.87rem; line-height: 1.55; color: var(--encre-2); border-left: 3px solid var(--laiton); padding: 0.1rem 0 0.1rem 0.9rem; margin: 0.3rem 0 1.25rem; }
.note p { margin: 0 0 0.5em; }
.note p:last-child { margin: 0; }
.note strong { color: var(--encre); font-weight: 600; }
@media (max-width: 900px) {
  .doc section { grid-template-columns: minmax(0, 1fr); }
  .doc section > .note { grid-column: 1; grid-row: auto; }
}

.encadre { background: var(--papier-2); border-left: 3px solid var(--vert); padding: 1.3rem 1.5rem; margin: 0.5rem 0 1.5rem; }
.encadre h2, .encadre h3 { margin-top: 0; }
.encadre p:last-child { margin-bottom: 0; }

.tableau { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.5rem; font-size: 1rem; }
.tableau caption { text-align: left; font-family: var(--sans); font-size: 0.86rem; color: var(--encre-2); padding-bottom: 0.6rem; }
.tableau th, .tableau td { text-align: left; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
.tableau thead th { font-family: var(--sans); font-weight: 600; font-size: 0.88rem; color: var(--encre-2); border-bottom: 1.5px solid var(--encre); }
.tableau td.montant, .tableau th.montant { text-align: right; font-family: var(--sans); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tableau td.montant:last-child, .tableau th.montant:last-child { padding-right: 0; }
.tableau td.discret { font-weight: 400; color: var(--encre-2); }
.tableau-defile { overflow-x: auto; }

.liste-pieces { columns: 2; column-gap: 2.5rem; }
.liste-pieces li { break-inside: avoid; }
@media (max-width: 640px) { .liste-pieces { columns: 1; } }

.a-completer { color: #3d3000; background: #fff4c2; padding: 0 0.2em; border-radius: 2px; font-family: var(--sans); font-size: 0.92em; }

/* Articles */
.date-article { font-family: var(--sans); font-size: 0.86rem; color: var(--encre-2); margin: 0.9rem 0 0; }
.article > section, .article > aside { max-width: var(--mesure); }
.article h2 { margin-top: 1.6em; }
.article .sources { font-family: var(--sans); font-size: 0.9rem; color: var(--encre-2); border-top: 1px solid var(--filet); padding-top: 1rem; margin-top: 2rem; }
.article .sources h2 { font-family: var(--sans); font-size: 0.95rem; margin: 0 0 0.5rem; }
.fin-article { margin-top: 2rem; }
.liste-articles { list-style: none; padding: 0; margin: 0; max-width: var(--mesure); }
.liste-articles li { border-top: 1px solid var(--filet); padding: 1.4rem 0; margin: 0; }
.liste-articles li:last-child { border-bottom: 1px solid var(--filet); }
.liste-articles .date-article { margin: 0 0 0.35rem; }
.liste-articles h2 { font-size: 1.35rem; margin: 0 0 0.4rem; }
.liste-articles h2 a { color: var(--encre); text-decoration: none; }
.liste-articles h2 a:hover { color: var(--vert); text-decoration: underline; }
.liste-articles p { margin: 0; color: var(--encre-2); }

.cartes-guides { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.cartes-guides li { border-top: 2px solid var(--encre); padding: 1rem 0 1.5rem; margin: 0; }
.cartes-guides h2, .cartes-guides h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.cartes-guides a { color: var(--encre); text-decoration: none; }
.cartes-guides a:hover { color: var(--vert); text-decoration: underline; }
.cartes-guides p { color: var(--encre-2); margin: 0; }
@media (max-width: 760px) { .cartes-guides { grid-template-columns: 1fr; } }

/* Calculateur */
.calc { background: var(--papier-2); padding: clamp(1.25rem, 3vw, 2rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 2rem; margin: 1rem 0 3.5rem; }
.calc fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.calc legend, .calc label.titre { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; display: block; padding: 0; }
.calc select { font: inherit; font-family: var(--sans); font-size: 1rem; width: 100%; padding: 0.65rem 0.75rem; border: 1.5px solid var(--filet); border-radius: 2px; background: #fff; color: var(--encre); }
.calc select:focus-visible { border-color: var(--vert); }
.calc .choix { display: flex; align-items: center; gap: 0.6rem; font-family: var(--sans); font-size: 0.97rem; margin: 0.4rem 0; }
.calc .choix input { width: 1.15rem; height: 1.15rem; accent-color: var(--vert); flex-shrink: 0; }
.calc .aide { font-family: var(--sans); font-size: 0.85rem; color: var(--encre-2); margin: 0.4rem 0 0; }
.resultat { background: #fff; padding: 1.4rem; align-self: start; border-top: 3px solid var(--laiton); }
.resultat .libelle { font-family: var(--sans); font-size: 0.9rem; color: var(--encre-2); margin: 0 0 0.25rem; }
.resultat .total { font-family: var(--sans); font-weight: 600; font-size: 2.05rem; line-height: 1.1; margin: 0 0 0.25rem; font-variant-numeric: tabular-nums; }
.resultat .detail { font-family: var(--sans); font-size: 0.9rem; color: var(--encre-2); margin: 0 0 1rem; }
.resultat .btn { width: 100%; text-align: center; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

/* Pied de page */
.site-pied { background: var(--encre); color: #d9e2de; font-family: var(--sans); font-size: 0.92rem; line-height: 1.55; padding-block: 3rem 2.5rem; }
.site-pied a { color: #fff; }
.site-pied :focus-visible { outline-color: #fff; }
.site-pied .colonnes { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.site-pied h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: #fff; margin: 0 0 0.75rem; }
.site-pied ul { list-style: none; padding: 0; margin: 0; }
.site-pied li { margin-bottom: 0.45rem; }
.site-pied .marque-pied { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 0.6rem; }
.site-pied .legal { border-top: 1px solid #34453f; margin-top: 2.25rem; padding-top: 1.25rem; color: #b3c0ba; font-size: 0.85rem; }
@media (max-width: 760px) { .site-pied .colonnes { grid-template-columns: 1fr; } }

.vide { padding-block: clamp(4rem, 12vw, 8rem); }
.vide p { max-width: 36rem; color: var(--encre-2); }

.btn-ligne { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.tableau td.montant .btn { color: #fff; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media print {
  .site-head .nav, .site-pied, .actions, .btn-tete { display: none; }
  body { font-size: 11pt; }
}

@media (max-width: 560px) {
  .fourchette { padding: 1.2rem 1rem 1rem; }
  .fourchette .etiq, .fourchette .repere-texte { font-size: 16px; }
  .fourchette .etiq-axe { font-size: 14px; }
  .fourchette .repere-texte { text-anchor: middle; }
}

@media (max-width: 760px) { .nav { flex-wrap: wrap; row-gap: 0.35rem; } }

/* Prix HT, bascule particulier */
.px { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bascule-prix { font-family: var(--sans); font-size: 0.88rem; color: var(--encre-2); margin: -0.75rem 0 1.5rem; }
.missions + .bascule-prix { margin-top: 1rem; }
.lien-bouton { font: inherit; color: var(--vert); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.lien-bouton:hover { color: var(--vert-fonce); text-decoration-thickness: 2px; }
