/* ===========================================================
   SMARTNART — GLOBAL STYLESHEET
   =========================================================== */

/* === Variables === */
:root {
  --bg: #000;
  --text: #F4F4F4;
  --brand: #FFA21D;
  --brand-light: #FFD58A;
  --border: rgba(255, 255, 255, 0.08);
}

/* === Reset & Base === */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===========================================================
   HEADER / NAV
   =========================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand img {
  height: 60px; /* agrandi sur desktop */
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 18px rgba(255, 162, 29, 0.6));
}

.accent { color: var(--brand); }

.menu {
  display: flex;
  gap: 22px;
  align-items: center;
  transition: all 0.3s ease;
}

.menu a {
  color: var(--text);
  opacity: 0.9;
  font-weight: 600;
}

.menu a:hover { opacity: 1; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.btn--brand {
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  color: #111;
  box-shadow: 0 0 20px rgba(255, 162, 29, 0.4);
}
.btn--brand:hover { transform: translateY(-2px); }

/* === BURGER === */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  width: 35px; height: 35px;
  border-radius: 6px;
  transition: 0.3s ease;
}

.burger div {
  width: 25px; height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: 0.3s ease;
}

.burger.open div:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.burger.open div:nth-child(2) { opacity: 0; }
.burger.open div:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* === MENU MOBILE === */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.98);
    border-top: 1px solid var(--border);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
  }
  .menu.open {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    padding: 18px 0;
    animation: fadeSlide 0.4s ease forwards;
  }
  .menu a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(-10px);
    animation: linkFade 0.5s ease forwards;
  }
  .menu.open a:nth-child(1) { animation-delay: .1s; }
  .menu.open a:nth-child(2) { animation-delay: .2s; }
  .menu.open a:nth-child(3) { animation-delay: .3s; }
  .menu.open a:nth-child(4) { animation-delay: .4s; }
  .burger { display: flex; }
}

@keyframes fadeSlide {
  0% { transform: translateY(-15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes linkFade { to { opacity: 1; transform: translateY(0); } }

/* ===========================================================
   HERO
   =========================================================== */

.hero-banner {
  position: relative;
  height: 85vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  background: #000;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45) blur(2px);
  animation: bgPulse 14s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { filter: brightness(0.45) blur(2px); transform: scale(1); }
  50% { filter: brightness(0.55) blur(3px); transform: scale(1.03); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.9));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  color: #fff;
}

.hero-logo {
  width: 560px;
  margin: 0 auto 55px;
  filter:
    drop-shadow(0 0 60px rgba(255,255,255,0.9))
    drop-shadow(0 0 100px rgba(255,162,29,0.6))
    drop-shadow(0 0 150px rgba(255,162,29,0.3));
  animation: logoGlow 5s ease-in-out infinite;
}
@keyframes logoGlow {
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.05)}
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 2px 25px rgba(0,0,0,0.6);
}

.hero-sub {
  font-size: 1.4rem;
  color: #eee;
  line-height: 1.7;
  margin-bottom: 45px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.6);
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Responsive Hero === */
@media (max-width: 1024px) {
  .hero-logo { width: 420px; }
  .hero-title { font-size: 3rem; }
  .hero-sub { font-size: 1.2rem; }
}

@media (max-width: 768px) {
  .hero-banner { height: 75vh; min-height: 460px; }
  .hero-logo { width: 340px; margin-bottom: 35px; }
  .hero-title { font-size: 2.2rem; }
  .hero-sub { font-size: 1.15rem; margin-bottom: 30px; }
}

/* ===========================================================
   SECTIONS
   =========================================================== */

section {
  padding: 70px 0;
  width: 100%;
  overflow-x: hidden;
}
.section-title { font-size: 1.8rem; margin-bottom: 10px; }
.section-sub { color: #aaa; margin-bottom: 28px; }

/* ===========================================================
   FOOTER
   =========================================================== */

footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #ccc;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 20px;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  align-items: start;
  justify-items: center;
  margin-bottom: 40px;
}

.footer-brand img {
  width: 32px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.25));
  opacity: 0.8;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}
.footer-brand img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255,162,29,0.4));
  opacity: 1;
}

.footer-brand h3 { font-size: 1.3rem; margin-bottom: 8px; color: #fff; }
.footer-brand p { font-size: 0.95rem; color: #aaa; line-height: 1.5; max-width: 220px; }

.footer-links, .footer-contact { text-align: left; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-links a {
  position: relative;
  padding: 0 10px;
  color: #bbb;
  font-size: 0.95rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand-light);
  text-shadow: 0 0 8px rgba(255,162,29,0.5);
}

.footer-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 16px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  box-shadow: 0 0 8px rgba(255,162,29,0.45);
  border-radius: 2px;
}

.footer-contact p { margin: 6px 0; font-size: 0.95rem; }
.footer-contact a { color: var(--brand); font-weight: 600; transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--brand-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding-top: 18px;
  font-size: 0.9rem;
  color: #888;
}

/* Responsive footer */
@media (max-width: 768px) {
  footer { padding-top: 50px; }
  .footer-grid { text-align: center; gap: 25px; }
  .footer-links, .footer-contact { text-align: center; }
  .footer-links { flex-direction: column; align-items: center; }
  .footer-links a:not(:last-child)::after { display: none; }
  .footer-brand img { width: 24px; margin-bottom: 6px; }
  .footer-brand h3 { font-size: 1.1rem; }
  .footer-brand p { font-size: 0.9rem; }
}

/* ===========================================================
   ACCESSIBILITY
   =========================================================== */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
