/* ═══════════════════════════════════════
   GAATPRO — Shared Stylesheet
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600;700;900&display=swap');

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-y: scroll; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #2a1a1a;
  background: #f5f0ed;
  line-height: 1.6;
}
h1, h2, h3, h4, .section-title {
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── Variables ─── */
:root {
  --dark:   #1a0505;
  --red:    #cc1111;
  --red-h:  #a50d0d;
  --light:  #f5f0ed;
  --white:  #ffffff;
  --text:   #2a1a1a;
  --gray:   #6b5b5b;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* ─── Navbar (verrouillée 75px total incl. border) ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 75px;
  min-height: 75px;
  max-height: 75px;
  box-sizing: border-box;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
  border-bottom: 3px solid var(--red);
}
.logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo-img {
  height: 44px;
  max-height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-fallback {
  background: var(--red);
  color: var(--white);
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.5rem;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 2px;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 75px; left: 0; right: 0;
  background: var(--dark);
  padding: 24px 5%;
  z-index: 999;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ─── Page Hero Banner ─── */
.page-hero {
  margin-top: 75px;
  height: 300px;
  display: flex;
  align-items: center;
  padding: 24px 5%;
  background: linear-gradient(to right, rgba(20,5,5,0.85) 50%, rgba(20,5,5,0.4) 100%),
    center/cover no-repeat;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--white);
  letter-spacing: 3px;
  line-height: 1.05;
}
.page-hero h1 span { color: var(--red); }
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-top: 16px;
  max-width: 500px;
}

/* ─── Sections ─── */
section { padding: 80px 5%; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  display: block;
}
.section-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-title span { color: var(--red); }
.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 580px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-h);
  border-color: var(--red-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204,17,17,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── Footer ─── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 5% 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; margin-top: 16px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
}

/* ─── Scroll-to-top ─── */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--red);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(204,17,17,0.4);
  transition: background .2s, transform .2s;
  z-index: 900;
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--red-h); transform: translateY(-3px); }

/* ─── Shared Responsive ─── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 56px 5%; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { height: 200px; }
}

/* ─── Accessibility ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ─── Cursor & interactivity ─── */
.logo { cursor: pointer; }
.btn { cursor: pointer; }
a { cursor: pointer; }
.scroll-top { cursor: pointer; }
.hamburger { cursor: pointer; }
.nav-links a { cursor: pointer; }
.footer-col ul li a { cursor: pointer; }

/* ─── Focus visible — keyboard navigation ─── */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn-primary:focus-visible { outline-color: var(--dark); }
nav a:focus-visible,
.mobile-menu a:focus-visible,
footer a:focus-visible { outline-color: var(--white); }

/* ─── Skip-to-content link ─── */
.skip-link {
  position: absolute;
  top: -60px;
  left: 8px;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2000;
  transition: top .2s;
}
.skip-link:focus {
  top: 80px;
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

/* ─── Footer contrast bump (≥ 4.5:1) ─── */
.footer-col ul li a { color: rgba(255,255,255,0.78); }
.footer-bottom { color: rgba(255,255,255,0.78); }

/* ─── Services responsive: keep 2 cols longer ─── */
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr !important; }
}
