/* =====================================================================================================================
   Nikita Formation : charte du site nikita-nettoyage.fr (couleurs, typographies, formes).
   Pensé d'abord pour le téléphone : les agents consultent le guide sur le terrain.
   ===================================================================================================================== */

/* ---------- Polices (mêmes fichiers que le site) ---------- */
@font-face { font-family: "Druk Wide"; src: url("../fonts/DrukWideBold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/SpaceMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/SpaceMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Galano Grotesque"; src: url("../fonts/GalanoGrotesqueRegular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Charte ---------- */
:root {
  --c-ink: #141313;        /* gris profond */
  --c-ink-3: #262424;
  --c-white: #ffffff;
  --c-cream: #fdf8f2;      /* fond des pages */
  --c-paper: #fff7d6;      /* papyrus : textes sur fond sombre */
  --c-green: #dbf45d;      /* vert tech : boutons, numéros */
  --c-green-hl: #d4f489;   /* surligneur */
  --c-muted: #6b6866;
  --c-line: rgba(20, 19, 19, .12);
  --c-rouge: #d7261e;      /* couleurs réelles des produits (vaporisateur rouge / bleu) */
  --c-bleu: #1f5fd6;

  --f-display: "Druk Wide", "Arial Black", Impact, sans-serif;
  --f-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-body: "Galano Grotesque", Inter, "Segoe UI", Roboto, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5.3vw, 3rem);
  --wrap: 1180px;
  --content: 760px;
  --radius: 24px;
  --radius-sm: 12px;
  --header-h: 72px;
  --abh: 0px;
}
.admin-bar { --abh: 32px; }
@media (max-width: 782px) { .admin-bar { --abh: 46px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--abh) + 1rem); }
body { margin: 0; background: var(--c-cream); color: var(--c-ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--c-green); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
mark { background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--c-green); outline-offset: 3px; border-radius: 4px; }
.nkf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nkf-skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--c-ink); color: var(--c-paper); padding: .75rem 1rem; }
.nkf-skip:focus { left: 1rem; top: 1rem; }
.nkf-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nkf-centre { text-align: center; }

/* ---------- En-tête ---------- */
.nkf-header { position: sticky; top: var(--abh); z-index: 100; background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.nkf-header__in { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.nkf-brand { display: inline-flex; align-items: center; color: var(--c-ink); text-decoration: none; margin-right: auto; }
.nkf-brand__svg, .nkf-brand__img { display: block; width: auto; height: 30px; }
.nkf-burger { display: inline-grid; place-items: center; gap: 6px; width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--c-ink); border-radius: 50%; background: transparent; color: var(--c-ink); cursor: pointer; }
.nkf-burger__bar { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .2s; }
.nkf-burger[aria-expanded="true"] .nkf-burger__bar:nth-child(2) { transform: translateY(4px) rotate(45deg); }
.nkf-burger[aria-expanded="true"] .nkf-burger__bar:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
.nkf-burger { grid-template-rows: auto auto; align-content: center; }
.nkf-nav { display: none; }
.nkf-menu { list-style: none; margin: 0; padding: 0; }
.nkf-menu a { font-family: var(--f-mono); text-decoration: none; }

@media (max-width: 1023px) {
  .nkf-header.is-open .nkf-nav { display: block; position: fixed; inset: calc(var(--header-h) + var(--abh)) 0 0 0; background: var(--c-ink); color: var(--c-paper); padding: 1.5rem var(--gutter) 3rem; overflow: auto; }
  .nkf-header.is-open .nkf-menu li { border-bottom: 1px solid rgba(253, 248, 242, .18); }
  .nkf-header.is-open .nkf-menu a { display: block; padding: 1.1rem 0; font-family: var(--f-display); font-size: clamp(1rem, 4.6vw, 1.3rem); text-transform: uppercase; line-height: 1.2; }
  .nkf-header.is-open .nkf-menu a::after { content: " →"; color: var(--c-green); }
  body.nkf-menu-ouvert { overflow: hidden; }
}
@media (min-width: 1024px) {
  :root { --header-h: 88px; }
  .nkf-brand__svg, .nkf-brand__img { height: 36px; }
  .nkf-burger { display: none; }
  .nkf-nav { display: block; }
  .nkf-menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
  .nkf-menu a { font-size: .8125rem; padding: .5rem 0; white-space: nowrap; }
  .nkf-menu a:hover, .nkf-menu .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--c-green); text-decoration-thickness: 2px; text-underline-offset: .35em; }
}

