/* Tacticweb, charte Le Cabinet. Généré à la main, pas de framework. */
/* Polices auto-hébergées (RGPD et performance), sous-ensemble latin. */

@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/schibsted-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/schibsted-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/schibsted-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --fond: #FBFAF7;
  --blanc: #FFFFFF;
  --encre: #14171A;
  --texte: #44474B;
  --sec: #6B6E72;
  --sapin: #1F5C4A;
  --vert: #2E7A63;
  --sauge: #DCE5DF;
  --hair: #E5E4DE;
  --clair: #9CC5B4;
  --deco: #94948E;
  --erreur: #B3261E;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Instrument Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }

h1, h2, h3, .num {
  font-family: 'Schibsted Grotesk', 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--encre);
  margin: 0;
  letter-spacing: -0.02em;
}
h1 { font-size: 40px; font-weight: 700; line-height: 1.15; }
.display { font-size: 56px; line-height: 1.08; }
.h2-grand { font-size: 40px; }
h2 { font-size: 29px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--sapin); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sapin);
  outline-offset: 2px;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.lab {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--sec);
  text-transform: uppercase;
}
.lab.sapin { color: var(--sapin); }
.chapeau { font-size: 19px; line-height: 1.55; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sapin);
  color: var(--fond);
  font-weight: 500;
  font-size: 16px;
  padding: 15px 28px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #17493B; }
.btn.inverse { background: var(--fond); color: var(--sapin); }
.btn.inverse:hover { background: var(--blanc); }
.lien { color: var(--sapin); font-weight: 500; text-decoration: none; }
.lien:hover { text-decoration: underline; }
.fil { font-size: 12.5px; color: var(--sec); }
.fil a { color: var(--sec); text-decoration: none; }
.fil a:hover { color: var(--sapin); }
.fil b { color: var(--sapin); font-weight: 500; }

