/* ==========================================================================
   Nikita · CSS complémentaire (chargé sans bloquer)
   Footer, fil d'Ariane, cartes génériques, listes, formulaires, blog, animations.
   ========================================================================== */

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; color: var(--fg-muted); }
.crumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs__item + .crumbs__item::before { content: "/"; margin-right: .35rem; color: var(--accent); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--fg); }
.sec--crumbs { padding-block: var(--sp-2); }

/* ---------- Cartes génériques ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); }
.card > * + * { margin-top: var(--sp-2); }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; }
.card__icon svg, .card__icon img { width: 40px; height: 40px; object-fit: contain; }
.bg-sombre .card__icon svg { color: var(--c-green); }
.card--link { text-decoration: none; display: block; transition: transform .2s, border-color .2s; }
.card--link:hover { transform: translateY(-3px); border-color: var(--accent); }

/* ---------- Listes ---------- */
/* Puces rondes vertes (maquette : services, FAQ) */
.dots { list-style: none; }
.dots li { position: relative; padding-left: 1.25em; margin-bottom: .2em; line-height: 1.4; }
.dots li::before { content: ""; position: absolute; left: 0; top: .5em; width: .45em; height: .45em; border-radius: 50%; background: var(--c-green); }
.bg-blanc .dots li::before, .bg-papyrus .dots li::before, .bg-sable .dots li::before { background: var(--c-ink); }
.list { list-style: none; }
.list li { position: relative; padding-left: 1.6em; margin-bottom: .5em; }
.list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .9em; height: .9em; border-radius: 50%; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat, linear-gradient(#000 0 0); mask-composite: exclude; -webkit-mask-composite: xor; }
.list--dash li::before { mask: none; -webkit-mask: none; width: .8em; height: 2px; top: .75em; border-radius: 0; }
.rich ul, .rich ol { padding-left: 1.25em; margin: 0 0 1em; }
.rich li { margin-bottom: .35em; }
.rich a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.rich strong { font-weight: 600; }

/* ---------- Chiffres clés ---------- */
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); }
.stat { min-width: 6rem; }
.stat__value { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1; letter-spacing: -.01em; }
.stat__value em { font-style: normal; color: var(--accent); }
.stat__label { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); margin-top: .5rem; }

