/* ============================================
   M-INCEND - Sécurité Incendie Tchad
   Design System & Styles
   ============================================ */

/* === CSS Variables === */
:root {
  /* Brand Colors - Based on Logo */
  --color-primary: #D42027;
  /* Rouge vif du blason */
  --color-primary-dark: #A91A1F;
  --color-primary-light: #E84C52;

  --color-secondary: #F7A800;
  /* Orange/Doré du phénix */
  --color-secondary-dark: #D99200;
  --color-secondary-light: #FFBE33;

  --color-accent: #1E3A5F;
  /* Bleu marine du bouclier */
  --color-accent-dark: #152A45;
  --color-accent-light: #2D5A8A;

  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-off-white: #F8F9FA;
  --color-gray-100: #F1F3F5;
  --color-gray-200: #E9ECEF;
  --color-gray-300: #DEE2E6;
  --color-gray-400: #CED4DA;
  --color-gray-500: #ADB5BD;
  --color-gray-600: #6C757D;
  --color-gray-700: #495057;
  --color-gray-800: #343A40;
  --color-gray-900: #212529;
  --color-black: #0A0A0A;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  --gradient-hero: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 60%, #0D1B2A 100%);
  --gradient-fire: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow-red: 0 0 30px rgba(212, 32, 39, 0.3);
  --shadow-glow-orange: 0 0 30px rgba(247, 168, 0, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-white);
}

#wrapwrap {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gray-900);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-md);
}

.text-gradient {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-4xl) 0;
}

/* === Navigation === */
.navbar:not(.o_header_mobile) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar:not(.o_header_mobile) .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.navbar-brand img {
  height: 55px;
  width: auto;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
}

.navbar-brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}

.navbar-brand-tagline {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.navbar-link {
  font-weight: 500;
  color: var(--color-gray-700);
  position: relative;
  padding: var(--spacing-sm) 0;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-fire);
  transition: width var(--transition-base);
}

.navbar-link:hover {
  color: var(--color-primary);
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--spacing-sm);
}

.navbar-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-gray-800);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* === Hide old Odoo mobile nav === */
.o_header_mobile {
  display: none !important;
}

/* === Hide Odoo loading spinners === */
.o_loading_indicator,
.o_spinner,
header .fa-spinner,
header .fa-spin,
header .o_header_mobile~*:not(.mobile-nav-new):not(nav),
.oe_website_spinner {
  display: none !important;
}

/* === New Mobile Header Navbar === */
.mobile-nav-new {
  position: relative;
  background: #fff;
  z-index: 1050;
}

/* === Mobile hero title fix === */
@media (max-width: 767px) {

  .s_cover h1,
  .s_cover h1 font,
  .s_cover h1 span,
  .s_cover h1 strong,
  .s_cover h1 a,
  .s_cover h1 a font,
  .s_cover h1 a span,
  section h1,
  section h1 font,
  section h1 span,
  section h1 strong,
  section h1 a,
  section h1 a font,
  section h1 a span {
    font-size: 36px !important;
    text-align: center !important;
    word-break: break-word;
  }
}

.o_header_mobile .navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

/* === Custom Mobile Slide Menu === */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #fff !important;
  z-index: 9999 !important;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  display: none;
}

.mobile-menu-panel.open {
  display: flex !important;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  padding: 0 0.5rem;
}

.mobile-menu-body {
  padding: 1rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list>li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  background: #fdf6e3;
  color: #9e820a;
}

.mobile-menu-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.mobile-menu-arrow.open {
  transform: rotate(180deg);
}

.mobile-menu-sub {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fafafa;
}

.mobile-menu-sub.open {
  max-height: 500px;
}

.mobile-menu-sub li a {
  display: block;
  padding: 0.65rem 1.5rem 0.65rem 2.5rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  border-top: 1px solid #f0f0f0;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu-sub li a:hover {
  background: #fdf6e3;
  color: #9e820a;
}

.mobile-menu-contact {
  padding: 1.5rem;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.mobile-menu-contact a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.mobile-menu-contact a i {
  color: #9e820a;
  width: 1.2em;
  text-align: center;
}

.mobile-menu-contact a:hover {
  color: #9e820a;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--color-gray-900);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-orange);
}

.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-accent);
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: 1.125rem;
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 50%;
  animation: float-up 8s infinite ease-in-out;
  opacity: 0;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: rgba(247, 168, 0, 0.15);
  border: 1px solid rgba(247, 168, 0, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xl);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(247, 168, 0, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(247, 168, 0, 0.4);
  }
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-title {
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-accent {
  color: var(--color-secondary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 600px;
  z-index: 1;
  opacity: 0.15;
}

.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 0 60px rgba(247, 168, 0, 0.3));
  animation: float 6s infinite ease-in-out;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.hero-stats {
  display: flex;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--spacing-xs);
}

/* === Section Headers === */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-3xl);
}

