:root {
  /* Couleurs principales - Palette électricien professionnel */
  --primary-color: #2c3e50;           /* Gris ardoise profond - professionnel et sobre */
  --primary-color-dark: #1a252f;      /* Variante plus sombre pour hover/focus */
  --primary-text-color: #fff;         /* Texte principal sur fond clair */

  /* Couleurs secondaires */
  --secondary-color: #4a5568;         /* Gris moyen pour équilibre */
  --secondary-color-light: #667080;   /* Variante plus douce pour fonds ou bordures */
  --secondary-text-color: #FF8C42;    /* Orange doux pour le texte sur fond sombre */
  --warm-gray: #5a5a5a;               /* Gris neutre pour transitions */
  --warm-gray-light: #6b6560;         /* Gris chaud tirant légèrement sur l'orange pour dégradés */
  --warm-gray-lighter: #8a7f78;       /* Gris encore plus chaud pour effets subtils */

  /* Couleurs d'accent - Orange électrique professionnel */
  --accent-color: #FF8C42;            /* Orange professionnel - évoque l'électricité et la sécurité */
  --accent-color-light: #FFA666;      /* Orange plus clair pour hover */
  --accent-gradient: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
  --primary-gradient: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
  --hero-gradient: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(74, 85, 104, 0.95) 100%);

  /* Couleurs de fond */
  --background-color: #f5f5f5;         /* Fond principal gris très clair */
  --background-accent-color: #2c3e50;  /* Fond secondaire gris foncé (cartes, sections) */
  --surface-color: #ffffff;            /* Surfaces comme les cartes ou modales - blanc pur */
  --surface-hover: #f9f9f9;            /* Hover sur surfaces */

  /* Couleurs de texte */
  --text-color: #2d3748;               /* Gris foncé pour meilleure lisibilité */
  --text-light-color: #fff;            /* Blanc */
  --text-muted: #718096;               /* Texte secondaire */
  --text-accent-color: #FF8C42;        /* Orange */

  /* Ombres modernes et professionnelles */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.12), 0 4px 6px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(255, 140, 66, 0.25);

  /* Dimensions */
  --header-height: 110px;
  --max-width-tablet: 768px;
  --max-width-content: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 8px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

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

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

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

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header, footer {
  h1, h2, h3, h4, h5, h6 {
  color: var(--primary-text-color);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Tahoma, Verdana, sans-serif;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Tahoma, Verdana, sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  background: var(--hero-gradient);
  color: var(--text-light-color);
  min-height: var(--header-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 3px solid var(--accent-color);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: visible;
  z-index: 100;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

header .header-content {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max-width-content);
  position: relative;
  z-index: 1;
}

header .ciarlet-logo {
  margin-right: 20px;
  flex-shrink: 0;
}

header .header-text {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease;
}

header h1 {
  color: var(--text-light-color);
  font-size: 1.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.3rem;
}

header h2 {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

/* Navigation */
nav {
  width: 100%;
  max-width: var(--max-width-content);
  margin-top: 15px;
  position: relative;
  z-index: 1;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  flex-direction: column;
  align-items: center;
}

header nav ul {
  flex-direction: row;
}

nav li {
  margin: 0;
}

nav a {
  display: inline-block;
  color: var(--text-light-color);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

nav a:hover {
  transform: translateY(-2px);
}

nav a.active {
  background: var(--accent-color);
  border-color: rgba(255, 255, 255, 0.3);
}

@media screen and (max-width: 768px) {
  header {
    padding: 10px 15px;
  }
  
  header .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  header .ciarlet-logo {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  header h1 {
    font-size: 1.4rem;
  }
  
  header h2 {
    font-size: 1rem;
  }
  
  nav {
    margin-top: 10px;
  }
  
  nav ul {
    gap: 8px;
  }
  
  nav a {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

ul.inline-list {
  list-style: none;

  li::before {
    content: '-';
    color: var(--primary-text-color);
    margin-right: 0.5em;
  }
}

p {
  margin: 10px 0;
}

button,
a.button {
  border: none;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-align: center;
  box-shadow: var(--shadow-md);

  &.primary {
    background: var(--accent-gradient);
    color: var(--text-light-color);
    border: 2px solid transparent;
  }

  &.primary::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;
  }

  &.primary:hover::before {
    left: 100%;
  }

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

  &.tertiary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
  }

  &:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  &:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
  }
}

input {
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 2px solid #e2e8f0;
  width: 100%;
  border-radius: var(--border-radius-sm);
  box-sizing: border-box;
  font-size: 1em;
  transition: all var(--transition-base);
  background: var(--surface-color);
  color: var(--text-color);
  font-family: inherit;
}

input:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
  transform: translateY(-2px);
}

textarea {
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 2px solid #e2e8f0;
  width: 100%;
  border-radius: var(--border-radius-sm);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1em;
  line-height: 1.6;
  min-height: 120px;
  resize: vertical;
  transition: all var(--transition-base);
  background: var(--surface-color);
  color: var(--text-color);
}

textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 145, 76, 0.1);
  transform: translateY(-2px);
}

.header {
  display: flex;
  align-items: center;
  text-decoration: none;
}

main {
  flex: 1;
  padding: 20px;
  gap: 20px;
  max-width: var(--max-width-content);
  margin: 0 auto;
  width: 100%;
}

div.main-content {
  flex: 2 1 60%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 40px 20px;
}

div.main-content h1 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease;
}

