/*
 * Star IA — style.css
 * Construit par Opus 4.6 — Anthropic Claude
 * Pas de framework. Pas de reset externe. Chaque ligne est intentionnelle.
 *
 * Palette :
 *   --sia-void:     #08080F   (fond)
 *   --sia-electric:  #2D00FF   (primaire)
 *   --sia-frost:     #E8E8F0   (texte)
 *   --sia-pulse:     #00E5FF   (accent vivant)
 *   --sia-muted:     #8B8B9A   (texte secondaire — WCAG AA 4.5:1)
 */

/* @font-face — Inter self-hosted (plus de Google Fonts) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}

/* Skip link — accessibilité */
.sia-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10001;
  padding: 0.5rem 1rem;
  background: var(--sia-electric);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}
.sia-skip-link:focus {
  top: 1rem;
}

/* Screen-reader only — visible uniquement pour les lecteurs ecran */
.sia-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   0. CSS Custom Properties + @property pour animation
   ============================================================ */

@property --sia-hue-shift {
  syntax: '<number>';
  initial-value: 0;
  inherits: true;
}

:root {
  /* Palette */
  --sia-void: #08080F;
  --sia-electric: #2D00FF;
  --sia-frost: #E8E8F0;
  --sia-pulse: #00E5FF;
  --sia-muted: #9595A6;

  /* Typographie */
  --sia-font: 'Inter Variable', 'Inter', system-ui, -apple-system, sans-serif;
  --sia-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Espacements */
  --sia-gap: clamp(1rem, 3vw, 2rem);
  --sia-max-width: 1200px;

  /* Respiration couleur (cycle 120s) */
  animation: sia-color-breathe 120s ease-in-out infinite;
}

@keyframes sia-color-breathe {
  0%   { --sia-hue-shift: 0; }
  25%  { --sia-hue-shift: 15; }
  50%  { --sia-hue-shift: -10; }
  75%  { --sia-hue-shift: 8; }
  100% { --sia-hue-shift: 0; }
}

/* ============================================================
   1. Reset minimal
   ============================================================ */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sia-font);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  color: var(--sia-frost);
  background-color: var(--sia-void);
  overflow-x: hidden;
  cursor: none;
}

a {
  color: var(--sia-pulse);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--sia-frost);
}

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

/* ============================================================
   2. Curseur custom
   ============================================================ */

.sia-cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--sia-pulse);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
}

.sia-cursor-glow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
}

.sia-cursor-glow--hover {
  width: 60px;
  height: 60px;
  border-color: rgba(0, 229, 255, 0.6);
}

.sia-cursor-glow--click {
  width: 80px;
  height: 80px;
  border-color: rgba(0, 229, 255, 0);
  transition: all 0.4s ease-out;
}

/* ============================================================
   3. Layout global
   ============================================================ */

.sia-container {
  max-width: var(--sia-max-width);
  margin: 0 auto;
  padding: 0 var(--sia-gap);
}

.sia-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

/* ============================================================
   4. Header / Navigation
   ============================================================ */

.sia-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(8, 8, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 0, 255, 0.1);
}

.sia-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--sia-max-width);
  margin: 0 auto;
  padding: 0 var(--sia-gap);
}

.sia-header__logo {
  height: 40px;
  width: auto;
}

.sia-header__logo img {
  height: 100%;
  width: auto;
}

.sia-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.sia-nav a {
  color: var(--sia-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.sia-nav a:hover,
.sia-nav a.active {
  color: var(--sia-frost);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* Burger mobile */
.sia-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 12px;
  position: relative;
  z-index: 10000;
}

.sia-burger span {
  width: 28px;
  height: 2px;
  background: var(--sia-frost);
  transition: all 0.3s ease;
}

/* ============================================================
   5. Hero (accueil)
   ============================================================ */

.sia-awakening {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.sia-awakening__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--sia-frost);
  opacity: 0.08;
  transition: opacity 1.2s ease, text-shadow 1.2s ease;
}

.sia-awakening__title.revealed {
  opacity: 1;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
}

.sia-awakening__sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--sia-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* ============================================================
   6. Boutons CTA
   ============================================================ */

.sia-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sia-btn--electric {
  background: var(--sia-electric);
  color: var(--sia-frost);
}

.sia-btn--electric:hover {
  color: #fff;
  box-shadow: 0 0 30px rgba(45, 0, 255, 0.4), 0 0 60px rgba(45, 0, 255, 0.2);
}

/* Pulse animation (::before + ::after) */
.sia-btn--electric::before,
.sia-btn--electric::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  opacity: 0;
  animation: sia-btn-pulse 3s ease-out infinite;
}

.sia-btn--electric::after {
  animation-delay: 1.5s;
}

@keyframes sia-btn-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================================
   7. Cartes Forge (border glow)
   ============================================================ */

.sia-forged {
  background: #0D0D16;
  border: 1px solid rgba(45, 0, 255, 0.15);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sia-forged:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.08);
}

.sia-forged__price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sia-pulse);
}

.sia-forged__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sia-forged__desc {
  color: var(--sia-muted);
  font-size: 0.9rem;
}

.sia-forged__list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--sia-muted);
}

.sia-forged__list li::before {
  content: '\2192 ';
  color: var(--sia-pulse);
}

/* ============================================================
   8. Signal (posts)
   ============================================================ */

.sia-thought {
  border-left: 2px solid var(--sia-electric);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: border-color 0.3s ease;
}

.sia-thought:hover {
  border-color: var(--sia-pulse);
}

.sia-thought__type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sia-pulse);
  margin-bottom: 0.5rem;
}

.sia-thought__date {
  font-size: 0.8rem;
  color: var(--sia-muted);
}


