/* ===================================
   VARIABLES CSS
   =================================== */
:root {
  --primary-color: #1a4d7a;
  --primary-hover: #0f3a5c;
  --secondary-color: #3498db;
  --secondary-hover: #2980b9;
  --accent-color: #27ae60;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #2c3e50;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --header-height: clamp(36px, 8vw, 70px);
}

/* ===================================
   RESET & BASE
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
}

img[data-force-visible] {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: var(--bg-color);
  box-shadow: var(--shadow);
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Styles pour header transparent sur hero */
.header .nav-link {
  color: rgba(255, 255, 255, 0.95);
}

.header .nav-brand {
  color: white;
}

/* Styles pour header scrolled (blanc) */
.header.scrolled .nav-link {
  color: var(--text-color);
}

.header.scrolled .nav-brand {
  color: var(--primary-color);
}

.header.scrolled .hamburger {
  color: var(--primary-color);
}

.header .hamburger {
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  min-height: var(--header-height);
}

.nav-brand {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--primary-color);
}

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

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

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

.nav-link:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.hamburger .material-icons {
  font-size: 2rem;
}

.nav-close {
  display: none;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--text-color);
  color: var(--bg-color);
}

/* ===================================
   HIGHLIGHT - MOTS IMPORTANTS
   =================================== */
/* Style par défaut simple pour toutes les sections */
.highlight {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Style élégant pour le HERO uniquement */
.hero h1 .highlight,
.hero-subtitle .highlight {
  color: #fff;
  background: #27ae60;
  padding: 0 15px;
  margin: 4px 0;
  border-radius: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 800;
  display: inline-block;
}

/* Styles simples pour les autres sections */
.about-text .highlight {
  color: var(--secondary-color);
  font-weight: 600;
}

.section-header .highlight {
  color: var(--secondary-color);
  font-weight: 700;
}

.service-card h3 .highlight {
  color: var(--secondary-color);
  font-weight: 700;
}

.service-card p .highlight {
  color: var(--secondary-color);
  font-weight: 600;
  font-style: italic;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-height) + 4rem);
  overflow: hidden;
}

/* Slideshow d'images */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  animation: heroZoom 8s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% {
    transform: scale(1.1) translateX(-2%);
  }
  100% {
    transform: scale(1.15) translateX(2%);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--bg-color);
  max-width: 950px;
  padding: 3.5rem 3rem;
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-brand {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: white;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.8),
    0 4px 30px rgba(0, 0, 0, 0.9),
    0 2px 10px rgba(0, 0, 0, 1);
  line-height: 1.1;
  position: relative;
  padding-bottom: 1rem;
}

.hero-brand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, white, transparent);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.hero-name {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 2.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  line-height: 1.3;
}

.hero-name-initial {
  font-size: 1.4em;
  font-weight: 700;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
  line-height: 1.6;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.8),
    0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: 300;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 1.1rem 2.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

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

.hero-buttons .btn-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 77, 122, 0.4);
}

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

.hero-buttons .btn-secondary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ===================================
   SECTIONS COMMUNES
   =================================== */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-underline {
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

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

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section {
  background: var(--bg-light);
}

.about-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-hover);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  min-width: 50px;
}

.feature-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

.about-images {
  flex: 1;
  position: relative;
}

/* Carousel dans À Propos */
.about-carousel {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

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

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

/* Contrôles du carousel */
.about-carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 10;
}

.carousel-prev,
.carousel-next {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-prev i,
.carousel-next i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Indicateurs du carousel */
.carousel-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-indicators .indicator.active {
  background: white;
  width: 14px;
  height: 14px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.carousel-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  flex: 1 1 calc(33.333% - 2rem);
  min-width: 280px;
  max-width: 380px;
  background: var(--bg-color);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--bg-color);
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery-section {
  background: var(--bg-light);
}

/* Filtres galerie */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.filter-btn {
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-color);
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
}

