/* En-tête et pied de page communs à toutes les pages (balisage : lib/chrome.mjs, comportement : /js/chrome.js). */
:root { --header-h: 72px; --chrome-ink: #1f1d1e; --chrome-ink-2: #3a3737; --chrome-cream: #f6f4ef; --chrome-vert: #3f8f27; --chrome-vert-fonce: #2a6e15; --chrome-vert-encre: #1f5410; --chrome-vert-vif: #5bc437; --chrome-foret: #1e3a27; --chrome-hair: rgba(31, 29, 30, 0.12); --chrome-hair-2: #cfcabf; --chrome-ease: cubic-bezier(0.2, 0.7, 0.2, 1); --chrome-font: "Familjen Grotesk", system-ui, sans-serif; --chrome-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Noto Serif", serif; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--chrome-vert-fonce); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }
.header .ic, .nav .ic, .footer .ic { width: 0.8em; height: 0.8em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header { position: sticky; top: 0; left: 0; right: 0; z-index: 60; background: linear-gradient(rgba(235, 240, 246, 0.9), rgba(235, 240, 246, 0.72)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--chrome-hair); font-family: var(--chrome-font); }
.header__bar { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); padding: 0 20px; max-width: 1400px; margin: 0 auto; }
.header .logo, .nav .logo { display: inline-flex; flex: none; }
.header .logo img, .nav .logo img { height: 40px; width: auto; display: block; }
.header__nav { display: flex; flex: 1 1 auto; min-width: 0; }
.hnav { display: flex; flex: 1 1 auto; min-width: 0; list-style: none; margin: 0; padding: 0; align-items: center; justify-content: center; gap: 0 2px; }
.hnav__item { position: relative; flex: none; }
.hnav__link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; color: var(--chrome-ink); text-decoration: none; white-space: nowrap; transition: background-color 0.25s, color 0.25s; }
.hnav__link .ic { opacity: 0.55; transition: transform 0.3s var(--chrome-ease); }
.hnav__link:hover, .hnav__link.is-active { background: rgba(63, 143, 39, 0.12); color: var(--chrome-vert-fonce); }
.hnav__item:hover .hnav__link .ic, .hnav__item:focus-within .hnav__link .ic { transform: rotate(45deg); }
.hnav__sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; background: #fff; color: var(--chrome-ink); border-radius: 10px; border: 1px solid var(--chrome-hair); box-shadow: 0 14px 40px rgba(20, 24, 30, 0.18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s var(--chrome-ease), visibility 0s 0.25s; z-index: 5; }
.hnav__item:hover .hnav__sub, .hnav__item:focus-within .hnav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hnav__sub a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--chrome-ink); font-size: 0.95rem; }
.hnav__sub a:hover, .hnav__sub a[aria-current="page"] { background: rgba(63, 143, 39, 0.12); color: var(--chrome-vert-fonce); }
.header__cta { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
/* Fond vert foncé : texte blanc à 6,29:1 (le vert #3f8f27 plafonnait à 4,06:1), survol à 9:1. Préfixé .header / .nav pour
   l'emporter sur un .btn propre à la page (l'accueil en déclare un après ce fichier). */
.header .btn--header, .nav .btn--header { display: inline-flex; align-items: center; gap: 8px; padding: 0.7em 1.1em; border-radius: 999px; border: 0; background: var(--chrome-vert-fonce); color: #fff; font-family: var(--chrome-font); font-weight: 700; font-size: 0.92rem; text-decoration: none; transition: background-color 0.25s, transform 0.25s var(--chrome-ease); }
.header .btn--header:hover, .nav .btn--header:hover { background: var(--chrome-vert-encre); color: #fff; transform: translateY(-1px); }
.burger { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--chrome-ink); cursor: pointer; position: relative; }
.burger__bars { display: grid; gap: 5px; width: 22px; }
.burger__bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; }
.burger > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav { position: fixed; inset: 0; z-index: 70; background: var(--chrome-cream); color: var(--chrome-ink); font-family: var(--chrome-font); overflow: auto; padding: 0 20px 40px; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s var(--chrome-ease), visibility 0s 0.3s; }
body.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
body.nav-open { overflow: hidden; }
.nav__head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); border-bottom: 1px solid var(--chrome-hair); }
.nav__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--chrome-hair); background: none; color: var(--chrome-ink); cursor: pointer; transform: rotate(45deg); }
.nav__close .ic { width: 20px; height: 20px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.nav__link { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 16px 0; border: 0; border-bottom: 1px solid var(--chrome-hair); background: none; color: var(--chrome-ink); font: inherit; font-weight: 700; font-size: 1.35rem; text-align: left; text-decoration: none; cursor: pointer; }
.nav__toggle .ic { width: 20px; height: 20px; transition: transform 0.3s var(--chrome-ease); }
.nav__toggle[aria-expanded="true"] .ic { transform: rotate(45deg); }
.nav__sub { list-style: none; margin: 0; padding: 4px 0 10px; border-bottom: 1px solid var(--chrome-hair); }
.nav__sub a { display: block; padding: 10px 0 10px 14px; color: var(--chrome-ink); text-decoration: none; font-size: 1.02rem; }
.nav a[aria-current="page"] { color: var(--chrome-vert-fonce); font-weight: 700; }
.nav__foot { display: grid; }
.nav__foot .btn--header { justify-content: center; font-size: 1rem; }
@media (max-width: 1179px) { .hnav__link { padding: 7px 7px; font-size: 0.88rem; } .hnav__link .ic { display: none; } }
@media (max-width: 999px) { .header .logo img { height: 34px; } .hnav__link { padding: 6px 6px; font-size: 0.84rem; } .header .btn--header { padding: 0.6em 0.9em; font-size: 0.86rem; } }
@media (max-width: 759px) { .header__nav, .hnav, .header__cta .btn--header { display: none; } .burger { display: grid; } }
@media (min-width: 760px) { .nav { display: none; } }
@media (hover: none) and (min-width: 760px) { .hnav__sub, .hnav__link .ic { display: none; } }

/* Pied de page : téléphone, colonnes des menus et sous-pages, mentions */
.footer { background: var(--chrome-foret); color: rgba(255, 255, 255, 0.82); font-family: var(--chrome-font); padding: clamp(36px, 5vw, 56px) 0 28px; font-size: 0.95rem; }
.footer .wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: auto; }
.footer__grid { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer strong { color: #fff; font-weight: 600; }
.footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.footer__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--chrome-display); font-weight: 700; font-size: 1.4rem; }
.footer__phone .ic { width: 1.1em; height: 1.1em; color: var(--chrome-vert-vif); }
.footer__links { width: 100%; }
.footer__cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px 28px; margin-top: 8px; }
.footer__col ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.footer__col li a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); line-height: 1.4; }
.footer__title { display: inline-block; font-family: var(--chrome-display); font-weight: 700; font-size: 1.02rem; color: #fff; }
.footer .footer__bottom { margin: 56px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.62); }
.footer__bottom p { margin: 0; }
.footer mark.todo { background: #fff3a8; color: #5a4300; padding: 0 0.3em; border-radius: 4px; font-weight: 600; }
@media (max-width: 1100px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 22px 20px; } }
