@font-face {
  font-family: 'HeinekenMedelec';
  src: url('../fonts/HEINEKEN.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* FontAwesome 6 for Social Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  --brand: #3885AF;
  --brand-600: #0A56D6;
  --ink: #0F172A;
  --muted: #64748B;
  --bg: #F5F7FB;
  --card: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 6, 23, .06);
  --bp-lg: 1200px;
  --bp-md: 980px;
  --bp-sm: 720px;
  --bp-xs: 480px;
  --space: clamp(16px, 2vw, 28px);
  --vh: 1vh;
  --header-h: 0px;
}

/* Base Layout */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}



/* ==============================
   FADE-IN ANIMATION GLOBAL
============================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

.fade-in.visible {
  animation: fadeInUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
  }

  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

/* =====================================================
   BASE / RESET
===================================================== */

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding-top: clamp(60px, 10vw, 92px);
  /* Offset for fixed header */
  /* Hero will add additional offset automatically */
}

main {
  flex: 1 0 auto;
  /* Ensures main takes up available space to push footer down */
}

#site-footer {
  margin-top: auto;
  /* Push footer down if content is short */
}

/* =====================================================
   HEADER — CLEAN & STABLE (DESKTOP + MOBILE)
===================================================== */
#header-placeholder {
  height: 92px;
  /* MUST match final header height */
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin-top: 0 !important;
  z-index: 1000;
  background: #ffffff;
  min-height: clamp(60px, 10vw, 92px);
  /* Responsive height */
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.04);
  /* Subtle shadow for depth */
  will-change: transform;
  /* Performance optimization */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  width: 100%;
}

#site-header.is-hidden {
  transform: translateY(-100%);
}

.header {
  background: #ffffff;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#site-header.is-scrolled .header {
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.12);
}

.header__inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(10px, 2%, 20px) clamp(20px, 4%, 80px);
  /* Responsive padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
}

/* Logo */
.header .logo img {
  height: 48px;
  width: auto;
  transition: opacity 0.25s ease;
}

.header .logo img:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.logo img {
  transform: translateZ(0);
  /* Hardware acceleration */
}

/* =====================================================
   MAIN NAVIGATION (DESKTOP FIRST)
===================================================== */

.header-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}

.header-menu a {
  font-size: 15px;
  font-weight: 700;
  color: #0B5E92;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.header-menu a:hover {
  color: #064577;
}

/* Active underline */
.header-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: #0B5E92;
  transition: width 0.25s ease;
}

.header-menu a:hover::after,
.header-menu a.active::after {
  width: 100%;
}

/* Offset for anchor sections */
section[id] {
  scroll-margin-top: 90px;
}

/* =====================================================
   RESPONSIVE — MOBILE (NO BURGER)
===================================================== */

/* =====================================================
   RESPONSIVE — MOBILE
===================================================== */

/* =====================================================
   BURGER MENU BUTTON (MOBILE ONLY)
===================================================== */

.burger-menu {
  display: none;
  /* Hidden on desktop by default */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
  flex-direction: column;
  gap: 6px;
  /* Increased gap for better look */
  transition: transform 0.3s ease, background-color 0.2s;
  border-radius: 8px;
  /* Rounded touch target */
}

.burger-menu:hover {
  background-color: rgba(11, 94, 146, 0.08);
  /* Subtle blue tint on hover */
}

.burger-bar {
  width: 28px;
  /* Slightly wider */
  height: 3px;
  background-color: #0B5E92;
  /* Brand Blue */
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* =====================================================
   RESPONSIVE — MOBILE
===================================================== */

@media (max-width: 900px) {

  .header__inner {
    justify-content: space-between;
    padding: clamp(10px, 1.5%, 16px) clamp(12px, 3%, 40px);
  }

  #site-header {
    min-height: clamp(55px, 8vw, 80px);
  }

  /* Hide desktop menu on mobile */
  .header-menu {
    display: none;
  }

  /* Show burger menu on mobile */
  .burger-menu {
    display: flex;
  }
}

