/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
  /* Colors - Premium Brand Palette */
  --color-primary: #0056b3;
  /* Deep professional blue */
  --color-primary-light: #3378c9;
  --color-primary-dark: #003d82;
  --color-accent: #ff6b35;
  /* Energetic tech orange for CTAs */
  --color-accent-hover: #e55a2b;

  /* Gas Theme Colors */
  --color-primary-gas: #fbbf24;
  /* Electric Yellow */
  --color-primary-gas-light: #fcd34d;
  --color-primary-gas-dark: #d97706;

  /* Neutral Colors / Text */
  --color-text-main: #1e293b;
  /* Slate 800 */
  --color-text-muted: #64748b;
  /* Slate 500 */
  --color-text-light: #f8fafc;
  /* Slate 50 */

  /* Backgrounds */
  --color-bg-base: #ffffff;
  --color-bg-alt: #f1f5f9;
  /* Slate 100 */
  --color-bg-dark: #0f172a;
  /* Slate 900 */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-text: linear-gradient(90deg, #38bdf8, #3b82f6);
  /* Modern Cyan to Blue gradient */

  --gradient-gas: linear-gradient(135deg, var(--color-primary-gas) 0%, var(--color-primary-gas-dark) 100%);
  --gradient-text-gas: linear-gradient(90deg, #fcd34d, #f59e0b);

  /* Typography */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Layout */
  --container-max-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Borders */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

/* Gas Theme Global Variables Override */
body.theme-gas {
  --color-primary: var(--color-primary-gas);
  --color-primary-light: var(--color-primary-gas-light);
  --color-primary-dark: var(--color-primary-gas-dark);
  --gradient-primary: var(--gradient-gas);
  --gradient-text: var(--gradient-text-gas);
}

/* Cross-links specific styles to ensure visibility regardless of theme */
.nav-link-gas {
  color: #f59e0b !important;
  /* Force a visible yellow */
}

.nav-link-sanitary {
  color: #3b82f6 !important;
  /* Force a visible blue */
}

.header:not(.scrolled) .nav-link-gas,
.header:not(.scrolled) .nav-link-sanitary {
  filter: brightness(1.2);
  /* Make them pop on dark backgrounds */
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text-main);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.theme-gas .text-gradient {
  background: var(--gradient-text-gas);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

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

/* Gas Section Promo Banner */
.gas-promo-section {
  background-color: #0f172a;
  /* Slate 900 for a strong contrast */
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.shape-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.shape-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.shape-divider-top .shape-fill {
  fill: var(--color-bg-base);
}

/* Perfect SVG glowing border */
.shape-border {
  fill: none;
  stroke: var(--color-primary-gas);
  stroke-width: 3px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 1));
}

.shape-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.shape-divider-bottom .shape-fill {
  fill: var(--color-bg-base);
}

.gas-promo-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 1) 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(251, 191, 36, 0.2);
  position: relative;
  overflow: hidden;
}

/* Add a subtle yellow glow effect */
.gas-promo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.gas-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(251, 191, 36, 0.1);
  color: var(--color-primary-gas);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.gas-promo-title {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.gas-promo-desc {
  color: #cbd5e1;
  /* Slate 300 */
  max-width: 600px;
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

/* Divider between sections */
.section-divider {
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 0 auto;
}

.section-divider.divider-gas {
  background: var(--gradient-gas);
}

.section-divider-light {
  width: 60px;
  height: 2px;
  background: rgba(59, 130, 246, 0.2);
  /* Très léger bleu subtil */
  margin: 2rem auto;
  border-radius: 1px;
}

/* Lightning Divider */
.lightning-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem 0;
  position: relative;
}

.lightning-bolt {
  fill: var(--color-primary-gas);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
  animation: electric-flicker 2s infinite secondary ease-in-out;
}

@keyframes electric-flicker {

  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
  }

  50% {
    opacity: 0.8;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.9));
  }

  52% {
    opacity: 1;
  }

  54% {
    opacity: 0.7;
  }

  56% {
    opacity: 1;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  text-align: center;
}

