/**
 * BRA Website - Styles Premium
 * Couleurs: #0e176a (bleu), #b49f40 (or), blanc prédominant
 * Police: Inter
 */

/* ==========================================
   VARIABLES & RESET
========================================== */

:root {
  /* Couleurs principales */
  --color-primary: #0e176a;
  --color-primary-rgb: 14, 23, 106;
  --color-primary-light: #1c2b8c;
  --color-primary-dark: #050824;

  --color-accent: #b49f40;
  --color-accent-rgb: 180, 159, 64;
  --color-accent-light: #d4c062;
  --color-accent-dark: #8c7a2e;

  /* Neutres */
  --color-white: #ffffff;
  --color-off-white: #f8f9fa;
  --color-surface: #ffffff;
  --color-light-gray: #f2f4f8;
  --color-gray: #e6e8ec;
  --color-mid-gray: #9ca3af;
  --color-dark-gray: #4b5563;
  --color-text: #1f2937;
  --color-black: #111827;

  /* Feedback */
  --color-success: #28a745;
  --color-error: #dc3545;

  /* Typographie */
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 200ms var(--ease-out-expo);
  --transition-normal: 400ms var(--ease-out-expo);
  --transition-slow: 800ms var(--ease-out-expo);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(14, 23, 106, 0.05);
  --shadow-md: 0 8px 16px rgba(14, 23, 106, 0.08);
  --shadow-lg: 0 16px 32px -4px rgba(14, 23, 106, 0.12);
  --shadow-xl: 0 20px 50px rgba(14, 23, 106, 0.15);
  --shadow-glow: 0 0 20px rgba(180, 159, 64, 0.3);

  /* Layout */
  --container-width: 1280px;
  --header-height: 90px;
}

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

html {
  scroll-behavior: smooth;
  font-feature-settings: "cv11", "ss01";
  overflow-x: clip; /* clip évite le scroll container sur Android (contrairement à hidden) */
  max-width: 100%;
  -webkit-text-size-adjust: 100%; /* bloque le font-boosting Android */
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

/* ==========================================
   UTILITY CLASSES
========================================== */

.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
   ANIMATIONS & KEYFRAMES
========================================== */

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

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

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

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes shimmer {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-10px);
  }

  50% {
    transform: translateY(0);
  }

  75% {
    transform: translateY(-5px);
  }
}

/* Scroll-reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(1) {
  transition-delay: 0.1s;
}

.fade-in:nth-child(2) {
  transition-delay: 0.2s;
}

.fade-in:nth-child(3) {
  transition-delay: 0.3s;
}

.fade-in:nth-child(4) {
  transition-delay: 0.4s;
}

.fade-in:nth-child(5) {
  transition-delay: 0.5s;
}

.fade-in:nth-child(6) {
  transition-delay: 0.6s;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Section header animation */
