@font-face { font-family: "Bricolage"; src: url("/static/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/static/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --papier: #f5f1e8;
  --papier-2: #ece6d8;
  --encre: #14211d;
  --vert: #23483e;
  --doux: #55615b;
  --mirabelle: #edb92e;
  --mirabelle-fonce: #8a6400;
  --trait: rgba(20, 33, 29, .17);
  --erreur: #a3261c;
  --titre: "Bricolage", "Trebuchet MS", sans-serif;
  --texte: "Instrument", "Segoe UI", system-ui, sans-serif;
  --large: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1.0625rem/1.6 var(--texte); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--mirabelle-fonce); }
:focus-visible { outline: 3px solid var(--mirabelle); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 650; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
p, ul, ol, dl { margin: 0; }
p + p, p + ul, ul + p { margin-top: .9em; }
p { text-wrap: pretty; }

.wrap { width: min(100% - 2.5rem, var(--large)); margin-inline: auto; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--papier); padding: .6rem 1rem; z-index: 10; }
.evitement:focus { left: .5rem; top: .5rem; }

/* en-tête */
.entete { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--papier) 92%, transparent); border-bottom: 1px solid var(--trait); }
.entete-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4rem; }
.marque { font: 750 1.55rem/1 var(--titre); letter-spacing: -.04em; text-decoration: none; text-transform: lowercase; margin: 0; }
.marque span { background: var(--mirabelle); padding: 0 .12em .04em; margin-left: .04em; border-radius: 3px; color: var(--encre); }
.entete nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); align-items: center; font-size: .97rem; }
.entete nav a { text-decoration: none; padding: .7rem 0; }
.entete nav a:hover { text-decoration: underline; }
.entete nav a:last-child { background: var(--encre); color: var(--papier); padding: .55rem 1rem; border-radius: 999px; }
.entete nav a:last-child:hover { background: var(--vert); text-decoration: none; }
@media (max-width: 46rem) { .entete nav a:not(:last-child) { display: none; } }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.5rem; border: 2px solid var(--encre); border-radius: 999px; background: var(--encre); color: var(--papier); font: 600 1rem/1.2 var(--texte); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--vert); border-color: var(--vert); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--encre); }
.btn-ghost:hover { background: var(--encre); color: var(--papier); border-color: var(--encre); }

/* hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.surtitre { font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--vert); margin-bottom: 1.4rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 38rem; margin-top: 1.6rem; color: #26332e; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.fiche { background: var(--mirabelle); border-radius: 6px; padding: 1.6rem 1.6rem 1.2rem; transform: rotate(.6deg); box-shadow: 6px 6px 0 var(--encre); }
.fiche-titre { font: 700 1.5rem/1.1 var(--titre); letter-spacing: -.02em; padding-bottom: .9rem; border-bottom: 2px solid var(--encre); }
.fiche dl > div { display: grid; grid-template-columns: 5.2rem 1fr; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid rgba(20, 33, 29, .3); }
.fiche dl > div:last-child { border-bottom: 0; }
.fiche dt { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-top: .2rem; }
.fiche dd { margin: 0; font-weight: 500; line-height: 1.4; }
@media (max-width: 56rem) { .hero-grid { grid-template-columns: 1fr; } .fiche { transform: none; max-width: 30rem; } }

/* blocs */
.bloc { padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--trait); }
.intro { color: var(--doux); margin-top: 1.1rem; max-width: 34rem; }
.intro.large { font-size: 1.15rem; max-width: 40rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-tete { position: sticky; top: 6rem; }
@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } .split-tete { position: static; } }