/* ---------- Contenu ---------- */
.nkf-main { padding: clamp(1.75rem, 6vw, 3.5rem) 0 clamp(3rem, 8vw, 5rem); }
.nkf-content { max-width: calc(var(--content) + 2 * var(--gutter)); }

/* Grille WPBakery : pas de marges négatives ni de gouttières qui décaleraient le contenu sur téléphone. */
.nkf-content .vc_row, .nkf-content .vc_row.vc_inner { margin-left: 0; margin-right: 0; }
.nkf-content .vc_column_container > .vc_column-inner { padding-left: 0; padding-right: 0; }
.nkf-content .vc_row.vc_inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.nkf-content .vc_row.vc_inner > .wpb_column { width: auto; float: none; }
@media (min-width: 560px) {
  .nkf-content .vc_row.vc_inner:has(> .vc_col-sm-6) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nkf-content .vc_row.vc_inner:has(> .vc_col-sm-4) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.nkf-content .vc_row.vc_inner::before, .nkf-content .vc_row.vc_inner::after { display: none; }
.nkf-content .wpb_content_element, .nkf-content .nk-el { margin-bottom: 1rem; }
.nkf-content .vc_empty_space { max-height: 2rem; }

/* Texte courant (bloc « Texte » de WPBakery) */
.wpb_text_column { font-size: 1.0625rem; line-height: 1.55; }
.wpb_text_column ul, .wpb_text_column ol { margin: 0 0 1em; padding-left: 1.25rem; }
.wpb_text_column li { margin-bottom: .4em; }
.nk-centre, .nk-centre p { text-align: center; }
.nk-lead { font-family: var(--f-mono); font-size: clamp(1rem, .9rem + .5vw, 1.2rem); line-height: 1.5; }
.nk-intro { font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem); }

/* Listes numérotées : numéros dans une pastille verte (instructions d'installation) */
.wpb_text_column ol, .nk-etape__corps ol { list-style: none; counter-reset: nk-ol; padding-left: 0; }
.wpb_text_column ol > li, .nk-etape__corps ol > li { counter-increment: nk-ol; position: relative; padding-left: 2.6rem; margin-bottom: .85em; min-height: 1.9rem; }
.wpb_text_column ol > li::before, .nk-etape__corps ol > li::before { content: counter(nk-ol); position: absolute; left: 0; top: -.1em; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--c-green); color: var(--c-ink); font-family: var(--f-mono); font-weight: 700; font-size: .875rem; }
.nk-etape__corps ul { text-align: left; padding-left: 1.2rem; }

/* Mots mis en valeur dans les consignes */
.nk-rouge { color: var(--c-rouge); font-weight: 700; }
.nk-bleu { color: var(--c-bleu); font-weight: 700; }
.nk-vert { background: var(--c-green); color: var(--c-ink); padding: .05em .35em; border-radius: 4px; }
.nk-ui { font-family: var(--f-mono); font-size: .95em; background: var(--c-green-hl); color: var(--c-ink); padding: .05em .3em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nk-surligne { background: linear-gradient(transparent 52%, var(--c-green-hl) 52%, var(--c-green-hl) 92%, transparent 92%); padding: 0 .08em; color: inherit; }

/* ---------- Titre de page ---------- */
.nk-titre-page { text-align: center; margin: 0 0 clamp(1.5rem, 5vw, 2.5rem); }
.nk-titre-page__surtitre { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .9rem; }
.nk-titre-page__surtitre::before { content: "/ "; color: #9cbc00; }
.nk-titre-page__titre { font-family: var(--f-display); font-size: clamp(1.9rem, 8.2vw, 3.6rem); line-height: 1.04; text-transform: uppercase; letter-spacing: .005em; overflow-wrap: normal; hyphens: none; }
.nk-titre-page__accroche { font-family: var(--f-mono); font-size: clamp(1rem, .9rem + .5vw, 1.2rem); margin: 1rem auto 0; max-width: 34ch; }

/* ---------- Sommaire ---------- */
.nk-sommaire { background: var(--c-white); border-radius: var(--radius); padding: .5rem clamp(1rem, 4vw, 1.75rem); margin: 1.5rem 0 2rem; box-shadow: 0 1px 0 var(--c-line); }
.nk-sommaire__titre { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); margin: 1rem 0 .25rem; }
.nk-sommaire__liste { list-style: none; margin: 0; padding: 0; }
.nk-sommaire__liste li + li { border-top: 1px solid var(--c-line); }
.nk-sommaire__lien { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: 1rem 0; text-decoration: none; color: var(--c-ink); }
.nk-sommaire__num { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--c-green); font-family: var(--f-display); font-size: 1rem; }
.nk-sommaire__lib { font-family: var(--f-mono); font-weight: 700; font-size: clamp(.875rem, .8rem + .35vw, 1rem); text-transform: uppercase; letter-spacing: .02em; line-height: 1.3; }
.nk-sommaire__fleche { font-family: var(--f-mono); font-size: 1.1rem; transition: transform .2s; }
a.nk-sommaire__lien:hover .nk-sommaire__fleche { transform: translateX(4px); }
a.nk-sommaire__lien:hover .nk-sommaire__lib { text-decoration: underline; text-decoration-color: var(--c-green); text-decoration-thickness: 2px; text-underline-offset: .3em; }

