/*
Theme Name:   Léonyx Habitat Child
Theme URI:    https://leonyxhabitat.fr
Description:  Child theme Hello Elementor — Léonyx Habitat
Author:       Claude Flouvat
Author URI:   https://leonyxhabitat.fr
Template:     hello-elementor
Version:      1.0.0
Text Domain:  leonyx-child
*/

/* ============================================================
   VARIABLES DE MARQUE — LÉONYX HABITAT
   Modifier ici = tout le site se met à jour
   ============================================================ */
:root {
  /* Couleurs */
  --lh-noir:          #0A0A0A;
  --lh-noir-card:     #111111;
  --lh-noir-section:  #161616;
  --lh-jaune:         #F5C200;
  --lh-jaune-hover:   #FFCD00;
  --lh-blanc:         #FFFFFF;
  --lh-muted:         rgba(255, 255, 255, 0.4);

  /* Typographie */
  --lh-font:          'Montserrat', sans-serif;

  /* Espacements sections */
  --lh-section-pad:   100px 60px;

  /* Transitions */
  --lh-transition:    0.25s ease;
}

/* ============================================================
   RESET & BASE GLOBALE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--lh-font);
  background-color: var(--lh-noir);
  color: var(--lh-blanc);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   OVERRIDES HELLO ELEMENTOR
   ============================================================ */
.elementor-kit-tag,
.e-con,
.elementor-section,
.elementor-container {
  font-family: var(--lh-font);
}

/* Supprimer les marges par défaut d'Elementor sur les colonnes */
.elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populated,
.elementor-widget-wrap {
  padding: 0;
}

/* ============================================================
   TYPOGRAPHIE GLOBALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--lh-font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.95;
  color: var(--lh-blanc);
}

p {
  font-family: var(--lh-font);
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
}

a {
  color: var(--lh-jaune);
  text-decoration: none;
  transition: color var(--lh-transition);
}

a:hover {
  color: var(--lh-blanc);
}

/* ============================================================
   HEADER — ELEMENTOR THEME BUILDER
   Classe à ajouter sur la section header dans Elementor :
   → Section > Avancé > Classe CSS : "lh-header"
   ============================================================ */
.lh-header {
  transition: background-color 0.4s ease, padding 0.4s ease !important;
}

.lh-header.lh-scrolled {
  background-color: rgba(10, 10, 10, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 194, 0, 0.15) !important;
}

/* Logo dans le header */
.lh-header .elementor-widget-site-logo img,
.lh-header .elementor-widget-image img {
  transition: opacity var(--lh-transition);
  max-height: 52px;
  width: auto;
}

/* Nav links */
.lh-header .elementor-nav-menu a {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.65) !important;
  transition: color var(--lh-transition) !important;
}

.lh-header .elementor-nav-menu a:hover {
  color: var(--lh-jaune) !important;
}

/* ============================================================
   BOUTONS — CLASSES À UTILISER DANS ELEMENTOR
   ============================================================ */

/* Bouton principal jaune */
.lh-btn-primary,
.lh-btn-primary .elementor-button {
  background-color: var(--lh-jaune) !important;
  color: var(--lh-noir) !important;
  font-family: var(--lh-font) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 16px 36px !important;
  transition: background-color var(--lh-transition), transform 0.15s ease !important;
}

.lh-btn-primary:hover .elementor-button,
.lh-btn-primary .elementor-button:hover {
  background-color: var(--lh-blanc) !important;
  transform: translateY(-2px) !important;
}

/* Bouton contour */
.lh-btn-ghost,
.lh-btn-ghost .elementor-button {
  background-color: transparent !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: var(--lh-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  padding: 14px 32px !important;
  transition: all var(--lh-transition) !important;
}

.lh-btn-ghost:hover .elementor-button,
.lh-btn-ghost .elementor-button:hover {
  border-color: var(--lh-jaune) !important;
  color: var(--lh-jaune) !important;
}

/* ============================================================
   SECTIONS — CLASSES DE BACKGROUND
   À appliquer sur les sections dans Elementor > Avancé > Classe CSS
   ============================================================ */
.lh-bg-noir         { background-color: var(--lh-noir) !important; }
.lh-bg-card         { background-color: var(--lh-noir-card) !important; }
.lh-bg-section      { background-color: var(--lh-noir-section) !important; }
.lh-bg-jaune        { background-color: var(--lh-jaune) !important; }

/* ============================================================
   EYEBROW (chapeau de section)
   Classe : "lh-eyebrow" sur un widget Heading ou Text
   ============================================================ */
.lh-eyebrow,
.lh-eyebrow .elementor-heading-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: var(--lh-jaune) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.lh-eyebrow::before {
  content: '' !important;
  display: inline-block !important;
  width: 30px !important;
  height: 2px !important;
  background: var(--lh-jaune) !important;
  flex-shrink: 0 !important;
}

/* ============================================================
   CARDS DE SERVICES
   Classe "lh-service-card" sur les Inner Sections / Containers
   ============================================================ */
.lh-service-card {
  background-color: var(--lh-noir-card) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform var(--lh-transition), background-color var(--lh-transition) !important;
  cursor: default !important;
}

.lh-service-card::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: var(--lh-jaune) !important;
  transform: scaleX(0) !important;
  transform-origin: left !important;
  transition: transform 0.3s ease !important;
}

