@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/schibsted.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --vert: #99be18;
  --vert-fonce: #4f6b06;
  --vert-pale: #eef4dc;
  --ardoise: #2b302a;
  --gris: #5c625a;
  --trait: #dfe3d6;
  --fond: #ffffff;
  --nuit: #1f241d;
  --ambre: #ffb300;
  --largeur: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--ardoise);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--ardoise); }

:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.enveloppe { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

.lien-evitement { position: absolute; left: -999px; top: 8px; background: var(--ardoise); color: #fff; padding: 8px 14px; z-index: 10; }
.lien-evitement:focus { left: 8px; }

/* En-tête */
.entete { border-bottom: 1px solid var(--trait); background: var(--fond); }
.entete .enveloppe { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.55rem; letter-spacing: -0.04em; line-height: 1; }
.marque svg { width: 34px; height: 34px; flex: none; }
.marque .ext { background: var(--vert); color: var(--ardoise); border-radius: 7px; padding: 3px 7px 4px; margin-left: 2px; font-size: 1.05rem; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 1rem; }
.nav a:hover { background: var(--vert-pale); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--vert); border-radius: 0; }
.nav .bouton { margin-left: 10px; }

.menu-bascule { display: none; }

@media (max-width: 920px) {
  .entete .enveloppe { flex-wrap: wrap; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .menu-bascule { display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--ardoise); border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ardoise); cursor: pointer; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 14px; }
  .nav.ouvert { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--trait); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--vert); padding-left: 14px; }
  .nav .bouton { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}

