/* =========================================================
   Uchi Software — feuille de style commune
   Ambiance sombre « gamer ». Toutes les couleurs sont ici.
   ========================================================= */
:root {
  /* Palette inspirée de Givrali : bleu nuit, bleu glacier, cyan givré */
  --bg: #08111e;            /* bleu nuit profond */
  --bg-2: #0c1828;
  --panel: #112238;
  --panel-2: #172c47;
  --line: #22395a;
  --ink: #e8f6fc;           /* blanc givré */
  --muted: #93b0cc;

  --uchi: #3cd6ff;          /* accent principal : cyan glacé */
  --uchi-strong: #1e8fc8;   /* bleu moyen (boutons, survols) */
  --uchi-soft: rgba(60, 214, 255, .14);
  --deep: #0f4a7a;          /* bleu profond des « pattes » */
  --cleaner: #ff4d5e;       /* accent Cleaner (rouge du logo Uchi) */
  --givra: #a6ecfb;         /* accent Givra-dex (bleu pâle) */
  --givra-soft: rgba(30, 143, 200, .22);
  --beta: #ffb547;

  --radius: 14px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--givra); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }

/* ---------- Bandeau d'en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 17, 30, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; }
.brand b { color: var(--uchi); font-weight: 700; }

.product-nav { display: flex; gap: 6px; margin-left: auto; }
.product-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted);
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.product-nav a:hover { color: var(--ink); background: var(--panel); }
.product-nav a[aria-current="page"] { color: var(--ink); background: var(--panel); border-color: var(--line); }
.product-nav .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.product-nav .is-cleaner .dot { background: var(--cleaner); box-shadow: 0 0 10px var(--cleaner); }
.product-nav .is-givra .dot { background: var(--givra); box-shadow: 0 0 10px var(--givra); }
.product-nav .is-home .dot { background: var(--ink); }

.menu-toggle {
  display: none; margin-left: auto;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer;
}
.sub-nav { border-top: 1px solid var(--line); background: var(--bg-2); }
.sub-nav .wrap { min-height: 40px; gap: 20px; justify-content: flex-end; font-size: .88rem; }
.sub-nav a { color: var(--muted); text-decoration: none; }
.sub-nav a:hover, .sub-nav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .product-nav, .sub-nav { display: none; }
  .site-header.open .wrap { flex-wrap: wrap; }
  .site-header.open .product-nav {
    display: flex; flex-direction: column; width: 100%; margin: 0 0 12px;
  }
  .site-header.open .sub-nav { display: block; }
  .site-header.open .sub-nav .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, var(--uchi-soft), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -50% -15%; width: 640px; height: 640px;
  background: radial-gradient(closest-side, var(--givra-soft), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.3fr .7fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--uchi); }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 700; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--uchi); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin: 18px 0 28px; }
.hero-logo { justify-self: center; width: min(260px, 60vw); filter: drop-shadow(0 0 2px rgba(166, 236, 251, .5)) drop-shadow(0 20px 60px rgba(60, 214, 255, .35)); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  transition: transform .15s, border-color .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--muted); }
.btn.primary { background: linear-gradient(135deg, var(--uchi), var(--uchi-strong)); border-color: var(--uchi); color: #04121f; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.givra { background: var(--givra); border-color: var(--givra); color: #04121f; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.section-head p { color: var(--muted); }

.beta-banner {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255, 181, 71, .08); border: 1px solid rgba(255, 181, 71, .35);
  border-radius: var(--radius); padding: 16px 20px; margin-top: 24px;
}
.beta-banner strong { color: var(--beta); }

/* Cartes logiciels */
.products { display: grid; gap: 22px; }
@media (min-width: 820px) { .products { grid-template-columns: 1fr 1fr; } }
.product-card {
  --accent: var(--uchi);
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
}
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.product-card.cleaner { --accent: var(--cleaner); }
.product-card.givra { --accent: var(--givra); }
.product-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product-icon {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line);
}
.product-icon img { width: 34px; height: 34px; object-fit: contain; }
.product-icon svg { width: 30px; height: 30px; }
.product-card h3 { font-size: 1.45rem; margin: 0; }
.product-card .platform { font-size: .85rem; color: var(--muted); }
.product-card p { color: var(--muted); }
.product-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.product-card li { padding-left: 22px; position: relative; }
.product-card li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.product-card .card-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 181, 71, .12); color: var(--beta);
  border: 1px solid rgba(255, 181, 71, .3);
}
.link-arrow { font-weight: 700; color: var(--accent); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* À propos */
.about { display: grid; gap: 32px; }
@media (min-width: 860px) { .about { grid-template-columns: 1.2fr .8fr; } }
.about p { color: var(--muted); font-size: 1.05rem; }
.about p strong { color: var(--ink); }
.facts { display: grid; gap: 12px; align-content: start; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.fact b { display: block; font-family: var(--display); font-size: 1.05rem; }
.fact span { color: var(--muted); font-size: .92rem; }

/* Grille de services / étapes */
.grid-3 { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile .num { font-family: var(--display); font-weight: 700; color: var(--uchi); font-size: .9rem; letter-spacing: .1em; }
.tile h3 { font-size: 1.15rem; margin-top: 8px; }
.tile p { color: var(--muted); margin: 0; }

/* Contact */
.contact-cards { display: grid; gap: 18px; }
@media (min-width: 700px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card {
  display: flex; gap: 16px; align-items: center; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  transition: border-color .2s;
}
.contact-card:hover { border-color: var(--muted); }
.contact-card svg { width: 32px; height: 32px; flex-shrink: 0; }
.contact-card b { display: block; font-family: var(--display); font-size: 1.1rem; }
.contact-card span { color: var(--muted); font-size: .92rem; }

/* Pages intérieures */
.page-hero { padding: 64px 0 32px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.todo {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px 24px; color: var(--muted);
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255,255,255,.015) 12px 24px);
  margin-bottom: 18px;
}
.todo b { color: var(--ink); }
.prose > * { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

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

/* Bandeau « site en construction » */
.notice {
  display: flex; gap: 18px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(60, 214, 255, .10), rgba(30, 143, 200, .06));
  border: 1px solid rgba(60, 214, 255, .35); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 28px;
}
.notice .icon { font-size: 1.6rem; line-height: 1; }
.notice h2 { font-size: 1.25rem; margin: 0 0 6px; }
.notice p { color: var(--muted); margin: 0 0 12px; }
.notice p:last-child { margin-bottom: 0; }
.notice a { color: var(--uchi); font-weight: 700; }

/* Fiche projet (page Logiciels sur mesure) */
.project {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
}
.project::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--uchi), var(--uchi-strong)); box-shadow: 0 0 24px var(--uchi);
}
.project-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.project-head h2 { font-size: 1.6rem; margin: 0; }
.project-head .platform { color: var(--muted); font-size: .9rem; }
.project-lead { color: var(--muted); font-size: 1.08rem; max-width: 70ch; margin-bottom: 24px; }
.project .tile { background: var(--panel-2); }
@media (max-width: 520px) { .project { padding: 20px; } }

/* Pages logiciels : présentation */
.accent-cleaner { --accent: var(--cleaner); }
.accent-givra { --accent: var(--givra); }
.page-hero h1 em { font-style: normal; color: var(--accent, var(--uchi)); }
.page-hero .tagline { font-size: 1.15rem; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span {
  font-size: .82rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px;
}
.pains { display: grid; gap: 18px; }
@media (min-width: 760px) { .pains { grid-template-columns: repeat(4, 1fr); } }
.pain { border-left: 3px solid var(--accent, var(--uchi)); padding: 6px 0 6px 14px; color: var(--muted); }
.pain b { display: block; color: var(--ink); font-family: var(--display); margin-bottom: 2px; }
.features { display: grid; gap: 18px; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features .tile .num { color: var(--accent, var(--uchi)); }
.features code {
  font-size: .85em; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; color: var(--ink);
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { position: relative; padding-left: 32px; color: var(--muted); }
.checklist li b { color: var(--ink); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
  background: var(--accent, var(--uchi)); color: #04121f;
}
.disclaimer { color: var(--muted); font-size: .85rem; margin: 0; }