@media (max-width: 480px) {
  #site-header {
    min-height: clamp(50px, 7vw, 70px);
  }

  .header__inner {
    padding: clamp(8px, 1%, 12px) clamp(10px, 2%, 20px);
    gap: clamp(12px, 2vw, 20px);
  }

  .header .logo img {
    height: clamp(38px, 10vw, 48px);
  }
}

/* =====================================================
   PAGE HERO (PREMIUM GRADIENT BLUE - STANDARDIZED)
===================================================== */
.page-hero {
  /* Premium Blue Gradient */
  background: linear-gradient(135deg, #021B38 0%, #0B5E92 50%, #3885AF 100%);
  color: #fff;
  min-height: 35vh;
  padding: clamp(40px, 8%, 70px) clamp(20px, 5%, 40px);
  /* Reduced from 45vh/100px */
  margin: 0;
  margin-top: clamp(60px, 10vw, 92px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.page-hero .container,
.page-hero .hero-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.03em;
}

.page-hero p {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  opacity: 0.95;
  max-width: 700px;
  margin: 8px 0 0;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.page-hero .hero-kicker {
  /* hide small kicker across all heroes - removed per design */
  display: none !important;
}

@media (max-width: 960px) {
  .page-hero {
    min-height: 32vh;
    padding: clamp(40px, 7%, 60px) clamp(15px, 3%, 24px);
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
  }
}

@media (max-width: 760px) {
  .page-hero {
    min-height: 28vh;
    padding: clamp(35px, 6%, 50px) clamp(12px, 2.5%, 20px);
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
}

/* =====================================================
   SPLIT HERO LAYOUT (References, Recrutement, etc.)
===================================================== */
.page-hero.split-hero .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.page-hero.split-hero h1 {
  text-align: center;
  padding-left: 0;
  margin-bottom: 12px;
}

.page-hero.split-hero .hero-text-right {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.page-hero.split-hero .hero-text-right p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 960px) {
  .page-hero.split-hero .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .page-hero.split-hero h1 {
    text-align: center;
  }

  .page-hero.split-hero .hero-text-right {
    align-items: center;
    text-align: center;
  }
}

/* Hero Button */
.hero-cta {
  margin-top: 15px;
}

.hero-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #0B5E92;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background-color: #f0f9ff;
}

/* Burger animation to X when active */
.burger-menu.active .burger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger-menu.active .burger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =====================================================
   MOBILE DRAWER (PREMIUM DESIGN)
===================================================== */

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  /* Full width for immersive feel, or keep 300px if preferred. Let's go mostly full on mobile */
  max-width: 360px;
  height: 100vh;

  /* Glassmorphism Background */
  background: rgba(2, 6, 23, 0.3);
  /* High transparency */
  backdrop-filter: blur(24px);
  /* Strong frost */
  -webkit-backdrop-filter: blur(24px);

  border-left: 1px solid rgba(255, 255, 255, 0.15);
  /* Glass edge */
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Smooth easing */

  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center links vertically */
  padding: clamp(20px, 4%, 40px);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Links Typography */
.drawer-nav a {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  /* Muted white start */
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateX(20px);
  /* Start slightly off */
  opacity: 0;
  /* Hidden for animation */
}

/* Active State - Glow/Highlight */
.drawer-nav a.active {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(56, 133, 175, 0.6);
  padding-left: 10px;
  border-left: 3px solid #3885AF;
}

/* Hover State */
.drawer-nav a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

/* Entry Animations */
.mobile-drawer.active .drawer-nav a {
  animation: slideInFade 0.5s forwards;
}

/* Stagger delays manually for 6 items */
.mobile-drawer.active .drawer-nav a:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-drawer.active .drawer-nav a:nth-child(2) {
  animation-delay: 0.15s;
}

.mobile-drawer.active .drawer-nav a:nth-child(3) {
  animation-delay: 0.2s;
}

.mobile-drawer.active .drawer-nav a:nth-child(4) {
  animation-delay: 0.25s;
}

.mobile-drawer.active .drawer-nav a:nth-child(5) {
  animation-delay: 0.3s;
}

.mobile-drawer.active .drawer-nav a:nth-child(6) {
  animation-delay: 0.35s;
}

@keyframes slideInFade {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Drawer Overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* Darker dim */
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}















/* ========= Hero ========= */
.hero {
  background: linear-gradient(180deg, #eaf1ff, transparent);
  padding: clamp(25px, 5%, 40px) 0;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 10px;
}

.hero .accent {
  color: var(--brand);
}

.hero p {
  color: var(--muted);
  margin: 0 0 20px;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--brand-600);
}




















/* ========= Cards ========= */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.features {
  padding: clamp(30px, 6%, 48px) 0;
}

/* ========= Footer ========= */
/* ========= Footer ========= */
footer,
#site-footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  flex-shrink: 0;
}

.footer {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgb(11, 94, 146) 0%, rgb(5, 56, 107) 50%, rgb(2, 6, 23) 100%);
  color: #ffffff;
  padding: 40px 0 50px;
  overflow: hidden;
}

/* Blueprint Grid Background */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Glowing Top Border Highlight */
.footer-highlight {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3885AF, transparent);
  box-shadow: 0 0 20px rgba(56, 133, 175, 0.6);
}