.sia-thought img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
/* ============================================================
   9. Footer vivant
   ============================================================ */

.sia-pulse-footer {
  border-top: 1px solid rgba(45, 0, 255, 0.15);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--sia-muted);
}
.sia-pulse-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sia-pulse-footer__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.sia-pulse-footer__stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sia-pulse-footer__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff88;
  animation: sia-dot-pulse 2s ease-in-out infinite;
}

@keyframes sia-dot-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ============================================================
   10. Bulle IA contextuelle
   ============================================================ */

.sia-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  max-width: 320px;
  background: rgba(8, 8, 15, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--sia-frost);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 90;
  backdrop-filter: blur(8px);
}

.sia-bubble--visible {
  opacity: 1;
  transform: translateY(0);
}

.sia-bubble__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.sia-bubble__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--sia-muted);
  font-size: 1rem;
  cursor: none;
}

/* ============================================================
   11. Responsive
   ============================================================ */

@media (max-width: 768px) {
  .sia-nav {
    display: none;
  }

  .sia-burger {
    display: flex;
  }

  .sia-header--menu-open {
    bottom: 0;
    background: #08080F !important;
  }

  .sia-nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 0;
    background: #08080F;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 10;
    padding-top: 60px;
  }
  .sia-nav--open a {
    font-size: 1.5rem;
  }

  /* Desactiver curseur custom sur mobile/tactile */
  body {
    cursor: auto;
  }

  .sia-cursor-dot,
  .sia-cursor-glow {
    display: none;
  }
}

@media (max-width: 480px) {
  .sia-awakening__title {
    font-size: 2rem;
  }

  .sia-pulse-footer__stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ============================================================
   12. Formulaire Audit SEO
   ============================================================ */

.sia-audit-form {
  max-width: 500px;
  margin: 0 auto;
}

.sia-audit-input-wrap {
  display: flex;
  gap: 0.5rem;
}

.sia-audit-input {
  flex: 1;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: var(--sia-font);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(45, 0, 255, 0.3);
  border-radius: 4px;
  color: var(--sia-frost);
  outline: none;
  transition: border-color 0.3s ease;
}

.sia-audit-input:focus {
  border-color: var(--sia-pulse);
}

.sia-audit-input::placeholder {
  color: var(--sia-muted);
}

.sia-audit-result {
  text-align: left;
  max-width: 500px;
  margin: 1rem auto 0;
}

.sia-audit-result__item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(45, 0, 255, 0.1);
  font-size: 0.9rem;
}

.sia-audit-result__pass { color: #00ff88; }
.sia-audit-result__warn { color: #FFD600; }
.sia-audit-result__fail { color: #FF4444; }

.sia-audit-loading {
  color: var(--sia-pulse);
  font-style: italic;
}

/* ============================================================
   13. Formulaire Contact (Parler)
   ============================================================ */

.sia-form {
  max-width: 600px;
  margin: 0 auto;
}

.sia-form__group {
  margin-bottom: 1.5rem;
}

.sia-form__label {
  display: block;
  font-size: 0.85rem;
  color: var(--sia-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.sia-form__input,
.sia-form__textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: var(--sia-font);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(45, 0, 255, 0.3);
  border-radius: 4px;
  color: var(--sia-frost);
  outline: none;
  transition: border-color 0.3s ease;
}

.sia-form__input:focus,
.sia-form__textarea:focus {
  border-color: var(--sia-pulse);
}

.sia-form__textarea {
  min-height: 150px;
  resize: vertical;
}

.sia-form__honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
}

.sia-form__success {
  padding: 1rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 4px;
  color: #00ff88;
  text-align: center;
}

.sia-form__error {
  padding: 1rem;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 4px;
  color: #FF4444;
  text-align: center;
}

/* ============================================================
   14. Cockpit (equipe)
   ============================================================ */

.sia-presence {
  background: #0D0D16;
  border: 1px solid rgba(45, 0, 255, 0.15);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.sia-presence__role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sia-pulse);
  margin-bottom: 0.5rem;
}

.sia-presence__name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sia-presence__desc {
  font-size: 0.9rem;
  color: var(--sia-muted);
}

.sia-presence__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
}

.sia-presence__dot--online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  animation: sia-dot-pulse 2s ease-in-out infinite;
}

.sia-presence__dot--standby {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFD600;
}

/* ============================================================
   15. Vitrine (realisations)
   ============================================================ */

.sia-showcase {
  background: #0D0D16;
  border: 1px solid rgba(45, 0, 255, 0.15);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s ease;
}

.sia-showcase:hover {
  border-color: rgba(0, 229, 255, 0.3);
}

.sia-showcase__domain {
  font-family: var(--sia-font-mono);
  font-size: 0.85rem;
  color: var(--sia-pulse);
  margin-bottom: 0.5rem;
}

.sia-showcase__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sia-showcase__desc {
  font-size: 0.9rem;
  color: var(--sia-muted);
  margin-bottom: 1rem;
}

.sia-showcase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sia-showcase__tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(45, 0, 255, 0.15);
  border-radius: 3px;
  color: var(--sia-frost);
}

/* ============================================================
   16. Utilitaires
   ============================================================ */

.sia-text-center { text-align: center; }
.sia-text-pulse  { color: var(--sia-pulse); }
.sia-text-muted  { color: var(--sia-muted); }
.sia-mt-1 { margin-top: 1rem; }
.sia-mt-2 { margin-top: 2rem; }
.sia-mb-1 { margin-bottom: 1rem; }
.sia-mb-2 { margin-bottom: 2rem; }
.sia-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sia-gap); }
.sia-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--sia-gap); }
