:root { --radius: 1rem; }

[x-cloak] { display: none !important; }

body { font-feature-settings: "tnum" 0; }

/* Chiffres / prix tabulaires */
.tnum { font-variant-numeric: tabular-nums; }

/* Titres display */
h1, h2, h3, .font-display { letter-spacing: 0.01em; }
h2.font-display { letter-spacing: -0.005em; }

/* Rendu typographique soigné */
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.tracking-label { font-variant: small-caps normal; }

/* Focus visibles accessibles */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid #1FB6C4;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ken Burns hero */
@keyframes kenburns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.18) translate(-1.5%, -1.5%); }
}
.kenburns { animation: kenburns 22s ease-out forwards; }

/* Grain subtil (overlay SVG en data-uri, sans requête réseau) */
.grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Hero : états initiaux pour révélation GSAP (fallback : visibles) */
.hero-eyebrow, .hero-tagline, .hero-widget { will-change: transform, opacity; }

/* Finition des cartes : ombre douce cohérente + élévation au survol */
.card-soft {
  box-shadow: 0 1px 2px rgba(22,50,58,0.04), 0 10px 28px -14px rgba(22,50,58,0.20);
  transition: box-shadow .45s ease, transform .45s ease;
}
.card-soft:hover {
  box-shadow: 0 2px 4px rgba(22,50,58,0.06), 0 24px 50px -18px rgba(22,50,58,0.32);
  transform: translateY(-4px);
}

/* Voile dégradé doré discret sur les médias overlay */
.media-veil::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(125deg, rgba(201,162,75,0) 58%, rgba(201,162,75,0.14) 100%);
  pointer-events:none;
}

/* Shimmer loader */
@keyframes shimmer { 100% { transform: translateX(100%); } }
.shimmer { position: relative; overflow: hidden; background: #ece5da; }
.shimmer::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: shimmer 1.4s infinite;
}

/* Reveal initial state (GSAP prend le relais) */
.reveal { opacity: 0; transform: translateY(26px); }

/* Ligne d'horizon turquoise (motif de marque) */
.horizon::after {
  content:""; display:block; width:64px; height:2px;
  background:#1FB6C4; margin-top:1rem;
}
.horizon-center::after { margin-left:auto; margin-right:auto; }
/* Variante dorée pour les sections de marque */
.horizon-gold::after { background: linear-gradient(90deg,#C9A24B,#e8cf90); width:72px; }

/* Lightbox */
.lightbox-img { max-height: 86vh; max-width: 92vw; }

/* Masonry galerie */
.masonry { column-gap: 1rem; }
@media (min-width: 640px){ .masonry { columns: 2; } }
@media (min-width: 1024px){ .masonry { columns: 3; } }
.masonry > * { break-inside: avoid; margin-bottom: 1rem; }

/* Leaflet z-index sous le header */
.leaflet-pane, .leaflet-control { z-index: 10 !important; }

/* prefers-reduced-motion : on coupe animations lourdes */
@media (prefers-reduced-motion: reduce) {
  .kenburns { animation: none; }
  .shimmer::after { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-eyebrow, .hero-tagline, .hero-widget { opacity: 1 !important; transform: none !important; }
  .grain { display: none; }
  .card-soft:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* Inputs cohérents */
.pvl-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(22,50,58,0.15);
  border-radius: 0.75rem;
  background: #fff;
  color: #16323A;
  font-size: 0.95rem;
}
.pvl-input:focus { outline: none; border-color:#1FB6C4; box-shadow: 0 0 0 3px rgba(31,182,196,0.18); }
.pvl-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color:#0E7C8A; margin-bottom: 0.35rem; display:block; }
