/* ============================================================================
   AXIONA — SITE.CSS (Version finale)
   Auteur : Yahia Benaraba
   Date : 2025-10-29
   
   Ce fichier contient uniquement les styles qui ne peuvent être gérés
   par Tailwind CDN : variables CSS, glass effect, gradient hero, prose.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. VARIABLES CSS ET THÈME GLOBAL
   ---------------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  
  /* Palette de couleurs */
  --bg: #0b0f17;
  --fg: #cbd5e1;
  --fg-strong: #e2e8f0;
  --muted: #94a3b8;
  --card: rgba(255, 255, 255, 0.04);
  --card2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --indigo: #6366f1;
  
  /* Typographie */
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll pour les ancres */
html {
  scroll-behavior: smooth;
}

/* ----------------------------------------------------------------------------
   2. EFFET GLASS MORPHISM
   ---------------------------------------------------------------------------- */
.glass {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(2, 6, 23, 0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

/* ----------------------------------------------------------------------------
   3. GRADIENT HERO (fond dégradé radial)
   ---------------------------------------------------------------------------- */
.grad {
  background: radial-gradient(
    1200px 600px at 50% -10%,
    rgba(99, 102, 241, 0.25),
    rgba(34, 211, 238, 0.05) 50%,
    transparent 70%
  );
}

/* ----------------------------------------------------------------------------
   4. PROSE LITE (amélioration de la lisibilité des paragraphes)
   ---------------------------------------------------------------------------- */
.prose-lite p {
  line-height: 1.7;
}

/* ----------------------------------------------------------------------------
   5. RESPONSIVE — MOBILE FIRST
   ---------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Réduction des espacements sur mobile */
  section {
    padding-bottom: 2rem !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  /* Ajustement des titres */
  h1 {
    font-size: 1.8rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
}

/* ----------------------------------------------------------------------------
   6. AMÉLIORATIONS D'ACCESSIBILITÉ
   ---------------------------------------------------------------------------- */

/* Focus visible pour navigation clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

/* Amélioration des contrastes pour les liens */
a {
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c7d2fe;
}

/* ----------------------------------------------------------------------------
   7. ANIMATIONS LÉGÈRES
   ---------------------------------------------------------------------------- */

/* Transition douce pour tous les éléments interactifs */
a,
button,
.glass,
input,
textarea,
details summary {
  transition: all 0.2s ease-in-out;
}

/* Animation d'apparition pour les cartes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.8s ease-out;
}

/* ----------------------------------------------------------------------------
   8. AMÉLIORATIONS DES FORMULAIRES
   ---------------------------------------------------------------------------- */
input,
textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  color: var(--fg-strong);
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--indigo);
  background: rgba(255, 255, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

/* ----------------------------------------------------------------------------
   9. AMÉLIORATIONS DES ACCORDÉONS (DETAILS/SUMMARY)
   ---------------------------------------------------------------------------- */
details summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
}

/* Suppression du triangle par défaut */
details summary::-webkit-details-marker {
  display: none;
}

/* Indicateur visuel pour les accordéons fermés/ouverts */
details summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
  color: var(--indigo);
}

details[open] summary::before {
  transform: rotate(90deg);
}

/* ----------------------------------------------------------------------------
   10. UTILITAIRES DIVERS
   ---------------------------------------------------------------------------- */

/* Images responsive par défaut */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Boutons avec effet hover */
button {
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer sobre */
footer {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a:hover {
  color: var(--fg-strong);
}

/* ----------------------------------------------------------------------------
   FIN DU FICHIER
   ---------------------------------------------------------------------------- */

/* ============================================================================
   CORRECTIF MOBILE — Cacher logo sur petits écrans
   ============================================================================ */
@media (max-width: 767px) {
  #heroLogo {
    display: none !important;
  }
}