.btn-gas {
  background-color: var(--color-primary-gas);
  color: var(--color-bg-dark);
  border-color: var(--color-primary-gas);
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.theme-gas .btn-outline {
  color: var(--color-primary-gas);
  border-color: var(--color-primary-gas);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.theme-gas .btn-outline:hover {
  background-color: var(--color-primary-gas);
  color: var(--color-bg-dark);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1.5rem 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.header.scrolled .logo.light,
.header.scrolled .nav-link.light,
.header.scrolled .burger-menu.light {
  color: var(--color-text-main);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

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

.theme-gas .logo-accent {
  color: var(--color-primary-gas);
}

.header:not(.scrolled) .logo {
  color: white;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.25rem;
}

.header:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

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

.header:not(.scrolled) .nav-link::after {
  background-color: white;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  font-weight: 700;
}

.header:not(.scrolled) .header-phone {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.header:not(.scrolled) .header-phone:hover {
  background-color: white;
  color: var(--color-primary);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
}

.lang-link {
  font-size: 1.4rem;
  opacity: 0.5;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  filter: grayscale(100%);
  display: flex;
  align-items: center;
}

.lang-link:hover,
.lang-link.active {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.burger-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-main);
}

.header:not(.scrolled) .burger-menu {
  color: white;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background-color: var(--color-bg-dark);
  /* Fallback */
  /* Dynamic background image placeholder. In real project, use real high-res images */
  background-image: url('https://images.unsplash.com/photo-1585704032915-c3400ca199e7?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  color: white;
}

body.theme-gas .hero {
  background-image: url('../assets/images/hero_gas_kitchen_bg.png');
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: #ffffff;
  /* Explicitly ensure pure white for high contrast against dark bg */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Add a subtle drop shadow to improve readability */
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  /* Increase opacity for better contrast */
  margin-bottom: 2.5rem;
  max-width: 550px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  /* Increased contrast */
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item i {
  color: var(--color-primary-light);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: center;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .header:not(.scrolled) .nav-link {
    color: var(--color-text-main);
  }

  .header:not(.scrolled) .nav-link::after {
    background-color: var(--color-primary);
  }

  .burger-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  .d-none-sm {
    display: none !important;
  }

  .header-container {
    padding: 0 0.5rem;
    /* Tighter padding on mobile */
  }

  .header-actions {
    gap: 0.5rem;
    /* Tighter gap on mobile */
  }

  .header-phone {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .hero {
    align-items: flex-start;
    padding-top: 150px;
    padding-bottom: 6rem;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

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

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

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

/* ==========================================================================
   Sections Common Styles
   ========================================================================== */
.section-header {
  margin-bottom: 3rem;
}

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

.bg-alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 86, 179, 0.1);
}

.service-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1.2rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  color: white;
}

.service-title {
  font-size: 1.2rem;
  margin-bottom: 0;
  line-height: 1.3;
}

.service-desc {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link i {
  transition: transform var(--transition-fast);
}

.service-link:hover i {
  transform: translateX(5px);
}


/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.experience-badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  background: var(--color-primary);
  color: white;
  padding: 1.5rem;
  border-top-left-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.experience-badge .hero-subtitle {
  font-size: 1.1rem;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Hero Split Layout --- */
.hero-split-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

@media (max-width: 992px) {
  .hero-split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

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

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

/* --- Hero Form Card (Screenshot Replica) --- */
.hero-form-container {
  width: 100%;
  animation: slideInRight 0.8s ease-out forwards;
}

.hero-form-card {
  background-color: #f8f9fa;
  /* Off-white for the body */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* Diagonal Ribbon */
.ribbon-wrapper {
  width: 85px;
  height: 88px;
  overflow: hidden;
  position: absolute;
  top: -3px;
  right: -3px;
  z-index: 10;
}

.ribbon {
  font: bold 12px sans-serif;
  color: white;
  text-align: center;
  transform: rotate(45deg);
  position: relative;
  padding: 7px 0;
  left: -5px;
  top: 15px;
  width: 120px;
  background-color: var(--color-secondary);
  /* CSB Turquoise */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.ribbon span {
  font-size: 9px;
  letter-spacing: 1px;
}

/* Form Header */
.form-header {
  background-color: var(--color-primary);
  /* Lighter CSB Blue */
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-header-icon {
  font-size: 2.2rem;
  color: var(--color-secondary);
  /* CSB Turquoise */
}

.form-header-text {
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

/* Form Body */
.hero-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-form .form-group {
  margin-bottom: 0;
}

.hero-form input,
.hero-form select,
.hero-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  background-color: white;
  color: var(--color-text-main);
  transition: border-color var(--transition-fast);
}

.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 36, 66, 0.1);
}

.btn-submit-quote {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-primary);
  /* Base Blue */
  color: white;
  /* White text */
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  margin-top: 0.5rem;
}

.btn-submit-quote:hover {
  background-color: var(--color-primary-dark);
  /* Darker blue on hover */
  transform: translateY(-2px);
}

/* File Upload Styles */
.file-upload-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.file-upload-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background-color: #f8f9fa;
  border: 1px dashed #ced4da;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  justify-content: center;
  width: 100%;
}

.file-upload-label:hover {
  background-color: #e9ecef;
  border-color: var(--color-secondary);
  color: var(--color-primary);
}

.file-upload-label i {
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.file-upload-filename {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
  word-break: break-all;
  display: none;
}

.file-upload-filename:not(:empty) {
  display: block;
}

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

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


.experience-badge .years {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.about-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.benefits-list li {
  display: flex;
  gap: 1rem;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.benefits-list h4 {
  margin-bottom: 0.25rem;
}

.benefits-list p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-content-wrapper {
  position: relative;
  z-index: 20;
  transition: height 0.4s ease-in-out;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.4s ease-in-out;
  align-items: start;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Items shrinking away */
.portfolio-item.crushed {
  transform: scale(0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.portfolio-grid.hidden-view {
  opacity: 0 !important;
  /* Do not use visibility: hidden or position:absolute here to prevent grid from instantly failing to measure and causing layout jumps on uncrush */
  pointer-events: none;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 350px;
  transform-origin: center;
}

.portfolio-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s;
}

.portfolio-item:hover {
  box-shadow: var(--shadow-lg);
}

.portfolio-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-preview img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  transform: translateY(10px);
  transition: transform var(--transition-normal);
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transform: translateY(10px);
  transition: transform var(--transition-normal);
  transition-delay: 0.05s;
  /* Add scrolling for long descriptions */
  max-height: 120px;
  overflow-y: auto;
  padding-right: 5px;
  line-height: 1.4;
}

/* Custom scrollbar for portfolio descriptions */
.portfolio-overlay p::-webkit-scrollbar {
  width: 4px;
}

.portfolio-overlay p::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.portfolio-overlay p::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

/* --- Inline Expanded State --- */
.portfolio-item.expanded {
  grid-column: 1 / -1;
  height: 600px;
  /* Force a consistent max size, not too tall */
  cursor: default;
  display: flex !important;
  flex-direction: column;
}

/* Hide preview contents when expanded */
.portfolio-item.expanded .portfolio-preview {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  position: absolute;
  transition: opacity 0.3s;
}

.portfolio-expanded-content.global-expanded {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.4s ease-in-out;
  transform: translateY(20px);
  background: white;
  z-index: 10;
}

.portfolio-expanded-content.global-expanded.active {
  opacity: 1;
  visibility: visible;
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: translateY(0);
}

.portfolio-item.hidden {
  /* Instead of display:none, we collapse them to allow smooth transition out */
  position: absolute !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: scale(0.8) !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  pointer-events: none !important;
}

/* Expanded Content Area */
.portfolio-expanded-content.global-expanded {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  /* top, left, width, height will be set by JS for FLIP animation */
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  border-radius: var(--radius-md);
  z-index: 10;
  /* Initially hide content so it fades in after expansion */
  overflow: hidden;
}

.portfolio-expanded-content>* {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  transition-delay: 0.2s;
}



.portfolio-expanded-content.global-expanded.active>* {
  opacity: 1;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.expanded-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 1rem;
}

.expanded-header-info h3 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.expanded-header-info p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.btn-close-expanded {
  background: var(--color-bg-alt);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-close-expanded:hover {
  background: var(--color-primary);
  color: white;
  transform: rotate(90deg);
}

/* Inline Gallery within Expanded Project */
.inline-gallery-container {
  position: relative;
  flex-grow: 1;
  height: calc(100% - 70px);
  /* Leave room for header */
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inline-gallery-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.inline-prev,
.inline-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.inline-prev:hover,
.inline-next:hover {
  background: rgba(0, 0, 0, 0.9);
}

.inline-prev {
  left: 1rem;
}

.inline-next {
  right: 1rem;
}

.inline-indicators {
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.inline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.inline-dot.active,
.inline-dot:hover {
  background: white;
}

/* ==========================================================================
   Clients / Logos Section
   ========================================================================== */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
}

.client-logo {
  padding: 1rem 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 150px;
}

.client-logo img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
  border-color: rgba(0, 86, 179, 0.1);
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.t-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.t-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.t-info {
  flex-grow: 1;
}

.t-info h4 {
  margin: 0;
  font-size: 1rem;
}

.t-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.t-google {
  color: #4285F4;
  font-size: 1.5rem;
}

.t-stars {
  color: #FFB300;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.t-text {
  font-style: italic;
  color: var(--color-text-main);
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-info {
  padding: 4rem;
  background: var(--color-bg-dark);
  color: white;
  position: relative;
}

.contact-info .section-title {
  color: white;
}

.contact-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
}

.c-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.contact-item h5 {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item p,
.contact-item a {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-form-container {
  padding: 4rem 4rem 4rem 1rem;
}

.contact-form h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
  background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
  background-color: white;
}

.btn-submit {
  width: 100%;
}

@media (max-width: 991px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-container {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .contact-info {
    padding: 3rem 2rem;
  }

  .contact-form-container {
    padding: 3rem 2rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-bg-dark);
  color: white;
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  display: inline-block;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-primary-light);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  color: var(--color-primary-light);
  margin-top: 0.25rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
  color: white;
}

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

  .brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

[data-reveal="fade-up"] {
  transform: translateY(30px);
}

[data-reveal="fade-right"] {
  transform: translateX(-30px);
}

[data-reveal="fade-left"] {
  transform: translateX(30px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0);
}

[data-delay="100"] {
  transition-delay: 100ms;
}

[data-delay="200"] {
  transition-delay: 200ms;
}

[data-delay="300"] {
  transition-delay: 300ms;
}

/* ==========================================================================
   Gallery Modal
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--color-primary);
}

.gallery-info {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
}

.gallery-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.gallery-info p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.gallery-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-slider img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.prev-img,
.next-img {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
}

.prev-img {
  left: 10px;
  border-radius: 3px 0 0 3px;
}

.next-img {
  right: 10px;
  border-radius: 0 3px 3px 0;
}

.prev-img:hover,
.next-img:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.gallery-indicators {
  text-align: center;
  padding-top: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gallery-dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.gallery-dot.active,
.gallery-dot:hover {
  background-color: var(--color-primary);
}

/* WhatsApp Floating Button (Mobile/Tablet only) */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  /* Surélevé pour éviter les interférences (bannières cookies etc.) */
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

/* Hide on desktop */
@media (min-width: 992px) {
  .whatsapp-float {
    display: none !important;
  }
}