.lignes { list-style: none; padding: 0; }
.lignes li { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 1rem 2rem; padding: 1.4rem 0; border-top: 1px solid var(--trait); }
.lignes li:first-child { border-top: 2px solid var(--encre); }
.lignes li:last-child { border-bottom: 1px solid var(--trait); }
.lignes div { color: #2c3934; }
@media (max-width: 36rem) { .lignes li { grid-template-columns: 1fr; gap: .4rem; } }

/* souveraineté */
.sombre { background: var(--encre); color: var(--papier); border-top: 0; }
.sombre .intro { color: #b9c4bd; }
.sombre h2 { max-width: 18ch; }
.principes { list-style: none; padding: 0; margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.principes li { border-top: 2px solid var(--mirabelle); padding: 1.3rem 0 2rem; }
.principes h3 { color: var(--mirabelle); margin-bottom: .7rem; font-size: 1.35rem; }
.principes p { color: #dfe5e0; }
.note { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(245, 241, 232, .22); color: #b9c4bd; font-size: .97rem; max-width: 46rem; }

/* étapes */
.etapes { list-style: none; padding: 0; margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 2.5rem); counter-reset: etape; }
.etapes li { counter-increment: etape; border-top: 2px solid var(--encre); padding-top: 1rem; }
.etapes li::before { content: counter(etape, decimal-leading-zero); display: block; font: 600 .95rem/1 var(--titre); color: var(--mirabelle-fonce); margin-bottom: 1.6rem; }
.etapes h3 { margin-bottom: .6rem; }
.etapes p { color: #2c3934; }

/* tableau (exemple chiffré) */
.tableau-cadre { margin-top: clamp(2rem, 4vw, 3rem); background: #fffdf8; border: 1px solid var(--trait); border-radius: 6px; overflow: hidden; }
.tableau { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tableau th, .tableau td { padding: .95rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
.tableau thead th { font: 600 .82rem/1.3 var(--texte); letter-spacing: .05em; text-transform: uppercase; color: var(--doux); border-bottom: 2px solid var(--encre); white-space: nowrap; }
.tableau tbody th { font: 600 1.05rem/1.3 var(--titre); }
.tableau .nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tableau tfoot th, .tableau tfoot td { background: var(--mirabelle); font-weight: 700; border-bottom: 0; font-size: 1.08rem; }
.tableau tfoot th { font-family: var(--titre); }
.tableau-notes { margin-top: 1rem; font-size: .92rem; color: var(--doux); max-width: 46rem; }
.tableau-notes p + p { margin-top: .25em; }
.tableau-prix { margin-top: 1.6rem; padding: 1rem 1.2rem; border: 2px solid var(--encre); border-radius: 6px; font-weight: 600; font-size: 1.1rem; max-width: 46rem; }
.tableau-conclusion { margin-top: 2rem; font: 600 clamp(1.35rem, 2.6vw, 1.9rem)/1.25 var(--titre); letter-spacing: -.01em; max-width: 30ch; text-wrap: balance; }
@media (max-width: 46rem) {
  .tableau thead { position: absolute; left: -9999px; }
  .tableau, .tableau tbody, .tableau tfoot, .tableau tr, .tableau th, .tableau td { display: block; }
  .tableau tr { padding: .9rem 1rem; border-bottom: 1px solid var(--trait); }
  .tableau tfoot tr { background: var(--mirabelle); border-bottom: 0; }
  .tableau th, .tableau td { padding: .15rem 0; border: 0; }
  .tableau tbody th, .tableau tfoot th { margin-bottom: .35rem; }
  .tableau td { display: flex; justify-content: space-between; gap: 1rem; text-align: right; white-space: normal; }
  .tableau td:empty { display: none; }
  .tableau td::before { content: attr(data-label); color: var(--doux); font-weight: 400; text-align: left; flex: none; }
  .tableau tfoot td::before { color: var(--encre); }
}

/* portrait */
.teinte { background: var(--papier-2); }
.portrait { display: grid; grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.portrait.sans-image { grid-template-columns: minmax(0, 46rem); }
.portrait-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: 6px 6px 0 var(--encre); }
.portrait h2 { margin-bottom: 1.4rem; }
.points { list-style: none; padding: 0; margin-top: 1.8rem; border-top: 1px solid var(--trait); }
.points li { padding: .7rem 0; border-bottom: 1px solid var(--trait); font-weight: 500; }
@media (max-width: 46rem) { .portrait { grid-template-columns: 1fr; } .portrait-img { max-width: 18rem; } }

/* faq */
.faq details { border-top: 1px solid var(--trait); }
.faq details:first-child { border-top: 2px solid var(--encre); }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font: 600 1.15rem/1.3 var(--titre); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; translate: 0 -50%; font-size: 1.6rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > :not(summary) { padding-bottom: 1.3rem; max-width: 40rem; color: #2c3934; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }
form { margin-top: 2.2rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 30rem) { .duo { grid-template-columns: 1fr; gap: 0; } }
.champ { margin-bottom: 1.25rem; }
label { display: block; font-weight: 600; margin-bottom: .4rem; }
.opt { font-weight: 400; color: var(--doux); }
input, textarea { width: 100%; padding: .8rem .9rem; font: inherit; color: inherit; background: #fffdf8; border: 1.5px solid #6d7872; border-radius: 4px; }
textarea { resize: vertical; min-height: 6rem; }
input:focus, textarea:focus { outline: 3px solid var(--mirabelle); outline-offset: 1px; border-color: var(--encre); }
[aria-invalid="true"] { border-color: var(--erreur); }
.erreur { color: var(--erreur); font-weight: 600; font-size: .95rem; margin-top: .35rem; }
.erreur.globale { margin-top: 1.5rem; padding: .9rem 1rem; border: 1.5px solid var(--erreur); border-radius: 4px; background: #fbeeea; }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mention { margin-top: 1.2rem; font-size: .92rem; color: var(--doux); max-width: 34rem; }
.encart { background: var(--papier-2); border-radius: 6px; padding: 1.8rem; position: sticky; top: 6rem; }
.encart h3 { margin-bottom: .7rem; }
.encart .btn { margin: .6rem 0 .4rem; }
.encart p + p { margin-top: .7rem; }

/* pages de texte */
.prose { max-width: 46rem; }
.prose h1, .prose h2 { margin-bottom: 2rem; }
body:not(.accueil) h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.prose h3 { margin: 2.2rem 0 .6rem; font-size: 1.3rem; }
.prose ul { padding-left: 1.2rem; }
.pleine img { width: 100%; border-radius: 6px; }
.pleine figcaption { margin-top: .6rem; color: var(--doux); font-size: .95rem; }
figure { margin: 0; }
body:not(.accueil) main > .bloc:first-child { border-top: 0; }

/* pied */
.pied { background: var(--encre); color: #cfd7d1; padding: 3rem 0; font-size: .97rem; }
.pied-in { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: start; }
.pied .marque { color: var(--papier); margin-bottom: .9rem; }
.pied nav { display: grid; gap: .5rem; justify-items: end; }
.pied-note { grid-column: 1 / -1; padding-top: 1.3rem; border-top: 1px solid rgba(245, 241, 232, .2); color: #9fada5; font-size: .9rem; }
@media (max-width: 36rem) { .pied-in { grid-template-columns: 1fr; } .pied nav { justify-items: start; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { .entete, .pied nav, form, .actions { display: none; } body { background: #fff; } }