.footer .inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  text-align: center;
}

.footer-col h4 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
  position: relative;
  width: 100%;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background: var(--brand);
}

/* Brand Section */
.footer-logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand-text {
  font-family: 'HeinekenMedelec', sans-serif;
  font-size: 38px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  transition: all 0.3s ease;
  line-height: 1;
  letter-spacing: 0.5px;
}

.footer-brand-text:hover {
  color: #3885AF;
  text-shadow: 0 0 15px rgba(56, 133, 175, 0.4);
}

.footer-bg-icon {
  position: absolute;
  top: 60%;
  left: -250px;
  transform: translateY(-50%);
  width: 800px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.footer-bg-icon img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 5px;
}

.social-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

.social-btn:hover {
  background: rgba(56, 133, 175, 0.2);
  border-color: #3885AF;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(56, 133, 175, 0.4);
}

.social-btn:hover img {
  transform: scale(1.1);
}

/* Center Section */
.footer-col.links-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links-list {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
}

/* Contact Section */
.footer-contact-list {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0 auto;
}

.footer-col.contact-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-item:hover .contact-icon {
  background: #3885AF;
  transform: scale(1.1);
}

.contact-item:hover {
  color: #ffffff;
}

.contact-item i {
  color: #3885AF;
  font-size: 16px;
  width: 24px;
  height: 24px;
}

.contact-item:hover {
  color: #ffffff;
}

.contact-item:hover i {
  background: #3885AF;
  color: #fff;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  text-align: center;
}

.footer-copyright {
  font-weight: 500;
  opacity: 0.6;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Responsiveness */
@media (max-width: 900px) {
  .footer {
    padding: 60px 0 40px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .footer-bg-icon {
    width: 250px;
    left: 50%;
    top: 20%;
    transform: translate(-50%, -50%);
    opacity: 0.03;
  }

  .footer-col.links-col,
  .footer-col.contact-col {
    align-items: center;
  }

  .footer-links-list,
  .footer-contact-list {
    align-items: center;
    text-align: center;
  }
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  animation: fadeIn 0.4s ease;
}

.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  z-index: 10000;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.2);
  display: none;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  border: 1px solid rgba(11, 94, 146, 0.05);
}

.cookie-banner.active {
  display: flex;
  animation: modalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalIn {
  from {
    transform: translate(-50%, -40%);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.cookie-content h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #0B5E92;
  font-weight: 800;
}

.cookie-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.cookie-content a {
  color: #0B5E92;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-btn {
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  width: 100%;
}

.cookie-btn.accept {
  background: #0B5E92;
  color: #fff;
  box-shadow: 0 4px 12px rgba(11, 94, 146, 0.2);
}

.cookie-btn.accept:hover {
  background: #064577;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 94, 146, 0.3);
}

.cookie-btn.decline {
  background: #f1f5f9;
  color: #64748b;
}

.cookie-btn.decline:hover {
  background: #e2e8f0;
  color: #475569;
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 24px;
    width: 85%;
    border-radius: 20px;
  }
}

@media (max-width: 1000px) {
  .footer-bar {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-contact {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}