/* Boutons */
.bouton { display: inline-block; background: var(--vert); color: var(--ardoise); font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 10px; border: 0; font: inherit; font-weight: 700; cursor: pointer; line-height: 1.2; }
.bouton:hover { background: #a9cc2a; }
.bouton-sobre { background: transparent; box-shadow: inset 0 0 0 2px var(--ardoise); }
.bouton-sobre:hover { background: var(--ardoise); color: #fff; }
.nav .bouton { padding: 10px 18px; }
.nav .bouton:hover { background: #a9cc2a; }

/* Héros */
.heros { padding: clamp(48px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.heros .enveloppe { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.heros h1 { max-width: 13ch; }
.heros .chapeau { font-size: clamp(1.15rem, 0.8vw + 1rem, 1.4rem); line-height: 1.5; margin-top: 28px; max-width: 40ch; color: var(--ardoise); }
.heros .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.heros .signature { margin-top: 30px; color: var(--gris); font-size: 0.95rem; }
.spirale { width: 100%; max-width: 420px; justify-self: end; }
.spirale path { fill: none; stroke: var(--vert); stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; }
.spirale .oeil { fill: var(--ardoise); }
@media (prefers-reduced-motion: no-preference) {
  .spirale path { stroke-dasharray: var(--long); stroke-dashoffset: var(--long); animation: trace 1.8s cubic-bezier(.6,.1,.2,1) .15s forwards; }
  .spirale .oeil { opacity: 0; animation: apparait .4s ease 1.8s forwards; }
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes apparait { to { opacity: 1; } }

.heros-page { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--trait); }
.heros-page h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); max-width: 18ch; }
.heros-page .chapeau { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); margin-top: 22px; max-width: 52ch; }
.fil { font-size: 0.92rem; color: var(--gris); margin-bottom: 22px; }
.fil a { color: var(--gris); }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.fil li + li::before { content: "/"; margin-right: 6px; color: var(--trait); }

/* Sections */
.bloc { padding: clamp(56px, 8vw, 112px) 0; }
.bloc + .bloc { padding-top: 0; }
.bloc-teinte { background: var(--vert-pale); }
.bloc-teinte + .bloc, .bloc + .bloc-teinte, .bloc-nuit + .bloc, .bloc + .bloc-nuit { padding-top: clamp(56px, 8vw, 112px); }
.bloc-nuit { background: var(--nuit); color: #e9ece4; }
.bloc-nuit a { color: #fff; }
.entete-bloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.entete-bloc p { color: var(--gris); }
.bloc-nuit .entete-bloc p { color: #b9c0b2; }
@media (max-width: 760px) { .entete-bloc { grid-template-columns: 1fr; } }

/* Deux métiers */
.metiers { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 36px); }
.metier { padding: clamp(28px, 4vw, 48px); border-radius: 22px; }
.metier-site { background: var(--ardoise); color: #f2f4ee; }
.metier-appli { background: var(--vert-pale); margin-top: clamp(0px, 6vw, 72px); }
.metier h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.metier p { opacity: .92; }
.metier ul { list-style: none; margin: 22px 0 26px; }
.metier li { padding: 10px 0; border-top: 1px solid rgba(127,140,110,.35); }
.metier a.suite { font-weight: 700; }
.metier-site a { color: #fff; }
.en-plus { margin-top: 28px; color: var(--gris); max-width: none; }
@media (max-width: 860px) { .metiers { grid-template-columns: 1fr; } .metier-appli { margin-top: 0; } }

/* Argument durabilité */
.duree { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); }
.duree .faits { list-style: none; }
.duree .faits li { padding: 20px 0; border-top: 2px solid var(--ardoise); }
.duree .faits li:last-child { border-bottom: 2px solid var(--ardoise); }
.duree .faits strong { display: block; font-size: 1.2rem; letter-spacing: -0.015em; margin-bottom: 4px; }
.duree .faits span { color: var(--gris); }
.erreur-type { display: inline-block; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9rem; background: #fff3d1; border-left: 4px solid var(--ambre); padding: 10px 14px; margin: 6px 0 20px; color: #5a4300; }
@media (max-width: 860px) { .duree { grid-template-columns: 1fr; } }

/* Réalisations */
.travaux { list-style: none; border-top: 2px solid var(--ardoise); }
.travaux li { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.1fr) 170px; gap: 8px 28px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--trait); }
.travaux .vignette { position: relative; width: 120px; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--vert-pale); overflow: hidden; display: grid; place-items: center; }
.travaux .vignette span { font-weight: 900; font-size: 2.2rem; color: var(--vert); letter-spacing: -0.05em; }
.travaux .vignette img { position: absolute; inset: 0; }
.travaux .vignette img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.travaux h3 { font-size: 1.25rem; }
.travaux .quoi { color: var(--gris); }
.travaux .ou { font-size: 0.95rem; color: var(--vert-fonce); font-weight: 600; text-align: right; }
@media (max-width: 760px) {
  .travaux li { grid-template-columns: 88px minmax(0, 1fr); }
  .travaux .vignette { width: 88px; grid-row: span 3; }
  .travaux .ou { text-align: left; }
}

/* Méthode */
.etapes { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.etapes li { counter-increment: etape; padding: 0 22px 0 0; }
.etapes li::before { content: counter(etape); display: block; font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 900; color: var(--vert); line-height: 1; margin-bottom: 18px; letter-spacing: -0.05em; }
.etapes h3 { font-size: 1.2rem; margin-bottom: 8px; }
.etapes p { color: #b9c0b2; font-size: 1rem; }
@media (max-width: 960px) { .etapes { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } .etapes li { display: grid; grid-template-columns: 64px 1fr; } .etapes li::before { grid-row: span 2; } }

/* Secteur */
.villes { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 2px solid var(--ardoise); }
.villes li { border-bottom: 1px solid var(--trait); }
.villes a { display: block; text-decoration: none; padding: 22px 20px 22px 0; height: 100%; }
.villes a:hover strong { text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.villes strong { display: block; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.035em; line-height: 1.1; }
.villes span { display: block; color: var(--gris); font-size: 0.98rem; margin-top: 6px; }

/* Texte courant */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--vert-fonce); }

.deux-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.aparte { position: sticky; top: 24px; background: var(--vert-pale); border-radius: 18px; padding: 28px; }
.aparte h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.aparte p { font-size: 1rem; }
.aparte .bouton { margin-top: 8px; }
.aparte ul { list-style: none; font-size: 1rem; margin-top: 12px; }
.aparte li { padding: 6px 0; border-top: 1px solid rgba(79,107,6,.2); }
@media (max-width: 900px) { .deux-col { grid-template-columns: 1fr; } .aparte { position: static; } }

/* FAQ */
.faq { border-top: 2px solid var(--ardoise); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 700; font-size: 1.12rem; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 3px solid var(--vert-fonce); border-bottom: 3px solid var(--vert-fonce); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .reponse { padding: 0 0 22px; color: var(--ardoise); }

/* Tarifs */
.formules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ardoise); border-radius: 22px; overflow: hidden; }
.formule { padding: 32px 28px; border-right: 1px solid var(--trait); display: flex; flex-direction: column; }
.formule:last-child { border-right: 0; }
.formule.mise-en-avant { background: var(--ardoise); color: #f2f4ee; }
.formule h3 { font-size: 1.8rem; letter-spacing: -0.03em; }
.formule .pour { color: var(--gris); margin: 8px 0 18px; font-size: 1rem; }
.formule.mise-en-avant .pour { color: #c4cbbd; }
.formule .prix { font-size: 1.35rem; font-weight: 800; margin-bottom: 18px; }
.formule ul { list-style: none; margin-bottom: 26px; flex: 1; }
.formule li { padding: 8px 0; border-top: 1px solid rgba(127,140,110,.35); font-size: 1rem; }
.formule .bouton { align-self: flex-start; }
.formule.mise-en-avant .bouton-sobre { box-shadow: inset 0 0 0 2px #fff; color: #fff; }
@media (max-width: 860px) { .formules { grid-template-columns: 1fr; } .formule { border-right: 0; border-bottom: 1px solid var(--trait); } }

/* Contact */
.formulaire { display: grid; gap: 18px; max-width: 640px; }
.formulaire label { display: block; font-weight: 700; margin-bottom: 6px; }
.formulaire .aide { font-weight: 400; color: var(--gris); font-size: 0.92rem; }
.formulaire input, .formulaire textarea, .formulaire select { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 2px solid #c9cfbf; border-radius: 10px; background: #fff; color: var(--ardoise); }
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus { border-color: var(--ardoise); outline: none; box-shadow: 0 0 0 3px var(--ambre); }
.formulaire textarea { min-height: 170px; resize: vertical; }
.formulaire .pot { position: absolute; left: -5000px; }
.formulaire .rgpd { font-size: 0.92rem; color: var(--gris); }
.message-retour { border-radius: 12px; padding: 16px 18px; margin-bottom: 24px; font-weight: 600; }
.message-retour.ok { background: var(--vert-pale); border-left: 5px solid var(--vert-fonce); }
.message-retour.ko { background: #fde9e6; border-left: 5px solid #b3261e; }

/* Appel final */
.appel { background: var(--vert); color: var(--ardoise); }
.appel .enveloppe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px); }
.appel h2 { max-width: 20ch; }
.appel .bouton { background: var(--ardoise); color: #fff; font-size: 1.1rem; padding: 16px 26px; }
.appel .bouton:hover { background: #000; }

/* Pied */
.pied { background: var(--nuit); color: #c4cbbd; font-size: 0.98rem; padding: 64px 0 28px; }
.pied a { color: #e9ece4; text-decoration-color: rgba(153,190,24,.6); }
.pied .colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.pied h2 { font-size: 1rem; letter-spacing: 0; color: #fff; margin-bottom: 14px; font-weight: 700; }
.pied ul { list-style: none; }
.pied li { padding: 4px 0; }
.pied .marque { color: #fff; margin-bottom: 16px; }
.pied .bas { border-top: 1px solid #343a31; margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
@media (max-width: 860px) { .pied .colonnes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied .colonnes { grid-template-columns: 1fr; } }

.lien-fort { font-weight: 700; }
.discret { color: var(--gris); }

@media (max-width: 760px) {
  .heros .enveloppe { grid-template-columns: 1fr; }
  .spirale { max-width: 180px; justify-self: start; order: -1; margin-bottom: 8px; }
}

@media print {
  .entete .nav, .menu-bascule, .appel, .spirale { display: none; }
  body { font-size: 11pt; }
}

/* Fiches réalisations */
.travaux h3 a { text-decoration: none; }
.travaux h3 a:hover { text-decoration: underline; text-decoration-color: var(--vert); }
.travaux li:has(h3 a) .vignette { outline: 2px solid transparent; }
.fiche-infos { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 30px 0 0; }
.fiche-infos div { min-width: 0; }
.fiche-infos dt { font-size: 0.9rem; color: var(--gris); }
.fiche-infos dd { margin: 2px 0 0; font-weight: 700; }
.fiche-visuel { margin-top: clamp(32px, 5vw, 56px); }
.fiche-visuel img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--trait); }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 36px; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--trait); }
.galerie figcaption { font-size: 0.92rem; color: var(--gris); margin-top: 6px; }
.fiche-visuel img { max-height: 760px; object-fit: cover; object-position: top; }

/* Logo d'origine (caméléon) */
.marque img { height: 66px; width: auto; display: block; }
.entete .enveloppe { min-height: 92px; }
.pied .marque img { height: 58px; }
@media (max-width: 920px) { .entete .marque img { height: 50px; } .entete .enveloppe { min-height: 70px; } }