/* ---------- Avis clients : section et cartes (modules Avis clients + Avis choisis, mise en page Codex) ---------- */
.rev__head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 64rem; }
.rev { position: relative; }
.rev__track { list-style: none; display: grid; gap: clamp(1.125rem, 1.6vw, 1.5rem); }
.rev--grid .rev__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Carrousel bord à bord : la piste sort du .wrap et déborde des deux côtés (centrée au chargement par main.js) */
.rev--carousel { width: 100vw; margin-inline: calc(50% - 50vw); }
.rev--carousel .rev__track { grid-auto-flow: column; grid-auto-columns: min(23vw, 24rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .25rem var(--gutter) .5rem; -webkit-overflow-scrolling: touch; }
.rev--carousel .rev__track::-webkit-scrollbar { display: none; }
@media (hover: hover) { .rev--carousel .rev__track { cursor: grab; } .rev--carousel .rev__track.is-dragging { cursor: grabbing; user-select: none; scroll-behavior: auto; } }
.rev--carousel .rev__item { scroll-snap-align: center; }
/* Le « N » de Nikita (emblème SVG des réglages) en vert, très grand, à droite derrière les cartes */
.rev__deco { position: absolute; z-index: 0; pointer-events: none; right: clamp(-8rem, -6vw, -4rem); top: -4rem; width: clamp(24rem, 44vw, 40rem); color: var(--c-green-hl); }
.rev__deco svg, .rev__deco img { width: 100%; height: auto; }
/* Grand N image (maquette) : émerge du bord droit, coupé par le bas de la section */
.sec--avis-choisis, .sec--temoignages { overflow: clip; }
.sec--avis-choisis > .wrap, .sec--temoignages > .wrap, .sec--avis-choisis .rev, .sec--temoignages .rev { position: static; }
.sec--avis-choisis .sec-foot, .sec--temoignages .sec-foot, .sec--avis-choisis .rev__head, .sec--temoignages .rev__head { position: relative; z-index: 1; }
.rev__deco--img { top: auto; bottom: -2px; right: clamp(-9rem, -8vw, -4rem); width: clamp(30rem, 50vw, 52rem); }
.rev__deco svg * { fill: currentColor !important; stroke: none !important; }
.sec--temoignages, .sec--avis-choisis { overflow: clip; }
/* Carte : hauteur fixe, contenu défilant */
.rev__item { position: relative; z-index: 1; display: flex; flex-direction: column; height: 350px; background: var(--c-white); color: var(--c-ink); border-radius: 25px; padding: 26px 23px 20px; box-shadow: 0 10px 35px rgba(20,20,20,.035); overflow: hidden; }
.rev__top { display: flex; align-items: flex-start; justify-content: flex-end; flex: none; min-height: 8px; }
.rev__bar { position: absolute; top: 0; left: 24px; width: 56px; height: 5px; border-radius: 0 0 3px 3px; background: var(--c-green); }
.rev__num { font-family: var(--f-mono); font-size: .5rem; color: var(--c-ink); opacity: .38; line-height: 1; }
.rev__rating { display: flex; align-items: center; gap: .625rem; flex: none; margin-top: .25rem; }
.rev__stars { --c-star: #f5b01b; gap: 2px; }
.rev__stars .star--empty { color: rgba(20,19,19,.18); }
.rev__stars svg { width: 17px; height: 17px; }
.rev__verified { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--f-body); font-size: .5625rem; line-height: 1; color: #5f655f; white-space: nowrap; }
.rev__verified svg { width: 17px; height: 17px; }
.rev__scroll { flex: 1 1 0; min-height: 0; margin: 21px 0 17px; padding-right: 8px; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--c-ink) rgba(20,20,20,.06); }
.rev__scroll::-webkit-scrollbar { width: 4px; }
.rev__scroll::-webkit-scrollbar-track { background: rgba(20,20,20,.05); border-radius: 10px; }
.rev__scroll::-webkit-scrollbar-thumb { background: var(--c-ink); border-radius: 10px; }
.rev__title { margin: 0 0 10px; font-family: var(--f-mono); font-size: .5625rem; font-weight: 700; line-height: 1.25; letter-spacing: .03em; text-transform: uppercase; }
.rev__text { margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.2; letter-spacing: -.02em; color: var(--c-ink); }
.rev__text p { margin: 0; }
.rev__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; flex: none; margin-top: auto; }
.rev__author { display: flex; align-items: center; gap: .625rem; min-width: 0; flex: 1 1 0; }
.rev__avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; }
.rev__avatar--initial { display: grid; place-items: center; background: var(--c-ink); color: var(--c-white); font-family: var(--f-mono); font-weight: 700; font-size: 1rem; }
.rev__who { display: grid; gap: .2rem; min-width: 0; }
.rev__name { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-mono); font-size: .6875rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; color: var(--c-ink); }
.rev__role { display: block; max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-body); font-size: .625rem; line-height: 1.25; color: #555; }
.rev__date { display: block; font-family: var(--f-mono); font-size: .5rem; line-height: 1; text-transform: uppercase; color: #777; }
.rev__src { display: inline-flex; align-items: center; gap: .375rem; flex: none; padding: 6px 9px 6px 6px; border: 1px solid rgba(20,20,20,.09); border-radius: var(--radius-pill); background: var(--c-paper); color: var(--c-ink); font-family: var(--f-body); font-size: .5rem; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; transition: transform .2s, background .2s; }
a.rev__src:hover { transform: translateY(-1px); background: var(--c-green); }
.rev__src-icon { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; background: var(--c-white); }
.rev__src-icon svg { width: 18px; height: 18px; }
.rev__src b { font-size: .5rem; font-weight: 700; }
.rev__src-arrow { width: 11px; height: 11px; margin-left: 1px; }
.rev__nav { position: relative; z-index: 1; display: flex; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.rev__btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--fg); transition: background .2s, color .2s; }
.rev__btn:hover { background: var(--fg); color: var(--bg); }
.bg-sombre .rev__btn { border-color: var(--c-line-dark); }
.icon--flip { transform: scaleX(-1); }
.sec--temoignages .sec-foot, .sec--avis-choisis .sec-foot { margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 1200px) { .rev--carousel .rev__track { grid-auto-columns: min(31vw, 24rem); } }
@media (max-width: 1023px) { .rev--grid .rev__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rev__deco { display: none; } }
@media (max-width: 900px) { .rev--carousel .rev__track { grid-auto-columns: 45vw; } .rev__item { height: 370px; } }
@media (max-width: 767px) { .rev--grid .rev__track { grid-template-columns: minmax(0, 1fr); } .rev__nav { margin-top: 1.25rem; } }
@media (max-width: 600px) { .rev--carousel .rev__track { grid-auto-columns: 86vw; } .rev__item { height: 410px; padding: 25px 20px 18px; } .rev__text { font-size: 1.0625rem; line-height: 1.22; } .rev__verified span { display: none; } .rev__src-name { display: none; } .rev__avatar { width: 40px; height: 40px; flex-basis: 40px; } }

