/*
Theme Name: Fabre Metal Construction Child
Theme URI: https://fabre-metal.com
Description: Thème enfant ultra-moderne pour Fabre Métal Construction
Author: Fabre Metal Construction
Author URI: https://fabre-metal.com
Template: twentytwentyfour
Version: 11.0.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fabre-metal-child
Domain Path: /languages
*/

/* ============================================
   VARIABLES CSS ET DESIGN SYSTEM
   ============================================ */

:root {
  /* Couleurs Principales */
  --primary-dark: #001f3f;
  --primary-light: #0066cc;
  --accent-gold: #d4af37;
  --accent-silver: #c0c0c0;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #001f3f;
  --border-color: #e0e0e0;
  
  /* Typographie */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: 'Georgia', serif;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-xxl: 32px;
  --font-size-h1: 48px;
  
  /* Espacements */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  
  /* Transitions et Animations */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.4s ease-in-out;
  --transition-slow: 0.6s ease-in-out;
}

/* ============================================
   RESET ET STYLES DE BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--text-light);
  overflow-x: hidden;
}

/* Support RTL pour l'Arabe */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .text-left {
  text-align: right;
}

[dir="rtl"] .text-right {
  text-align: left;
}

/* ============================================
   HEADER ET NAVIGATION
   ============================================ */

header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #003d66 100%);
  color: var(--text-light);
  padding: var(--spacing-md) var(--spacing-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: var(--text-light);
  font-size: var(--font-size-xl);
  font-weight: bold;
  letter-spacing: 2px;
  transition: transform var(--transition-normal);
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Navigation */
nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
  padding: var(--spacing-xs) 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-silver));
  transition: width var(--transition-normal);
}

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

nav a:hover::after {
  width: 100%;
}

/* Sélecteur de Langue */
.language-selector {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.language-selector select {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid var(--accent-silver);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 4px;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.language-selector select:hover {
  background: rgba(255, 255, 255, 0.2);
}

.language-selector select option {
  background: var(--primary-dark);
  color: var(--text-light);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #003d66 50%, #001f3f 100%);
  color: var(--text-light);
  padding: var(--spacing-xxl) var(--spacing-lg);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(192, 192, 192, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 1000px;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: slideInDown 0.8s ease-out;
}

.hero .subtitle {
  font-size: var(--font-size-xl);
  color: var(--accent-gold);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero p {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
  animation: fadeIn 1s ease-out 0.4s both;
}

.cta-button {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(135deg, var(--accent-gold), #e6c200);
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease-out 0.6s both;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.cta-button:hover::before {
  left: 100%;
}

/* ============================================
   SECTIONS PRINCIPALES
   ============================================ */

section {
  padding: var(--spacing-xxl) var(--spacing-lg);
  max-width: 1400px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}

section h2 {
  font-size: var(--font-size-h1);
  margin-bottom: var(--spacing-lg);
  color: var(--primary-dark);
  position: relative;
  padding-bottom: var(--spacing-md);
  animation: slideInLeft 0.6s ease-out;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-silver));
  animation: expandWidth 0.8s ease-out 0.2s both;
}

[dir="rtl"] section h2::after {
  left: auto;
  right: 0;
}

section p {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: #555;
  margin-bottom: var(--spacing-md);
}

/* ============================================
   SECTION ABOUT (À PROPOS)
   ============================================ */

.about-section {
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
  border-top: 1px solid var(--border-color);
}

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

.about-text h3 {
  font-size: var(--font-size-xl);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
  animation: slideInLeft 0.6s ease-out 0.2s both;
}

.about-text p {
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.about-image {
  position: relative;
  animation: slideInRight 0.6s ease-out 0.2s both;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 31, 63, 0.15);
  transition: transform var(--transition-normal);
}

.about-image:hover img {
  transform: scale(1.02);
}

/* ============================================
   SECTION VISION & MISSION
   ============================================ */

.vision-mission-section {
  background: var(--text-light);
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.vision-card,
.mission-card {
  background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
  padding: var(--spacing-lg);
  border-radius: 8px;
  border-left: 4px solid var(--accent-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
  animation: fadeInUp 0.8s ease-out;
}

[dir="rtl"] .vision-card,
[dir="rtl"] .mission-card {
  border-left: none;
  border-right: 4px solid var(--accent-gold);
}

.vision-card:hover,
.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.vision-card h3,
.mission-card h3 {
  font-size: var(--font-size-xl);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
}

.vision-card p,
.mission-card p {
  color: #666;
  line-height: 1.8;
}

/* ============================================
   SECTION EXPERTISE (TROIS PÔLES)
   ============================================ */

.expertise-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #003d66 100%);
  color: var(--text-light);
}

.expertise-section h2 {
  color: var(--text-light);
}

.expertise-section h2::after {
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-silver));
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.expertise-card {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-lg);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  animation: fadeInUp 0.8s ease-out;
}

.expertise-card:nth-child(1) {
  animation-delay: 0.1s;
}

.expertise-card:nth-child(2) {
  animation-delay: 0.2s;
}

.expertise-card:nth-child(3) {
  animation-delay: 0.3s;
}

.expertise-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.2);
}

.expertise-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  color: var(--accent-gold);
}