section {
  background: var(--surface-color);
  padding: 60px 20px;
  margin-top: 3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

section:first-child {
  margin-top: 0;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.marques {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 90vw;
  max-width: var(--max-width-content);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.marques li {
  background: var(--surface-color);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.marques li:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.partner-logo {
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--transition-base);
}

.marques li:hover .partner-logo {
  filter: grayscale(0%);
}

/* Footer styles */

footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: var(--primary-text-color);
  text-align: center;
  padding: 40px 20px 20px;
  font-size: 0.9rem;
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  margin-top: 60px;

  nav {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
    max-width: var(--max-width-content);
    margin-left: auto;
    margin-right: auto;
  }

  nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    flex: 1;
    min-width: 250px;
  }

  nav ul li {
    margin: 0;
    padding: 6px 0;
    text-align: center;
  }

  nav ul li h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
  }

  nav ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-color: rgba(255, 140, 66, 0.3);
    text-underline-offset: 3px;
    transition: all var(--transition-fast);
    position: relative;
    background: none;
    padding: 0;
    border: none;
    display: inline;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  nav ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
  }

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

/* Responsive design for mobile */
@media (max-width: 768px) {
  main {
    flex-direction: column;
    padding: 10px;
  }

  section {
    padding: 40px 15px;
    margin-top: 2em;
  }

  section h2 {
    font-size: 2rem;
  }

  div.main-content h1 {
    font-size: 2rem;
  }

  #illustration h2 {
    font-size: 2.5rem;
  }

  span.full {
    display: none;
  }

  .boutons-contact {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .boutons-contact a {
    width: 100%;
    text-align: center;
  }

  .demo-videos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Responsive header */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    height: auto;
    padding: 15px 10px;
  }

  header a {
    padding-top: 1em;
    padding-bottom: 0.5em;
  }

  header h1 {
    font-size: 1.4rem;
  }

  header h2 {
    font-size: 1rem;
  }

  .header {
    justify-content: center;
    width: 100%;
  }

  .ciarlet-logo {
    height: 60px !important;
  }

  footer {
    padding: 30px 15px 15px;
  }

  footer nav {
    flex-direction: column;
    gap: 30px;
  }

  footer nav ul {
    text-align: left;
    width: 100%;
    padding-left: 10px;
  }
}



/* Card styles */

#presentation ul{
  display: flex;
  width: fit-content;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  #presentation ul {
    flex-direction: column;
    align-items: center;
  }
}

.carte {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--warm-gray-light) 100%);
  color: var(--text-light-color);
  font-size: 1.2em;
  padding: 2em 1.5em;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  width: 14em;
  margin: 0;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.carte::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.carte:hover::before {
  opacity: 1;
}

.carte:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.carte img {
  width: 6em;
  height: 6em;;
  filter: brightness(0) invert(1);
  transition: transform var(--transition-base);
}

.carte a {
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.carte:hover img {
  transform: scale(1.1) rotate(5deg);
  animation: float 2s ease-in-out infinite;
}

.carte p {
  margin-top: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Google reviews block */
.google-reviews {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  justify-items: center;
  max-width: 1200px;
  margin: 1.5rem auto;
}

.g-review {
  width: 100%;
  min-width: 0;
  animation: fadeInUp 0.6s ease;
}

.g-review:nth-child(1) { animation-delay: 0.1s; }
.g-review:nth-child(2) { animation-delay: 0.2s; }
.g-review:nth-child(3) { animation-delay: 0.3s; }

.review-card {
  background: var(--surface-color);
  border: 1px solid rgba(107, 101, 96, 0.2);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  overflow: hidden;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-color);
}

.review-head {
  display: flex;
  background: var(--primary-gradient);
  color: var(--text-light-color);
  padding: 1.2em 1.5em;
  margin-bottom: 0;
  gap: 15px;
  align-items: center;
}

.review-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-md);
}

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

