/* ============================================================
   LEADERTECH Boutique — Feuille de style principale
   ============================================================ */

:root {
  --primary: #1d4ed8;          /* bleu LEADERTECH */
  --primary-dark: #1e3a8a;
  --secondary: #f59e0b;        /* ambre accent */
  --secondary-dark: #d97706;
  --light: #f8f9fa;
  --dark: #0f172a;
  --gray: #64748b;
  --light-gray: #e9ecef;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: #fff;
}

h1, h2, h3, h4, h5 { font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 700; }

a { color: var(--primary); }

/* ---------- Topbar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 10px 0;
  font-size: 0.9rem;
}
.topbar small { display: inline-flex; align-items: center; margin-right: 20px; }
.topbar small i { margin-right: 8px; }

/* ---------- Header ---------- */
.header {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.header.scrolled { padding: 10px 0; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); }

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo .badge {
  background: var(--secondary);
  color: var(--dark);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 8px;
  font-weight: 700;
}

.navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 8px 15px;
  position: relative;
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary); }
.navbar-nav .nav-link.active:after {
  content: '';
  position: absolute;
  bottom: 0; left: 15px;
  width: calc(100% - 30px);
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.navbar-toggler { border: none; padding: 8px; }
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--primary); }

/* ---------- Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 90px 0;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.page-hero:before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .4;
}
.page-hero .inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: 3rem; margin-bottom: 15px; font-weight: 800; }
.page-hero p.sub { font-size: 1.2rem; opacity: .92; max-width: 720px; margin: 0 auto; }
.breadcrumb-nav { display: flex; justify-content: center; gap: 8px; font-size: 1rem; margin-top: 14px; }
.breadcrumb-nav a { color: var(--secondary); text-decoration: none; }
.breadcrumb-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section h2.section-title {
  font-size: 2.3rem; color: var(--primary); text-align: center;
  position: relative; padding-bottom: 15px; margin-bottom: 20px;
}
.section h2.section-title:after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 80px; height: 4px;
  background: var(--secondary); border-radius: 2px;
}
.lead { font-size: 1.15rem; color: var(--gray); text-align: center; max-width: 800px; margin: 0 auto 40px; }

/* ---------- Boutons ---------- */
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 12px 26px; border-radius: 50px; font-weight: 600;
  transition: var(--transition); border: 2px solid var(--primary);
}
.btn-hero:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--primary); text-decoration: none;
  padding: 12px 26px; border-radius: 50px; font-weight: 600;
  border: 2px solid var(--primary); transition: var(--transition);
}
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* ---------- Grille boutique (logiciels) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  display: flex; flex-direction: column; border: 1px solid var(--light-gray);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-thumb {
  height: 180px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #f8fafc); padding: 22px;
}
.product-thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }
.product-thumb .placeholder { font-size: 3.4rem; color: var(--primary); opacity: .5; }
.product-body { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.product-cat {
  align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--primary); background: #eef2ff;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 10px;
}
.product-body h3 { font-size: 1.25rem; margin-bottom: 6px; color: var(--dark); }
.product-version { font-size: .82rem; color: var(--gray); margin-bottom: 10px; }
.product-version .dot { color: var(--secondary-dark); font-weight: 700; }
.product-excerpt { color: var(--gray); font-size: .95rem; margin-bottom: 18px; flex-grow: 1; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-sm2 { padding: 9px 16px; font-size: .88rem; border-radius: 40px; }

/* ---------- Détail produit ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.product-logo-box {
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  border-radius: var(--radius); padding: 40px; text-align: center; border: 1px solid var(--light-gray);
}
.product-logo-box img { max-width: 100%; max-height: 240px; object-fit: contain; }
.product-info h1 { color: var(--primary); font-size: 2.2rem; }
.feature-list { list-style: none; padding: 0; margin: 20px 0; }
.feature-list li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.feature-list li i { color: var(--secondary-dark); margin-top: 3px; }
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.shots-grid a { display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.shots-grid img { width: 100%; height: 160px; object-fit: cover; display: block; transition: var(--transition); }
.shots-grid a:hover img { transform: scale(1.05); }

/* ---------- Cartes partenaires ---------- */
.partner-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 35px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px; border-top: 5px solid var(--primary); transition: var(--transition); margin-bottom: 26px;
}
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.partner-logo {
  flex: 0 0 200px; max-width: 200px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--light-gray); border-radius: var(--radius); padding: 20px; min-height: 150px;
}
.partner-logo img { max-width: 100%; height: auto; object-fit: contain; }
.partner-logo .no-logo-txt { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--primary); text-align: center; }
.partner-body { flex: 1; min-width: 260px; }
.partner-body h2 { color: var(--primary); font-size: 1.7rem; margin-bottom: 4px; }
.partner-tagline { color: var(--secondary-dark); font-weight: 600; font-style: italic; margin-bottom: 14px; }
.partner-desc { color: var(--gray); margin-bottom: 20px; }
.partner-contacts { list-style: none; padding: 0; margin: 0 0 22px; }
.partner-contacts li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--light-gray); }
.partner-contacts li:last-child { border-bottom: none; }
.partner-contacts i { color: var(--primary); width: 22px; text-align: center; }
.partner-contacts a { color: var(--dark); text-decoration: none; word-break: break-word; }
.partner-contacts a:hover { color: var(--primary); }