.section-header {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero animations */
.hero-subtitle {
  animation: fadeInDown 1s ease-out;
}

.hero-title {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
  animation: fadeIn 1s ease-out 0.4s both;
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-background {
  will-change: transform;
}

/* ==========================================
   TYPOGRAPHY
========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

strong {
  font-weight: 600;
  color: var(--color-primary);
}

/* ==========================================
   LAYOUT
========================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section:nth-child(even) {
  background: var(--color-light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin: 0.5rem auto 0;
  border-radius: var(--radius-full);
}

.section-description {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--color-dark-gray);
  max-width: 650px;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .section {
    padding: var(--spacing-xl) 0;
  }
}

/* ==========================================
   BUTTONS
========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Les spans enfants des boutons doivent toujours rester au-dessus du pseudo-élément ::after */
.btn > span {
  position: relative;
  z-index: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -4px rgba(14, 23, 106, 0.25);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-small {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

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

/* ==========================================
   NAVBAR (Glassmorphism)
========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  height: 76px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.navbar-logo a {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
}

/* Logo BRA — PNG officiel circulaire */
.logo-image {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
}

/* Logo BRE — discret dans la navbar */
.navbar-bre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-left: 1px solid rgba(180, 159, 64, 0.4);
  padding-left: 14px;
  margin-right: 4px;
}

.logo-bre-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  border-radius: 3px;
}

.logo-bre-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Masquer BRE sur mobile */
@media (max-width: 767px) {
  .navbar-bre {
    display: none;
  }
}

.logo-text {
  color: var(--color-white);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  transition: color var(--transition-normal);
}

.navbar.scrolled .logo-text {
  color: var(--color-primary);
}

.logo-text:hover {
  color: var(--color-accent);
}

.navbar-menu {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar.scrolled .nav-link {
  color: var(--color-dark-gray);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Make navbar CTA button adapt to scroll state */
.navbar-actions .btn-primary {
  box-shadow: none;
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-white);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.navbar.scrolled .burger-menu span {
  background: var(--color-primary);
}

.burger-menu[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger-menu[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: var(--color-white);
  padding: var(--spacing-xl);
  z-index: 9999;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

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

.mobile-menu-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--color-primary);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
}

.mobile-menu ul {
  list-style: none;
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-xl);
}

.mobile-menu ul li {
  margin-bottom: var(--spacing-sm);
}

.mobile-nav-link {
  display: block;
  padding: var(--spacing-md);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mobile-nav-link:hover {
  background: var(--color-light-gray);
}

@media (max-width: 992px) {
  .navbar-menu {
    display: none;
  }

  .burger-menu {
    display: flex;
  }
}

@media (max-width: 576px) {
  .navbar-actions .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .btn-icon {
    font-size: 1.1em;
  }

  .btn span:not(.btn-icon) {
    display: none;
  }
}

/* ==========================================
   HERO (Premium & Animated)
========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  max-height: 100vh;        /* ne jamais déborder du viewport */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: 72px;     /* espace pour la souris + respiration */
  overflow: hidden;
  background: var(--color-primary-dark);
  box-sizing: border-box;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Carousel slides */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  will-change: opacity;
}

.hero-carousel-slide.active {
  opacity: 1;
}

/* Dégradé noir par-dessus les images */
.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.70) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--spacing-xl);
}

.hero-content {
  color: var(--color-white);
  padding: var(--spacing-lg) 0;
}

.hero-subtitle {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(180, 159, 64, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(180, 159, 64, 0.3);
}

.hero-title {
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Hero secondary btn override for dark bg */
.hero-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-cta .btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Hero visual (desktop only) */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hero-card-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  width: 100%;
  max-width: 450px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-card-glass:hover {
  transform: rotateY(0) rotateX(0);
}

/* Hero Card Glass — inner components */
.hcg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.hcg-badge {
  background: rgba(180, 159, 64, 0.2);
  color: var(--color-accent-light);
  border: 1px solid rgba(180, 159, 64, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hcg-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.hcg-location svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.hcg-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hcg-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.hcg-icon-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(180, 159, 64, 0.4);
}

.hcg-icon-item svg {
  color: var(--color-accent-light);
  flex-shrink: 0;
}

.hcg-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-bottom: 1rem;
}

.hcg-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hcg-stat strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.hcg-stat span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hcg-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.hcg-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(180, 159, 64, 0.12);
  border: 1px solid rgba(180, 159, 64, 0.3);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-light);
  letter-spacing: 0.01em;
}

.hcg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    align-items: flex-start;
    padding-top: calc(var(--header-height) + 0.75rem);
    padding-bottom: 2rem;
  }

  .hero-content {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .hero-subtitle {
    margin-bottom: 0.75rem;
  }

  .hero-title {
    margin-bottom: 0.75rem;
  }

  .hero-description {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: calc(var(--header-height) + 0.5rem);
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* ==========================================
   SERVICES (Premium Cards)
========================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--spacing-lg);
}

.service-card {
  background: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-align: left;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 23, 106, 0.03);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--color-accent);
  transition: height var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--color-light-gray);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  animation: bounce 0.6s ease;
}

.service-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.service-description {
  color: var(--color-dark-gray);
  line-height: 1.7;
}

/* ==========================================
   PROJECTS SECTION
========================================== */

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.projects-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 992px) {
  .projects-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .projects-preview {
    grid-template-columns: 1fr;
  }
}

