/* ==========================================================================
   ElecteQ Group — Électricité et équipements
   Design System & Landing Page Stylesheet
   ========================================================================== */

:root {
  --bg-deep: #051324;
  --bg-main: #082243;
  --bg-surface: #0a2d59;
  --bg-capsule: rgba(9, 32, 60, 0.85);

  --color-yellow: #f6b71b;
  --color-yellow-light: #ffd54f;
  --color-yellow-glow: rgba(246, 183, 27, 0.45);

  --color-white: #ffffff;
  --color-text-muted: #c1d2e7;
  --color-text-dim: #7f99b8;

  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-active: rgba(246, 183, 27, 0.5);

  --font-main: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  --max-width: 980px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 30%, #0d386d 0%, #082243 45%, #051324 100%);
  background-attachment: fixed;
  color: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Screen Reader Utility
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Industrial Hazard Side Stripes
   -------------------------------------------------------------------------- */
.hazard-stripe {
  position: fixed;
  top: 55%;
  transform: translateY(-50%);
  width: 90px;
  height: 28px;
  background: repeating-linear-gradient(
    -55deg,
    var(--color-yellow),
    var(--color-yellow) 12px,
    #131d28 12px,
    #131d28 24px
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.hazard-stripe-left {
  left: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.hazard-stripe-right {
  right: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

@media (max-width: 768px) {
  .hazard-stripe {
    width: 45px;
    height: 18px;
    opacity: 0.6;
  }
}

/* --------------------------------------------------------------------------
   Ambient Glow Effects
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.ambient-glow-top {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(20, 80, 150, 0.35) 0%, transparent 70%);
}

.ambient-glow-center {
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(23, 95, 185, 0.28) 0%, transparent 65%);
}

/* --------------------------------------------------------------------------
   Page Container
   -------------------------------------------------------------------------- */
.page-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Brand Header & Logo
   -------------------------------------------------------------------------- */
.brand-header {
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease-out;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  max-width: 380px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

@media (max-width: 480px) {
  .brand-logo {
    max-width: 290px;
  }
}

/* --------------------------------------------------------------------------
   Hero Visual 3D Section
   -------------------------------------------------------------------------- */
.hero-visual-section {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0.5rem auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatIllustration 5s ease-in-out infinite alternate, fadeInUp 0.9s ease-out;
}

.illustration-glow-ring {
  position: absolute;
  width: 80%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(246, 183, 27, 0.12) 0%, rgba(20, 80, 160, 0.35) 40%, transparent 75%);
  filter: blur(40px);
  z-index: -1;
}

.illustration-picture {
  display: block;
  width: 100%;
}

.hero-illustration-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

@keyframes floatIllustration {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-8px);
  }
}

/* --------------------------------------------------------------------------
   Announcement Section (Headline & Subtitle)
   -------------------------------------------------------------------------- */
.announcement-section {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1s ease-out;
}

.announcement-title {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.title-white {
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.title-yellow {
  color: var(--color-yellow);
  text-shadow: 0 0 25px rgba(246, 183, 27, 0.45);
}

.announcement-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Services / Pillars Grid
   -------------------------------------------------------------------------- */
.services-pillars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 820px;
  width: 100%;
  margin: 0 auto 3rem;
  padding: 1.25rem 0;
  animation: fadeInUp 1.1s ease-out;
}

.pillar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  transition: transform 0.25s ease;
}

.pillar-item:hover {
  transform: translateY(-3px);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-yellow);
  filter: drop-shadow(0 0 12px var(--color-yellow-glow));
}

.pillar-svg {
  width: 36px;
  height: 36px;
}

.pillar-title {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.35;
  text-align: center;
}

.pillar-divider {
  width: 1px;
  height: 55px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
}

@media (max-width: 720px) {
  .services-pillars {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .pillar-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 100%
    );
  }

  .pillar-item {
    gap: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Contact Button / Capsule
   -------------------------------------------------------------------------- */
.contact-section {
  margin-bottom: 2.5rem;
  position: relative;
  animation: fadeInUp 1.2s ease-out;
}

.contact-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.85rem 2.2rem;
  background: var(--bg-capsule);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  color: var(--color-white);
  text-decoration: none;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.contact-capsule:hover,
.contact-capsule:focus-visible {
  border-color: var(--color-yellow);
  background: rgba(12, 42, 78, 0.95);
  box-shadow: 0 0 30px rgba(246, 183, 27, 0.4), 0 8px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px) scale(1.02);
  outline: none;
}

.contact-capsule:active {
  transform: translateY(0) scale(0.99);
}

.mail-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-yellow);
  filter: drop-shadow(0 0 6px var(--color-yellow-glow));
}

.mail-svg {
  width: 24px;
  height: 24px;
}

.contact-email {
  font-weight: 600;
}

.copy-toast {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(246, 183, 27, 0.95);
  color: #061628;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.copy-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   Footer Section
   -------------------------------------------------------------------------- */
.page-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.copyright {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   CSS Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-visual-section {
    animation: none;
  }
}

