/* ==========================================================================
   L'Atelier de Myziggi - Style Principal
   Charte Graphique: #3A3A3A, #483966, #EAD8C0, #6A0DAD, #E5DEF6
   Polices: Open Sans (bold), Advetime (decorative)
   ========================================================================== */

/* CSS Variables - Charte graphique */
:root {
  /* Couleurs principales */
  --color-dark: #3A3A3A;
  --color-primary: #483966;
  --color-beige: #EAD8C0;
  --color-accent: #6A0DAD;
  --color-light: #E5DEF6;
  --color-white: #FFFFFF;
  --color-gray-light: #F3F5F8;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  --gradient-light: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);

  /* Typography */
  --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Advetime', 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(72, 57, 102, 0.08);
  --shadow-md: 0 8px 24px rgba(72, 57, 102, 0.12);
  --shadow-lg: 0 16px 48px rgba(72, 57, 102, 0.16);
  --shadow-glow: 0 0 40px rgba(106, 13, 173, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  overflow: visible;
  padding-top: 0.1em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
  overflow: visible;
  padding-top: 0.1em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  overflow: visible;
}

p {
  margin-bottom: 1rem;
}

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

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

/* Hero text-gradient override - more visible on dark background */
.hero .text-gradient {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B6B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

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

.section {
  padding: var(--space-lg) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-xl) 0;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(72, 57, 102, 0.08);
  transition: all var(--transition-medium);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.logo img {
  height: 45px;
  width: auto;
}

.logo-text {
  display: none;
}

@media (min-width: 480px) {
  .logo-text {
    display: block;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--color-white);
  padding: 100px var(--space-md) var(--space-md);
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-medium);
  overflow-y: auto;
}

.nav.active {
  right: 0;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav-link {
  display: block;
  padding: var(--space-sm);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  background: var(--color-light);
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.4rem 0.3rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .header-cta {
    display: block;
  }

  .header-cta .btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }

  /* Header PC : logo + menu complet + tel */
  .logo-text {
    display: none;
  }

  .header .container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .header-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .logo {
    flex-shrink: 0;
  }

  .nav {
    flex: 1;
  }

  .nav-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
  }
}

/* Tablette large et PC - 1024px+ */
@media (min-width: 1024px) {
  .header .container {
    padding: 0 1.5rem;
  }

  .header-inner {
    gap: 1rem;
  }

  .nav-list {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
  }

  .header-cta .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* PC large - 1280px+ */
@media (min-width: 1280px) {
  .header .container {
    padding: 0 2rem;
  }

  .nav-list {
    gap: 0.75rem;
  }

  .nav-link {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }

  .header-cta .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* PC très large - 1440px+ */
@media (min-width: 1440px) {
  .header .container {
    padding: 0 3rem;
  }

  .header-inner {
    gap: 2rem;
  }

  .logo-text {
    display: block;
  }

  .nav-list {
    gap: 1rem;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .header-cta .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Mobile Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 999;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.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-lg), var(--shadow-glow);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

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

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.1rem;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-primary);
  color: var(--color-white);
  overflow: hidden;
  padding-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(10px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  opacity: 0.9;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-stat-value {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.hero-stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Floating Elements */
.hero-floating {
  position: absolute;
  pointer-events: none;
}

.hero-floating-1 {
  top: 20%;
  left: 5%;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  animation: float 6s ease-in-out infinite;
}

.hero-floating-2 {
  bottom: 30%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: rgba(106, 13, 173, 0.3);
  border-radius: var(--radius-full);
  animation: float 8s ease-in-out infinite 1s;
}

.hero-floating-3 {
  top: 40%;
  right: 15%;
  width: 60px;
  height: 60px;
  background: rgba(234, 216, 192, 0.2);
  border-radius: var(--radius-md);
  animation: float 5s ease-in-out infinite 0.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ==========================================================================
   Actualité Section
   ========================================================================== */
.actualite {
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
  padding: var(--space-lg) 0;
}

.actualite-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.actualite-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: var(--color-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10;
  box-shadow: var(--shadow-md);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.actualite-badge svg {
  width: 16px;
  height: 16px;
}

.actualite-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

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

.actualite-image {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

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

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

.actualite-text {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .actualite-text {
    padding: var(--space-lg);
    align-items: flex-start;
    text-align: left;
  }
}

.actualite-text h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-xs);
}

.actualite-date {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.actualite-text p {
  color: var(--color-dark);
  opacity: 0.85;
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.actualite-address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  margin: var(--space-sm) 0 var(--space-md);
  padding: var(--space-sm);
  background: var(--color-light);
  border-radius: var(--radius-sm);
}

.actualite-address svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
  background: var(--color-gray-light);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  overflow: visible;
}

.section-header p {
  color: var(--color-dark);
  opacity: 0.8;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
  transition: all var(--transition-fast);
}

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

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--color-dark);
  opacity: 0.7;
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

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

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
  background: var(--color-white);
}

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

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

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

.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  background: var(--color-light);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content h2 {
  margin-bottom: var(--space-sm);
}

.about-lead {
  font-size: 1.2rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-feature svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.about-feature span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   Gallery Section - SPECTACULAR Masonry Experience
   ========================================================================== */
.gallery {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--color-white);
  overflow: hidden;
  position: relative;
}

/* Animated background particles */
.gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.15), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.1), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.15), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.08), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.12), transparent);
  background-size: 200px 150px;
  animation: sparkle 20s linear infinite;
  pointer-events: none;
}