.services-bg-badge {
  position: absolute;
  top: 8%;
  width: 320px;
  height: auto;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.services-bg-badge-right {
  right: 3%;
}

.services-bg-badge-left {
  left: 3%;
  transform: scaleX(-1);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: rgba(212, 32, 39, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  color: var(--color-gray-600);
  font-size: 1.125rem;
}

/* === Services Section === */
.services {
  background: var(--color-off-white);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 32, 39, 0.03) 0%, transparent 70%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  border: 1px solid var(--color-gray-200);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-fire);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(212, 32, 39, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  transform: scale(1.1) rotate(-5deg);
}

.service-icon svg {
  width: 35px;
  height: 35px;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  transition: stroke var(--transition-base);
}

.service-card:hover .service-icon svg {
  stroke: var(--color-white);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-gray-900);
}

.service-description {
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.service-feature {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--color-gray-700);
}

.service-feature svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-secondary);
}

/* === Success Stories / Carousel === */
.success-stories {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.success-stories .section-header {
  color: var(--color-white);
}

.success-stories .section-badge {
  background: rgba(247, 168, 0, 0.2);
  color: var(--color-secondary);
}

.success-stories .section-title {
  color: var(--color-white);
}

.success-stories .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-smooth);
}

.carousel-slide {
  min-width: 100%;
  padding: 0 var(--spacing-lg);
}

.story-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.story-content {
  color: var(--color-white);
}

.story-quote {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
  position: relative;
  padding-left: var(--spacing-xl);
}

.story-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  color: var(--color-secondary);
  font-family: Georgia, serif;
  line-height: 1;
}

.story-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.story-author-avatar {
  width: 60px;
  height: 60px;
  background: var(--gradient-fire);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-white);
}

.story-author-info h4 {
  color: var(--color-white);
  font-size: 1.1rem;
}

.story-author-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-gray-800);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--color-white);
}

.carousel-btn:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: scale(1.1);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.carousel-dots {
  display: flex;
  gap: var(--spacing-sm);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all var(--transition-base);
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--color-secondary);
  transform: scale(1.2);
}

/* === Contact Section === */
.contact {
  position: relative;
  background: var(--color-off-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 100px;
}

.contact-info h2 {
  margin-bottom: var(--spacing-lg);
}

.contact-info-text {
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-2xl);
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-white);
}

.contact-item-content h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-gray-900);
}

.contact-item-content p {
  color: var(--color-gray-600);
  margin-bottom: 0;
}

.contact-item-content a {
  color: var(--color-primary);
  font-weight: 500;
}

.contact-item-content a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-gray-200);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-group label {
  font-weight: 600;
  color: var(--color-gray-700);
  font-size: 0.9rem;
}

.form-group label span {
  color: var(--color-primary);
}

.form-control {
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: all var(--transition-base);
  background: var(--color-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(212, 32, 39, 0.1);
}

.form-control::placeholder {
  color: var(--color-gray-400);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  margin-top: 2px;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.form-checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-submit {
  margin-top: var(--spacing-md);
}

.form-submit .btn {
  width: 100%;
}

.form-message {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  display: none;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
  display: block;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: block;
}

/* === Footer === */
.footer {
  background: var(--color-gray-900);
  color: var(--color-white);
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-brand img {
  height: 70px;
  margin-bottom: var(--spacing-lg);
}

.footer-brand p {
  color: var(--color-gray-400);
  margin-bottom: var(--spacing-lg);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
}

.footer-column h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-fire);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-links a {
  color: var(--color-gray-400);
  transition: all var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-gray-500);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-bottom-links a {
  color: var(--color-gray-500);
}

.footer-bottom-links a:hover {
  color: var(--color-secondary);
}

/* === SMTP Settings Modal === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in 0.3s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: var(--spacing-xl);
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: var(--color-gray-200);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--spacing-xl);
}

.modal-footer {
  padding: var(--spacing-xl);
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .story-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--spacing-xl);
    gap: var(--spacing-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .navbar-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    position: relative;
    top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
}

/* === Animations on Scroll === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === Utility Classes === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Captcha Styles === */
.captcha-group {
  margin-bottom: var(--spacing-lg);
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.captcha-image {
  border-radius: var(--radius-md);
  border: 2px solid var(--color-gray-300);
  height: 50px;
  width: auto;
}

.captcha-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-gray-100);
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-gray-600);
}

.captcha-refresh:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: rotate(180deg);
}

.captcha-refresh svg {
  width: 20px;
  height: 20px;
}

/* --- Swiper Hero Customizations --- */

/* Navigation Arrows */
.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next {
  color: #fff !important;
  /* Force white color */
  width: 60px;
  /* Larger touch area */
  height: 60px;
  margin-top: -30px;
  /* Center alignment adjustment if needed */
  transition: transform 0.3s ease;
}

.heroSwiper .swiper-button-prev:hover,
.heroSwiper .swiper-button-next:hover {
  transform: scale(1.1);
  /* Slight grow on hover */
}

