/* ================================================================
   Page d'attente TAD — HTML/CSS pur (sans React)
   Fond et logo repris de la landing techno2main.fr :
     - fond       : src/components/landing/Hero.tsx (illustration opacity-40)
                    + src/styles/landing.css (.landing-hero-overlay)
                    + src/styles/global.css (couleur de fond de la landing)
     - logo animé : src/components/sidebar/AnimatedTadLogo.tsx
                    (bascule nette entre 2 PNG toutes les 5 s — ici en JS, voir index.html)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  /* Couleur de fond de la landing (repli avant chargement de l'illustration) */
  background: hsl(220 30% 8%);
}

body {
  margin: 0;
  min-height: 100%;
  line-height: inherit;
  background: none;
  color: hsl(200 20% 90%);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Protection légère des images (complète le blocage du glisser-déposer) */
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- Thème (charte TAD) ---------- */

.landing-page {
  --primary: #43a7de;           /* Bleu TAD (textes, icônes) */
  --primary-fill: #318fbe;      /* Fond du CTA : un cran plus sombre */
  --muted-foreground: hsl(210 15% 55%);
  --radius: 0.75rem;

  position: relative;
  min-height: 100vh;
  background: hsl(220 30% 8%);
  color: hsl(200 20% 90%);
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-family: "Outfit", sans-serif;
}

/* Le contenu passe au-dessus du fond plein écran */
.landing-page main,
.landing-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Fond plein écran (toute la page) ---------- */

.page-bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;                 /* illustration opacity-40 (Hero.tsx) */
}

/* Voile de lisibilité (landing.css : .landing-hero-overlay) */
.page-bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(
    to bottom,
    hsl(220 30% 8% / 0.6),
    hsl(220 30% 8% / 0.8),
    hsl(220 30% 8%)
  );
}

/* ---------- Conteneur ---------- */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 1.25rem 0;
}

.hero-content {
  padding-top: 0.5rem;
  padding-bottom: 0;
}

.hero-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 48rem;
  text-align: center;
}

.hero-logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto 2rem;
}

/* Logo : taille Desktop sur tous les écrans */
.hero-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: 10rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Titre : taille Desktop sur tous les écrans */
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* Animation d'entrée */
@keyframes landing-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: landing-fade-in-up 0.6s ease-out forwards;
}

/* Flèche animée vers le bas */
.arrow-down {
  display: block;
  width: 2rem;
  height: 2rem;
  margin: 0.75rem auto 0;
  color: var(--primary);
  animation: arrow-bounce 1.2s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* ---------- CTA final ---------- */

.cta-final {
  padding-top: 0;
  padding-bottom: 0.5rem;
}

.cta-final-inner {
  display: flex;
  justify-content: center;
}

.glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid hsl(220 20% 18% / 0.5);
  background-color: hsl(220 25% 12% / 0.6);
  backdrop-filter: blur(24px);
}

.glow-cyan {
  box-shadow: 0 0 40px -10px rgba(67, 167, 222, 0.3);
}

.cta-avatar {
  height: 6rem;
  width: auto;
  object-fit: contain;
}

/* Bouton (lien vers le site) */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14rem;
  white-space: nowrap;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  text-decoration: none;
  background-color: var(--primary-fill);
  color: #ffffff;
  box-shadow:
    0 10px 15px -3px rgba(49, 143, 190, 0.3),
    0 4px 6px -4px rgba(49, 143, 190, 0.25);
  transition: background-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #2a7eaa;
  box-shadow:
    0 10px 15px -3px rgba(49, 143, 190, 0.4),
    0 4px 6px -4px rgba(49, 143, 190, 0.35);
}

.cta-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Footer ---------- */

.landing-footer {
  border-top: 1px solid hsl(220 20% 18% / 0.3);
  padding: 2rem 0;
}

.landing-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.landing-footer p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

/* ---------- Dégradés de texte ---------- */

.text-gradient-cyan {
  color: #43a7de;
  background: none;
  -webkit-text-fill-color: #43a7de;
}

.text-gradient-gold {
  background-image: linear-gradient(135deg, hsl(45 90% 55%), #ffbf66);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Respect des préférences de réduction des animations ---------- */

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .arrow-down {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}