/* ===============================================
   DK SUD SERRURERIE -- style.css
   Tokens + animations + nav structurel uniquement
   =============================================== */

:root {
  /* -- Couleurs -- */
  --color-primary:       #1e3a5f;
  --color-primary-dark:  #152b47;
  --color-primary-light: #2d5a9e;
  --color-accent:        #f59e0b;
  --color-accent-dark:   #d97706;
  --color-accent-green:  #16a34a;

  --color-bg:            #ffffff;
  --color-bg-alt:        #f4f6f9;
  --color-bg-dark:       #0f1923;

  --color-text:          #1a202c;
  --color-text-muted:    #6b7280;
  --color-border:        #e2e8f0;

  /* -- Typographie -- */
  --font-heading: 'Quicksand', 'Roboto Condensed', Arial, sans-serif;
  --font-body:    'Quicksand', 'Roboto', Arial, sans-serif;

  /* -- Layout -- */
  --max-width: 1200px;

  /* -- Ombres -- */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.16);
  --shadow-xl:  0 20px 40px rgba(0,0,0,0.15);

  /* -- Tokens standards -- */
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem;
  --text-lg: 1.125rem; --text-xl: 1.25rem; --text-2xl: 1.5rem;
  --text-3xl: 1.875rem; --text-4xl: 2.25rem; --text-5xl: 3rem; --text-6xl: 3.75rem;
  --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem;
  --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem;
  --space-3xl: 4rem; --space-4xl: 6rem;
  --radius-default: 6px; --radius-sm: 4px; --radius-md: 8px;
  --radius-lg: 12px; --radius-xl: 16px; --radius-full: 9999px;
}

/* -- Animations -- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0.5; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- Scroll reveal -- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 400ms; }
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* -- Navigation structurelle -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: var(--color-primary);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
  background-color: var(--color-primary-dark);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-desktop { display: none; align-items: center; }

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link--active {
  color: #fff;
  background-color: rgba(255,255,255,0.1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  flex-shrink: 0;
}

/* -- Menu mobile -- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background-color: var(--color-primary-dark);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Identité marque dans menu mobile */
.mobile-menu-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 4.5rem 1.5rem 1.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0.5rem;
}
.mobile-menu-brand-icon {
  width: 52px;
  height: 52px;
  background: rgba(245,158,11,0.12);
  border: 1.5px solid rgba(245,158,11,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.mobile-menu-brand-icon .icon {
  width: 1.6em;
  height: 1.6em;
}
.mobile-menu-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: #fff;
  line-height: 1;
}
.mobile-menu-brand-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  margin-top: 0.1rem;
}
.mobile-menu-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.3rem 0.85rem;
  background: rgba(22,163,74,0.1);
  border: 1px solid rgba(22,163,74,0.28);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.73rem;
  color: #4ade80;
  letter-spacing: 0.04em;
}
.mobile-menu-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  min-height: 56px;
}
.mobile-nav-link:hover,
.mobile-nav-link--active {
  color: var(--color-accent);
  padding-left: 0.5rem;
}

.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--color-accent);
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
  min-height: 56px;
}
.mobile-menu-cta:hover {
  background: var(--color-accent-dark);
}
.mobile-menu-cta-sub {
  text-align: center;
  font-size: 0.78rem;
  margin-top: 0.6rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-body);
}

/* -- Icônes -- */
.icon {
  display: inline-block;
  width: 1.25em; height: 1.25em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.icon.hidden { display: none; }
.icon-sm { width: 1em;   height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2em;   height: 2em; }

/* -- Bouton téléphone sticky -- */
.sticky-phone-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1rem;
  z-index: 8900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(245,158,11,0.45);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: float 3.5s ease-in-out infinite;
}
.sticky-phone-btn span { display: none; }
.sticky-phone-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(245,158,11,0.55);
}

/* -- Responsive -- */
@media (min-width: 480px) {
  .sticky-phone-btn span { display: inline; }
}

@media (min-width: 768px) {
  .nav-toggle  { display: none; }
  .nav-desktop { display: flex; }
  .nav-inner {
    height: 80px;
    padding: 0 1.5rem;
  }
  .nav-logo img {
    height: 58px;
  }

  /* Footer : 4 colonnes sur md+ */
  .footer-main-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr !important;
    gap: 2.5rem !important;
  }

  /* Hero : 2 colonnes 58/42 */
  .hero-grid {
    grid-template-columns: 58fr 42fr !important;
  }

  /* Présentation : 2 colonnes */
  .pres-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Zones : 2 colonnes */
  .zones-grid {
    grid-template-columns: 1fr 1.4fr !important;
  }

  .footer-bottom {
    flex-direction: row !important;
    justify-content: space-between !important;
    text-align: left !important;
    align-items: center !important;
  }
}

@media (min-width: 1024px) {
  .nav-inner { height: 88px; }
  .nav-logo img { height: 64px; }
}

/* -- Bouton close mobile -- */
.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  padding: 0.5rem;
  line-height: 1;
  z-index: 1;
}

/* -- Accessibilité -- */
@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;
  }
}

body { margin: 0; }