/**
 * HIDOM - Styles principaux
 * Design premium, immersif, scroll-driven animations
 * Inspirations: Apple, Tesla, Savant
 */

/* ============================================
   VARIABLES CSS
   ============================================ */

:root {
  /* ============================================
     CHARTE GRAPHIQUE HIDOM
     Orange/Noir - Énergie & Chaleur
     ============================================ */

  /* Couleurs principales */
  --color-black: #000000;
  --color-white: #FFFFFF;

  /* Gris neutres */
  --color-gray-50: #FAFAFA;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #E5E5E5;
  --color-gray-300: #D4D4D4;
  --color-gray-400: #A3A3A3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;

  /* Ambre HIDOM - Couleur principale (inspirée du logo) */
  --color-primary: #F7A828;
  --color-primary-light: #FBBD40;
  --color-primary-dark: #E89520;
  --color-primary-rgb: 247, 168, 40;

  /* Doré/Jaune - Accent secondaire (coeur du logo) */
  --color-accent: #FDD835;
  --color-accent-light: #FDE68A;
  --color-accent-dark: #F9C400;

  /* Dégradé signature HIDOM */
  --gradient-primary: linear-gradient(135deg, #F7A828 0%, #FBBD40 100%);
  --gradient-primary-dark: linear-gradient(135deg, #E89520 0%, #F7A828 100%);
  --gradient-hero: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #0A0A0A 100%);

  /* Overlay et glass */
  --color-glass: rgba(255, 255, 255, 0.08);
  --color-glass-dark: rgba(0, 0, 0, 0.4);
  --color-glass-orange: rgba(247, 168, 40, 0.1);
  --backdrop-blur: 20px;

  /* Typographie */
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'SF Pro Display', var(--font-system);

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Tailles de texte */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */
  --text-8xl: 6rem;        /* 96px */

  /* Espacements */
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */
  --space-32: 8rem;        /* 128px */

  /* Bordures */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-slower: 700ms ease;

  /* Layout */
  --max-width: 1440px;
  --container-padding: var(--space-6);

  /* Z-index */
  --z-navigation: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

/* ============================================
   RESET & BASE
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-system);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--color-white);
  background-color: var(--color-black);
  overflow-x: hidden;
}

/* Sélection de texte */
::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Images */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Liens */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.7;
}

/* Boutons */
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-6xl);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--text-5xl);
}

h3 {
  font-size: var(--text-4xl);
}

h4 {
  font-size: var(--text-3xl);
}

h5 {
  font-size: var(--text-2xl);
}

h6 {
  font-size: var(--text-xl);
}

/* Paragraphes */
p {
  margin-bottom: var(--space-4);
}

/* Listes */
ul, ol {
  list-style: none;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.section--hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   SCROLL-DRIVEN ANIMATIONS SYSTEM
   Classes de base pour animations
   ============================================ */

/* Élément animé au scroll */
.scroll-animated {
  will-change: transform, opacity;
}

/* Fade in depuis le bas */
.scroll-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in depuis la gauche */
.scroll-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade in depuis la droite */
.scroll-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Zoom progressif */
.scroll-scale {
  transform: scale(0.9);
  opacity: 0;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.scroll-scale.is-visible {
  transform: scale(1);
  opacity: 1;
}

/* Effet parallax (géré par JS) */
.parallax {
  will-change: transform;
}

/* Sticky scroll transformations */
.sticky-scroll {
  position: sticky;
  top: 0;
  will-change: transform, opacity;
}

/* ============================================
   GLASSMORPHISM
   ============================================ */

.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-base);
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(247, 168, 40, 0.85) 0%, rgba(251, 189, 64, 0.9) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--color-white);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(247, 168, 40, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(247, 168, 40, 0.95) 0%, rgba(251, 189, 64, 1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(247, 168, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  color: var(--color-white);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(247, 168, 40, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.btn-accent {
  background: linear-gradient(135deg, rgba(247, 168, 40, 0.85) 0%, rgba(251, 189, 64, 0.9) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--color-white);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(247, 168, 40, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, rgba(247, 168, 40, 0.95) 0%, rgba(251, 189, 64, 1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(247, 168, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(247, 168, 40, 0.15);
}

/* ============================================
   NAVIGATION (Header)
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navigation);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 -0.5px 0 rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(247, 168, 40, 0.6)) drop-shadow(0 0 20px rgba(251, 189, 64, 0.35));
}

.nav__menu {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-primary);
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --container-padding: var(--space-5);
  }
}

@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --container-padding: var(--space-4);
  }

  h1 {
    font-size: var(--text-5xl);
  }

  .nav__menu {
    gap: var(--space-4);
  }
}

@media (max-width: 640px) {
  :root {
    --text-6xl: 2rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus visible pour navigation clavier */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Réduire les animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-20) 0 var(--space-8);
  padding-left: 80px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__logo {
  height: 64px;
  width: auto;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 0 8px rgba(247, 168, 40, 0.6)) drop-shadow(0 0 20px rgba(251, 189, 64, 0.35));
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-4);
}

.footer__location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer__location svg {
  display: inline;
  flex-shrink: 0;
}

.footer__title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-6);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__contact svg {
  display: inline;
  flex-shrink: 0;
  color: var(--color-primary);
}

.footer__address {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  padding: var(--space-8) 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  margin-bottom: var(--space-8);
}

.footer__social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer__social a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
  opacity: 1;
}

.footer__social svg {
  display: inline;
}

.footer__bottom {
  text-align: center;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer__divider {
  margin: 0 var(--space-2);
  color: rgba(255, 255, 255, 0.2);
}

.footer__legal {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
  .footer__content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__location {
    justify-content: center;
  }

  .footer__contact li {
    justify-content: center;
  }
}

/* ============================================
   BURGER MENU (Mobile)
   ============================================ */

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav__burger.active span:nth-child(2) {
  opacity: 0;
}

.nav__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation mobile — remplacée par bottom nav, burger masqué */
@media (max-width: 768px) {
  /* Masquer le burger : la bottom nav assure la navigation */
  .nav__burger { display: none !important; }
  .nav__menu   { display: none !important; }
}