@keyframes sparkle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-150px); }
}

.gallery .section-header h2 {
  color: var(--color-white);
  text-shadow: 0 0 40px rgba(70, 127, 247, 0.3);
}

.gallery .section-header p {
  color: var(--color-white);
  opacity: 0.85;
}

/* Gallery Container */
.gallery-container {
  position: relative;
  z-index: 1;
}

/* Mobile Swiper - Card Stack Effect */
.gallery-swiper {
  overflow: visible;
  padding: var(--space-md) 0 var(--space-xl);
  perspective: 1000px;
}

.gallery-slide {
  width: 280px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 25px 50px -12px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.1);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
}

.gallery-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(70, 127, 247, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-slide:hover::before {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s ease;
  filter: brightness(0.9) saturate(1.1);
}

.gallery-slide:hover img {
  transform: scale(1.15);
  filter: brightness(1) saturate(1.2);
}

.gallery-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 2;
}

.gallery-slide:hover .gallery-slide-content {
  transform: translateY(0);
  opacity: 1;
}

.gallery-slide-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.gallery-slide-category {
  font-size: 0.875rem;
  opacity: 0.9;
  background: rgba(70, 127, 247, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  backdrop-filter: blur(10px);
}

/* Gallery Grid for larger screens - MASONRY SPECTACULAR */
@media (min-width: 768px) {
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 1rem;
    perspective: 2000px;
  }

  .gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
      0 20px 40px -15px rgba(0,0,0,0.4),
      0 0 0 1px rgba(255,255,255,0.1);
  }

  .gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
      0 40px 80px -20px rgba(0,0,0,0.5),
      0 0 0 1px rgba(255,255,255,0.2),
      0 0 60px rgba(70, 127, 247, 0.2);
    z-index: 10;
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(70, 127, 247, 0.5), rgba(255, 107, 107, 0.5), rgba(78, 205, 196, 0.5));
    border-radius: 18px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(8px);
  }

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

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s ease;
    filter: brightness(0.85) saturate(1.1);
  }

  .gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1) saturate(1.2);
  }

  .gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(28, 36, 75, 0.95) 0%,
      rgba(28, 36, 75, 0.6) 40%,
      transparent 70%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity 0.4s ease;
  }

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

  .gallery-item-overlay .gallery-slide-title {
    font-size: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
  }

  .gallery-item:hover .gallery-item-overlay .gallery-slide-title {
    transform: translateY(0);
    opacity: 1;
  }

  .gallery-item-overlay .gallery-slide-category {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
  }

  .gallery-item:hover .gallery-item-overlay .gallery-slide-category {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Large screens - bigger grid */
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-rows: repeat(2, 320px);
    gap: 1.25rem;
  }
}

/* Gallery Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-white);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: var(--space-md); }
.lightbox-next { right: var(--space-md); }

/* Gallery Pagination */
.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.gallery-pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-pagination-dot.active {
  width: 30px;
  background: var(--color-accent);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
  background: var(--gradient-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: var(--space-sm);
  color: #FFB800;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-gray-light);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-source {
  font-size: 0.875rem;
  color: var(--color-dark);
  opacity: 0.6;
}

/* Trust Badge */
.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.trust-score-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.trust-score-label {
  font-size: 0.875rem;
  color: var(--color-dark);
  opacity: 0.7;
}

.trust-platform {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-gray-light);
  border-radius: var(--radius-md);
}

.trust-platform img {
  height: 24px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
  background: var(--gradient-primary);
  color: var(--color-white);
  text-align: center;
}

.cta h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
}

@media (min-width: 480px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: var(--space-md);
}

.cta-phone svg {
  width: 28px;
  height: 28px;
  animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
  50% { transform: rotate(0); }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
  background: var(--color-gray-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.contact-item {
  display: flex;
  gap: var(--space-sm);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item p, .contact-item a {
  color: var(--color-dark);
  opacity: 0.8;
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-sm);
}

/* Map */
.contact-map {
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-md);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer-brand .logo img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  opacity: 0.8;
  font-size: 0.95rem;
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-legal {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-legal {
    justify-content: flex-end;
  }
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Floating CTA (Mobile)
   ========================================================================== */
.floating-cta {
  position: fixed;
  bottom: calc(20px + 70px); /* Aligné avec le chatbot (20px) + hauteur bouton (60px) + gap (10px) */
  right: 20px; /* Aligné horizontalement avec le chatbot */
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre les boutons horizontalement */
  gap: 0.75rem;
}

.floating-btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
}

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

.floating-btn-phone {
  background: var(--color-accent);
  color: var(--color-white);
}

.floating-btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
}

.floating-btn svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Scroll to Top
   ========================================================================== */
.scroll-top {
  position: fixed;
  bottom: calc(20px + 70px + 130px); /* Espace pour chatbot + floating-cta */
  right: 20px; /* Aligné avec le chatbot */
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-fast);
  z-index: 800;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

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

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .header,
  .floating-cta,
  .scroll-top,
  .hero-floating {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--space-md) 0;
    background: var(--color-white);
    color: var(--color-dark);
  }

  .hero h1 {
    color: var(--color-primary);
  }

  body {
    font-size: 12pt;
  }
}