/* Project Card */
.project-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  cursor: pointer;
  position: relative;
  border: 1px solid var(--color-gray);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.project-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Card media area */
.project-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-light-gray);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out-expo);
}

.project-card:hover .project-image {
  transform: scale(1.07);
}

/* Hover overlay */
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 36, 0.85) 0%, rgba(5, 8, 36, 0.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transform: translateY(8px);
  transition: transform 0.35s var(--ease-out-expo);
}

.project-card:hover .project-card-cta {
  transform: translateY(0);
}

/* Photo count badge */
.project-card-count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

/* Card body */
.project-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.project-card-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--color-light-gray);
  color: var(--color-dark-gray);
}

.project-tag--platform {
  background: rgba(14, 23, 106, 0.07);
  color: var(--color-primary);
}

.project-tag--location {
  background: rgba(180, 159, 64, 0.1);
  color: var(--color-accent-dark);
}

.project-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.project-card-summary {
  font-size: 0.875rem;
  color: var(--color-dark-gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* Card placeholder (no image) */
.project-card-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  line-height: 0;
}

/* View all CTA bar */
.projects-cta-bar {
  display: flex;
  justify-content: center;
  padding-top: var(--spacing-sm);
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 16px rgba(14, 23, 106, 0.25);
}

.btn-view-all:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 23, 106, 0.3);
}

.btn-view-all svg {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.btn-view-all:hover svg {
  transform: translateX(4px);
}

/* Skeleton Loading */
.skeleton-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-gray);
  aspect-ratio: 4 / 3;
  position: relative;
}

.skeleton-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--color-light-gray) 0%,
    var(--color-gray) 40%,
    var(--color-light-gray) 80%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.6s ease-in-out infinite;
}

/* ==========================================
   PROCESS — NAVY DARK SECTION
========================================== */

.section-process-navy {
  position: relative;
  background: #0e176a;
  overflow: hidden;
  padding: 96px 0 100px;
}

/* Grain texture */
.spn-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Subtle radial glow top-left */
.section-process-navy::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(180,159,64,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle radial glow bottom-right */
.section-process-navy::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-process-navy .container {
  position: relative;
  z-index: 1;
}

/* Header */
.spn-header {
  text-align: center;
  margin-bottom: 64px;
}

.spn-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b49f40;
  margin-bottom: 14px;
}

.spn-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.spn-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Steps row — stretch force toutes les cartes à la même hauteur */
.spn-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Each step = wrapper flex colonne : card en haut, connecteur centré */
.spn-step {
  display: flex;
  flex-direction: row;
  align-items: stretch;   /* ← stretch, pas center */
  flex: 1;
  min-width: 0;
}

/* Dernière étape : ajoute un pseudo-espace de 48px à droite de la carte
   pour compenser l'absence de connecteur et garder toutes les cartes à la même largeur */
.spn-step--last {
  flex: 1;
}
.spn-step--last::after {
  content: '';
  display: block;
  width: 48px;
  flex-shrink: 0;
}

/* Card — height: 100% pour hériter de la hauteur du parent flex */
.spn-step-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 36px 28px 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
  cursor: default;
  box-sizing: border-box;
}

.spn-step-inner:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(180,159,64,0.5);
  transform: translateY(-5px);
}



/* Icon + number row */
.spn-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

/* Icon circle */
.spn-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(180,159,64,0.4);
  background: rgba(180,159,64,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b49f40;
  flex-shrink: 0;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.spn-step-inner:hover .spn-icon-wrap {
  background: rgba(180,159,64,0.18);
  border-color: #b49f40;
  color: #d4c062;
  box-shadow: 0 0 18px rgba(180,159,64,0.25);
}

/* Step number */
.spn-step-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.07);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  transition: color 0.35s ease;
  user-select: none;
}

.spn-step-inner:hover .spn-step-num {
  color: rgba(180,159,64,0.18);
}

/* Title */
.spn-step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.spn-step-inner:hover .spn-step-title {
  color: #d4c062;
}

/* Description — pousse vers le bas pour aligner les cartes */
.spn-step-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.52);
  transition: color 0.3s ease;
  margin-top: auto;
  padding-top: 8px;
}

