/* Navigation du site : barre compacte flottante + grand panneau (carte des prix, guides, outils, contact).
   Source unique, utilisée par toutes les pages. Balisage : .tools/harmonie/nav_markup.py ; comportement : js/site-nav.js.
   Classes et variables préfixées « sn- » : aucune collision avec les anciennes feuilles des autres pages. */
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-latin-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plex-mono-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plex-mono-500-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo Repli'; src: local('Arial'); size-adjust: 103%; ascent-override: 86%; descent-override: 21%; line-gap-override: 0%; }
@font-face { font-family: 'Plex Repli'; src: local('Menlo'), local('Courier New'); size-adjust: 98%; ascent-override: 98%; descent-override: 26%; }
:root {
  --sn-ink: #07142A; --sn-ink2: #1A2E45; --sn-slate: #3A5068; --sn-line: rgba(7, 20, 42, .12); --sn-line-2: rgba(7, 20, 42, .2);
  --sn-white: #FFFFFF; --sn-wash: #F4F8FC; --sn-blue-d: #004E9A; --sn-blue-h: #0A85E8; --sn-night: #0E4F8C;
  --sn-gold: #F0A500; --sn-gold-l: #FFD166; --sn-gold-ink: #7A5200; --sn-green-d: #007A5C;
  --sn-glass: rgba(255, 255, 255, .92); --sn-glass-3d: rgba(255, 255, 255, .84);
  --sn-scrim: rgba(7, 20, 42, .34); --sn-shadow: rgba(7, 20, 42, .42); --sn-shadow-2: rgba(7, 20, 42, .08);
  /* carte des prix : cinq paliers, du moins cher au plus cher */
  --sn-t1: #DCEBFA; --sn-t2: #B4D2F0; --sn-t3: #74A8DB; --sn-t4: #2268B0; --sn-t5: #0B2F5E;
  --sn-f: 'Archivo', 'Archivo Repli', 'Helvetica Neue', Arial, sans-serif;
  --sn-ease: cubic-bezier(0.23, 1, 0.32, 1); --sn-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --sn-gut: max(16px, env(safe-area-inset-left, 0px));
  --sn-h: 60px; --sn-top: 10px; --sn-offset: 86px;   /* hauteur de la barre, marge au-dessus, place réservée en haut des pages */
}
@media (max-width: 900px) { :root { --sn-h: 54px; --sn-top: 8px; --sn-offset: 74px; } }

/* socle : les anciennes feuilles des autres pages ne doivent rien changer ici */
.sn-nav, .sn-nav * { box-sizing: border-box; }
.sn-nav { font-family: var(--sn-f); font-size: 15px; line-height: 1.45; color: var(--sn-ink); text-align: left; -webkit-font-smoothing: antialiased; }
.sn-nav :where(a, button, p, span, ul, li, section, div, svg) { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; text-shadow: none; list-style: none; }
.sn-nav :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sn-nav :where(a) { color: inherit; text-decoration: none; }
.sn-nav :focus-visible { outline: 2px solid var(--sn-blue-h); outline-offset: 2px; border-radius: 8px; }
.sn-nav [hidden] { display: none !important; }
.sn-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── barre ── */
.sn-nav { position: fixed; z-index: 60; top: 0; left: 0; right: 0; padding: var(--sn-top) var(--sn-gut) 0; pointer-events: none; }
.sn-bar { pointer-events: auto; position: relative; z-index: 62; display: flex; align-items: center; gap: 6px; max-width: 1240px; height: var(--sn-h); margin: 0 auto; padding: 0 8px 0 10px;
  background: var(--sn-glass); border: 1px solid var(--sn-line); border-radius: 14px;
  box-shadow: 0 16px 36px -24px var(--sn-shadow), 0 2px 6px -3px var(--sn-shadow-2); transition: background-color 240ms ease; }