.lh-service-card:hover::after {
  transform: scaleX(1) !important;
}

.lh-service-card:hover {
  background-color: #161616 !important;
  transform: translateY(-4px) !important;
}

/* Icône de service */
.lh-service-icon {
  width: 52px !important;
  height: 52px !important;
  background: rgba(245, 194, 0, 0.08) !important;
  border: 1px solid rgba(245, 194, 0, 0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background var(--lh-transition) !important;
}

.lh-service-card:hover .lh-service-icon {
  background: rgba(245, 194, 0, 0.15) !important;
}

.lh-service-icon i,
.lh-service-icon .elementor-icon {
  color: var(--lh-jaune) !important;
  font-size: 22px !important;
}

/* ============================================================
   STATS (bloc chiffre + label)
   Classe "lh-stat" sur le container de chaque stat
   ============================================================ */
.lh-stat {
  padding-left: 18px !important;
  border-left: 3px solid var(--lh-jaune) !important;
}

.lh-stat .elementor-counter-number-wrapper,
.lh-stat h3,
.lh-stat .lh-stat-num {
  font-size: 44px !important;
  font-weight: 900 !important;
  color: var(--lh-blanc) !important;
  line-height: 1 !important;
  margin-bottom: 6px !important;
}

.lh-stat .elementor-counter-title,
.lh-stat p,
.lh-stat .lh-stat-label {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.32) !important;
}

/* ============================================================
   BADGE JAUNE (ex : "Artisans qualifiés")
   Classe "lh-badge" sur un container carré
   ============================================================ */
.lh-badge {
  background-color: var(--lh-jaune) !important;
  position: absolute !important;
  bottom: -28px !important;
  left: -28px !important;
  width: 148px !important;
  height: 148px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  z-index: 2 !important;
}

.lh-badge * {
  color: var(--lh-noir) !important;
}

/* ============================================================
   TICKER / BANDE DÉFILANTE JAUNE
   Classe "lh-ticker" sur la section, "lh-ticker-inner" sur le texte
   ============================================================ */
.lh-ticker {
  background-color: var(--lh-jaune) !important;
  padding: 13px 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.lh-ticker-inner {
  display: inline-flex !important;
  animation: lh-ticker 28s linear infinite !important;
}

@keyframes lh-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.lh-ticker-item {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(0, 0, 0, 0.7) !important;
  padding: 0 32px !important;
}

/* ============================================================
   FORMULAIRE DE CONTACT
   Classe "lh-form" sur la section/container du formulaire
   ============================================================ */
.lh-form input,
.lh-form select,
.lh-form textarea {
  background-color: var(--lh-noir-section) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  color: var(--lh-blanc) !important;
  font-family: var(--lh-font) !important;
  font-size: 14px !important;
  padding: 13px 15px !important;
  transition: border-color var(--lh-transition) !important;
}

.lh-form input:focus,
.lh-form select:focus,
.lh-form textarea:focus {
  border-color: var(--lh-jaune) !important;
  outline: none !important;
  box-shadow: none !important;
}

.lh-form input::placeholder,
.lh-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.22) !important;
}

.lh-form label {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.32) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.lh-footer {
  background-color: #060606 !important;
  border-top: 1px solid rgba(245, 194, 0, 0.12) !important;
}

.lh-footer p,
.lh-footer span {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.25) !important;
}

.lh-footer a {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.32) !important;
}

.lh-footer a:hover {
  color: var(--lh-jaune) !important;
}

/* ============================================================
   INDICATEUR DE SCROLL (Hero)
   Classe "lh-scroll-bar" sur un Divider ou container
   ============================================================ */
.lh-scroll-bar {
  width: 1px !important;
  height: 64px !important;
  background: linear-gradient(to bottom, var(--lh-jaune), transparent) !important;
  animation: lh-scroll-pulse 2.2s ease infinite !important;
}

@keyframes lh-scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.9; }
}

/* ============================================================
   GALERIE RÉALISATIONS
   Classe "lh-gallery-item" sur chaque item
   ============================================================ */
.lh-gallery-item {
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.lh-gallery-item .lh-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  display: flex !important;
  align-items: flex-end !important;
  padding: 20px !important;
}

.lh-gallery-item:hover .lh-overlay {
  opacity: 1 !important;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --lh-section-pad: 60px 24px;
  }

  h1 { font-size: 44px !important; }
  h2 { font-size: 32px !important; }

  .lh-header {
    padding: 16px 24px !important;
  }
}


/* ============================================================
   RESPONSIVE — COMPLET
   Breakpoints : 1200px / 992px / 768px / 480px
   Note : Elementor Pro gère les colonnes en responsive via
   son interface (Section > Responsive). Ces règles CSS
   s'appliquent à NOS classes custom uniquement.
   ============================================================ */