.spn-step-inner:hover .spn-step-desc {
  color: rgba(255,255,255,0.7);
}

/* Arrow connector between steps — centré verticalement sur la hauteur de la carte */
.spn-connector {
  flex-shrink: 0;
  width: 48px;
  align-self: center;   /* ← centre sur la hauteur totale de la ligne */
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(180,159,64,0.3);
  transition: color 0.35s ease;
}

.spn-step:hover .spn-connector,
.spn-step:hover + .spn-step .spn-connector {
  color: rgba(180,159,64,0.6);
}

/* ── Entry animation ── */
.spn-step-inner {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

.spn-step:nth-child(1) .spn-step-inner { transition-delay: 0ms; }
.spn-step:nth-child(2) .spn-step-inner { transition-delay: 100ms; }
.spn-step:nth-child(3) .spn-step-inner { transition-delay: 200ms; }
.spn-step:nth-child(4) .spn-step-inner { transition-delay: 300ms; }

.spn-step-inner.spn-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .spn-step-inner {
    padding: 28px 20px 26px;
  }
  .spn-connector {
    width: 32px;
  }
}

@media (max-width: 768px) {
  .section-process-navy {
    padding: 72px 0 76px;
  }
  .spn-steps {
    flex-direction: column;
    gap: 16px;
  }
  .spn-step {
    flex-direction: column;
    align-items: stretch;
  }
  .spn-connector {
    display: none;
  }
  .spn-step-inner {
    padding: 28px 24px;
  }
  .spn-step-num {
    font-size: 2rem;
  }
}

/* ==========================================
   ZONE
========================================== */

.zone-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

@media (max-width: 768px) {
  .zone-content {
    grid-template-columns: 1fr;
  }
}

.zone-map iframe {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.zone-info h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
}

.zone-list {
  list-style: none;
  margin-bottom: var(--spacing-md);
}

.zone-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--spacing-sm);
  font-size: 1.125rem;
  color: var(--color-dark-gray);
  transition: all 0.3s ease;
}

.zone-list li svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.zone-list li:hover {
  padding-left: calc(var(--spacing-sm) + 10px);
  color: var(--color-primary);
}

.zone-note {
  padding: var(--spacing-md);
  background: var(--color-light-gray);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-md);
}

/* ==========================================
   ABOUT
========================================== */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-text p {
    font-size: 1rem;
  }

  .value-item {
    word-break: break-word;
  }

  .about-engagement {
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  color: var(--color-dark-gray);
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

@media (max-width: 576px) {
  .about-values {
    grid-template-columns: 1fr;
  }
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 500;
  border: 2px solid var(--color-light-gray);
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.value-item strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.value-item small {
  display: block;
  font-size: 0.875rem;
  color: var(--color-mid-gray);
  font-weight: normal;
  line-height: 1.4;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.about-image img,
.about-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.about-engagement {
  border-left: 4px solid var(--color-accent);
  padding: var(--spacing-md) var(--spacing-md);
  background: var(--color-light-gray);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--spacing-md) 0;
}

.about-engagement p {
  margin-bottom: 0;
  color: var(--color-dark-gray);
  font-style: italic;
}

.about-zone-note {
  margin-top: var(--spacing-md);
  padding: 0.75rem 1rem;
  background: rgba(14, 23, 106, 0.05);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--color-dark-gray);
}

.about-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-light-gray);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-gray);
  color: var(--color-mid-gray);
  text-align: center;
  padding: var(--spacing-lg);
}

.about-img-placeholder svg {
  color: var(--color-primary);
  opacity: 0.25;
}

.about-img-placeholder p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark-gray);
  margin-bottom: 0.25rem;
}

.about-img-placeholder small {
  font-size: 0.8rem;
  color: var(--color-mid-gray);
}

/* ==========================================
   CONTACT
========================================== */

.contact-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-xxl);
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-light-gray);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  resize: none;
  overflow-y: auto;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(14, 23, 106, 0.1);
}

.form-message {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-info-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(14, 23, 106, 0.07);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-primary);
}

.contact-info-item p,
.contact-info-item a {
  color: var(--color-dark-gray);
  line-height: 1.6;
}

/* ==========================================
   FOOTER
========================================== */