/* ---------- Avatars / auteurs ---------- */
.author { display: flex; align-items: center; gap: .75rem; }
.author__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; }
.author__avatar--initial { display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; color: var(--fg); background: var(--accent); }
.author__name { font-weight: 600; line-height: 1.2; }
.author__meta { font-size: var(--t-body-sm); color: var(--fg-muted); line-height: 1.3; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: var(--c-paper); --fg: var(--c-paper); --fg-muted: var(--c-muted-dark); --line: var(--c-line-dark); --accent: var(--c-green); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-5) var(--sp-4); padding-block: clamp(3rem, 6vw, 5rem); }
.footer__brand > * + * { margin-top: var(--sp-3); }
.footer__brand .brand svg, .footer__brand .brand img { height: 36px; }
.footer__baseline { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.footer__contact { font-size: var(--t-body-sm); color: var(--fg-muted); }
.footer__contact a { color: var(--c-paper); text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; text-decoration-color: var(--c-green); }
.footer__title { font-family: var(--f-mono); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.footer__title::before { content: "/ "; color: var(--c-green); }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: .55rem; }
.footer__col a { text-decoration: none; color: var(--c-paper); font-size: var(--t-body-sm); }
.footer__col a:hover { color: var(--c-green); }
.footer__bottom { border-top: 1px solid var(--c-line-dark); padding-block: var(--sp-3); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: center; justify-content: space-between; font-family: var(--f-mono); font-size: .75rem; color: var(--fg-muted); }
.footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--c-green); }
.footer__social { list-style: none; display: flex; gap: .75rem; }
.footer__social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--c-line-dark); border-radius: 50%; text-decoration: none; }
.footer__social a:hover { border-color: var(--c-green); color: var(--c-green); }
.footer__emblem { position: absolute; right: 0; bottom: 0; width: clamp(120px, 20vw, 260px); opacity: .18; pointer-events: none; }
.footer__emblem svg, .footer__emblem img { width: 100%; height: auto; }
@media (max-width: 1023px) { .footer__top { grid-template-columns: repeat(2, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 599px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; gap: var(--sp-2); text-decoration: none; }
.post-card__media img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); width: 100%; }
.post-card__meta { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.post-card__title { font-family: var(--f-body); font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.post-card:hover .post-card__title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.article-head { max-width: var(--wrap-narrow); margin-inline: auto; }
.article-head > * + * { margin-top: var(--sp-2); }
.article-body { max-width: var(--wrap-narrow); margin-inline: auto; }
.article-body > * + * { margin-top: 1.25em; }
.article-body img { border-radius: var(--radius-sm); }
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; font-family: var(--f-mono); font-size: .8125rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding-inline: .75rem; border: 1.5px solid var(--line); border-radius: var(--radius-pill); text-decoration: none; }
.pagination .current { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }

/* ---------- Formulaires natifs (recherche, newsletter) ---------- */
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; padding: .9em 1.1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--fg); font: inherit; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(219,244,93,.35); }