.sn-nav:not(.is-solid) .sn-bar { background: var(--sn-glass-3d); }
.sn-logo { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-right: 6px; flex: none; }
.sn-logo-mark { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, var(--sn-night), var(--sn-blue-h)); }
.sn-logo-mark::after { content: ''; position: absolute; right: 0; bottom: 0; border-left: 11px solid transparent; border-bottom: 11px solid #2B9FFF; }
.sn-logo-mark span { position: relative; z-index: 1; color: var(--sn-white); font-weight: 800; font-size: 19px; line-height: 1; letter-spacing: -1px; }
.sn-logo-txt { display: grid; min-width: 0; }
.sn-logo { min-width: 0; } .sn-logo-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-logo-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; line-height: 1.2; }
.sn-logo-sub { font-weight: 500; font-size: 12px; color: var(--sn-slate); line-height: 1.3; }
/* variante claire (pied de page sur bleu nuit) */
.sn-logo--light { color: var(--sn-white); } .sn-logo--light .sn-logo-sub { color: rgba(255, 255, 255, .72); }
.sn-links { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.sn-link { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 9px; font-weight: 500; font-size: 15px; color: var(--sn-ink2); white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease; }
.sn-link[aria-expanded="true"], .sn-link.is-current { background: var(--sn-wash); color: var(--sn-ink); }
.sn-chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform 200ms var(--sn-ease); }
.sn-link[aria-expanded="true"] .sn-chev { transform: rotate(180deg); }
.sn-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.sn-tel { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 9px; font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; color: var(--sn-ink); white-space: nowrap; }
.sn-tel .sn-ico { color: var(--sn-blue-d); }
.sn-nav-cta { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; background: var(--sn-ink); color: var(--sn-white) !important; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color 200ms ease, transform 160ms var(--sn-ease); }
.sn-nav-cta .sn-ico { color: var(--sn-gold-l); transition: transform 200ms var(--sn-ease); }
.sn-nav-cta:active { transform: scale(.97); }
.sn-menu { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--sn-line) !important; font-weight: 600; font-size: 15px; color: var(--sn-ink); }
.sn-menu .sn-ico { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .sn-link:hover, .sn-tel:hover { background: var(--sn-wash); color: var(--sn-ink); }
  .sn-nav-cta:hover { background: var(--sn-night); }
  .sn-nav-cta:hover .sn-ico { transform: translateX(3px); }
}