.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-style: italic;
}

/* Footer logo BRA */
.footer-logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

/* Footer BRE partenaire */
.footer-bre {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(180, 159, 64, 0.2);
}

.footer-bre-img {
  height: 20px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  border-radius: 2px;
}

.footer-bre-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.3;
}

/* Réseaux sociaux footer */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--color-accent);
}

.footer h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer ul li a,
.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.footer ul li a:hover,
.footer a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-contact-line svg {
  flex-shrink: 0;
  color: var(--color-accent);
  opacity: 0.85;
}

.footer-contact-line a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-contact-line a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* ==========================================
   MODALS
========================================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 36, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn 0.25s ease;
  z-index: 0;
}

/* ── MODAL 1 : LISTE (side panel from right) ── */
/* ─── Dialog box (shared) ─── */
.modal-dialog {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(5, 8, 36, 0.25);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.modal-dialog.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-dialog--detail {
  max-width: 780px;
}

/* Header */
.modal-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-gray);
  flex-shrink: 0;
}

.modal-dialog-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.2;
}

/* Close / Back buttons */
.modal-dialog-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gray);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-dialog-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: rotate(90deg);
}

/* Absolute close button on detail modal */
.modal-dialog--detail .modal-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  border-color: var(--color-gray);
}

.modal-dialog-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid var(--color-gray);
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-dialog-back:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateX(-2px);
}

/* Scrollable body */
.modal-dialog-body {
  flex: 1;
  min-height: 0; /* requis pour que overflow-y:auto fonctionne dans un flex column */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem;
}

.modal-dialog--detail .modal-dialog-body {
  padding: 0;
  overflow-y: auto;
}

/* ─── Projects grid (inside list modal) ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 500px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.projects-grid .project-card {
  opacity: 0;
  animation: cardEntrance 0.4s var(--ease-out-expo) forwards;
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Detail content (inside detail modal) ─── */
.detail-content {
  display: flex;
  flex-direction: column;
}

.detail-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-primary-dark);
  overflow: hidden;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .detail-media-wrap {
    aspect-ratio: 16 / 9;
    max-height: 210px; /* évite que l'image écrase l'espace texte sur petits écrans */
  }
  .modal {
    padding: 0.5rem 0.5rem 0;
    align-items: flex-end;
  }
  .modal-dialog {
    max-height: 92dvh; /* dvh évite le recalcul de la barre Safari */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

.detail-info {
  padding: 1.75rem 1.75rem 2rem;
}

.detail-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-mid-gray);
  margin-bottom: 0.75rem;
}

.detail-date svg { color: var(--color-accent); flex-shrink: 0; }

.detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.project-detail-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.project-detail-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.project-detail-text {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--color-dark-gray);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ─── Detail carousel (inside media wrap) ─── */
.detail-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.detail-carousel .carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.detail-no-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background var(--transition-fast);
}

.detail-carousel-btn:hover { background: rgba(0,0,0,0.6); }
.detail-carousel-btn:disabled { opacity: 0.2; cursor: not-allowed; }
.detail-carousel-btn--prev { left: 0.75rem; }
.detail-carousel-btn--next { right: 0.75rem; }

.detail-carousel-counter {
  display: none;
}

.detail-carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
}

.detail-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.detail-carousel-dot.active {
  background: white;
  width: 18px;
  border-radius: 3px;
}

/* ─── States ─── */
.projects-empty {
  text-align: center;
  color: var(--color-mid-gray);
  grid-column: 1 / -1;
  padding: var(--spacing-xl) 0;
}

.error-message {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--color-error);
}

.loading {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--color-mid-gray);
}

.spinner-large {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-gray);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto var(--spacing-md);
}

