/* ==========================================================================
   Boblé Groupe - Feuille de style principale (V1)
   Design system : couleurs, typographie, composants, mise en page responsive.
   Aucune dépendance externe (polices système) pour la rapidité et la vie privée.
   ========================================================================== */

/* -------- Réinitialisation légère -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* -------- Jetons de design (variables) -------- */
:root {
  --orange: #ff5a00;
  --orange-dark: #e64d00;
  --navy: #0f1726;
  --navy-2: #16233a;
  --navy-3: #1f2f49;
  --ink: #111827;
  --muted: #5b6676;
  --muted-2: #8a93a3;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --line: #e6e9ef;
  --green: #16a34a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(15, 23, 38, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 38, 0.14);
  --container: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* -------- Base -------- */
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { color: var(--muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark p { color: #aeb8c8; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }
.section-dark .lead { color: #c2ccda; }

/* -------- Boutons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #f0f2f6; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* -------- En-tête / navigation -------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; }
.brand .logo { height: 34px; width: auto; }
.brand .brand-text { font-size: 1.12rem; color: var(--navy); }
.brand .brand-text b { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; color: var(--ink); font-size: 0.97rem; }
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* -------- Hero -------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(255,90,0,0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #0b1220 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding: 84px 0;
}
.hero h1 { color: #fff; }
.hero h1 span { color: var(--orange); }
.hero .lead { color: #c2ccda; margin-top: 18px; font-size: 1.18rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta .stat b { display: block; font-size: 1.5rem; color: #fff; font-weight: 800; }
.hero-meta .stat span { color: #93a0b4; font-size: 0.88rem; }

/* Carte visuelle du hero (aperçu applicatif stylisé) */
.hero-card {
  background: linear-gradient(160deg, #14213a, #0d1626);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.hero-card .bar { display: flex; gap: 7px; margin-bottom: 14px; }
.hero-card .bar i { width: 11px; height: 11px; border-radius: 50%; background: #35455f; }
.hero-card .bar i:first-child { background: var(--orange); }
.mock-row { display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.mock-row .label { color: #c9d2e0; font-size: 0.92rem; }
.mock-row .val { color: #fff; font-weight: 700; }
.mock-row .val.green { color: #39d98a; }
.mock-total { background: rgba(255,90,0,0.14); border-color: rgba(255,90,0,0.4); }
.mock-total .val { color: var(--orange); font-size: 1.15rem; }

/* -------- Bandeau de confiance -------- */
.trust-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-strip .container { display: flex; gap: 30px; flex-wrap: wrap;
  justify-content: center; align-items: center; padding: 18px 20px; }
.trust-strip span { color: var(--muted); font-weight: 600; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { width: 18px; height: 18px; color: var(--green); }

/* -------- Grille de fonctionnalités -------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255,90,0,0.1); color: var(--orange);
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; color: var(--ink); }
.card p { font-size: 0.97rem; }

/* -------- Section produit (texte + visuel) -------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center;
}
.split .visual {
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow-lg);
}
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; color: var(--ink); }
.check-list li svg { width: 22px; height: 22px; color: var(--green); flex: 0 0 auto; margin-top: 2px; }
.section-dark .check-list li { color: #dbe2ec; }

/* -------- Étapes -------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
  background: var(--orange); color: #fff;
}
.step h3 { margin-bottom: 8px; }

/* -------- Bandeau CTA -------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange), #ff7a33);
  color: #fff; border-radius: 20px; padding: 48px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 12px auto 26px; }

/* -------- Page Téléchargement -------- */
.download-box {
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 36px; text-align: center; max-width: 620px; margin-inline: auto;
}
.download-box .os { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.download-box .ver { color: var(--muted-2); font-size: 0.9rem; margin-top: 14px; }
.badge {
  display: inline-block; background: rgba(22,163,74,0.12); color: var(--green);
  font-weight: 700; font-size: 0.8rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.req-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.req-table th, .req-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.req-table th { color: var(--muted); font-weight: 700; width: 220px; }

/* -------- Catalogue de logiciels (page Télécharger) -------- */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin-inline: auto;
}
.software-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.software-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.software-card .sc-head {
  display: flex; align-items: center; gap: 16px; padding: 24px 24px 20px;
  background: linear-gradient(160deg, #fff4ec, #ffe7d8);
  border-bottom: 1px solid var(--line);
}
.software-card .sc-logo { width: 60px; height: 60px; flex: 0 0 auto; border-radius: 14px; box-shadow: 0 6px 16px rgba(255,90,0,0.25); }
.software-card .sc-title h3 { color: var(--ink); font-size: 1.22rem; }
.software-card .sc-title .sc-pub { color: var(--muted); font-size: 0.84rem; margin-top: 2px; }
.software-card .sc-body { padding: 20px 24px; flex: 1 1 auto; }
.software-card .sc-body p { font-size: 0.96rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted);
  font-size: 0.78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip svg { width: 14px; height: 14px; }
.chip.chip-free { background: rgba(22,163,74,0.1); border-color: rgba(22,163,74,0.3); color: var(--green); }
.software-card .sc-foot { padding: 0 24px 24px; }
.software-card .sc-foot .btn { width: 100%; justify-content: center; }

/* Carte "à venir" (place réservée du catalogue) */
.software-card.soon {
  background: transparent; border: 2px dashed var(--line); box-shadow: none;
  align-items: center; justify-content: center; text-align: center; padding: 40px 24px;
  color: var(--muted-2);
}
.software-card.soon:hover { transform: none; box-shadow: none; }
.software-card.soon .soon-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--muted-2); margin-bottom: 14px;
}
.software-card.soon .soon-ico svg { width: 26px; height: 26px; }
.software-card.soon h3 { color: var(--muted); margin-bottom: 4px; }
.software-card.soon p { font-size: 0.9rem; }

/* -------- Tableau de bord admin -------- */
.admin-nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.admin-nav button {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 18px; font-weight: 700; font-size: 0.95rem; color: var(--muted);
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.admin-nav button:hover { border-color: var(--orange); color: var(--orange); }
.admin-nav button.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.admin-nav .spacer { flex: 1 1 auto; }
.admin-nav .logout { background: transparent; }
.admin-nav .logout:hover { border-color: #e74c3c; color: #e74c3c; }

.stat-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px; margin-bottom: 26px;
}
.stat-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; box-shadow: var(--shadow);
}
.stat-card .num { font-size: 2.1rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-card .lbl { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

.admin-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.admin-card h2 { margin-bottom: 4px; }
.admin-card .sub { color: var(--muted); margin-bottom: 18px; }
.search-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.search-row .field { flex: 1 1 260px; margin: 0; }
.table-wrap { overflow-x: auto; }
.act-statut { border: none; border-radius: 8px; padding: 6px 12px; font-weight: 700;
  font-size: 0.82rem; cursor: pointer; color: #fff; white-space: nowrap; }
.btn-danger-sm { background: #e74c3c; } .btn-danger-sm:hover { background: #c0392b; }
.btn-ok-sm { background: var(--green); } .btn-ok-sm:hover { background: #13833c; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.pill-actif { background: rgba(22,163,74,0.12); color: var(--green); }
.pill-susp { background: rgba(231,76,60,0.12); color: #e74c3c; }
.field label input[type="checkbox"] { width: auto; margin-right: 8px; vertical-align: middle; }

/* -------- Formulaire de contact -------- */
.form { display: grid; gap: 16px; max-width: 620px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; }
.contact-info svg { width: 22px; height: 22px; color: var(--orange); flex: 0 0 auto; }

/* -------- Pied de page -------- */
.site-footer { background: var(--navy); color: #cdd6e4; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.04em; }
.site-footer a { color: #aeb8c8; font-size: 0.93rem; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--orange); }
.site-footer .brand .brand-text { color: #fff; }
.footer-about p { color: #93a0b4; margin-top: 14px; font-size: 0.93rem; max-width: 300px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #8a93a3; font-size: 0.88rem;
}

/* -------- Page interne (en-tête court) -------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy), #0b1220); color: #fff; padding: 64px 0;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #c2ccda; margin-top: 10px; font-size: 1.1rem; }

/* -------- Utilitaires -------- */
.center { text-align: center; }
.muted { color: var(--muted); }
.txt-ok { color: var(--green); font-weight: 600; }
.txt-err { color: #e74c3c; font-weight: 600; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.download-box .dl-actions { justify-content: center; }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,90,0,0.08); border: 1px solid rgba(255,90,0,0.25);
  border-radius: 12px; padding: 16px 18px; color: var(--ink);
}
.notice svg { width: 22px; height: 22px; color: var(--orange); flex: 0 0 auto; margin-top: 2px; }
.notice p { color: var(--ink); font-size: 0.95rem; }

/* -------- Responsive -------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 60px 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 20px 20px; box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .cta-band { padding: 34px 22px; }
  .hero-meta { gap: 18px; }
}