/* ── panneau ── */
.sn-scrim { pointer-events: auto; position: fixed; inset: 0; z-index: 59; background: var(--sn-scrim); opacity: 0; transition: opacity 200ms ease; }
.sn-scrim.is-open { opacity: 1; }
.sn-panel { pointer-events: auto; position: fixed; z-index: 61; top: calc(var(--sn-top) + var(--sn-h) + 8px); left: 50%; width: min(1240px, calc(100vw - 2 * var(--sn-gut)));
  max-height: calc(100vh - var(--sn-top) - var(--sn-h) - 24px); max-height: calc(100dvh - var(--sn-top) - var(--sn-h) - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 28px 32px 30px; background: var(--sn-white); border: 1px solid var(--sn-line); border-radius: 18px;
  box-shadow: 0 40px 80px -40px var(--sn-shadow), 0 4px 14px -6px var(--sn-shadow-2);
  opacity: 0; transform: translate(-50%, -8px) scale(.985); transform-origin: top center; transition: opacity 180ms var(--sn-ease), transform 220ms var(--sn-ease); }
.sn-panel.is-open { opacity: 1; transform: translate(-50%, 0); }
.sn-panel.is-instant { transition: none; }
.sn-panel-head { display: none; }
.sn-panel-in { display: grid; grid-template-columns: 1.25fr 1fr .85fr; gap: 44px; }
.sn-h { font-weight: 600; font-size: 13px; color: var(--sn-slate); margin-bottom: 4px; }
.sn-h-lg { font-weight: 650; font-size: 19px; letter-spacing: -.015em; color: var(--sn-ink); margin-bottom: 4px; }
.sn-map-sub { font-size: 14px; color: var(--sn-slate); }
.sn-map-sub b { color: var(--sn-ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.sn-hexes { display: block; width: 100%; max-width: 470px; height: auto; margin: 14px 0 10px; overflow: visible; }
.sn-hex polygon { stroke: var(--sn-white); stroke-width: 3; stroke-linejoin: round; transition: stroke 140ms ease; }
.sn-hex text { pointer-events: none; text-anchor: middle; font-family: var(--sn-f); }
.sn-hex-a { font-weight: 650; font-size: 15px; } .sn-hex-p { font-weight: 500; font-size: 10.5px; font-variant-numeric: tabular-nums; } .sn-sup { font-size: 9px; }
.sn-t1 polygon { fill: var(--sn-t1); } .sn-t2 polygon { fill: var(--sn-t2); } .sn-t3 polygon { fill: var(--sn-t3); } .sn-t4 polygon { fill: var(--sn-t4); } .sn-t5 polygon { fill: var(--sn-t5); }
.sn-t1 text, .sn-t2 text, .sn-t3 text { fill: var(--sn-ink); } .sn-t4 text, .sn-t5 text { fill: var(--sn-white); }
.sn-hex { outline: none; }
.sn-hex:hover polygon, .sn-hex:focus-visible polygon, .sn-hex.is-here polygon { stroke: var(--sn-gold); stroke-width: 4; }
.sn-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--sn-slate); }
.sn-legend span:first-child { margin-right: 6px; } .sn-legend span:last-child { margin-left: 6px; }
.sn-legend i { width: 24px; height: 8px; border-radius: 2px; } .sn-legend .sn-t1 { background: var(--sn-t1); } .sn-legend .sn-t2 { background: var(--sn-t2); } .sn-legend .sn-t3 { background: var(--sn-t3); } .sn-legend .sn-t4 { background: var(--sn-t4); } .sn-legend .sn-t5 { background: var(--sn-t5); }
.sn-hexinfo { min-height: 2.9em; margin-top: 10px; font-size: 14.5px; color: var(--sn-ink2); font-variant-numeric: tabular-nums; }
.sn-more { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 6px; font-weight: 600; font-size: 14.5px; color: var(--sn-blue-d); }
.sn-more .sn-ico { transition: transform 200ms var(--sn-ease); }
.sn-group { margin-top: 16px; }
/* ordinateur : chaque bouton ouvre sa propre vue du panneau (site-nav.js, data-view) ; « Menu » (mobile) les montre toutes */
.sn-arrs { display: none; }
.sn-panel[data-view="prix"], .sn-panel[data-view="guides"] { width: min(1080px, calc(100vw - 2 * var(--sn-gut))); }
.sn-panel[data-view="prix"] .sn-panel-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.sn-panel[data-view="prix"] .sn-guides, .sn-panel[data-view="prix"] .sn-tools { display: none; }
.sn-panel[data-view="prix"] .sn-arrs { display: block; }
.sn-panel[data-view="guides"] .sn-panel-in { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.sn-panel[data-view="guides"] .sn-map { display: none; }
.sn-panel[data-view="guides"] .sn-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.sn-arrs ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin-top: 12px; }
.sn-arrs li a { display: grid; grid-template-columns: 2.1em minmax(0, 1fr) auto; align-items: baseline; gap: 8px; min-height: 40px; padding: 9px 0; border-bottom: 1px solid var(--sn-line); font-size: 14.5px; color: var(--sn-ink2); text-decoration: none; }
.sn-arr-id { font-weight: 650; color: var(--sn-ink); } .sn-arr-id sup { font-size: .68em; vertical-align: .45em; line-height: 0; }
.sn-arr-nm { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sn-arr-px { font-weight: 600; color: var(--sn-ink); font-variant-numeric: tabular-nums; }
.sn-arrs li a[aria-current="page"] .sn-arr-id { color: var(--sn-gold-ink); }
.sn-guides ul li a, .sn-tools ul li a { display: flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--sn-ink2); text-decoration-color: transparent; text-underline-offset: 4px; transition: color 140ms ease; }
.sn-tools ul { margin-top: 12px; }
.sn-contact { display: grid; gap: 6px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--sn-line); font-size: 14px; color: var(--sn-slate); }
.sn-contact-tel { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 650; font-size: 20px; color: var(--sn-ink); font-variant-numeric: tabular-nums; }
.sn-contact-tel .sn-ico { width: 18px; height: 18px; color: var(--sn-blue-d); }
.sn-contact-wa { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 600; color: var(--sn-green-d); }
.sn-panel-cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; margin-top: 12px; border-radius: 10px; background: var(--sn-gold-l); color: var(--sn-ink); font-weight: 600; font-size: 15.5px;
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .5); transition: background-color 200ms ease, transform 160ms var(--sn-ease); }
.sn-panel-cta:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .sn-guides ul li a:hover, .sn-tools ul li a:hover { color: var(--sn-ink); text-decoration: underline; text-decoration-color: var(--sn-gold); }
  .sn-arrs li a:hover .sn-arr-nm { color: var(--sn-ink); text-decoration: underline; text-decoration-color: var(--sn-gold); text-underline-offset: 4px; }
  .sn-more:hover .sn-ico { transform: translateX(3px); }
  .sn-panel-cta:hover { background: var(--sn-gold); }
}