/* ==========================================
   ACCESSIBILITY
========================================== */

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

  /* Stoppe les animations en boucle (particules, scroll-mouse, etc.)
     mais NE touche PAS aux transitions hover — elles restent instantanées
     ce qui est acceptable, pas cassé. */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    /* On ne touche PAS transition-duration ici intentionnellement :
       les transitions hover gardent leur vitesse (court) */
  }

  /* Les éléments d'entrée au scroll doivent être immédiatement visibles
     sinon ils restent cachés (opacity:0 / translateY) sans jamais être révélés */
  .fade-in,
  .slide-in-left,
  .slide-in-right,
  .scale-in,
  .reveal,
  .spn-step-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Idem pour les classes ajoutées par JS */
  .fade-in:not(.visible),
  .reveal:not(.visible),
  .scale-in:not(.visible),
  .spn-step-inner:not(.spn-visible) {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================
   AMÉLIORATIONS PREMIUM — HERO
========================================== */

/* Particules CSS en fond du hero */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(180, 159, 64, 0.25);
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* Texte hero avec animation lettre par lettre */
.hero-title .word {
  display: inline-block;
  overflow: hidden;
}
.hero-title .char {
  display: inline-block;
  animation: charReveal 0.8s var(--ease-out-expo) both;
}
@keyframes charReveal {
  from { opacity: 0; transform: translateY(50%) rotate(5deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* Compteurs animés dans le Hero */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Scroll indicator hero */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 2;
  cursor: pointer;
  transition: color var(--transition-fast);
  animation: fadeIn 1s ease-out 1.5s both;
}
.hero-scroll-indicator:hover { color: var(--color-accent); }
.hero-scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}
.hero-scroll-mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  animation: scroll-mouse 1.5s ease-in-out infinite;
}
@keyframes scroll-mouse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%       { opacity: 0; transform: translateY(8px); }
}

/* ==========================================
   AMÉLIORATIONS PREMIUM — NAVIGATION
========================================== */

/* Indicateur section active */
.nav-link.nav-active {
  color: var(--color-accent) !important;
}
.nav-link.nav-active::after {
  width: 100% !important;
}

/* Pill de navigation active amélioré */
.navbar-menu .nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
}
.navbar-menu .nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(180, 159, 64, 0.08);
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.navbar-menu .nav-link:hover::before,
.navbar-menu .nav-link.nav-active::before {
  opacity: 1;
}

/* ==========================================
   AMÉLIORATIONS PREMIUM — SERVICES
========================================== */

/* Gradient border animé au hover */
.service-card {
  background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
              linear-gradient(135deg, transparent 60%, rgba(180,159,64,0)) border-box;
  border: 1px solid rgba(14, 23, 106, 0.06);
  transition: all var(--transition-normal), border-color 0.4s ease;
}
.service-card:hover {
  background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
              linear-gradient(135deg, rgba(180,159,64,0.5) 0%, rgba(14,23,106,0.3) 100%) border-box;
  border-color: transparent;
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

/* Icône service améliorée */
.service-icon {
  position: relative;
  transition: all var(--transition-normal);
}
.service-card:hover .service-icon {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 8px 24px rgba(14, 23, 106, 0.25);
  transform: translateY(-4px) rotate(-5deg);
  animation: none;
}
.service-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: border-color var(--transition-normal);
}
.service-card:hover .service-icon::after {
  border-color: var(--color-accent);
}

/* Numéro de position sur la carte */
.service-card .service-number {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(14, 23, 106, 0.04);
  line-height: 1;
  transition: color var(--transition-normal);
  letter-spacing: -0.05em;
  pointer-events: none;
}
.service-card:hover .service-number {
  color: rgba(180, 159, 64, 0.08);
}

/* ==========================================
   AMÉLIORATIONS PREMIUM — RÉALISATIONS
========================================== */

/* Overlay reveal au hover */
.project-card {
  isolation: isolate;
}
.project-image-wrapper {
  position: relative;
  overflow: hidden;
}
.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 8, 36, 0.85) 0%,
    rgba(5, 8, 36, 0.2) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-md);
}
.project-image-overlay-cta {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateY(10px);
  transition: transform var(--transition-normal);
}
.project-card:hover .project-image-overlay {
  opacity: 1;
}
.project-card:hover .project-image-overlay-cta {
  transform: translateY(0);
}

/* Tag plateforme amélioré */
.project-platform {
  background: linear-gradient(135deg, rgba(14,23,106,0.08), rgba(180,159,64,0.08));
  border: 1px solid rgba(14,23,106,0.08);
  font-weight: 600;
}



