/* BASE — Reset, Variables CSS, Typographie*/

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

:root {
  /* Client = #FE7314 · Commerçant = #3B6FFF */
  --orange: #FE7314;
  --orange-light: #FEA20F;
  --orange-glow: rgba(254, 115, 20, 0.18);
  --blue: #3B6FFF;
  --blue-light: #6B93FF;
  --blue-glow: rgba(59, 111, 255, 0.22);
  --yellow: #FEA20F;
  --dark: #1a1208;
  --dark2: #2c1f10;
  --dark3: #3d2c18;
  --cream: #f6f8ff;
  /* Sections : léger décalage pour le rythme, toujours sur la même ambiance */
  --cream2: #f3f6ff;
  --green: #06d6a0;
  --text-muted: #6b5d4f;
  --line-subtle: rgba(26, 18, 8, 0.12);
  --border-soft: rgba(26, 18, 8, 0.2);
  --radius: 20px;
  --transition: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typographie */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'Inter', 'DM Sans', sans-serif;
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-y;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
  background-color: #eef2ff;
  background-image:
    radial-gradient(ellipse 70% 55% at 8% -5%, rgba(59, 111, 255, 0.22), transparent 58%),
    radial-gradient(ellipse 60% 50% at 100% 8%, rgba(254, 115, 20, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(59, 111, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 70%, rgba(254, 162, 15, 0.10), transparent 55%),
    linear-gradient(180deg, #f8f9ff 0%, #f3f6ff 40%, #fff8f3 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 62%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.5px);
  background-size: 48px 48px, 64px 64px;
  opacity: 0.35;
}

#main {
  background: transparent;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Mobile : bloque le pan horizontal + le double-tap zoom */
@media (max-width: 991px) {
  html,
  body {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  .hero,
  .hero-layout-split,
  .section {
    overflow-x: hidden;
    max-width: 100%;
  }
}

body.rtl {
  font-family: 'Noto Sans Arabic', var(--font-body);
}

/* ── TITRES ── */
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.92;
  letter-spacing: 1px;
  margin-bottom: 28px;
  text-transform: uppercase;
  animation: fadeUp .7s .1s ease both;
}

/* Ne pas cibler .hero-title ni .contact-hero-title : styles dédiés dans hero.css / contact.css */
h1:not(.hero-title):not(.contact-hero-title) span {
  color: var(--orange);
  display: block;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 1px;
  line-height: 0.95;
  margin-bottom: 20px;
  text-transform: uppercase;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
}

p {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
}

/* ── ANIMATIONS GLOBALES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
