/* =========================================================
   SmartZone Cameroun — Feuille de styles
   Site statique (HTML + CSS + JS), aucun build requis.
   ========================================================= */

/* ---- Variables ---- */
:root {
  --bg: #0a0a0a;
  --card-bg: rgba(20, 20, 22, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --text-muted: #a1a1aa;
  --primary: #f97316;
  --shadow-card: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  --gradient-logo: linear-gradient(90deg, #f97316, #fbbf24, #f97316);
}

/* ---- Reset minimal ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; /* Évite le fond blanc sur les écrans très grands */
}

/* Texte masqué visuellement, conservé pour les lecteurs d'écran */
.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;
}

/* =========================================================
   Mise en page principale
   ========================================================= */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  overflow: hidden;
}

/* ---- Arrière-plan ---- */
.bg-image {
  position: absolute;
  inset: 0;
  background-image: url('smartzone-store.jpg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
  /* Légère réduction de luminosité pour améliorer la lisibilité */
  filter: brightness(0.7);
}
.bg-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

/* =========================================================
   Carte de contact
   ========================================================= */
.card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 28rem;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

/* ---- En-tête ---- */
.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-bottom: 0.5rem;
  object-fit: contain;
  /* Corrige : évite que l'image crée un espace vide si elle ne charge pas */
  display: block;
}

.location {
  margin: 0.25rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tagline {
  margin: 1rem 0 0;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.separator {
  margin-top: 1.25rem;
  /* Corrige : ajout de align-self pour centrer dans le flex column */
  align-self: center;
  height: 4px;
  width: 6rem;
  border-radius: 9999px;
  background: var(--gradient-logo);
}

/* =========================================================
   Liens de contact
   ========================================================= */
.links {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  /* Corrige : ajout de cursor pointer explicite */
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease,
              background 0.25s ease, box-shadow 0.25s ease;
}

.link:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Retour à la position normale au clic */
.link:active {
  transform: translateY(0);
}

/* Indicateur de focus clavier pour l'accessibilité */
.link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  color: white;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
}
.link:hover .link-icon { transform: scale(1.1); }

/* Couleurs par réseau */
.link-icon--whatsapp  { background: linear-gradient(135deg, #25d366, #128c7e); }
.link-icon--instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.link-icon--tiktok    { background: linear-gradient(135deg, #010101, #69c9d0); }

.link-text {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  /* Corrige : évite que le texte déborde sur petits écrans */
  min-width: 0;
}

.link-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.link-handle {
  font-size: 0.75rem;
  color: var(--text-muted);
  /* Corrige : tronque si trop long */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-share {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.link:hover .link-share { opacity: 1; }

/* ---- Pied de carte ---- */
.card-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Corrige : le <p> dans footer ne doit pas avoir de margin par défaut */
.card-footer p {
  margin: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 480px) {
  .card { padding: 1.5rem; }
  .logo { max-width: 220px; }
  .page { padding: 1.5rem 1rem; }
}

/* Réduit les animations si l'utilisateur les a désactivées */
@media (prefers-reduced-motion: reduce) {
  .link, .link-icon, .link-share {
    transition: none;
  }
}