.expertise-card p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.expertise-image {
  width: 100%;
  height: 250px;
  margin-bottom: var(--spacing-md);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.expertise-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.expertise-card:hover .expertise-image img {
  transform: scale(1.05);
}

/* ============================================
   SECTION MÉTAUX AVEC ÉTINCELLES
   ============================================ */

.metals-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.metals-section h2 {
  color: var(--accent-gold);
}

.metals-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-top: var(--spacing-lg);
}

.metals-text h3 {
  font-size: var(--font-size-xl);
  color: var(--accent-silver);
  margin-bottom: var(--spacing-md);
}

.metals-text p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.metals-visual {
  position: relative;
  height: 400px;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#sparks-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   SECTION CLIENTS
   ============================================ */

.clients-section {
  background: var(--text-light);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.client-logo {
  background: #f5f5f5;
  padding: var(--spacing-lg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.client-logo:hover {
  background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: var(--spacing-xl) var(--spacing-lg);
  border-top: 2px solid var(--accent-gold);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  color: var(--accent-gold);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-base);
  line-height: 1.8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-base);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .about-content,
  .vision-mission-grid,
  .expertise-grid,
  .metals-content {
    grid-template-columns: 1fr;
  }
  
  section h2 {
    font-size: var(--font-size-xl);
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  nav ul {
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  nav {
    flex-direction: column;
    width: 100%;
  }
  
  nav ul {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
  }
  
  nav a {
    display: block;
    padding: var(--spacing-sm);
  }
  
  .hero {
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 400px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero .subtitle {
    font-size: var(--font-size-lg);
  }
  
  section {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-base: 14px;
    --font-size-xl: 20px;
    --font-size-h1: 28px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
  }
  
  .logo {
    font-size: var(--font-size-lg);
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  nav ul {
    gap: var(--spacing-sm);
  }
  
  .cta-button {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 14px;
  }
}


/* ============================================
   STYLES POUR LA PAGE DES RÉALISATIONS
   ============================================ */

/* Hero Section Réalisations */
.hero-realisations {
  position: relative;
  min-height: 500px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #003d66 50%, #001f3f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--spacing-xxl) var(--spacing-lg);
}

.hero-realisations::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(192, 192, 192, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 31, 63, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.hero-content h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

/* Section Filtres */
.section-filtres {
  background: var(--bg-light);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 80px;
  z-index: 100;
}

.filtres-container {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.filtre-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.filtre-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.filtre-btn.active {
  background: var(--primary-dark);
  color: var(--text-light);
  border-color: var(--primary-dark);
}

.filtre-btn .count {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.filtre-btn.active .count {
  background: rgba(255, 255, 255, 0.2);
}

/* Section Grille de Réalisations */
.section-realisations-grid {
  padding: var(--spacing-xxl) var(--spacing-lg);
  background: white;
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.realisation-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
  opacity: 1 !important; /* Fix: affichage immédiat */
  transform: translateY(0) !important; /* Fix: pas d'animation */
}

.realisation-card.show {
  opacity: 1;
  transform: translateY(0);
}

.realisation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.realisation-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--bg-light);
}

.realisation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.realisation-card:hover .realisation-image img {
  transform: scale(1.1);
}

.image-placeholder-svg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realisation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 31, 63, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.btn-voir-details {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--accent-gold);
  color: var(--primary-dark);
  border: none;
  border-radius: 4px;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all var(--transition-fast);
}

.btn-voir-details:hover {
  background: #e6c200;
  transform: scale(1.05);
}

.realisation-content {
  padding: var(--spacing-md);
}

.realisation-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
}

.realisation-content h3 {
  font-size: var(--font-size-xl);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.realisation-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
}

.realisation-meta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-sm);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
}

.meta-item svg {
  stroke-width: 2;
  opacity: 0.7;
}

/* Message si aucune réalisation */
.no-realisations {
  text-align: center;
  padding: var(--spacing-xxl);
  color: #888;
  font-size: var(--font-size-lg);
}

/* Modal pour les détails */
.realisation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.realisation-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10000;
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--spacing-lg);
}

/* Galerie dans la modal */
.modal-gallery {
  margin-bottom: var(--spacing-lg);
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 500px;
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.gallery-nav.prev {
  left: var(--spacing-md);
}

.gallery-nav.next {
  right: var(--spacing-md);
}

.gallery-counter {
  position: absolute;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.gallery-thumbs {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  overflow-x: auto;
  padding: var(--spacing-xs) 0;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--transition-fast);
  opacity: 0.6;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.active {
  border-color: var(--accent-gold);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Informations du projet dans la modal */
.modal-info {
  padding: var(--spacing-lg);
}

.modal-category {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
}

.modal-info h2 {
  font-size: var(--font-size-xxl);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.modal-subtitle {
  font-size: var(--font-size-lg);
  color: #666;
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: 8px;
}

.modal-meta-grid .meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.meta-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}

.meta-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.meta-value {
  font-size: var(--font-size-base);
  color: var(--text-dark);
  font-weight: 500;
}

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

.modal-description h3 {
  font-size: var(--font-size-xl);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
}

.modal-description p {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: #555;
  margin-bottom: var(--spacing-sm);
}

.modal-cta {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.btn-contact-modal {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(135deg, var(--accent-gold), #e6c200);
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-contact-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Section CTA Réalisations */
.section-cta-realisations {
  position: relative;
  padding: var(--spacing-xxl) var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, #003d66 100%);
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: var(--font-size-h1);
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
}

.cta-content p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 4px;
  font-weight: 600;
  font-size: var(--font-size-base);
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--accent-gold), #e6c200);
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.cta-button.secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Responsive pour la page des réalisations */
@media (max-width: 768px) {
  .hero-realisations {
    min-height: 400px;
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .realisations-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .filtres-container {
    gap: var(--spacing-xs);
  }
  
  .filtre-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 14px;
  }
  
  .modal-content {
    max-height: 95vh;
    margin: var(--spacing-sm);
  }
  
  .gallery-main {
    height: 300px;
  }
  
  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ============================================
   STYLES POUR LA PAGE SINGLE RÉALISATION
   ============================================ */

.single-realisation {
  background: white;
}

/* Hero Section Single */
.single-realisation-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-realisation-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 31, 63, 0.3) 0%, rgba(0, 31, 63, 0.8) 100%);
  z-index: 2;
}

.hero-content-single {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: var(--spacing-xxl) 0;
  color: var(--text-light);
}

.single-category {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.3);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
}

.hero-content-single h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
}

.single-subtitle {
  font-size: var(--font-size-xl);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
}

/* Section Informations */
.single-realisation-info {
  padding: var(--spacing-xxl) 0;
  background: var(--bg-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
}

.info-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.info-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-gold), #e6c200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-value {
  font-size: var(--font-size-lg);
  color: var(--text-dark);
  font-weight: 600;
}

/* Section Description */
.single-realisation-description {
  padding: var(--spacing-xxl) 0;
  background: white;
}

.description-content {
  max-width: 900px;
  margin: 0 auto;
}

.description-content h2 {
  font-size: var(--font-size-xxl);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.description-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-silver));
}

