/* ============================================================
   DREAM LIVING HUA HIN — Landing V5 · daisyUI Noir & Or
   ------------------------------------------------------------
   Stack : daisyUI 5 (CDN) + Tailwind CSS 4 (browser build).
   Ce fichier ne contient QUE ce que les classes daisyUI/Tailwind
   ne peuvent pas exprimer proprement :
     1. le thème custom « noir » (variables daisyUI, méthode CDN)
     2. l'anneau de focus accessible
     3. le voile du hero (double dégradé de vignettage)
     4. l'animation d'entrée + l'effet « shine »
     5. prefers-reduced-motion
   Tout le reste du styling vit dans les classes de index.html.
   ============================================================ */

/* ---------- 1. Thème daisyUI custom « noir » (CDN) ----------
   Sélecteur [data-theme] : méthode recommandée pour un thème CDN.
   ⚠️ Valeurs à garder identiques au bloc @theme de index.html. */
[data-theme="noir"] {
  color-scheme: dark;

  --color-base-100: #07090C;
  --color-base-200: #0B0F14;
  --color-base-300: #12181F;
  --color-base-content: #EFE6D8;

  --color-primary: #C9A24B;
  --color-primary-content: #07090C;
  --color-secondary: #E7C57E;
  --color-secondary-content: #07090C;
  --color-accent: #8C6A2F;
  --color-accent-content: #EFE6D8;
  --color-neutral: #12181F;
  --color-neutral-content: #EFE6D8;

  --color-info: #7C9CBF;
  --color-info-content: #07090C;
  --color-success: #7FA886;
  --color-success-content: #07090C;
  --color-warning: #D9A441;
  --color-warning-content: #07090C;
  --color-error: #C46A5A;
  --color-error-content: #07090C;

  --radius-selector: 1rem;
  --radius-field: 0.5rem;
  --radius-box: 1rem;

  --size-selector: 0.25rem;
  --size-field: 0.25rem;

  --border: 1px;

  --depth: 1;
  --noise: 0;
}

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Focus clavier accessible (anneau or pâle) ---------- */
a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Voile du hero — vignettage doux + renfort bas ----------
   Prend le pas sur le bg-neutral/50 du composant hero-overlay daisyUI. */
.hero-overlay {
  background:
    radial-gradient(ellipse 120% 90% at 50% 38%,
      rgba(7, 9, 12, 0) 40%,
      rgba(7, 9, 12, 0.42) 100%),
    linear-gradient(180deg,
      rgba(7, 9, 12, 0.52) 0%,
      rgba(7, 9, 12, 0.3) 42%,
      rgba(7, 9, 12, 0.78) 100%);
}

/* ---------- 4. Animation d'entrée du bloc marque ---------- */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-hero-fade {
  animation: heroFade 1.4s var(--ease-out) both;
}

/* ---------- Effet shine : reflet lumineux au survol ----------
   Nécessite position:relative + overflow:hidden sur l'élément porteur
   (fournis par les utilitaires Tailwind dans le HTML). */
.icon-shine::after {
  content: '';
  position: absolute;
  top: -25%;
  left: 0;
  width: 45%;
  height: 150%;
  background: linear-gradient(100deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: translateX(-240%) skewX(-22deg);
  pointer-events: none;
}

a:hover .icon-shine::after,
.icon-shine:hover::after {
  transform: translateX(340%) skewX(-22deg);
  transition: transform 0.55s var(--ease-out);
}

/* ---------- 5. Accessibilité — mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .animate-hero-fade {
    animation: none;
  }

  .icon-shine::after {
    display: none;
  }

  .hero,
  .hero *,
  .hero *::before,
  .hero *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