/* ---------- Chapitre ---------- */
.nk-chapitre { background: var(--c-ink); color: var(--c-paper); border-radius: var(--radius); padding: clamp(1.75rem, 6vw, 3rem) clamp(1.25rem, 5vw, 2.5rem); margin: clamp(2.5rem, 9vw, 4.5rem) 0 1.75rem; text-align: center; scroll-margin-top: calc(var(--header-h) + var(--abh) + 1rem); }
.nk-chapitre__num { display: inline-grid; place-items: center; min-width: 4.25rem; height: 4.25rem; padding: 0 .9rem; border-radius: 999px; background: var(--c-green); color: var(--c-ink); font-family: var(--f-display); font-size: 2rem; line-height: 1; margin-bottom: 1.1rem; }
.nk-chapitre__titre { font-family: var(--f-display); font-size: clamp(1.45rem, 6.2vw, 2.4rem); line-height: 1.08; text-transform: uppercase; color: var(--c-paper); }

/* ---------- Sous-titres ---------- */
.nk-soustitre { text-align: center; scroll-margin-top: calc(var(--header-h) + var(--abh) + 1rem); }
.nk-soustitre--h3 { font-family: var(--f-display); font-size: clamp(1.15rem, 4.6vw, 1.6rem); line-height: 1.12; text-transform: uppercase; margin: 2.75rem 0 1.25rem; }
.nk-soustitre--h3::after { content: ""; display: block; width: 3rem; height: 4px; border-radius: 4px; background: var(--c-green); margin: .9rem auto 0; }
.nk-soustitre--h4 { font-family: var(--f-mono); font-size: clamp(.95rem, .9rem + .3vw, 1.05rem); line-height: 1.35; text-transform: uppercase; letter-spacing: .03em; margin: 2rem 0 .9rem; }
.nk-soustitre--h4::before { content: "/ "; color: #9cbc00; }

/* ---------- Étape illustrée ---------- */
.nk-etape { background: var(--c-white); border-radius: var(--radius); overflow: hidden; margin: 0 0 1rem; box-shadow: 0 1px 0 var(--c-line); }
.nk-etape__media { display: flex; justify-content: center; padding: clamp(.75rem, 3vw, 1.25rem) clamp(.75rem, 3vw, 1.25rem) 0; }
.nk-etape--sans-texte .nk-etape__media { padding-bottom: clamp(.75rem, 3vw, 1.25rem); }
.nk-etape__img { display: block; width: 100%; height: auto; }
.nk-etape__lien { display: block; }
.nk-etape__texte { padding: 1rem clamp(1.1rem, 4vw, 1.75rem) 1.35rem; text-align: center; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 1.45; }
.nk-etape--gauche .nk-etape__texte { text-align: left; }
/* Capture d'écran de téléphone : largeur d'un téléphone, coins arrondis */
.nk-etape--capture .nk-etape__img { width: auto; max-width: min(100%, 320px); max-height: 640px; border-radius: 18px; }
/* Icône : sans carte, petite image au-dessus d'un texte court */
.nk-etape--icone { background: transparent; box-shadow: none; overflow: visible; }
.nk-etape--icone .nk-etape__media { padding: 0; }
.nk-etape--icone .nk-etape__img { width: auto; max-width: 96px; max-height: 96px; }
.nk-etape--icone .nk-etape__texte { padding-top: .6rem; font-family: var(--f-mono); font-weight: 700; text-transform: none; }
/* Logo : très petit, texte aligné à gauche (listes d'instructions) */
.nk-etape--logo .nk-etape__media { justify-content: flex-start; padding: 1.25rem clamp(1.1rem, 4vw, 1.75rem) 0; }
.nk-etape--logo .nk-etape__img { width: auto; max-height: 40px; max-width: 200px; }
.nk-etape--logo .nk-etape__texte { text-align: left; }
/* Alerte : la consigne passe dans un bandeau noir avec pictogramme */
.nk-etape--alerte { box-shadow: 0 0 0 2px var(--c-ink); }
.nk-etape--alerte .nk-etape__texte { background: var(--c-ink); color: var(--c-paper); display: flex; align-items: flex-start; gap: .85rem; text-align: left; margin-top: clamp(.75rem, 3vw, 1.25rem); }
.nk-etape--alerte .nk-etape__corps { flex: 1; }
.nk-etape--alerte strong, .nk-etape--alerte b { color: var(--c-white); }
.nk-etape--alerte .nk-rouge { color: #ff6b5f; }

/* ---------- Alertes et téléphone ---------- */
.nk-picto-alerte { flex: none; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--c-green); }
.nk-picto-alerte::before { content: ""; width: 1.05rem; height: 1.05rem; background: var(--c-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm0 5.5 7.5 12.5h-15L12 7.5zM11 10v5h2v-5h-2zm0 6v2h2v-2h-2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm0 5.5 7.5 12.5h-15L12 7.5zM11 10v5h2v-5h-2zm0 6v2h2v-2h-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nk-alerte { display: flex; align-items: flex-start; gap: .85rem; background: var(--c-ink); color: var(--c-paper); border-radius: var(--radius); padding: 1.15rem clamp(1.1rem, 4vw, 1.6rem); margin: 0 0 1rem; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 1.45; }
.nk-alerte .nk-alerte__corps { flex: 1; }
.nk-alerte strong, .nk-alerte b { color: var(--c-white); }
.nk-alerte--info { background: var(--c-white); color: var(--c-ink); box-shadow: inset 0 0 0 2px var(--c-ink); }
.nk-alerte--info strong, .nk-alerte--info b { color: var(--c-ink); }
.nk-alerte--telephone { display: block; text-align: center; padding: 1.6rem clamp(1.1rem, 4vw, 1.6rem); }
.nk-alerte__libelle { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .75rem; }
.nk-alerte__tel { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; max-width: 100%; background: var(--c-green); color: var(--c-ink); border-radius: 999px; padding: .85rem clamp(1rem, 4vw, 1.5rem); font-family: var(--f-display); font-size: clamp(1rem, 4.6vw, 1.7rem); line-height: 1; text-decoration: none; white-space: nowrap; }
.nk-alerte__tel:hover { background: var(--c-white); }
.nk-picto-tel { width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nk-alerte--telephone .nk-alerte__corps { margin-top: 1rem; }

/* ---------- Bouton ---------- */
.nk-bouton { text-align: center; margin: 1.5rem 0; }
.nk-bouton__lien { display: inline-flex; align-items: center; gap: .75em; background: var(--c-ink); color: var(--c-paper); border: 1.5px solid var(--c-ink); border-radius: 999px; padding: 1.05em 1.8em; font-family: var(--f-mono); font-weight: 700; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.nk-bouton__lien:hover { background: var(--c-green); color: var(--c-ink); border-color: var(--c-ink); }

/* ---------- Éléments WPBakery natifs (pour les contenus non convertis) ---------- */
.wpb_single_image { text-align: center; }
.wpb_single_image img { display: inline-block; }
.wpb_single_image .vc_single_image-wrapper.vc_box_border_grey { border: 0; }
.vc_separator .vc_sep_line { border-color: var(--c-line) !important; }
.vc_custom_heading { font-family: var(--f-display) !important; text-transform: uppercase; line-height: 1.1 !important; }

/* ---------- Pied de page ---------- */
.nkf-footer { background: var(--c-ink); color: var(--c-paper); padding: 2.25rem 0 calc(2.25rem + env(safe-area-inset-bottom)); }
.nkf-footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.nkf-footer__brand { color: var(--c-paper); display: inline-flex; }
.nkf-footer__brand .nkf-brand__svg, .nkf-footer__brand .nkf-brand__img { height: 26px; }
.nkf-footer__copy { font-family: var(--f-mono); font-size: .8125rem; margin: 0; }

/* ---------- Boutons flottants (extension « Sticky Buttons ») à la charte ---------- */
.sticky-buttons .sb-item { --bg: var(--c-ink) !important; --color: var(--c-green) !important; }

/* ---------- Divers ---------- */
.nkf-article + .nkf-article { margin-top: 2.5rem; }
.nkf-article__title { font-family: var(--f-display); text-transform: uppercase; font-size: 1.4rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
.nk-etape--alerte strong.nk-vert, .nk-alerte strong.nk-vert, .nk-etape--alerte .nk-vert, .nk-alerte .nk-vert { color: var(--c-ink); }