/* ---------- Accueil : mise en avant ---------- */
.home-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 110px 0; text-align: center; position: relative; overflow: hidden;
}
.home-hero h1 { font-size: 3.4rem; font-weight: 800; margin-bottom: 18px; }
.home-hero p { font-size: 1.3rem; opacity: .95; max-width: 760px; margin: 0 auto 30px; }
.feature-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-box { background: #fff; border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow); text-align: center; transition: var(--transition); }
.feature-box:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-box i { font-size: 2.6rem; color: var(--primary); margin-bottom: 16px; }
.feature-box h4 { color: var(--primary); font-size: 1.25rem; margin-bottom: 10px; }
.feature-box p { color: var(--gray); font-size: .95rem; }

/* ---------- État vide ---------- */
.empty-state { text-align: center; color: var(--gray); padding: 50px 20px; }
.empty-state i { font-size: 3rem; color: var(--light-gray); display: block; margin-bottom: 14px; }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(135deg, var(--dark), #000); color: #fff; padding: 60px 0 20px; margin-top: 70px; }
.footer h4 { color: #fff; margin-bottom: 22px; font-size: 1.4rem; position: relative; padding-bottom: 10px; }
.footer h4:after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--secondary); }
.footer p { color: #b0b7c3; margin-bottom: 14px; }
.footer a { color: #b0b7c3; text-decoration: none; transition: var(--transition); }
.footer a:hover { color: var(--secondary); }
.social-icons { display: flex; gap: 14px; margin-top: 20px; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; font-size: 1.25rem; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px; transition: var(--transition);
}
.social-icons a:hover { transform: translateY(-4px); background: var(--primary); border-color: var(--primary); }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; text-align: center; color: #8a94a6; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .product-detail { grid-template-columns: 1fr; }
  .navbar-collapse { background: #fff; padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: 12px; }
  .navbar-nav .nav-link { padding: 10px 0; border-bottom: 1px solid var(--light-gray); }
  .navbar-nav .nav-link:last-child { border-bottom: none; }
  .navbar-nav .nav-link.active:after { display: none; }
}
@media (max-width: 768px) {
  .topbar .container { flex-direction: column; gap: 8px; text-align: center; }
  .topbar small { margin-right: 0; }
  .page-hero h1, .home-hero h1 { font-size: 2.2rem; }
  .home-hero p { font-size: 1.1rem; }
  .partner-logo { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 576px) {
  .product-grid { grid-template-columns: 1fr; }
  .section h2.section-title { font-size: 1.8rem; }
}
