/* ═══════════════════════════════════════════════════════
   BSO BÂTIMENT — Système visuel partagé
   Palette inspirée du logo : bleu marine profond, brique terracotta, crème
═══════════════════════════════════════════════════════ */

:root {
  /* Couleurs tirées du logo */
  --navy: #2C3E54;
  --navy-deep: #1E2C3E;
  --navy-soft: #3A5070;
  --brick: #C45E3A;
  --brick-dark: #A04A2C;
  --brick-light: #E07855;
  --cream: #F5EFE0;
  --cream-soft: #FAF6EC;
  --cream-warm: #EDE4D0;
  --ink: #1A1F2B;
  --ink-soft: #4A5568;
  --ink-mute: #6B7280;
  --line: #E3DCC9;
  --white: #FFFFFF;

  /* Fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--cream-soft);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

::selection { background: var(--brick); color: white; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy-soft); border-radius: 10px; }

/* Typography */
.font-display { font-family: var(--font-display); font-optical-sizing: auto; letter-spacing: -0.02em; }
.font-body { font-family: var(--font-body); }

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 28px; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brick);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--brick);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--brick);
  color: white;
  box-shadow: 0 4px 14px -2px rgba(196,94,58,0.4);
}
.btn-primary:hover {
  background: var(--brick-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(196,94,58,0.5);
}
.btn-dark {
  background: var(--navy);
  color: white;
}
.btn-dark:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; }
.btn-outline-light {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: white; color: var(--navy); border-color: white; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; }
.d-5 { transition-delay: 0.5s; }

/* Brick pattern — signature visuelle BSO */
.brick-pattern {
  background-image:
    linear-gradient(335deg, var(--brick) 23px, transparent 23px),
    linear-gradient(155deg, var(--brick) 23px, transparent 23px),
    linear-gradient(335deg, var(--brick) 23px, transparent 23px),
    linear-gradient(155deg, var(--brick) 23px, transparent 23px);
  background-size: 58px 58px;
  background-position: 0px 0, 0px 4px, 29px 29px, 29px 33px;
}

/* Scalloped / paper texture background */
.paper-grain {
  position: relative;
}
.paper-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.65 0 0 0 0 0.55 0 0 0 0 0.35 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* Marquee */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 35s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

/* Icon sizes */
.icon-sm { width: 20px; height: 20px; }
.icon-md { width: 28px; height: 28px; }
.icon-lg { width: 44px; height: 44px; }
.icon-xl { width: 64px; height: 64px; }

/* Float on hover */
.hover-lift { transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s cubic-bezier(0.23,1,0.32,1); }
.hover-lift:hover { transform: translateY(-6px); }

/* Forms */
.field {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  background: white;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: all 0.25s ease;
}
.field:focus { outline: none; border-color: var(--brick); background: var(--cream-soft); }
.field::placeholder { color: var(--ink-mute); }

/* Float CTA tel */
.tel-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  background: var(--brick);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(196,94,58,0.4);
  animation: pulseRing 2.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.tel-float:hover { transform: scale(1.08); }
.tel-float svg { width: 26px; height: 26px; }
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 6px 24px rgba(196,94,58,0.45), 0 0 0 0 rgba(196,94,58,0.45); }
  50% { box-shadow: 0 6px 24px rgba(196,94,58,0.55), 0 0 0 14px rgba(196,94,58,0); }
}