/* Thicker Arrow Icons */
.heroSwiper .swiper-button-prev::after,
.heroSwiper .swiper-button-next::after {
  font-size: 2.5rem;
  /* Bigger icon size */
  font-weight: 900;
  /* Bold/Thick stroke */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  /* Shadow for visibility */
}

/* Reposition Arrows (Margins) */
.heroSwiper .swiper-button-prev {
  left: 40px !important;
}

.heroSwiper .swiper-button-next {
  right: 40px !important;
}

/* Pagination Indicators (Dashes) */
.heroSwiper .swiper-pagination-bullet {
  width: 35px !important;
  /* Wide dash */
  height: 6px !important;
  /* Thickness */
  border-radius: 4px !important;
  /* Rounded corners */
  background: rgba(255, 255, 255, 0.5) !important;
  /* Semi-transparent white */
  opacity: 1 !important;
  margin: 0 6px !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Active Indicator */
.heroSwiper .swiper-pagination-bullet-active {
  width: 55px !important;
  /* Slightly longer active dash */
  background: #fff !important;
  /* Solid white */
  opacity: 1 !important;
}

/* Fix Parallax (background-attachment: fixed) in Swiper */
.heroSwiper .swiper-wrapper {
  transform: none !important;
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
}

.heroSwiper .swiper-slide {
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  left: 0;
  top: 0;
  opacity: 0 !important;
  transition: opacity 1s ease-in-out !important;
  z-index: 0;
}

.heroSwiper .swiper-slide-active {
  opacity: 1 !important;
  z-index: 1;
}

/* Custom Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.anim-slide-left {
  animation: slideInLeft 1s ease-out forwards;
  display: inline-block;
  /* Ensure transform applies */
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile first */
  gap: 3rem;
  /* "Un bon coup" - significantly increased gap */
  padding: 2rem 0;
  width: calc(100% + 400px);
  /* Maximum expansion */
  margin-left: -200px;
  /* Touching visual limits */
  margin-right: -200px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: #fff;
  border-radius: 32px;
  /* PLUS ARRONDIE - Matches reference (approx 30px+) */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 2rem;
  border: 1px solid #f0f0f0;
  /* Subtle border */
  padding: 0;
  /* Ensure no padding around image */
}

.service-card.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card-img-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  /* Wider aspect ratio closer to reference */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-bottom: 1px solid #f0f0f0;
  /* Optional separation */
}

.service-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* IMAGE HEADER QUI COUVRE */
  object-position: center;
  transition: transform 0.7s ease;
  transform: scale(1.15);
  /* Zoomed default as per target */
}

.service-card-img-wrapper img.zoom-reduced {
  transform: scale(1.05);
  /* Petit zoom out d'origine */
  object-position: center 20%;
  /* Slight vertical adjustment if needed */
}

.service-card-img-wrapper img.zoom-logo {
  transform: scale(0.65);
  /* Bien moins zoomé pour le logo */
  object-fit: contain;
  /* Ensure logo isn't cropped */
  background-color: transparent;
}

.service-card:hover .service-card-img-wrapper img {
  transform: scale(1.25);
}

.service-card-body {
  padding: 2.5rem 2rem;
  /* Reduced horizontal padding slightly, kept vertical generous */
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  /* Revert to Left Align (reference is ragged right) */
  justify-content: flex-start;
}

.service-card-title {
  display: block;
  font-size: 3.2rem;
  /* Plus grand encore */
  font-weight: 600;
  margin-bottom: 1rem;
  color: #9e820a;
  text-decoration: none;
  line-height: 1.05;
  /* Tighter line height */
  letter-spacing: -1px;
  text-align: left;
  /* Keep title left-aligned for readability */
}

.service-card-title:hover {
  color: #bfa030;
  /* Lighter on hover */
}

.service-card-text {
  color: #4a4a4a;
  /* POLICE PLUS VOYANTE - Darker grey */
  font-size: 1.3rem;
  /* Larger font size */
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 0;
  opacity: 0.9;
}

/* Slide Overlay Animations */
/* Slide 2 Overlay */
/* Slide Animate Left */
.slide-animate-left {
  opacity: 0;
  transform: translateX(-800px);
  transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-animate-left.visible,
.swiper-slide-active .slide-animate-left {
  opacity: 1;
  transform: translateX(0);
}

/* Slide Animate Right */
.slide-animate-right {
  opacity: 0;
  transform: translateX(800px);
  transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-animate-right.visible,
.swiper-slide-active .slide-animate-right {
  opacity: 1;
  transform: translateX(0);
}

/* Slide 3 Overlay - Handles translateY offset */
.slide-animate-right-offset {
  opacity: 0;
  transform: translate(800px, -180px);
  /* Start from far right, keep vertical offset */
  transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.swiper-slide-active .slide-animate-right-offset {
  opacity: 1;
  transform: translate(0, -180px);
  /* End at original position */
}

.form-message {
  font-size: 16px;
  font-weight: 500;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}