/* Biso Group SARL — feuille de style partagée / shared stylesheet
   Complète Tailwind (CDN). Ne contient que ce que Tailwind ne fait pas nativement. */

body { font-family: 'Inter', system-ui, sans-serif; }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: #f97316; color: #fff; padding: .75rem 1.25rem;
  font-weight: 700; border-radius: 0 0 .5rem 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid #f97316;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Ancres : dégagement sous la barre fixe ---------- */
section[id] { scroll-margin-top: 5.5rem; }

/* ---------- Apparition au défilement ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Hero : carte interconnectée de la RDC ---------- */
.hero-map {
  position: relative;
  background-color: #020617;
  background-image: url('../img/rdc-reseau.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}
/* Voile assurant le contraste du texte sur l'image (WCAG AA) */
.hero-map::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(115% 85% at 50% 45%, rgba(2, 6, 23, .12) 0%, rgba(2, 6, 23, .48) 58%, rgba(2, 6, 23, .74) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, .58) 0%, rgba(2, 6, 23, .12) 30%, rgba(2, 6, 23, .20) 70%, rgba(2, 6, 23, .62) 100%);
}
/* Ombre portée sous le texte : lisibilité sans assombrir la carte */
.hero-map h1,
.hero-map p { text-shadow: 0 2px 18px rgba(2, 6, 23, .75); }
/* Le dégradé du titre est découpé dans le texte : l'ombre le ternirait */
.hero-map h1 .text-transparent { text-shadow: none; }

.glass-card {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12);
}

/* ---------- Projets : rail horizontal sur mobile ---------- */
.projects-rail {
  scroll-padding-left: 1rem;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* Edge ancien */
  -webkit-overflow-scrolling: touch;
}
.projects-rail::-webkit-scrollbar { display: none; }
/* Au-delà du mobile, la grille reprend : plus d'accrochage ni de défilement */
@media (min-width: 768px) {
  .projects-rail { scroll-snap-type: none; }
}

/* ---------- Cartes projets ---------- */
.project-card { transition: transform .3s ease, box-shadow .3s ease; }
@media (hover: hover) {
  .project-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(2, 6, 23, .45); }
}
.project-media { transition: transform .6s ease; }
.project-card:hover .project-media { transform: scale(1.05); }

/* ---------- Fenêtre modale « étude de cas » ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  width: 100%; max-width: 32rem;
  animation: modal-in .22s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
body.modal-open { overflow: hidden; }

/* ---------- Pages légales ---------- */
.legal h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 .75rem; scroll-margin-top: 6rem; }
.legal h3 { font-size: 1.125rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.legal p, .legal li { line-height: 1.75; }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal ul li { margin-bottom: .375rem; }
.legal a { color: #ea580c; text-decoration: underline; text-underline-offset: 3px; }
.dark .legal a { color: #fb923c; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}
