/* Reset + base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at top, rgba(0,255,255,0.12), transparent 25%),
              linear-gradient(135deg, #05070d 0%, #0f1523 60%, #090b12 100%);
  color: #f4faff;
  min-height: 100vh;
}
a { color: #4be1ff; text-decoration: none; }
a:hover { color: #80f3ff; }
button, .btn {
  font-family: inherit;
}

/* Loader */
.no-scroll { overflow: hidden; }
#loader {
  position: fixed;
  inset: 0;
  background: #04060b;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#loader::after {
  content: '🚀 Chargement...';
  color: #4be1ff;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  animation: blink 1s infinite alternate;
}
@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.3; }
}

/* Hero */
.hero {
  padding: 3.5rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -15%;
  width: 420px;
  height: 420px;
  background: rgba(75, 225, 255, 0.12);
  border-radius: 50%;
  filter: blur(80px);
}
.hero-wrap {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #55d7ff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}
.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
  color: #e8ffff;
}
.hero-text {
  max-width: 680px;
  line-height: 1.8;
  color: #c7d7e8;
  font-size: 1.06rem;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, #2ce3ff, #18b5ff);
  color: #020617;
  box-shadow: 0 18px 35px rgba(44, 227, 255, 0.18);
}
.btn-secondary {
  background: transparent;
  border-color: rgba(75, 225, 255, 0.36);
  color: #8bd9ff;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.hero-tags span {
  font-size: 0.9rem;
  color: #d4f6ff;
  background: rgba(75, 225, 255, 0.08);
  border: 1px solid rgba(75, 225, 255, 0.14);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}
.hero-image {
  display: flex;
  justify-content: center;
}
.hero-image img {
  width: min(100%, 320px);
  border-radius: 30px;
  border: 3px solid rgba(75, 225, 255, 0.2);
  box-shadow: 0 35px 80px rgba(6, 19, 38, 0.55);
}

/* Stats */
.stats {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.8rem;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}
.stat-card strong {
  display: block;
  font-size: 2rem;
  color: #d3f9ff;
  margin-bottom: 0.5rem;
}
.stat-card span {
  color: #b8dff7;
  line-height: 1.6;
}

/* Sections */
.section {
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: auto;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #7ceaff;
  text-shadow: 0 0 12px rgba(124, 234, 255, 0.35);
}
.section p {
  color: #c6d7e1;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.process-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}
.process-card {
  background: linear-gradient(180deg, rgba(12,24,43,0.95) 0%, rgba(12,24,43,0.82) 100%);
  border: 1px solid rgba(75, 225, 255, 0.16);
  border-radius: 24px;
  padding: 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px rgba(15, 64, 126, 0.22);
}
.process-card span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(75, 225, 255, 0.16);
  color: #aaf4ff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.process-card h3 {
  margin-bottom: 0.8rem;
  color: #d1f7ff;
}
.process-card p {
  color: #cddfee;
  line-height: 1.7;
}
.demo-note {
  margin-top: 1.5rem;
  color: #a3cde7;
  font-style: italic;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
}
.card {
  background: rgba(10, 18, 35, 0.85);
  border: 1px solid rgba(75, 225, 255, 0.12);
  padding: 1.6rem;
  border-radius: 24px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(24, 182, 255, 0.18);
  border-color: rgba(75, 225, 255, 0.25);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: flex-start;
}
.contact-grid p {
  margin-bottom: 1rem;
}
input, textarea {
  width: 100%;
  background: rgba(5, 12, 23, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.1rem;
  border-radius: 16px;
  color: #f8fcff;
  outline: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
input:focus, textarea:focus {
  border-color: rgba(75, 225, 255, 0.45);
  transform: translateY(-1px);
}
textarea {
  min-height: 180px;
  resize: vertical;
}
button[type="submit"], .btn-voir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #3ff0d6, #32a6ff);
  color: #020617;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}
button[type="submit"]:hover, .btn-voir:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.footer {
  text-align: center;
}
footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: #8aacc8;
}

/* Scroll appearance */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(1, 3, 9, 0.95);
  backdrop-filter: blur(6px);
  padding: 2rem;
}
.modal-content {
  background: #08101f;
  margin: auto;
  padding: 2rem;
  width: min(100%, 620px);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid rgba(75, 225, 255, 0.14);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  position: relative;
}
.modal-content h2 {
  color: #73e6ff;
  margin-bottom: 1rem;
}
.modal-content p {
  color: #d1e5f3;
  line-height: 1.8;
}
.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #79ddff;
  cursor: pointer;
}

.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.carousel-container img,
.carousel-container video {
  width: min(100%, 400px);
  border-radius: 20px;
  border: 1px solid rgba(75, 225, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.carousel-btn {
  background: none;
  border: 1px solid rgba(75, 225, 255, 0.45);
  color: #7be9ff;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 1.3rem;
  cursor: pointer;
}
.carousel-btn:hover {
  background: rgba(75, 225, 255, 0.1);
}

@media (max-width: 960px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-image { order: -1; margin-bottom: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 2.5rem 1rem 1.5rem; }
  .hero-text { font-size: 1rem; }
  .section { padding: 2rem 1rem; }
}