/* --- GRAND ÉCRAN 1200px --- */
@media (max-width: 1200px) {

  .services-grid,
  .lh-services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .lh-header .elementor-nav-menu a {
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
  }
}

/* --- TABLETTE 992px --- */
@media (max-width: 992px) {

  /* Services : 2 colonnes */
  .services-grid,
  .lh-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* About & Contact : empilés */
  #apropos,
  #contact,
  .lh-two-cols {
    grid-template-columns: 1fr !important;
    gap: 60px !important;
  }

  /* Badge about : repositionné */
  .about-badge,
  .lh-badge {
    bottom: -20px !important;
    left: -16px !important;
    width: 120px !important;
    height: 120px !important;
  }

  /* Hero : ajustements */
  .hero-right {
    display: none !important; /* masqué, le numéro est dans le contenu */
  }

  .scroll-indicator,
  .lh-scroll-bar {
    display: none !important;
  }

  /* Sections padding réduit */
  #services,
  #apropos,
  #realisations,
  #contact {
    padding: 72px 40px !important;
  }

  /* Gallery : 2 colonnes */
  .gallery,
  .lh-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto !important;
  }

  .gallery .gitem:first-child,
  .lh-gallery .lh-gallery-featured {
    grid-column: span 1 !important;
  }
}

/* --- MOBILE 768px --- */
@media (max-width: 768px) {

  /* Hero */
  #hero {
    padding: 100px 24px 60px !important;
  }

  .hero-title,
  .lh-hero-title {
    font-size: 54px !important;
    line-height: 0.9 !important;
  }

  .hero-actions,
  .lh-hero-actions {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .hero-actions a,
  .lh-hero-actions a {
    width: 100% !important;
    text-align: center !important;
  }

  /* Sections padding */
  #services,
  #apropos,
  #realisations,
  #contact {
    padding: 60px 24px !important;
  }

  /* Services : 1 colonne */
  .services-grid,
  .lh-services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Services header */
  .services-head,
  .lh-services-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }

  .services-head-desc,
  .lh-services-head-desc {
    text-align: left !important;
    max-width: 100% !important;
  }

  /* Titles */
  .section-title,
  .lh-section-title {
    font-size: 36px !important;
  }

  /* Stats : 2 colonnes sur mobile */
  .about-stats,
  .lh-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  /* Contact phone */
  .contact-phone,
  .lh-contact-phone {
    font-size: 32px !important;
  }

  /* Formulaire */
  .frow,
  .lh-form-row {
    grid-template-columns: 1fr !important;
  }

  /* Gallery : 1 colonne */
  .gallery,
  .lh-gallery {
    grid-template-columns: 1fr !important;
  }

  .gallery .gitem,
  .lh-gallery .lh-gallery-item {
    height: 220px !important;
  }

  /* Footer */
  footer,
  .lh-footer {
    flex-direction: column !important;
    text-align: center !important;
    gap: 20px !important;
    padding: 32px 24px !important;
  }

  /* Header sticky padding mobile */
  .site-header,
  .lh-header {
    padding: 16px 24px !important;
  }

  .site-header.scrolled,
  .lh-header.lh-scrolled {
    padding: 12px 24px !important;
  }

  /* Logo mobile */
  .lh-header .elementor-widget-site-logo img {
    max-height: 40px !important;
  }
}

/* --- PETIT MOBILE 480px --- */
@media (max-width: 480px) {

  .hero-title,
  .lh-hero-title {
    font-size: 42px !important;
  }

  .section-title,
  .lh-section-title {
    font-size: 30px !important;
  }

  .stat-num,
  .lh-stat-num {
    font-size: 34px !important;
  }

  .contact-phone,
  .lh-contact-phone {
    font-size: 28px !important;
    letter-spacing: 0.02em !important;
  }

  /* Service cards padding réduit */
  .service-card,
  .lh-service-card {
    padding: 28px 20px !important;
  }

  /* Ticker plus petit */
  .ticker-item,
  .lh-ticker-item {
    padding: 0 20px !important;
    font-size: 10px !important;
  }

  /* Boutons pleine largeur */
  .btn-primary,
  .lh-btn-primary .elementor-button,
  .btn-ghost,
  .lh-btn-ghost .elementor-button {
    padding: 14px 24px !important;
    font-size: 11px !important;
  }

  /* Gallery */
  .gallery .gitem,
  .lh-gallery .lh-gallery-item {
    height: 180px !important;
  }
}

/* ============================================================
   ELEMENTOR RESPONSIVE HELPERS
   Classes utilitaires à appliquer dans Elementor
   ============================================================ */

/* Masquer sur mobile */
@media (max-width: 768px) {
  .lh-hide-mobile { display: none !important; }
}

/* Masquer sur desktop */
@media (min-width: 769px) {
  .lh-hide-desktop { display: none !important; }
}

/* Texte centré sur mobile */
@media (max-width: 768px) {
  .lh-center-mobile {
    text-align: center !important;
    align-items: center !important;
  }
  .lh-center-mobile .eyebrow,
  .lh-center-mobile .lh-eyebrow {
    justify-content: center !important;
  }
}