/* ==========================================
   AMÉLIORATIONS PREMIUM — CONTACT
========================================== */

/* Labels flottants */
.form-group {
  position: relative;
}
.form-group.has-floating-label label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1rem;
  color: var(--color-mid-gray);
  pointer-events: none;
  transition: all 0.2s var(--ease-out-expo);
  background: transparent;
  padding: 0 4px;
  font-weight: 500;
  z-index: 1;
}
.form-group.has-floating-label input:focus ~ label,
.form-group.has-floating-label input:not(:placeholder-shown) ~ label,
.form-group.has-floating-label textarea:focus ~ label,
.form-group.has-floating-label textarea:not(:placeholder-shown) ~ label {
  top: -0.6rem;
  left: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 700;
  background: var(--color-white);
}
.form-group.has-floating-label input,
.form-group.has-floating-label textarea {
  padding-top: 1.2rem;
}

/* Validation visuelle */
.form-group input.valid,
.form-group textarea.valid {
  border-color: var(--color-success);
  background: #f0fdf4;
}
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--color-error);
  background: #fff5f5;
}

/* Icône de validation */
.form-group .field-check {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  font-size: 1rem;
}
.form-group input.valid ~ .field-check,
.form-group textarea.valid ~ .field-check { opacity: 1; color: var(--color-success); }

/* Message de succès amélioré */
.form-message.success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 1px solid var(--color-success);
  border-left: 4px solid var(--color-success);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInUp 0.4s var(--ease-out-expo);
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bouton submit avec état loading amélioré */
.btn-submit-contact {
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

@media (max-width: 576px) {
  .btn-submit-contact {
    min-width: 0;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    white-space: normal;
    height: auto;
    line-height: 1.4;
  }

  .btn-submit-contact #form-btn-text {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    position: relative;
    z-index: 2;
  }
}
.btn-submit-contact.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: btn-shimmer 1s infinite;
}
@keyframes btn-shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* Cards infos contact améliorées */
.contact-info-item {
  position: relative;
  overflow: hidden;
  border-left: 3px solid transparent;
  transition: all var(--transition-normal);
}
.contact-info-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--color-accent);
  transition: height var(--transition-normal);
}
.contact-info-item:hover::before {
  height: 100%;
}
.contact-info-item:hover {
  border-left-color: transparent;
  transform: translateX(6px) translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================
   AMÉLIORATIONS PREMIUM — BOUTONS GLOBAUX
========================================== */

/* Magnetic button effect via JS (classe ajoutée dynamiquement) */
.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow var(--transition-normal) !important;
}

/* Ripple effect */
.btn {
  overflow: hidden;
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ==========================================
   AMÉLIORATIONS PREMIUM — SECTION TITLES
========================================== */

/* Underline animé sur les titres de section */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  width: 0;
  transition: width 0.8s var(--ease-out-expo) 0.3s;
}
.section-title.title-visible::after {
  width: 60px;
}

/* Ligne décorative gauche pour textes longs */
.section-description {
  position: relative;
}

/* ==========================================
   AMÉLIORATIONS PREMIUM — GLOBAL MISC
========================================== */

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-off-white); }
::-webkit-scrollbar-thumb {
  background: rgba(14, 23, 106, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(14, 23, 106, 0.3); }

/* Selection */
::selection {
  background: rgba(180, 159, 64, 0.25);
  color: var(--color-primary);
}

/* Ligne de séparation dorée décorative */
.gold-line {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-md);
}

/* Tag badge premium */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(180,159,64,0.12), rgba(14,23,106,0.08));
  border: 1px solid rgba(180,159,64,0.3);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
}

/* Footer gold accent dot */
.footer-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  margin: 0 8px;
  vertical-align: middle;
}

/* ==========================================
   MOBILE — Hero scroll indicator
========================================== */
@media (max-width: 768px) {
  .hero-scroll-indicator {
    display: none;
  }
}

