/* INTERIO — sections communes (en-tête, contact, pied de page, formulaire de devis)
   pour les pages qui gardent leur mise en page d’origine (services, journal, articles, pages locales, mentions).
   Tout est limité au conteneur .ns pour ne rien changer au reste de la page. */

/* ---------- Polices (hébergées sur le site) ---------- */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/archivo-latin-ext-0.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/archivo-latin-1.woff2) format('woff2'); 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: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/archivo-latin-ext-0.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/archivo-latin-1.woff2) format('woff2'); 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: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/archivo-latin-ext-0.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/archivo-latin-1.woff2) format('woff2'); 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: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/archivo-latin-ext-0.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/archivo-latin-1.woff2) format('woff2'); 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'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-ext-2.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-3.woff2) format('woff2'); 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'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-ext-4.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-5.woff2) format('woff2'); 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; }

:root,
[data-theme="light"] {
  --bg: #F4F4F2;
  --page-bg: #f8f9fa;
  --surface: #EAEAE6;
  --line: #D6D5D0;
  --border-strong: #6E6D69;
  --text: #161616;
  --muted: #5C5C58;
  --accent: #FF8C00;
  --accent-text: #A65300;
  --on-accent: #161616;
  --focus: #161616;
}
[data-theme="dark"] {
  --bg: #0F0F0E;
  --page-bg: #000;
  --surface: #181817;
  --line: #2C2C2A;
  --border-strong: #6E6D69;
  --text: #F2F1EE;
  --muted: #A3A29D;
  --accent: #FF8C00;
  --accent-text: #FF8C00;
  --on-accent: #0F0F0E;
  --focus: #FF8C00;
}
:root {
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---------- Une seule police sur tout le site ---------- */
html body.ns-page :is(#ns, *):not(svg):not(path):not(.fa),
html body.ns-page :is(#ns, *):not(.fa)::first-letter,
html body.ns-page :is(#ns, *):not(.fa)::first-line,
html body.ns-page :is(#ns, *):not(.fa)::before,
html body.ns-page :is(#ns, *):not(.fa)::after { font-family: var(--sans) !important; }
/* .ns.ns : un cran de plus que la règle générale ci-dessus, sinon la police à chasse fixe ne s’applique pas */
html body.ns-page .ns.ns :is(#ns, .label, .lang-toggle, .nav-lang, .contact-links, .footer-bottom, .field label),
html body.ns-page .ns.ns :is(#ns, .label, .lang-toggle, .nav-lang, .contact-links, .footer-bottom) * { font-family: var(--mono) !important; }

/* l’ancien en-tête était fixé en haut : le nouveau prend sa place dans la page */
html body.ns-page { padding-top: 0 !important; }

/* ---------- Base des sections communes ---------- */
.ns { color: var(--text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.ns *, .ns *::before, .ns *::after { box-sizing: border-box; }
.ns a { color: inherit; text-decoration: none; }
.ns a:hover, .ns a:focus { color: var(--accent-text); text-decoration: none; }
.ns a::before, .ns a::after { content: none !important; }
.ns :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ns p { margin: 0; }
.ns h2 { margin: 0; color: inherit; }
.ns ul { margin: 0; padding: 0; list-style: none; }
.ns svg { display: block; }
.ns .wrap { max-width: 1360px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.ns .label { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ns .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; flex-shrink: 0; }
.ns .icon-sm { width: 16px; height: 16px; }
.ns .icon-fill { fill: currentColor; stroke: none; }
.ns .skip-link { position: absolute; left: 16px; top: -64px; z-index: 200; padding: 12px 16px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.ns .skip-link:focus { top: 16px; }

/* ---------- Boutons ---------- */
.ns .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; border-radius: 0; font-size: 15px; line-height: 1; font-weight: 600; cursor: pointer; box-shadow: none; transition: background .2s, color .2s, border-color .2s; }
.ns .btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.ns .btn-primary { background: var(--accent); color: var(--on-accent); }
.ns .btn-primary:hover, .ns .btn-primary:focus { background: var(--text); color: var(--bg); }
.ns .icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1px solid var(--border-strong); border-radius: 0; color: var(--text); cursor: pointer; transition: border-color .2s, color .2s; }
.ns .icon-btn:hover { border-color: var(--text); color: var(--text); }

/* ---------- En-tête ---------- */
.ns .site-header { position: relative; z-index: 40; background: transparent; border-bottom: 1px solid var(--line); }
.ns .site-header .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ns .brand { font-weight: 600; font-size: 19px; letter-spacing: .34em; color: var(--text); }
.ns .main-nav { display: flex; gap: 32px; font-size: 15px; }
.ns .main-nav a { color: var(--text); }
.ns .main-nav a:hover { color: var(--accent-text); }
.ns .main-nav a[aria-current="page"] { font-weight: 500; padding-bottom: 6px; box-shadow: inset 0 -2px 0 var(--accent); }
/* sélecteur de langue unique « FR · EN · DE » : la langue affichée en gras, les deux autres en liens */
.ns .lang-toggle { display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 8px; border: 1px solid var(--border-strong); font-size: 13px; letter-spacing: .04em; color: var(--muted); transition: border-color .2s; }
.ns .lang-toggle a, .ns .lang-toggle strong { display: inline-flex; align-items: center; height: 100%; padding: 0 4px; }
.ns .lang-toggle strong { font-weight: 600; color: var(--text); }
.ns .lang-toggle a { color: var(--muted); transition: color .2s; }
.ns .lang-toggle a:hover { color: var(--text); }
.ns .lang-toggle .lang-sep { opacity: .6; }
.ns .lang-toggle:hover, .ns .lang-toggle:focus-within { border-color: var(--text); }
.ns .main-nav .nav-lang { display: none; }
.ns .header-actions { display: flex; align-items: center; gap: 12px; }
.ns .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .ns .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .ns .theme-toggle .icon-moon { display: none; }
.ns .menu-btn { display: none; }

/* ---------- En-tête image (journal) : même composition que l’accueil, les services et le portfolio ---------- */
@keyframes hero-fade { from { opacity: .01; } to { opacity: 1; } }
@keyframes hero-rise { from { opacity: .01; transform: translateY(36px); } to { opacity: 1; transform: none; } }
.ns .hero { position: relative; overflow: hidden; margin: 0; background: #000; color: #F2F1EE; }
.ns .hero-media { display: block; width: 100%; max-width: none; height: min(calc(100vh - 196px), calc(100vw / var(--r))); height: min(calc(100svh - 196px), calc(100vw / var(--r))); min-height: 460px; object-fit: cover; object-position: var(--pos, 50% 50%); animation: hero-fade 1.4s ease both; }
.ns .hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; background: radial-gradient(ellipse 70% 70% at 50% 55%, rgba(10, 10, 9, .64) 0%, rgba(10, 10, 9, .4) 100%); }
.ns .hero-overlay .wrap { width: 100%; padding-top: 32px; padding-bottom: 32px; }
.ns .hero-copy { max-width: 1080px; margin: 0 auto; text-align: center; }
.ns .hero-title { margin: 0; padding-left: .12em; font-size: clamp(34px, 5vw, 76px); line-height: 1.1; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F2F1EE; }
.ns .hero-line { display: block; }
.ns .hero-tag { margin: 28px 0 0; padding-left: .32em; font-size: clamp(14px, 1.5vw, 22px); font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #F2F1EE; }
.ns .hero-tag span { margin: 0 .4em; opacity: .5; }
.ns .hero-lead { margin: 22px auto 0; max-width: 760px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; letter-spacing: .04em; color: #F2F1EE; }
.ns .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 44px; }
.ns .btn-hero { min-width: 220px; height: 56px; padding: 0 40px; background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid var(--accent); color: #161616; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.ns .btn-hero:hover, .ns .btn-hero:focus-visible { background: #161616; color: #fff; }
.ns .hero-line, .ns .hero-tag, .ns .hero-lead, .ns .hero-actions { opacity: .01; animation: hero-rise .9s cubic-bezier(.22, 1, .36, 1) forwards; }
.ns .hero-line:nth-child(1) { animation-delay: .4s; }
.ns .hero-line:nth-child(2) { animation-delay: .6s; }
.ns .hero-tag { animation-delay: 1.1s; }
.ns .hero-lead { animation-delay: 1.35s; }
.ns .hero-actions { animation-delay: 1.6s; }
/* ---------- Titres de section (mêmes que l’accueil et les services) ---------- */
.ns .ns-section { padding-top: 112px; scroll-margin-top: 24px; }
.ns .sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "num title slogan"; align-items: baseline; padding-bottom: 24px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.ns .sec-titles { display: contents; }
.ns .sec-num { grid-area: num; margin-right: 20px; font-family: var(--mono) !important; font-size: 13px; color: var(--accent-text); }
.ns .sec-head h2 { grid-area: title; margin: 0; font-size: 44px; line-height: 1.05; font-weight: 500; letter-spacing: -.025em; color: var(--text); text-transform: none; }
.ns .sec-slogan { grid-area: slogan; max-width: 560px; margin: 0 0 0 32px; font-size: 16px; line-height: 1.5; color: var(--muted); text-align: right; }

/* ---------- Articles du journal : un grand à gauche, quatre à droite, même hauteur ---------- */
.ns .posts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.ns .post { grid-column: span 3; display: flex; flex-direction: column; color: var(--text); }
.ns .post:hover, .ns .post:focus { color: var(--text); }
.ns .post-lead { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.ns .post-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.ns .post-lead .post-media { flex: 1 1 auto; min-height: 320px; aspect-ratio: auto; }
/* !important : l’ancienne feuille impose « img { height: auto !important } » sur téléphone */
html body.ns-page .ns .post-media img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none !important; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.ns .post:hover .post-media img { transform: scale(1.04); }
.ns .post-cat { margin-top: 16px; font-family: var(--mono) !important; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.ns .post-title { margin: 8px 0 0; font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; color: var(--text); text-transform: none; transition: color .2s; }
.ns .post-lead .post-title { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.ns .post:hover .post-title { color: var(--accent-text); }
.ns .post-excerpt { margin: 12px 0 0; max-width: 600px; font-size: 16px; line-height: 1.65; color: var(--muted); }
/* petites cartes : résumé limité à deux lignes */
.ns .post:not(.post-lead) .post-excerpt { margin-top: 8px; font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ns .post-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--accent-text); }
.ns .post-more .icon { transition: transform .3s; }
.ns .post:hover .post-more .icon { transform: translateX(4px); }

/* ---------- Bloc contact ---------- */
.ns .contact-band { margin-top: 96px; background: var(--surface); border-top: 1px solid var(--line); }
.ns .contact-band .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; padding-top: 96px; padding-bottom: 96px; }
.ns .contact-main { grid-column: span 5; }
.ns .contact-main h2 { margin: 16px 0 0; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.04; font-weight: 500; letter-spacing: -.03em; color: var(--text); text-transform: none; }
.ns .contact-text { margin: 28px 0 0; max-width: 460px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.ns .contact-main .contact-links { justify-content: flex-start; gap: 12px 28px; margin-top: 16px; }
.ns .contact-form { grid-column: 7 / span 6; margin: 0; }
.ns .contact-form .btn { width: 100%; justify-content: space-between; margin-top: 28px; }
.ns .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.ns .chips li { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14px; color: var(--text); }
.ns .contact-side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 20px; }
.ns .contact-side p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.ns .contact-side .btn { justify-content: space-between; }
.ns .contact-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.ns .contact-links a { color: var(--text); }

/* ---------- Pied de page ---------- */
.ns .site-footer { border-top: 1px solid var(--line); background: transparent; }
.ns .site-footer.footer-spaced { margin-top: 96px; }
.ns .footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-top: 36px; padding-bottom: 32px; }
.ns .footer-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.ns .footer-nav a { color: var(--text); }
.ns .social { display: flex; gap: 8px; }
.ns .social svg { width: 18px; height: 18px; fill: currentColor; }
/* réseaux sociaux : le bouton se remplit d’orange au survol */
.ns .social a { transition: background-color .2s, border-color .2s, color .2s; }
.ns .social a:hover, .ns .social a:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ns .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ns .footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.ns .footer-legal a { color: var(--muted); }
.ns .footer-legal a:hover { color: var(--accent-text); }
.ns .mobile-cta { display: none; }

/* ---------- Fenêtre « Demander un devis » ---------- */
.ns .quote { width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--text); }
.ns .quote::backdrop { background: rgba(10, 10, 9, .62); }
.ns .quote-inner { padding: 32px; }
.ns .quote-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.ns .quote-head h2 { margin: 8px 0 0; font-size: 34px; line-height: 1.05; font-weight: 500; letter-spacing: -.02em; text-transform: none; }
.ns .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ns .field { display: flex; flex-direction: column; gap: 6px; }
.ns .field-full { grid-column: 1 / -1; }
.ns .field label { margin: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ns .field input, .ns .field textarea { width: 100%; margin: 0; padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; box-shadow: none; font-size: 17px; color: var(--text); text-transform: none; letter-spacing: 0; transition: border-color .2s; }
.ns .field input:focus, .ns .field textarea:focus { outline: none; border-bottom: 2px solid var(--accent); }
.ns .field textarea { min-height: 110px; resize: vertical; }
/* liste « Prestation » : même trait que les autres champs, flèche orange */
.ns .field select { width: 100%; height: auto; margin: 0; padding: 10px 28px 10px 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8C00' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 16px; border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; box-shadow: none; font-size: 17px; color: var(--text); text-transform: none; letter-spacing: 0; -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color .2s; }
.ns .field select:focus { outline: none; border-bottom: 2px solid var(--accent); }
.ns .field select option, .ns .field select optgroup { background: var(--page-bg); color: var(--text); }
.ns .field-service.is-picked select { border-bottom: 2px solid var(--accent); }
.ns .field-service.is-picked { animation: field-picked 1.8s ease; }
@keyframes field-picked { 0%, 40% { background: rgba(255, 140, 0, .16); box-shadow: 0 0 0 10px rgba(255, 140, 0, .16); } 100% { background: rgba(255, 140, 0, 0); box-shadow: 0 0 0 10px rgba(255, 140, 0, 0); } }
.ns .quote .btn { width: 100%; justify-content: space-between; margin-top: 28px; }
.ns .form-legal { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
/* anti-spam : champ piège hors de l’écran (ni visible, ni atteignable au clavier) ; message d’erreur */
.ns .contact-form .hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ns .form-error { margin: 20px 0 0; padding: 10px 14px; border-left: 2px solid var(--accent); background: var(--page-bg); font-size: 14px; line-height: 1.5; color: var(--text); }
.ns .form-error[hidden] { display: none; }
.ns .form-legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Petit écran d’ordinateur et tablette en paysage : en-tête resserré, sur une seule ligne ---------- */
.ns .main-nav a, .ns .header-actions .btn { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
  .ns .site-header .wrap { gap: 16px; }
  .ns .main-nav { gap: 18px; font-size: 14px; }
  .ns .header-actions { gap: 8px; }
  .ns .header-actions .btn { padding: 0 16px; }
}
/* allemand : libellés plus longs, le bouton « Angebot anfragen » laisse sa place (« Kontakt » reste dans le menu) */
@media (min-width: 961px) and (max-width: 1080px) {
  html[lang="de"] .ns .header-actions .btn { display: none; }
}

/* ---------- Tablette et mobile ---------- */
@media (max-width: 960px) {
  .ns .wrap { padding-left: 16px; padding-right: 16px; }
  .ns .main-nav, .ns .header-actions .btn, .ns .header-actions .lang-toggle { display: none; }
  .ns .header-actions { gap: 8px; }
  .ns .menu-btn { display: inline-flex; }
  .ns .site-header .wrap { height: 64px; }
  .ns .site-header.nav-open .main-nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--page-bg); border-bottom: 1px solid var(--line); }
  .ns .site-header.nav-open .main-nav a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-bottom: 1px solid var(--line); box-shadow: none; text-align: center; }
  .ns .site-header.nav-open .main-nav a[aria-current="page"] { color: var(--accent-text); padding-bottom: 0; }
  .ns .site-header.nav-open .main-nav .nav-lang { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 52px; font-size: 14px; letter-spacing: .06em; color: var(--muted); }
  .ns .site-header.nav-open .main-nav .nav-lang a, .ns .main-nav .nav-lang strong { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-bottom: 0; }
  .ns .site-header.nav-open .main-nav .nav-lang a { color: var(--muted); }
  .ns .main-nav .nav-lang strong { font-weight: 600; color: var(--text); }
  .ns .main-nav .nav-lang .lang-sep { opacity: .6; }
  .ns .contact-band { margin-top: 64px; }
  .ns .contact-band .wrap { padding-top: 56px; padding-bottom: 56px; }
  .ns .contact-main, .ns .contact-side, .ns .contact-form { grid-column: 1 / -1; }
  /* pied de page centré */
  .ns .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .ns .footer-nav { justify-content: center; gap: 20px; }
  .ns .social { justify-content: center; }
  .ns .footer-bottom { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .ns .footer-legal { justify-content: center; }
  .ns .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .ns .quote-inner { padding: 24px 20px; }
  .ns .quote-head h2 { font-size: 28px; }
  .ns .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 8px; padding: 10px 16px; background: var(--page-bg); border-top: 1px solid var(--line); transition: transform .3s ease; }
  .ns .mobile-cta.is-hidden { transform: translateY(110%); }
  .ns .mobile-cta .btn { flex-grow: 1; height: 48px; }
  .ns .mobile-cta .icon-btn { width: 48px; height: 48px; }
  html body.ns-page { padding-bottom: 68px !important; }
  html body.ns-page .ns .hero-media { height: min(calc(100vh - 160px), 560px) !important; height: min(calc(100svh - 160px), 560px) !important; min-height: 460px; }
  .ns .hero-title { padding-left: .08em; font-size: clamp(24px, 7vw, 40px); letter-spacing: .08em; }
  .ns .hero-tag { margin-top: 20px; font-size: 13px; letter-spacing: .26em; padding-left: .26em; }
  .ns .hero-lead { margin-top: 16px; font-size: 15px; letter-spacing: .02em; }
  .ns .hero-actions { flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
  .ns .hero-actions .btn { width: 100%; max-width: 300px; min-width: 0; height: 52px; padding: 0 20px; }
  .ns .ns-section { padding-top: 64px; }
  .ns .sec-head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num title" ". slogan"; column-gap: 12px; margin-bottom: 24px; }
  .ns .sec-num { margin-right: 0; }
  .ns .sec-head h2 { font-size: 30px; }
  .ns .sec-slogan { justify-self: start; margin: 8px 0 0; font-size: 15px; text-align: left; }
  .ns .posts { grid-template-columns: 1fr; row-gap: 36px; }
  .ns .post, .ns .post-lead { grid-column: 1 / -1; grid-row: auto; }
  .ns .post-lead .post-media { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .ns .post-lead .post-title { font-size: 24px; }
}
/* légendes d’images assez contrastées, et liens dans le texte soulignés (pas seulement colorés) */
html body.ns-page figcaption { color: var(--muted) !important; }
html body.ns-page :is(.blog-article, .legal_container) :is(p, li) a:not([class]) { color: var(--accent-text) !important; text-decoration: underline !important; text-underline-offset: 2px; }

/* lien de la bannière cookies : souligné pour se distinguer du texte autrement que par la couleur */
html body.ns-page .ic-cookie-link, html body.ns-page [id*="cookie"] a { text-decoration: underline !important; text-underline-offset: 2px; }

/* ---------- Apparition des blocs au défilement (même mouvement que l’en-tête) ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--i, 0) * 120ms); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
.js-reveal .ns .sec-head[data-reveal] { position: relative; border-bottom-color: transparent; }
.js-reveal .ns .sec-head[data-reveal]::after { content: "" !important; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left center; transition: transform 1.1s cubic-bezier(.22, 1, .36, 1) .25s; }
.js-reveal .ns .sec-head[data-reveal].is-in::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Articles et pages légales sur téléphone : même mise en page, lecture plus confortable ---------- */
@media (max-width: 768px) {
  html body.ns-page .article-hero-container { margin: 0 !important; height: auto !important; min-height: 0 !important; max-height: none !important; }
  html body.ns-page .article-hero-container .article-hero { position: static !important; display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; }
  html body.ns-page .article-content-wrapper { margin: 0 !important; padding: 32px 16px 48px !important; max-width: none !important; width: auto !important; box-shadow: none !important; border-radius: 0 !important; transform: none !important; }
  html body.ns-page .article-meta { letter-spacing: .1em !important; line-height: 1.6 !important; }
  html body.ns-page .article-title { font-size: 26px !important; line-height: 1.2 !important; letter-spacing: .03em !important; margin: 14px 0 28px !important; }
  html body.ns-page .blog-article p, html body.ns-page .blog-article li { font-size: 17px !important; line-height: 1.7 !important; text-align: left !important; }
  html body.ns-page .blog-article h2 { margin-top: 40px !important; font-size: 21px !important; line-height: 1.25 !important; letter-spacing: .02em !important; }
  html body.ns-page .blog-article li { margin-bottom: 8px !important; }
  html body.ns-page .legal_container { padding-left: 16px !important; padding-right: 16px !important; }
  html body.ns-page .legal_container h1 { font-size: 30px !important; letter-spacing: .06em !important; }
  html body.ns-page .legal_section .legal_container p, html body.ns-page .legal_section .legal_container li { text-align: left !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ns .hero-media, .ns .hero-line, .ns .hero-tag, .ns .hero-lead, .ns .hero-actions { animation: none; opacity: 1; transform: none; }
}