.description-text {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: #555;
}

.description-text p {
  margin-bottom: var(--spacing-md);
}

.description-text h3 {
  font-size: var(--font-size-xl);
  color: var(--primary-dark);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.description-text ul,
.description-text ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.description-text li {
  margin-bottom: var(--spacing-xs);
}

/* Section Galerie */
.single-realisation-gallery {
  padding: var(--spacing-xxl) 0;
  background: var(--bg-light);
}

.single-realisation-gallery h2 {
  font-size: var(--font-size-xxl);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.single-realisation-gallery h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-silver));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 31, 63, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.btn-view-image {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--accent-gold);
  color: var(--primary-dark);
  border: none;
  border-radius: 4px;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all var(--transition-fast);
}

.btn-view-image:hover {
  background: #e6c200;
  transform: scale(1.05);
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox.active {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  z-index: 10000;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10001;
}

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

.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10001;
}

.lightbox-nav:hover {
  background: white;
  color: var(--primary-dark);
}

.lightbox-nav.prev {
  left: -70px;
}

.lightbox-nav.next {
  right: -70px;
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid white;
}

/* Section CTA Single */
.single-realisation-cta {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #003d66 100%);
}

.cta-box {
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: var(--font-size-h1);
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
}

.cta-box p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
}

/* Section Navigation */
.single-realisation-navigation {
  padding: var(--spacing-xl) 0;
  background: white;
  border-top: 1px solid var(--border-color);
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.nav-link:hover {
  background: white;
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link.prev {
  justify-content: flex-start;
}

.nav-link.next {
  justify-content: flex-end;
  grid-column: 3;
}

.nav-link.all {
  justify-content: center;
  background: var(--primary-dark);
  color: var(--text-light);
  font-weight: 600;
}

.nav-link.all:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-gold);
}

.nav-link-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-dark);
}

.nav-link.all .nav-title {
  color: var(--text-light);
}

/* Responsive pour Single Réalisation */
@media (max-width: 768px) {
  .single-realisation-hero {
    min-height: 400px;
  }
  
  .hero-content-single h1 {
    font-size: 32px;
  }
  
  .single-subtitle {
    font-size: var(--font-size-base);
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    grid-template-columns: 1fr;
  }
  
  .nav-link.next {
    grid-column: 1;
  }
  
  .lightbox-nav.prev {
    left: var(--spacing-sm);
  }
  
  .lightbox-nav.next {
    right: var(--spacing-sm);
  }
  
  .lightbox-close {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
  }
  
  .lightbox-counter {
    bottom: var(--spacing-sm);
  }
}