/* ==========================================
   MOBILE — Services accordion
========================================== */
@media (max-width: 768px) {
  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .service-card {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid rgba(14, 23, 106, 0.08);
    overflow: visible;
    transform: none !important;
  }

  .service-card:last-child {
    border-bottom: none;
  }

  /* Hide the left accent bar on mobile */
  .service-card::before {
    display: none;
  }

  /* Accordion trigger row */
  .service-accordion-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    background: var(--color-surface);
    transition: background 0.2s ease;
  }

  .service-accordion-trigger:active {
    background: rgba(14, 23, 106, 0.04);
  }

  /* Icon bubble — smaller on mobile */
  .service-accordion-trigger .service-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin-bottom: 0;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    flex-shrink: 0;
  }

  .service-accordion-trigger .service-title {
    flex: 1;
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--color-primary);
  }

  .service-number {
    display: none;
  }

  /* Chevron indicator */
  .service-accordion-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: rgba(14, 23, 106, 0.4);
    transition: transform 0.3s ease, color 0.2s ease;
  }

  .service-card.is-open .service-accordion-chevron {
    transform: rotate(180deg);
    color: var(--color-accent);
  }

  /* Collapsible body */
  .service-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .service-card.is-open .service-accordion-body {
    max-height: 200px;
  }

  .service-accordion-body .service-description {
    padding: 0.5rem 1.5rem 1.25rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-dark-gray);
    line-height: 1.65;
    text-align: center;
  }
}

/* Desktop: hide accordion-only elements */
@media (min-width: 769px) {
  .service-accordion-chevron {
    display: none;
  }
  .service-accordion-trigger {
    display: contents; /* transparent wrapper on desktop */
  }
}



/* ==========================================
   HERO — iOS CLS fix + font-display
========================================== */

/* iOS Safari: évite le recalcul au rétractement de la barre d'URL */
.hero {
  min-height: 100svh; /* svh = small viewport height, stable sur iOS */
}

/* Fallback pour navigateurs sans svh */
@supports not (min-height: 100svh) {
  .hero {
    min-height: 100vh;
  }
}

/* font-display swap en CSS (renforce le &display=swap de l'URL) */
@font-face {
  font-display: swap;
}

/* ==========================================
   CTA INTERMÉDIAIRES
========================================== */

.section-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  padding-top: var(--spacing-xl);
}

.cta-banner-text {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark-gray);
  margin-bottom: var(--spacing-xs);
}

@media (max-width: 576px) {
  .section-cta {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  .section-cta .btn {
    width: 100%;
    max-width: 360px;
  }
}

/* ==========================================
   HONEYPOT anti-spam
========================================== */

.form-honeypot {
  display: none !important;
}

/* ==========================================
   RÉASSURANCE
========================================== */

.section-reassurance {
  padding: var(--spacing-md) 0;
  background: rgba(var(--color-primary-rgb), 0.03);
  border-top: 1px solid var(--color-gray);
  border-bottom: 1px solid var(--color-gray);
}

.reassurance-band {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  padding: 0.75rem var(--spacing-md);
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.45;
}

.reassurance-item + .reassurance-item {
  border-left: 1px solid var(--color-gray);
}

.reassurance-item-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.reassurance-item strong {
  color: var(--color-primary);
  font-weight: 700;
}

@media (max-width: 900px) {
  .reassurance-band {
    flex-wrap: wrap;
  }

  .reassurance-item {
    flex: 1 1 50%;
    min-width: 0;
  }

  .reassurance-item:nth-child(2n+1) {
    border-left: none;
  }

  .reassurance-item:nth-child(n+3) {
    border-top: 1px solid var(--color-gray);
  }
}

@media (max-width: 480px) {
  .reassurance-item {
    flex: 1 1 100%;
    border-left: none !important;
  }

  .reassurance-item + .reassurance-item {
    border-top: 1px solid var(--color-gray);
  }
}

/* ==========================================
   CAROUSEL — prefers-reduced-motion
========================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide {
    transition: none !important;
  }
  .hero-particle {
    animation: none !important;
    display: none;
  }
}

/* ==========================================
   NAVBAR — texte "Appeler" toujours visible
========================================== */

/* On ne cache plus le texte du bouton téléphone en mobile,
   seulement les spans texte des autres boutons nav */
@media (max-width: 576px) {
  .navbar-actions .btn-call span:not(.btn-icon) {
    display: inline !important;
  }
}

