/* --- Antibia · Palette ---
   #0A1528  fond principal / texte
   #00B8D9  accent cyan
   #00FFC2  accent vert néon
*/

:root {
  --bg-dark: #0A1528;
  --accent-cyan: #00B8D9;
  --accent-neon: #00FFC2;
  --text: #e8eef5;
  --text-muted: #8a9fb8;
  --card-bg: rgba(0, 184, 217, 0.06);
  --card-border: rgba(0, 184, 217, 0.2);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container: min(1120px, 92vw);
  --radius: 12px;
  --radius-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: linear-gradient(90deg, #0A1528 0%, #0d2240 35%, rgba(0, 184, 217, 0.12) 70%, #0A1528 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 184, 217, 0.15);
}

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

.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo img {
  display: block;
  height: 100px;
  width: auto;
  max-width: 280px;
}

.logo-version {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding-bottom: 0.35rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: 8.5rem;
  padding-bottom: 3rem;
  overflow: hidden;
  scroll-margin-top: 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 184, 217, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 255, 194, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero .highlight {
  color: var(--accent-cyan);
  position: relative;
}

.hero .lien-admin {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0099b8);
  color: var(--bg-dark);
  border-color: var(--accent-cyan);
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(0, 184, 217, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-neon);
  border-color: rgba(0, 255, 194, 0.5);
}

.btn-ghost:hover {
  background: rgba(0, 255, 194, 0.1);
  border-color: var(--accent-neon);
}

.btn-full {
  width: 100%;
}

/* Sections */
.section {
  padding: 5rem 0;
  scroll-margin-top: 3.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 3rem;
  max-width: 560px;
}

/* Services */
.services {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 184, 217, 0.03) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(0, 184, 217, 0.4);
  box-shadow: 0 8px 32px rgba(0, 184, 217, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 194, 0.12);
  color: var(--accent-neon);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.card-icon .icon-code {
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* About */
.about {
  background: rgba(0, 255, 194, 0.03);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content .section-title {
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.about-list {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.about-list li {
  margin-bottom: 0.5rem;
}

.about-list li::marker {
  color: var(--accent-cyan);
}

.about-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  font-family: var(--font-mono);
  text-align: center;
}

.about-block code {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.about-block span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-block .no-wrap {
  white-space: nowrap;
}

/* Contact */
.contact-box {
  max-width: 520px;
}

.contact-form .form-row {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: rgba(0, 184, 217, 0.06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.contact-form button {
  margin-top: 0.5rem;
}

.contact .section-subtitle {
  margin-bottom: 1rem;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.contact-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

.contact-link:hover {
  color: var(--accent-neon);
  text-decoration: underline;
}

.contact-info-apres {
  margin-top: 1.5rem;
  margin-bottom: 0;
  justify-content: center;
}

.contact-box .contact-note {
  text-align: center;
}

.contact-info-apres .contact-link {
  font-size: 1.35rem;
}

.contact-ou {
  color: var(--text-muted);
  font-size: 1.35rem;
}

.form-success {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 255, 194, 0.12);
  border: 1px solid rgba(0, 255, 194, 0.3);
  border-radius: var(--radius);
  color: var(--accent-neon);
  font-weight: 500;
}

.form-error {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 100, 100, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: var(--radius);
  color: #ff8888;
  font-weight: 500;
}

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 184, 217, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand img {
  height: 48px;
  width: auto;
  max-width: 320px;
  opacity: 0.9;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.footer-copy {
  width: 100%;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    background: var(--bg-dark);
    border-left: 1px solid var(--card-border);
    transform: translateX(100%);
    transition: transform 0.3s;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

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

