/* =========================================================
   CAPTECH – FEUILLE DE STYLE GLOBALE
   Fichier : captech_styles.css
   Version : 1.0 (mise à jour complète)
   Objet   : Style unifié pour toutes les pages CapTech
   ========================================================= */

/* -----------------------------
   VARIABLES GLOBALES
----------------------------- */
:root {
  --ct-bg: #0b1120;
  --ct-bg-soft: #020617;
  --ct-surface: #ffffff;
  --ct-surface-alt: #f9fafb;
  --ct-border-subtle: #e5e7eb;
  --ct-border-dark: #111827;

  --ct-primary: #22c55e;
  --ct-primary-soft: rgba(34, 197, 94, 0.12);
  --ct-primary-dark: #16a34a;

  --ct-secondary: #38bdf8;
  --ct-secondary-soft: rgba(56, 189, 248, 0.12);

  --ct-accent: #818cf8;
  --ct-accent-soft: rgba(129, 140, 248, 0.12);

  --ct-text-main: #111827;
  --ct-text-muted: #6b7280;
  --ct-text-soft: #9ca3af;

  --ct-radius-lg: 18px;
  --ct-radius-md: 12px;
  --ct-radius-sm: 8px;

  --ct-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.14);
  --ct-shadow-card: 0 14px 30px rgba(15, 23, 42, 0.1);

  --ct-container-width: 1120px;

  --ct-transition-fast: 0.15s ease-out;
  --ct-transition-med: 0.22s ease-out;
}

/* -----------------------------
   RESET / BASE
----------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--ct-bg);
  color: var(--ct-text-main);
  -webkit-font-smoothing: antialiased;
}

/* Limiter la largeur utile et centrer le contenu principal */
.main,
.site-header,
.footer-inner {
  max-width: var(--ct-container-width);
  margin-left: auto;
  margin-right: auto;
}

/* Liens */
a {
  color: var(--ct-secondary);
  text-decoration: none;
  transition: color var(--ct-transition-fast);
}

a:hover {
  color: #0ea5e9;
}

/* Titres */
h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.15em 0;
  font-weight: 600;
  color: var(--ct-text-main);
}

/* Paragraphes */
p {
  margin: 0 0 0.8em 0;
  color: var(--ct-text-muted);
}

/* Listes */
ul {
  margin: 0.4em 0 0.8em 1.2em;
  padding: 0;
}

ul li {
  margin-bottom: 0.25em;
}

/* Tables génériques */
table {
  border-collapse: collapse;
}

/* -----------------------------
   STRUCTURE GÉNÉRALE
----------------------------- */

.main {
  padding: 96px 16px 80px 16px;
  background: radial-gradient(circle at top, #0f172a 0, #020617 40%, #020617 100%);
}

/* -----------------------------
   HEADER / NAVBAR
----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 16px 6px 16px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.94), transparent);
  backdrop-filter: blur(16px);
}

.navbar {
  max-width: var(--ct-container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.6);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.9), transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(34, 197, 94, 0.85), transparent 60%),
    radial-gradient(circle at 60% 20%, rgba(129, 140, 248, 0.85), transparent 45%);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.7),
    0 8px 18px rgba(15, 23, 42, 0.7);
}

.navbar-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.navbar-nav a {
  position: relative;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #cbd5f5;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color var(--ct-transition-fast), background-color var(--ct-transition-fast), transform var(--ct-transition-fast);
}

.navbar-nav a::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #38bdf8);
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity var(--ct-transition-fast), transform var(--ct-transition-fast);
}

.navbar-nav a:hover {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
  transform: translateY(-1px);
}

.navbar-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.navbar-cta {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.9);
  background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.24), rgba(15, 23, 42, 0.9));
  color: #ecfeff;
  box-shadow: 0 10px 25px rgba(8, 47, 73, 0.65);
  transition: background var(--ct-transition-med), box-shadow var(--ct-transition-med), transform var(--ct-transition-med);
}

.navbar-cta:hover {
  background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.4), rgba(15, 23, 42, 0.95));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

/* Burger mobile si nécessaire (non utilisé par défaut) */
.navbar-toggle {
  display: none;
}

/* -----------------------------
   SECTIONS / LAYOUT
----------------------------- */

.section {
  margin-bottom: 48px;
  padding: 26px 22px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.36);
  box-shadow: var(--ct-shadow-soft);
}