/* Navigation */
.nav { border-bottom: 1px solid var(--hair); background: var(--fond); position: sticky; top: 0; z-index: 50; }
.nav-in { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo .nom { font-family: 'Schibsted Grotesk'; font-size: 21px; font-weight: 700; color: var(--encre); line-height: 1; }
.nav-logo .designation { font-size: 8.5px; letter-spacing: 0.28em; color: var(--sec); font-weight: 500; }
.nav-liens { display: flex; align-items: center; gap: 36px; font-size: 15.5px; font-weight: 500; }
.nav-liens > a { color: var(--encre); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-liens > a:hover { color: var(--sapin); }
.nav-liens > a.actif { color: var(--sapin); border-bottom-color: var(--sapin); }
.nav-liens .btn { padding: 11px 22px; font-size: 15px; }
.burger { display: none; background: none; border: 1px solid var(--hair); padding: 10px 12px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--encre); margin: 4px 0; }

/* Sections */
.section { padding: 96px 0; }
.section.serre { padding: 76px 0; }
.section.blanc { background: var(--blanc); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.section.sauge { background: var(--sauge); }
.section.sapin { background: var(--sapin); position: relative; overflow: hidden; }
.entete-2col { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.entete-2col p { max-width: 400px; color: var(--sec); }

/* Héros accueil */
.heros { padding: 96px 0 88px; display: flex; gap: 72px; align-items: center; }
.heros-texte { max-width: 620px; flex-shrink: 0; }
.heros-panneau { position: relative; height: 420px; flex-grow: 1; min-width: 380px; }
.heros-panneau .toile { position: absolute; inset: 24px 0 0 10px; background: var(--sauge); opacity: 0.35; }

/* Plaques flottantes */
@keyframes flotte { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.plq { animation: flotte 6s ease-in-out infinite alternate; }
.plq:nth-child(3) { animation-duration: 7s; animation-delay: 0.8s; }
.plq:nth-child(4) { animation-duration: 5s; animation-delay: 1.6s; }
@media (prefers-reduced-motion: reduce) { .plq { animation: none !important; } }
.plaque { transform: skewX(-6deg); padding: 24px 32px; }
.plaque > div { transform: skewX(6deg); }
.plaque.sapin { background: var(--sapin); color: var(--fond); box-shadow: 0 22px 34px rgba(31, 92, 74, 0.22); }
.plaque.blanche { background: var(--blanc); border: 1px solid var(--hair); box-shadow: 0 18px 30px rgba(20, 23, 26, 0.10); }
.plaque.sauge { background: var(--sauge); box-shadow: 0 14px 24px rgba(20, 23, 26, 0.08); }
.deco-plq { transform: skewX(-11deg); }

/* Grilles */
.grille { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.grille > * { background: var(--blanc); padding: 34px; }
.grille.fond > * { background: var(--fond); padding: 30px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.carte { border: 1px solid var(--hair); background: var(--fond); padding: 38px; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; text-decoration: none; color: inherit; }
.carte:hover { border-color: var(--vert); }
.carte.sapin { background: var(--sapin); border-color: var(--sapin); }
.carte.sapin .titre { color: var(--fond); }
.carte.sapin p { color: var(--clair); font-size: 19px; line-height: 1.45; }
.carte .titre { font-family: 'Schibsted Grotesk'; font-size: 24px; font-weight: 700; color: var(--encre); line-height: 1.2; }
.carte p { font-size: 15.5px; margin-top: 10px; }

/* Méthode */
.temps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.temps > div { border-top: 1px solid var(--hair); padding-top: 21px; }
.temps > div:first-child { border-top: 2px solid var(--sapin); padding-top: 20px; }
.temps .num { font-size: 15px; font-weight: 600; color: var(--sapin); }
.temps p { font-size: 15.5px; margin-top: 8px; }

/* Repères */
.reperes { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 52px 0 56px; flex-wrap: wrap; }
.repere { display: flex; align-items: baseline; gap: 14px; }
.repere .num { font-size: 46px; font-weight: 700; }
.repere span { font-size: 15px; color: var(--sec); }
.repere-sep { width: 1px; height: 44px; background: var(--hair); }

/* FAQ */
.faq { display: flex; gap: 80px; }
.faq-titre { width: 360px; flex-shrink: 0; }
.faq-liste { flex-grow: 1; max-width: 720px; border-bottom: 1px solid var(--hair); }
.faq-liste details { border-top: 1px solid var(--hair); }
.faq-liste summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: 'Schibsted Grotesk'; font-size: 18px; font-weight: 500; color: var(--texte); line-height: 1.3;
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after { content: "+"; color: var(--sec); font-size: 24px; font-weight: 400; flex-shrink: 0; }
.faq-liste details[open] summary { color: var(--encre); font-weight: 600; }
.faq-liste details[open] summary::after { content: "\2212"; color: var(--sapin); }
.faq-liste .rep { padding: 0 0 22px; max-width: 640px; font-size: 15.5px; }

/* Appel final */
.appel h2 { color: var(--fond); font-size: 36px; max-width: 620px; }
.appel p { color: var(--clair); font-size: 19px; margin-top: 16px; max-width: 560px; line-height: 1.5; }
.appel .btn { margin-top: 28px; }
.appel .deco1 { position: absolute; right: 150px; top: 48px; }
.appel .deco2 { position: absolute; right: 250px; bottom: 44px; opacity: 0.55; }

/* Pied de page */
.pied { border-top: 1px solid var(--hair); padding: 60px 0 36px; }
.pied-colonnes { display: flex; gap: 80px; }
.pied-marque { width: 300px; flex-shrink: 0; }
.pied-marque p { font-size: 13.5px; color: var(--sec); margin-top: 14px; line-height: 1.55; }
.pied-liens { flex-grow: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 13.5px; }
.pied-liens .lab { margin-bottom: 14px; display: block; }
.pied-liens ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pied-liens a { color: var(--texte); text-decoration: none; }
.pied-liens a:hover { color: var(--sapin); }
.pied-bas { border-top: 1px solid var(--hair); margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--deco); flex-wrap: wrap; gap: 8px; }

/* Pages intérieures */
.entete-page { padding: 36px 0 0; }
.heros-page { padding: 44px 0 80px; }
.deux-col { display: flex; gap: 80px; }
.col-titre { width: 360px; flex-shrink: 0; }
.col-etroite { width: 300px; flex-shrink: 0; }
.prose { max-width: 720px; font-size: 17px; line-height: 1.65; }
.panneau { background: var(--blanc); border: 1px solid var(--hair); padding: 32px 36px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12.5px; background: var(--sauge); color: #2E3A34; padding: 4px 12px; font-weight: 500; }

/* Fiche signalétique mission */
.fiche { display: flex; gap: 64px; padding: 28px 0; flex-wrap: wrap; }
.fiche .val { font-size: 15.5px; color: var(--encre); font-weight: 500; margin-top: 8px; }

/* Lots AO */
.rowlot { display: flex; border-bottom: 1px solid var(--hair); padding: 22px 0; gap: 40px; }
.rowlot .l { width: 320px; flex-shrink: 0; font-family: 'Schibsted Grotesk'; font-weight: 600; font-size: 17px; color: var(--encre); }
.rowlot .d { font-size: 15px; line-height: 1.55; }

/* Formulaire */
.champ { margin-top: 22px; }
.champ label { display: block; font-size: 13px; font-weight: 500; color: var(--encre); margin-bottom: 8px; }
.champ input, .champ textarea {
  width: 100%; padding: 13px 14px; font-family: inherit; font-size: 15.5px; color: var(--encre);
  background: var(--fond); border: 1px solid var(--hair); border-radius: 0;
}
.champ input:focus, .champ textarea:focus { border-color: var(--sapin); outline: none; }
.champ textarea { min-height: 140px; resize: vertical; }
.champ .aide { font-size: 12.5px; color: var(--sec); margin-top: 6px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-erreur { color: var(--erreur); font-size: 14px; margin-top: 12px; }

/* Étapes contact */
.etapes { display: flex; flex-direction: column; }
.etape { border-left: 1px solid var(--hair); padding: 0 0 26px 26px; position: relative; font-size: 15.5px; }
.etape:last-child { padding-bottom: 0; border-left-color: transparent; }
.etape::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; background: var(--sapin); }
.etape:nth-child(2)::before { background: var(--vert); }
.etape:nth-child(3)::before { background: var(--sauge); border: 1px solid var(--vert); }
.etape b { color: var(--encre); font-weight: 600; }

/* Article */
.article-corps { display: flex; gap: 72px; }
.sommaire { width: 280px; flex-shrink: 0; position: sticky; top: 100px; align-self: flex-start; }
.sommaire a { display: block; font-size: 14px; color: var(--sec); padding: 10px 0 10px 16px; border-left: 2px solid var(--hair); text-decoration: none; }
.sommaire a:hover, .sommaire a.on { color: var(--sapin); border-left-color: var(--sapin); }
.article-texte { max-width: 720px; }
.article-texte h2 { font-size: 26px; margin-top: 44px; }
.article-texte h2:first-child { margin-top: 0; }
.article-texte p { margin-top: 16px; }
.encadre { background: var(--fond); border: 1px solid var(--hair); border-left: 3px solid var(--sapin); padding: 26px 30px; margin-top: 28px; }
.encadre p { font-size: 15.5px; margin-top: 10px; }

/* Articles du blog (fiches migrees) */
.article-blog h2 { font-size: 24px; margin-top: 42px; }
.article-blog h3 { font-size: 18.5px; margin-top: 28px; }
.article-blog p { font-size: 16.5px; }
.article-blog ul { margin-top: 14px; padding-left: 22px; }
.article-blog ul ul { margin-top: 6px; }
.article-blog li { margin-top: 8px; font-size: 16px; line-height: 1.6; }
.article-blog a:not(.lien) { color: var(--sapin); text-decoration: underline; text-underline-offset: 3px; }
.article-blog .encadre { margin-top: 22px; font-size: 15.5px; }
.blog-liste { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; padding: 0; }
.blog-liste li { border-bottom: 1px solid var(--hair); padding-bottom: 14px; font-size: 16px; }
.meta-article { display: flex; gap: 12px; font-size: 13.5px; color: var(--sec); align-items: center; flex-wrap: wrap; }
.meta-article .sep { color: var(--hair); }

/* Bandeau cookies */
.cookies-bandeau {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--blanc); border-top: 1px solid var(--hair);
  padding: 20px 0; box-shadow: 0 -6px 24px rgba(20, 23, 26, 0.08);
}
.cookies-bandeau .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cookies-bandeau p { font-size: 14px; max-width: 620px; flex-grow: 1; }
.cookies-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookies-actions .btn { padding: 11px 20px; font-size: 14.5px; }
.cookies-actions .btn.secondaire { background: transparent; color: var(--encre); border: 1px solid var(--encre); }
[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 1080px) {
  .wrap { padding: 0 24px; }
  h1 { font-size: 33px; }
  .heros { flex-direction: column; gap: 48px; }
  .heros-panneau { width: 100%; min-width: 0; }
  .cartes, .g3 { grid-template-columns: repeat(2, 1fr); }
  .temps { grid-template-columns: repeat(2, 1fr); }
  .deux-col, .faq { flex-direction: column; gap: 32px; }
  .col-titre, .faq-titre, .col-etroite { width: auto; }
  .article-corps { flex-direction: column; }
  .sommaire { position: static; width: auto; }
  .pied-colonnes { flex-direction: column; gap: 40px; }
  .pied-marque { width: auto; }
}
@media (max-width: 720px) {
  .nav-liens { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--fond); border-bottom: 1px solid var(--hair); flex-direction: column; align-items: flex-start; padding: 20px 24px 28px; gap: 18px; }
  .nav-liens.ouvert { display: flex; }
  .burger { display: block; }
  .section { padding: 64px 0; }
  .heros { padding: 56px 0; }
  .cartes, .g3, .g2, .temps, .pied-liens, .blog-liste { grid-template-columns: 1fr; }
  .rowlot { flex-direction: column; gap: 8px; }
  .rowlot .l { width: auto; }
  .entete-2col { flex-direction: column; align-items: flex-start; }
  .reperes { flex-direction: column; align-items: flex-start; }
  .repere-sep { display: none; }
  h1 { font-size: 29px; }
  h2 { font-size: 25px; }
  .display { font-size: 32px; line-height: 1.15; }
  .h2-grand { font-size: 27px; }
  .heros-panneau { height: 330px; }
  .repere .num { font-size: 36px; }
  .appel .deco1, .appel .deco2 { display: none; }
}
