:root { 
  --bg:#0f172a; 
  --card:#111827; 
  --text:#e5e7eb; 
  --muted:#94a3b8; 
  --accent:#22d3ee; 
}

/* Mode clair */
body.light-mode {
  --bg:#f8fafc;
  --card:#ffffff;
  --text:#1e293b;
  --muted:#64748b;
  --accent:#0891b2;
}

* { 
  box-sizing: border-box; 
}

body { 
  margin:0; 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; 
  color:var(--text); 
  background: linear-gradient(180deg, #0b1220, #0f172a);
  transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode {
  background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
}

header { 
  position: sticky; 
  top:0; 
  backdrop-filter: saturate(1.2) blur(8px); 
  background: rgba(15,23,42,.6); 
  border-bottom: 1px solid rgba(255,255,255,.06); 
  z-index: 1002;
}

body.light-mode header {
  background: rgba(248,250,252,.9);
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.container { 
  max-width: 100%; 
  margin: 0; 
  padding: 16px 24px; 
}

nav { 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:16px; 
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Bouton hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

nav a { 
  color:var(--muted); 
  text-decoration:none; 
  padding:8px 10px; 
  border-radius:8px; 
}

nav a:hover { 
  color:var(--text); 
  background: rgba(255,255,255,.06); 
}

.brand { 
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight:700; 
  color:var(--text); 
  letter-spacing:.3px; 
}

.logo {
  height: 70px;
  width: 70px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body.light-mode .logo {
  filter: brightness(0) invert(0);
}

/* Bouton toggle theme */
.theme-toggle {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-toggle:hover {
  background: rgba(255,255,255,.1);
  transform: scale(1.1);
}

.theme-toggle .sun {
  display: none;
}

.theme-toggle .moon {
  display: inline;
}

body.light-mode .theme-toggle:hover {
  background: rgba(0,0,0,.05);
}

body.light-mode .theme-toggle .sun {
  display: inline;
}

body.light-mode .theme-toggle .moon {
  display: none;
}

.btn { 
  background:linear-gradient(135deg, #06b6d4, #22d3ee); 
  color:#081018; 
  border:none; 
  padding:10px 14px; 
  border-radius:10px; 
  font-weight:600; 
  cursor:pointer; 
  text-decoration: none;
  display: inline-block;
}

.btn:hover { 
  filter: brightness(1.05); 
  text-decoration: none;
}

.hero { 
  text-align:center; 
  padding:72px 16px 48px;
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(11, 18, 32, 0.9)), url('../img/bg-masthead.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-radius: 16px;
  margin-bottom: 16px;
}

.title { 
  font-family: 'Poppins', sans-serif;
  font-weight:5;
  font-size: clamp(16px, 5vw, 32px); 
  margin:0 0 12px; 
  line-height:1.1;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.subtitle { 
  color:var(--muted); 
  max-width: 720px; 
  margin: 0 auto 24px; 
}

.grid { 
  display:grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap:16px; 
}

@media (max-width: 900px){ 
  .grid { 
    grid-template-columns: 1fr; 
  } 
}

/* Menu mobile responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--card);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  body.light-mode .nav-links {
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    right: 0;
  }

  nav a {
    width: 100%;
    padding: 12px 0;
    font-size: 18px;
  }

  .theme-toggle {
    margin-top: 10px;
  }

  .logo {
    height: 50px;
    width: 50px;
  }

  .brand {
    gap: 10px;
    font-size: 14px;
  }
}

.card { 
  background: radial-gradient(1200px 400px at -10% -50%, rgba(34,211,238,.15), transparent) , var(--card);
  border:1px solid rgba(255,255,255,.06); 
  border-radius:14px; 
  padding:18px; 
}

.card h3 { 
  margin:0 0 6px; 
  font-size:18px; 
}

.card p { 
  margin:0; 
  color:var(--muted); 
}

section { 
  padding: 32px 16px; 
}

/* Section Découverte */
.decouverte-section {
  padding: 60px 16px;
  background: linear-gradient(135deg, rgba(34,211,238,0.03), rgba(6,182,212,0.05));
  border-radius: 16px;
  margin: 32px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .section-title {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 18px;
  line-height: 1.6;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.solution-card {
  background: var(--card);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22d3ee, #06b6d4);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.solution-card:hover::before {
  transform: scaleX(1);
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34,211,238,0.4);
  box-shadow: 0 12px 32px rgba(34,211,238,0.15);
}

body.light-mode .solution-card {
  border-color: rgba(8,145,178,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.light-mode .solution-card:hover {
  border-color: rgba(8,145,178,0.4);
  box-shadow: 0 12px 32px rgba(8,145,178,0.12);
}

.solution-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.solution-card h3 {
  font-size: 22px;
  margin: 16px 0 12px;
  color: var(--text);
  font-weight: 600;
}

.solution-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 15px;
}

@media (max-width: 768px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .decouverte-section {
    padding: 40px 16px;
  }
}

/* Section Galerie Photos */
.galerie-section {
  padding: 60px 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.03), rgba(168,85,247,0.05));
  border-radius: 16px;
  margin: 32px 0;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.galerie-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
  background: var(--card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.galerie-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(139,92,246,0.2);
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galerie-item:hover img {
  transform: scale(1.1);
}

body.light-mode .galerie-section {
  background: linear-gradient(135deg, rgba(139,92,246,0.02), rgba(168,85,247,0.03));
}

body.light-mode .galerie-item {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body.light-mode .galerie-item:hover {
  box-shadow: 0 8px 20px rgba(139,92,246,0.15);
}

@media (max-width: 768px) {
  .galerie-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .galerie-section {
    padding: 40px 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Section Features */
.features-section {
  padding:10x 16px;
  background: linear-gradient(135deg, rgba(14, 4, 155, 0.03), rgba(62, 9, 206, 0.05));
  border-radius: 16px;
  margin: 32px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.feature-card {
  background: var(--card);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 12px 32px rgba(139,92,246,0.15);
}

body.light-mode .feature-card {
  border-color: rgba(139,92,246,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.light-mode .feature-card:hover {
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 12px 32px rgba(139,92,246,0.12);
}

.feature-emoji {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 24px;
  font-size: 16px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.contact-list li {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-list strong {
  color: var(--text);
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-list a:hover {
  color: #8b5cf6;
  text-decoration: underline;
}

.feature-actions {
  margin-top: 20px;
}

.feature-actions .btn {
  width:30%;
  justify-content: center;
  padding: 12px 24px;
  font-size: 16px;
  background: linear-gradient(135deg, #2301b6, #c2fae5);
}

.feature-actions .btn:hover {
  background: linear-gradient(135deg, #7c3aed, #7333ea);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .features-section {
    padding: 40px 16px;
  }
  
  .feature-card {
    padding: 32px 24px;
  }
  
  .feature-emoji {
    font-size: 40px;
  }
  
  .feature-card h3 {
    font-size: 20px;
  }
}

/* Section Vidéo */
.video-section {
  padding: 60px 16px;
  background: linear-gradient(135deg, rgba(34,211,238,0.03), rgba(6,182,212,0.05));
  border-radius: 16px;
  margin: 32px 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.video-card {
  background: var(--card);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34,211,238,0.4);
  box-shadow: 0 12px 32px rgba(34,211,238,0.15);
}

body.light-mode .video-card {
  border-color: rgba(8,145,178,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.light-mode .video-card:hover {
  border-color: rgba(8,145,178,0.4);
  box-shadow: 0 12px 32px rgba(8,145,178,0.12);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Ratio 16:9 */
  background: #000;
  overflow: hidden;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: 24px;
}

.video-info h3 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 600;
}

.video-info p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .video-section {
    padding: 40px 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(34, 211, 238, 0.3);
  border-color: var(--accent);
  transform: scale(1.1);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 40px;
  line-height: 1;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .lightbox-img {
    max-width: 95%;
    max-height: 80vh;
  }
  
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-counter {
    bottom: 20px;
    font-size: 14px;
    padding: 6px 16px;
  }
}

form { 
  display:grid; 
  gap:12px; 
  max-width:520px; 
  margin: 0 auto; 
}

input, textarea { 
  background:#0b1220; 
  color:var(--text); 
  border:1px solid rgba(255,255,255,.08); 
  border-radius:10px; 
  padding:10px 12px; 
}

footer { 
  text-align:center; 
  color:var(--muted); 
  padding:24px; 
  border-top:1px solid rgba(255,255,255,.06); 
  margin-top:32px; 
}

.badge { 
  display:inline-flex; 
  align-items:center; 
  gap:8px; 
  color:#081018; 
  background: rgba(34,211,238,.15); 
  border: 1px solid rgba(34,211,238,.35); 
  padding:6px 10px; 
  border-radius:999px; 
  font-weight:600; 
}

.accent { 
  color: var(--accent); 
}

/* Styles pour les champs de saisie en mode clair */
#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    color: #2d3748; /* Couleur de texte foncée pour un bon contraste */
    background-color: #ffffff; /* Fond blanc */
    border: 1px solid #e2e8f0; /* Bordure légère */
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    font-size: 16px;
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
    border-color: #4f46e5; /* Couleur d'accent au focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Placeholder */
#contact input::placeholder,
#contact textarea::placeholder {
    color: #a0aec0; /* Couleur du texte d'aide */
    opacity: 1; /* Assure la visibilité sur tous les navigateurs */
}

/* Styles spécifiques au textarea */
#contact textarea {
    min-height: 120px;
    resize: vertical;
}

/* Style pour le bouton d'envoi */
#contact button[type="submit"] {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#contact button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}