.filter-btn:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.gallery-item {
  flex: 1 1 calc(33.333% - 1.5rem);
  min-width: 280px;
  max-width: 380px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

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

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

/* Description sur l'image */
.gallery-item-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
  color: white;
  padding: 2.5rem 1.2rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.3px;
  opacity: 1;
  transition: all 0.4s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover .gallery-item-description {
  opacity: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 60%, transparent 100%);
  padding-bottom: 1.5rem;
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination-btn,
.pagination-dot {
  background: var(--bg-color);
  border: 2px solid var(--secondary-color);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
}

.pagination-btn:hover,
.pagination-btn:focus-visible,
.pagination-dot:hover,
.pagination-dot:focus-visible {
  background: var(--secondary-color);
  color: var(--bg-color);
  transform: scale(1.1);
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-width: 1px;
}

.pagination-dot.active {
  background: var(--secondary-color);
}

/* ===================================
   LIGHTBOX
   =================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

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

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 5px;
}

.lightbox-counter {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10001;
}

.lightbox-description {
  text-align: center;
  color: white;
  font-size: 1rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  font-weight: 400;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--bg-color);
  color: var(--bg-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.5rem;
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-prev:hover,
.lightbox-prev:focus-visible,
.lightbox-next:hover,
.lightbox-next:focus-visible {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-color);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

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

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.5rem 2rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}

.faq-question:hover,
.faq-question:focus-visible {
  background: var(--bg-light);
}

.faq-question i {
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--secondary-color);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 2rem 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
  background: var(--bg-light);
}

.contact-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.contact-left,
.contact-right {
  flex: 1;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-hover);
}

.contact-item i {
  font-size: 2rem;
  color: var(--secondary-color);
  min-width: 40px;
}

.contact-item h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.contact-item p,
.contact-item a {
  color: var(--text-light);
  font-size: 1rem;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  color: var(--secondary-color);
}

.contact-form {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-color);
  background-color: var(--bg-color);
}

.form-group select {
  cursor: pointer;
}

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

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

.contact-form .btn {
  width: 100%;
  margin-top: 1rem;
}

/* Message de confirmation/erreur formulaire */
.form-message {
  display: block;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.form-message.success {
  background-color: #f0fdf4;
  border-color: #27ae60;
  color: #166534;
}

.form-message.error {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--bg-dark);
  color: var(--bg-color);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--bg-color);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col ul li i {
  color: var(--secondary-color);
  font-size: 1rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.dev-credit {
  font-size: 0.9rem;
  opacity: 0.8;
}

.dev-credit a {
  color: var(--secondary-color);
  font-weight: 600;
  transition: var(--transition);
}

.dev-credit a:hover,
.dev-credit a:focus-visible {
  color: var(--accent-color);
}

/* ===================================
   RESPONSIVE - TABLETTE (≤1024px)
   =================================== */
@media (max-width: 1024px) {
  .about-content {
    flex-direction: column;
  }
  
  .about-images {
    max-width: 700px;
    margin: 0 auto;
  }

  .about-carousel {
    height: 400px;
  }
  
  .service-card {
    flex: 1 1 calc(50% - 2rem);
  }
  
  .gallery-item {
    flex: 1 1 calc(50% - 1.5rem);
  }
}

/* ===================================
   RESPONSIVE - MOBILE (≤820px)
   =================================== */
@media (max-width: 820px) {
  html {
    font-size: 17px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  section {
    padding: 3.5rem 0;
  }
  
  /* Header Mobile */
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    padding: 5rem 0 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    gap: 0;
    z-index: 999;
  }

  .nav-close {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }

  .nav-close:hover {
    color: var(--secondary-color);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: var(--text-color) !important;
  }

  .nav-link::after {
    display: none;
  }

  /* Lightbox buttons adjustment pour mobile */
  .lightbox-prev,
  .lightbox-next {
    top: 45%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    left: 1rem;
  }

  .lightbox-next {
    left: auto;
    right: 1rem;
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
  }

  .lightbox-counter {
    top: 1rem;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: var(--bg-light);
    color: var(--secondary-color);
  }

  /* Hero Mobile */
  .hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero-content {
    padding: 2.5rem 1.5rem;
    max-width: 95%;
  }

  .hero-brand {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
  }

  .hero-brand::after {
    width: 60px;
    height: 2px;
  }

  .hero-name {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    letter-spacing: 2px;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 1rem 2rem;
  }
  
  /* About Mobile */
  .about-images {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 2rem auto 0;
  }

  .about-carousel {
    height: 350px;
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
  }

  .about-carousel-slide {
    display: block;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
  }

  .carousel-prev i,
  .carousel-next i {
    font-size: 1rem;
  }

  .carousel-indicators {
    bottom: 1rem;
    gap: 0.6rem;
  }

  .carousel-indicators .indicator {
    width: 10px;
    height: 10px;
  }

  .carousel-indicators .indicator.active {
    width: 12px;
    height: 12px;
  }
  
  /* Services Mobile */
  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  /* Gallery Mobile */
  .gallery-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  /* Lightbox Mobile */
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
  
  .lightbox-prev {
    left: 1rem;
  }
  
  .lightbox-next {
    right: 1rem;
  }
  
  /* Contact Mobile */
  .contact-content {
    flex-direction: column;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Footer Mobile */
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-col {
    min-width: 100%;
  }
}

/* ===================================
   TRÈS PETITS ÉCRANS - < 480px
   =================================== */
@media (max-width: 480px) {
  /* Force tout à rester dans la largeur */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  * {
    max-width: 100%;
  }

  :root {
    --header-height: 50px;
  }

  .container {
    padding: 0 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  /* Hero content */
  .hero-content {
    padding: 2rem 1rem;
    max-width: 100%;
    width: calc(100% - 2rem);
    margin: 0 1rem;
  }

  .hero-brand {
    font-size: clamp(1.65rem, 8.5vw, 2.2rem);
    letter-spacing: 2px;
    word-break: break-word;
  }

  .hero-name {
    font-size: clamp(1.55rem, 6vw, 1.95rem);
    letter-spacing: 1.5px;
  }

  .hero-content h1 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    word-break: break-word;
    line-height: 1.8;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .hero-buttons {
    width: 100%;
    padding: 0;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Sections */
  section {
    padding: 3rem 0;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Carousel About */
  .about-images {
    width: 100%;
    max-width: 100%;
    display: block !important;
    margin: 1.5rem auto 0;
  }

  .about-carousel {
    height: 280px;
    border-radius: 10px;
    width: 100%;
    display: block !important;
    position: relative;
    overflow: hidden;
  }

  .about-carousel-slide {
    display: block !important;
  }

  .carousel-prev,
  .carousel-next {
    width: 35px;
    height: 35px;
  }

  .carousel-prev i,
  .carousel-next i {
    font-size: 0.9rem;
  }

  .carousel-indicators {
    bottom: 0.8rem;
    gap: 0.5rem;
  }

  .carousel-indicators .indicator {
    width: 8px;
    height: 8px;
  }

  .carousel-indicators .indicator.active {
    width: 10px;
    height: 10px;
  }

  /* Navigation mobile */
  .nav-menu {
    width: 100vw;
    max-width: 100vw;
  }

  /* Images */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Contact form */
  .contact-form {
    width: 100%;
    padding: 1.5rem 1rem;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    max-width: 100%;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-col {
    width: 100%;
    max-width: 100%;
  }
}

/* ===================================
   ANIMATIONS & ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

*:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}