/* ==========================================================================
   hero.css — Hero pleine hauteur (accueil T1) + hero compact (pages intérieures T2-T6)
   Source  : new-template/index.html (inline <style>, section HERO)
   Phase   : B — tâche B2
   Scope   : chargé dans inc_header.cfm pour toutes les pages
   Dépend  : tokens.css (variables :root, HSL components)

   NOTE : overlays multi-couches et keyframe scrollBounce volontairement en CSS
   custom — non exprimables proprement en Tailwind (hsla dynamique + gradients
   directionnels multiples).
   Toutes les couleurs hardcodées sont passées en HSL components.
   ========================================================================== */

/* ===== HERO INSIDE (pages intérieures) ===== */
.inside .hero{
  position:relative;
  min-height:300px;
  height:55vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  margin-top:72px
}
.inside .hero img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.3
}
.inside .hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top,var(--bg),hsla(var(--bgh),var(--bgs),var(--bgl),0.7),transparent)
}
.inside .hero-content{position:relative;padding-bottom:2.5rem}
.inside .hero-content .tag{
  color:var(--primary);
  font-size:0.8rem;
  letter-spacing:0.3em;
  text-transform:uppercase;
  margin-bottom:.75rem
}
.inside .hero-content h1{
  font-size:clamp(2rem,5vw,3.5rem)
}
.inside .hero-content h1 span{
  background:linear-gradient(135deg,var(--primary),var(--primary-light));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  font-style:italic
}


/* ===== HERO FRONT (accueil) ===== */
.home .hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, hsl(var(--bgh) var(--bgs) calc(var(--bgl) - 4%) / 1) 0%, hsl(var(--bgh) var(--bgs) calc(var(--bgl) + 2%) / 1) 100%);
  min-height: 100vh;
}

/* --- Pleine hauteur (accueil T1) --- */
.home .hero--fullscreen {
  min-height: 100vh;
}

/* --- Compact (pages intérieures T2-T6) --- */
.hero--compact {
  height: 40vh;
  min-height: 280px;
  align-items: flex-end;
  padding-bottom: 3rem;
}

/* ===== FOND IMAGE ===== */
.home .hero-bg {
  position: absolute;
  inset: 0;
}

.home .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.3;
}

/* ===== OVERLAYS GRADIENT (accueil) ===== */
/* Overlay latéral gauche → transparent */
.home .hero-overlay1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg), hsla(var(--bgh), var(--bgs), var(--bgl), 0.8), transparent);
}

/* Overlay vertical bas → transparent → haut atténué */
.home .hero-overlay2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), transparent, hsla(var(--bgh), var(--bgs), var(--bgl), 0.6));
}

/* Overlay simple (pages intérieures) */
.home .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    hsla(var(--bgh), var(--bgs), calc(var(--bgl) - 4%), 0.85),
    hsla(var(--bgh), var(--bgs), calc(var(--bgl) - 4%), 0.5)
  );
}

/* ===== CONTENU HERO ACCUEIL ===== */
.home .hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 0 auto;
}

/* ===== CONTENU HERO COMPACT ===== */
.home .hero-content--compact {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
  width: 100%;
}

/* ===== SURTITRE (tag) ===== */
.home .hero-tag {
  color: var(--primary);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ===== H1 ACCUEIL ===== */
.home .hero h1 {
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}

.home .hero h1 span {
  font-weight: 500;
  font-style: italic;
}

/* H1 compact (pages intérieures) */
.home .hero--compact h1 {
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 0;
}

/* ===== CITATION HERO ===== */
.home .hero-quote {
  border-left: 2px solid hsla(var(--ph), var(--ps), var(--pl), 0.4);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.home .hero-quote p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: hsla(var(--fgh), var(--fgs), var(--fgl), 0.8);
  line-height: 1.6;
}

.home .hero-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-style: normal;
}

/* ===== BOUTONS CTA ===== */
.home .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Styles boutons (réutilisables hors hero aussi) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.3s;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border: 1px solid hsla(var(--fgh), var(--fgs), var(--fgl), 0.2);
  color: var(--fg);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== IMAGE PORTRAIT (accueil) ===== */
.home .hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.home .hero-image img {
  position: relative;
  z-index: 1;
  width: 380px;
  max-width: 100%;
  filter: drop-shadow(0 20px 40px var(--shadow-md));
}

.home .hero-image .glow {
  position: absolute;
  inset: -2rem;
  background: hsla(var(--ph), var(--ps), var(--pl), 0.05);
  border-radius: 50%;
  filter: blur(48px);
}

/* ===== INDICATEUR DE DÉFILEMENT ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, hsla(var(--ph), var(--ps), var(--pl), 0.6), transparent);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .home .hero-content {
    grid-template-columns: 1fr;
  }

  /* Portrait caché sur mobile/tablette */
  .hero-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .home .hero--compact {
    height: 50vh;
  }
}

@media (min-width: 1440px) {
  .home .hero-content {
    max-width: 1600px;
  }
}

@media (min-width: 1920px) {
  .home .hero-content {
    max-width: 1800px;
  }
}