/* ── écrans moyens et mobiles ── */
@media (max-width: 1180px) { .sn-tel span { display: none; } .sn-link-more { display: none; } }
@media (max-width: 900px) {
  .sn-links { display: none; } .sn-menu { display: inline-flex; } .sn-logo-sub { display: none; }
  .sn-bar { border-radius: 12px; padding: 0 6px 0 8px; } .sn-logo-mark { width: 34px; height: 34px; } .sn-logo-mark span { font-size: 17px; } .sn-logo-name { font-size: 14px; }
  .sn-panel { inset: 0; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; max-height: none; padding: 0 20px 32px; border: 0; border-radius: 0; z-index: 70;
    transform: translateX(14px); transition: opacity 220ms var(--sn-ease), transform 300ms var(--sn-drawer); }
  .sn-panel.is-open { transform: none; }
  .sn-panel-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 64px; margin: 0 -20px 8px; padding: 0 12px 0 20px; background: var(--sn-white); border-bottom: 1px solid var(--sn-line); }
  .sn-panel-title { font-weight: 650; font-size: 17px; }
  .sn-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--sn-line) !important; }
  .sn-panel-in { grid-template-columns: 1fr; gap: 30px; }
  .sn-hexes { max-width: 100%; }
}
@media (max-width: 640px) { .sn-nav-cta, .sn-tel { display: none; } }
@media (max-width: 420px) { .sn-menu span { display: none; } .sn-menu { padding: 0; width: 44px; justify-content: center; flex: none; } }
@media (max-width: 380px) { .sn-logo-mid { display: none; } }
@media (prefers-reduced-motion: reduce) { .sn-panel, .sn-scrim, .sn-chev, .sn-nav-cta, .sn-panel-cta { transition-duration: 1ms !important; } .sn-panel { transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) and (max-width: 900px) { .sn-panel { transform: none; } }

/* ─── Bandeau cookies (cookie-consent.js du site) : même langage, « Refuser » aussi visible que « Tout accepter » ─── */
html body .cc-banner { left: 16px; right: 16px; bottom: calc(16px + var(--mbar-h, 0px)); max-width: 420px; padding: 18px 18px 16px; border-radius: 10px; gap: 10px;
  box-shadow: 0 22px 50px -24px rgba(7, 20, 42, .45), 0 0 0 1px rgba(7, 20, 42, .1); font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1), opacity 220ms; }
@media (min-width: 768px) { html body .cc-banner { left: 24px; right: auto; bottom: 24px; } }
@media (max-width: 820px) { html body .cc-banner { bottom: calc(60px + 8px + env(safe-area-inset-bottom, 0px)); left: 8px; right: 8px; max-width: none; } }
html body .cc-head { font-size: 16px; font-weight: 620; letter-spacing: -.01em; text-transform: none; color: #07142A; }
html body .cc-head::before { content: none; }
html body .cc-msg { font-size: 14px; color: #3A5068; }
html body .cc-msg a { color: #07142A; }
html body .cc-actions { gap: 8px; }
html body .cc-btn { min-height: 44px; border-radius: 6px; font-size: 14.5px; font-weight: 600; letter-spacing: 0; flex: 1 1 0; }
html body .cc-btn-primary, html body .cc-btn-secondary { background: #FFFFFF; color: #07142A; border: 1px solid #07142A; }
html body .cc-btn-primary:hover, html body .cc-btn-secondary:hover { background: #07142A; color: #FFFFFF; border-color: #07142A; }
html body .cc-btn-link { flex: 0 0 auto; min-height: 44px; color: #3A5068; font-size: 14px; }
html body .cc-modal { border-radius: 12px; font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; }
html body .cc-modal-title { font-weight: 640; }
html body .cc-cat-tag { letter-spacing: .02em; text-transform: none; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { html body .cc-banner { transition: none; } }
/* Passe 13 (lot 4) : bandeau compact qui ne couvre jamais le formulaire du premier écran (mesuré par .tools/audit/cookies.mjs, 6 tailles).
   Ordinateur : bandeau bas fin, sur toute la largeur, en une ligne. Mobile et tablette : en haut, sous la navigation, texte court, boutons sur une ligne.
   « Tout accepter » et « Refuser » : même taille, même style. Les boutons flottants remontent tant que le bandeau est affiché. */
html body .cc-banner { left: 0; right: 0; bottom: 0; max-width: none; margin: 0; border-radius: 0; padding: 10px max(20px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  flex-direction: row; align-items: center; gap: 18px; box-shadow: 0 -10px 30px -18px rgba(7, 20, 42, .35), 0 -1px 0 rgba(7, 20, 42, .1); }
html body .cc-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html body .cc-msg { flex: 1 1 auto; margin: 0; font-size: 13.5px; line-height: 1.45; }
html body .cc-actions { flex: 0 0 auto; flex-wrap: nowrap; margin: 0; align-items: center; }
html body .cc-btn-primary, html body .cc-btn-secondary { flex: 0 0 auto; width: 146px; padding: 0 12px; }
@media (min-width: 821px) { html body:has(.cc-banner.show) .fab--chat { bottom: 92px; } html body:has(.cc-banner.show) .fab--wa { bottom: 160px; } }
/* mobile et tablette : le formulaire du premier écran est en bas, juste au-dessus de la barre d'action ; le bandeau se place
   donc en haut, sous la barre de navigation (sur l'accueil, cette zone montre la maquette 3D) */
@media (max-width: 820px) {
  html body .cc-banner { top: calc(var(--nav-h, 68px) + 4px); bottom: auto; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 12px;
    border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px -18px rgba(7, 20, 42, .45), 0 1px 0 rgba(7, 20, 42, .1); transform: translateY(-12px); }
  html body .cc-banner.show { transform: translateY(0); }
  html body .cc-msg { font-size: 13px; }
  html body .cc-btn-primary, html body .cc-btn-secondary { flex: 1 1 0; width: auto; }
}