/* ---------- Apparition au défilement (optionnelle, sans JS = tout visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding-block: var(--sp-7); }
.error-page > * + * { margin-top: var(--sp-3); }

/* ---------- Impression ---------- */
@media print { .site-header, .site-footer, .btn, .burger { display: none !important; } .sec { padding-block: 1rem; background: none; color: #000; } }

/* ---------- Blog : cartes d'articles bordées et pastilles de catégories (accueil du blog, sélection, catégories, recherche) ---------- */
/* Pastilles de catégories (communes aux modules du blog) */
.blog-pills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.blog-pill { display: inline-block; padding: .4em .95em; border-radius: var(--radius-pill); background: var(--c-paper); color: var(--c-ink); font-family: var(--f-mono); font-size: .6875rem; line-height: 1.3; text-decoration: none; }
.blog-pill:hover { background: var(--c-green); }
.blog-pill--outline { background: transparent; border: 1px solid var(--c-ink); }
.blog-pill--outline:hover { background: var(--c-ink); color: var(--c-paper); }
.blog-pill.is-current { background: var(--c-green); }
.blog-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.8vw, 3.25rem); }
.blog-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; }
.blog-cards--1 { grid-template-columns: minmax(0, 1fr); max-width: 28rem; }
.blog-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); padding: 2px 2px 1.5rem; background: transparent; color: var(--fg); }
.bg-sombre .blog-card { border-color: rgba(253, 248, 242, .45); }
.blog-card__media { display: block; }
.blog-card__img { width: 100%; aspect-ratio: 386 / 176; object-fit: cover; }
.blog-card__body { padding: 1.4rem 1.75rem 0 1.75rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.blog-card__title { font-size: .9375rem; line-height: 1.3; padding-right: 2.5rem; }
.blog-card__title a { text-decoration: none; color: inherit; position: relative; z-index: 1; }
.blog-card__link { position: absolute; right: 1.5rem; bottom: 1.4rem; color: var(--c-green); display: grid; place-items: center; }
.bg-blanc .blog-card__link, .bg-papyrus .blog-card__link { color: var(--c-ink); }
.blog-card__link .icon { width: 18px; height: 18px; transition: transform .2s; }
.blog-card:hover .blog-card__link .icon { transform: translate(2px, -2px); }
.blog-card:hover .blog-card__title { text-decoration: underline; text-decoration-color: var(--c-green); text-decoration-thickness: 2px; text-underline-offset: .25em; }
/* Toute la carte est cliquable : le lien de la flèche s'étend sur la carte */
.blog-card__link::after { content: ""; position: absolute; inset: 0; }
.blog-card .blog-pills { position: relative; z-index: 2; }
@media (max-width: 1023px) { .blog-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .blog-cards, .blog-cards--2 { grid-template-columns: minmax(0, 1fr); } }

/* Liste à flèches « ↗ » (maquette RSE, application Nikita) : <ul class="fleches"> dans un texte riche */
.rich ul.fleches { list-style: none; padding: 0; }
.rich ul.fleches li { position: relative; padding-left: 1.6em; margin-bottom: .7em; font-family: var(--f-mono); font-size: .875rem; line-height: 1.4; }
.rich ul.fleches li::before { content: "↗"; position: absolute; left: 0; top: 0; color: var(--fg); }