.review-author {
  font-weight: 700;
  color: var(--primary-text-color);
  font-size: 1.05rem;
}

.review-rating {
  color: #ffd700;
  font-size: 1rem;
  letter-spacing: 2px;
}

.review-time {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.review-text {
  font-size: 0.95rem;
  padding: 1.5em;
  line-height: 1.6;
  color: var(--text-color);
}

.google-reviews .no-reviews {
  text-align: center;
  color: var(--text-muted);
}

/* Star rating system with partial fills */
.stars-container {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 1.4rem;
  line-height: 1;
  vertical-align: middle;
}

.star {
  display: inline-block;
  font-size: 1.7rem;
  position: relative;
  color: #ffd700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.star-full {
  background: #ffd700;
  background-clip: text;
}

.star-empty {
  background: #d1d5db;
  background-clip: text;
}

.star-partial {
  background: linear-gradient(to right, #ffd700 var(--fill-percent, 50%), #d1d5db var(--fill-percent, 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 600;
}

section h2 .stars-container {
  font-size: 1.2rem;
}

section h2 .rating-text {
  font-size: 0.85rem;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--text-muted);
}

/* Mobile: single column and tighter spacing */
@media (max-width: 768px) {
  .google-reviews {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0 8px;
  }

  .review-head {
    background-color: var(--background-accent-color);
    color: var(--text-light-color);
    padding: 0.5em 2em;
    margin-bottom: 0.5rem;
    grid-template-rows: auto;
  }

  /* Limit to 3 reviews on mobile */
  .google-reviews .g-review:nth-child(n+4) {
    display: none;
  }
}

/* Small tablet: two columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .google-reviews {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Boutons contact section */
.boutons-contact {
  display: flex;
  gap: 20px;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* Hero carousel section */
.hero-carousel-container {
  position: relative;
  width: 100%;
  max-width: var(--max-width-content);
  margin: 3rem auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  isolation: isolate;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: block;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  padding: 2rem;
  z-index: 2;
}

.carousel-overlay h3 {
  color: var(--text-light-color);
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.carousel-button {
  position: absolute;
  top: 50%;
  background: var(--surface-color);
  border: none;
  color: var(--text-accent-color);
  font-size: 2.8rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition-base), transform var(--transition-base);
  border-radius: 50%;
  line-height: 1;
  padding: 0;
  margin: 0;
  margin-top: -25px;
}

.carousel-button:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.carousel-button:active {
  transform: scale(1.05);
}

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

.carousel-button.prev {
  left: 20px;
}

.carousel-button.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
  background: var(--accent-color);
  border-color: white;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .carousel {
    height: 300px;
  }
  
  .carousel-overlay h3 {
    font-size: 1.3rem;
  }
  
  .carousel-button {
    font-size: 2rem;
    width: 40px;
    height: 40px;
  }
  
  .carousel-button.prev {
    left: 10px;
  }
  
  .carousel-button.next {
    right: 10px;
  }
}

/* Hero video section - kept for compatibility but updated to match carousel */
.hero-video-container {
  position: relative;
  width: 100%;
  max-width: var(--max-width-content);
  margin: 3rem auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.hero-video-container:hover .video-overlay {
  opacity: 1;
}

.video-overlay h3 {
  color: var(--text-light-color);
  font-size: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Demo videos grid */
.demo-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: var(--max-width-content);
  margin: 2rem auto;
}

.demo-video-card {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.demo-video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.demo-video-card video,
.demo-video-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.demo-video-card img {
  transition: transform var(--transition-slow);
}

.demo-video-card:hover img {
  transform: scale(1.05);
}

.demo-video-card .video-info {
  padding: 1.5rem;
}

.demo-video-card .video-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.demo-video-card .video-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Glassmorphism effect */
.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);
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 145, 76, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(255, 145, 76, 0);
  }
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(20);
    opacity: 0;
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Loading spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  border: 4px solid rgba(255, 145, 76, 0.1);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent-gradient);
  z-index: 9999;
  transform-origin: left;
  transition: width 0.1s ease;
}

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

/* Intervention images gallery */
.intervention-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
  max-width: var(--max-width-content);
}

.intervention-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.intervention-image:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Single image: don't stretch full width */
.intervention-images:has(.intervention-image:only-child) {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.intervention-images:has(.intervention-image:only-child) .intervention-image {
  height: 360px;
}

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

  .intervention-image {
    height: 220px;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .boutons-contact,
  .animate-on-scroll {
    animation: none !important;
  }
  
  section {
    box-shadow: none;
    page-break-inside: avoid;
  }
}