.section-header {
  margin-bottom: 22px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e5e7eb;
  letter-spacing: 0.02em;
}

.section-subtitle {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #9ca3af;
  max-width: 840px;
}

.section-cta {
  text-align: center;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.95));
  border: 1px dashed rgba(74, 222, 128, 0.45);
}

/* Petits ancres de section (Bloc A/B/C…) */
.section-anchor {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 6px;
}

/* -----------------------------
   CARTES / PANELS
----------------------------- */

.card {
  position: relative;
  border-radius: var(--ct-radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.32);
  padding: 16px 16px 18px 16px;
  box-shadow: var(--ct-shadow-card);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.07), transparent 55%),
              radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.07), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: #e5e7eb;
}

.card p,
.card ul,
.card table {
  position: relative;
  z-index: 1;
}

/* -----------------------------
   GRILLES / OUTILS
----------------------------- */

.tools-intro {
  font-size: 0.96rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.tool-tagline {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-top: 4px;
  margin-bottom: 8px;
}

/* Tableaux d’outils / comparatifs */
.tools-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-top: 6px;
}

.tools-table th,
.tools-table td {
  border: 1px solid rgba(55, 65, 81, 0.7);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.tools-table th {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-weight: 600;
}

.tools-table td {
  color: #d1d5db;
}

.tools-note {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 6px;
}

/* Listes dans cartes */
.list {
  list-style: disc;
  margin: 0.25em 0 0.75em 1.2em;
  padding: 0;
}

.list li {
  margin-bottom: 0.25em;
  color: #d1d5db;
}

/* Pills / badges de catégories */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pill-row span {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e5e7eb;
}

/* Badges de mode (Axel) */
.badge-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(129, 140, 248, 0.2);
  color: #e5e7eb;
  margin-right: 6px;
  margin-top: 4px;
}

.badge-mode span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4f46e5;
}

/* Pseudo-terminal (exemples Axel) */
.pseudo-terminal {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #020617;
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  border: 1px solid #111827;
}

.pseudo-terminal-line {
  white-space: pre-wrap;
  margin-bottom: 4px;
}

.pseudo-terminal-line strong {
  color: #22c55e;
}

/* -----------------------------
   BOUTONS
----------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ct-transition-med), color var(--ct-transition-med),
              border-color var(--ct-transition-med), box-shadow var(--ct-transition-med),
              transform var(--ct-transition-med);
}

.btn-primary {
  background: linear-gradient(to right, #22c55e, #16a34a);
  color: #f9fafb;
  border-color: rgba(34, 197, 94, 0.8);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.55);
}

.btn-primary:hover {
  background: linear-gradient(to right, #16a34a, #15803d);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.75);
  transform: translateY(-1px);
}

.btn-secondary {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.26), rgba(15, 23, 42, 1));
  color: #e5e7eb;
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
}

.btn-secondary:hover {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.4), rgba(15, 23, 42, 1));
  transform: translateY(-1px);
}

.btn-tertiary {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.65);
}

.btn-tertiary:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* -----------------------------
   FOOTER
----------------------------- */

.footer {
  padding: 24px 16px 28px 16px;
  background: #020617;
  border-top: 1px solid rgba(31, 41, 55, 0.8);
}

.footer-inner {
  max-width: var(--ct-container-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 12px;
}

.footer h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.footer p {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 4px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 4px;
}

.footer a {
  font-size: 0.82rem;
  color: #9ca3af;
  transition: color var(--ct-transition-fast);
}

.footer a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 10px;
  margin-top: 6px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #6b7280;
}

/* -----------------------------
   RESPONSIVE
----------------------------- */

@media (max-width: 960px) {
  .navbar {
    padding: 8px 10px;
  }

  .navbar-nav {
    display: none; /* si besoin : basculer en menu burger custom plus tard */
  }

  .navbar-cta {
    font-size: 0.8rem;
    padding-inline: 10px;
  }

  .section {
    padding: 20px 16px;
  }

  .main {
    padding-top: 88px;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.3rem;
  }

  .main {
    padding-inline: 12px;
  }

  .navbar {
    border-radius: 16px;
  }
}
