/* ============================================================
   Axiome — DBA Oracle Freelance
   Thème : dark avec accents rouge #E8302A
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* --- Variables -------------------------------------------- */
:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --card: #1e1e1e;
  --border: #2a2a2a;
  --red: #E8302A;
  --red-dark: #c42620;
  --red-glow: rgba(232, 48, 42, .15);
  --text: #f0f0f0;
  --muted: #888;
  --light: #cccccc;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .5);
  --transition: .25s ease;
}

/* --- Reset ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--red-dark);
}

ul {
  list-style: none;
}

/* --- Layout helpers --------------------------------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center {
  text-align: center;
}

/* --- Typography ------------------------------------------- */
h1,
h2,
h3,
h4 {
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--light);
}

.label {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-block;
  margin-bottom: 12px;
}

.section-head {
  margin-bottom: 56px;
}

.section-head.centered {
  text-align: center;
}

.section-head.centered .section-lead {
  margin: 0 auto;
}

.section-title {
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
}

/* --- Navigation ------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo img {
  height: 54px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--light);
  font-size: .88rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
  color: #fff !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--red-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-sm {
  padding: 9px 18px;
  font-size: .85rem;
}

/* --- Cards ------------------------------------------------ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 8px 32px var(--red-glow);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--red-glow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border: 1px solid rgba(232, 48, 42, .25);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: .92rem;
}

/* --- Stats ------------------------------------------------ */
.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.stat {
  text-align: center;
  padding: 28px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 160px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--red);
  font-family: var(--mono);
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 8px;
}

/* --- Tags / Pills ----------------------------------------- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  background: var(--red-glow);
  color: var(--red);
  border: 1px solid rgba(232, 48, 42, .25);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sector-pill {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: .88rem;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.sector-pill:hover {
  border-color: var(--red);
  color: var(--red);
}

/* --- Tech stack ------------------------------------------- */
.tech-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  transition: all var(--transition);
  display: inline-block;
}

.tech-item:hover {
  border-color: var(--red);
  color: var(--red);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* --- Steps ------------------------------------------------ */
.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--border);
  min-width: 52px;
  line-height: 1;
  padding-top: 2px;
  transition: color var(--transition);
}

.step:hover .step-num {
  color: var(--red);
}

.step-body h3 {
  margin-bottom: 6px;
}

.step-body p {
  font-size: .92rem;
}

/* --- Hero ------------------------------------------------- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 55% 55% at 75% 50%, rgba(232, 48, 42, .08) 0%, transparent 70%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--red);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--light);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

/* --- Page hero (pages internes) --------------------------- */
.page-hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(232, 48, 42, .06) 0%, transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-hero .label {
  display: block;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.05rem;
  max-width: 640px;
}

/* --- Blog cards ------------------------------------------- */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--red-glow);
}

.blog-card-img {
  height: 180px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
}

.blog-card-body {
  padding: 24px;
}

.blog-meta {
  font-size: .76rem;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.blog-card-body p {
  font-size: .88rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--red);
  transition: gap var(--transition);
}

.read-more:hover {
  gap: 10px;
}

/* --- Contact form ----------------------------------------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--light);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: .95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--red);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-control::placeholder {
  color: var(--muted);
}

/* --- Info box (contact) ----------------------------------- */
.info-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--red-glow);
  border: 1px solid rgba(232, 48, 42, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-item h4 {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.info-item p {
  font-size: .92rem;
  color: var(--text);
}

/* --- Notice / Alert --------------------------------------- */
.notice {
  background: var(--red-glow);
  border: 1px solid rgba(232, 48, 42, .28);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--light);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.success-msg {
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .3);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .92rem;
  color: #4ade80;
  display: none;
}

/* --- Footer ---------------------------------------------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 54px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: .85rem;
  color: var(--muted);
  max-width: 260px;
}

.footer-col h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--light);
  font-size: .88rem;
}

.footer-col ul li a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* --- Divider ---------------------------------------------- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 64px 0;
}

/* --- Feature list ----------------------------------------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .92rem;
  color: var(--light);
}

.feature-list li::before {
  content: '▸';
  color: var(--red);
  font-size: .8rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* --- Two-col with image/graphic side ---------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-reverse {
  direction: rtl;
}

.split-reverse>* {
  direction: ltr;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav {
    position: relative;
  }

  .nav-burger {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }
}