/* CODEVAULT74 – site statique */
:root {
  --bg: #161616;
  --bg2: #202020;
  --bg3: #2a2a2a;
  --line: #3a3a3a;
  --text: #e6e6e6;
  --text2: #b4b4b4;
  --muted: #8a8a8a;
  --accent: #f36c21;
  --accent2: #ff9d1a;
  --ok: #4caf50;
  --err: #f44336;
  --radius: 12px;
  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: var(--bg); }
body { margin: 0; background: transparent; position: relative; isolation: isolate; color: var(--text); font: 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--accent2); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; color: #fff; margin: 0 0 .6em; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: 3.5rem 0 0; }
.small { font-size: .88rem; color: var(--muted); }
.accent { color: var(--accent); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(22,22,22,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.logo img { display: block; height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--text2); text-decoration: none; padding: .45rem .75rem; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { color: #fff; background: var(--bg3); }
.nav a.btn { color: #fff; margin-left: .5rem; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .4rem .7rem; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 860px) {
  .burger { display: block; }
  .top .wrap { min-height: 68px; }
  .logo img { height: 44px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a.btn { margin: .5rem 0 0; text-align: center; }
}

/* Boutons */
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: .7rem 1.3rem; border-radius: 10px; border: 0; cursor: pointer; font: 600 1rem var(--body); transition: background .2s, transform .2s; }
.btn:hover { background: var(--accent2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--bg3); }
.btn-wa { background: #25d366; color: #0b2b16; }
.btn-wa:hover { background: #3ee07a; color: #0b2b16; }

/* Accueil */
.hero { padding: 5rem 0 3.5rem; text-align: center; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(243,108,33,.14), transparent 70%); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; margin-inline: auto; }
.lead { color: var(--text2); font-size: 1.1rem; max-width: 62ch; margin: 0 auto 1.5rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.chips span, .tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .8rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text2); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
h2.sect { font-size: clamp(1.5rem, 3vw, 2rem); }
h2.sect::after { content: ""; display: block; width: 56px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: .6rem; }

/* Cartes et grilles */
.grid2, .grid3 { display: grid; gap: 1.25rem; }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: rgba(32,32,32,.88); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { color: var(--accent); font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card h3 { color: #fff; }
a.card .more { color: var(--accent2); font-weight: 600; font-size: .92rem; }
.contact-ways p { overflow-wrap: anywhere; color: #fff; font-size: 1.05rem; }
.card .meta { color: var(--muted); font-size: .85rem; margin-bottom: .4rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin: .45rem 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.prices { list-style: none; padding: 0; margin: 0; }
.prices li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.prices li:last-child { border-bottom: 0; }
.prices strong { color: var(--accent); white-space: nowrap; font-family: var(--display); font-size: 1.15rem; }
.note { color: var(--text2); font-size: .95rem; margin-top: 1.25rem; }
.faq details { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: #fff; }
.faq details[open] summary { color: var(--accent); }
.faq details p { margin: 0; padding: 0 1.25rem 1rem; color: var(--text2); }

/* Bandeau d'appel */
.cta { margin: 4rem 0 0; background: linear-gradient(120deg, rgba(42,26,16,.85), rgba(32,32,32,.75)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 2.25rem 0; }
.cta strong { font-family: var(--display); font-size: 1.35rem; color: #fff; }
.cta p { margin: .25rem 0 0; color: var(--text2); }
.cta .actions { justify-content: flex-start; }

/* Pages intérieures */
.page-head { padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); background: radial-gradient(700px 260px at 15% -20%, rgba(243,108,33,.15), transparent 70%); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .3em; }
.page-head .lead { margin: 0; text-align: left; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent2); }
.page-body { padding: 2.5rem 0 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; color: var(--accent); }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 3px solid var(--accent); background: var(--bg2); color: var(--text2); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg3); color: #fff; }
.prose code { font-family: ui-monospace, "Fira Code", monospace; background: var(--bg3); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }
.prose pre { background: #0f0f0f; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.back { display: inline-block; margin-top: 2rem; }

/* Solutions : filtres */
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1.5rem; }
.filters label { display: flex; flex-direction: column; font-size: .85rem; color: var(--text2); gap: .25rem; }
.filters select, .filters input { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; font: inherit; min-width: 170px; }
.filters .count { margin-left: auto; color: var(--muted); font-size: .9rem; }

/* À propos */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
.about img { border-radius: var(--radius); border: 1px solid var(--line); }
.about .prose h2 { margin-top: 0; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about img { max-width: 240px; } }

/* Pied de page */
.foot { margin-top: 4rem; border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; color: var(--text2); font-size: .92rem; }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.foot h4 { font-size: 1rem; color: #fff; margin-bottom: .5rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: .3rem 0; }
.foot a { color: var(--text2); text-decoration: none; }
.foot a:hover { color: var(--accent2); }
.foot .legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Mobile : rien ne dépasse */
.prose { overflow-wrap: anywhere; }
.prose iframe, .prose video { display: block; width: 100%; max-width: 640px; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.grid2 > *, .grid3 > * { min-width: 0; }
.tool input, .tool select, .tool textarea { min-width: 0; max-width: 100%; }
.tool label { flex-wrap: wrap; }
@media (max-width: 480px) {
  .tool .cv74-password-tool, .tool .cv74-secure-generator { padding: 18px 14px; margin-inline: 0; }
  .tool .cv74-password-output { font-size: 1rem; padding: 12px 8px; }
  .tool .cv74-btn-copy { padding: 10px 12px; }
  .card { padding: 1.15rem; }
}

/* Fond animé discret : grille de points + halos qui dérivent (CSS seul, transform uniquement) */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg::before { content: ""; position: absolute; inset: -40px;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.6px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  animation: bg-grid 40s linear infinite; }
.bg span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; will-change: transform; opacity: .9; }
.bg span:nth-child(1) { top: -25vmax; left: -15vmax; background: radial-gradient(circle, rgba(243,108,33,.16), transparent 62%); animation: bg-float-a 34s ease-in-out infinite alternate; }
.bg span:nth-child(2) { top: 5vmax; right: -25vmax; background: radial-gradient(circle, rgba(255,157,26,.10), transparent 62%); animation: bg-float-b 42s ease-in-out infinite alternate; }
.bg span:nth-child(3) { bottom: -35vmax; left: 20vmax; background: radial-gradient(circle, rgba(196,64,38,.11), transparent 62%); animation: bg-float-c 50s ease-in-out infinite alternate; }
@keyframes bg-grid { to { transform: translate3d(26px, 26px, 0); } }
@keyframes bg-float-a { to { transform: translate3d(18vmax, 10vmax, 0) scale(1.15); } }
@keyframes bg-float-b { to { transform: translate3d(-16vmax, 14vmax, 0) scale(.9); } }
@keyframes bg-float-c { to { transform: translate3d(-12vmax, -16vmax, 0) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .bg::before, .bg span { animation: none; } }
