:root {
  --bg: #0b0d12;
  --bg-alt: #111420;
  --primary: #FAAF3D;
  --secondary: #4dd0e1;
  --text: #eaeaf0;
  --muted: #9aa0b3;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}


/* ================= LOADER ================= */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* ================= ELECTRIC BACKGROUND ================= */
canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
}


/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  padding: 10px;
  top: 0;
  width: 100%;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 18, 0.6);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 16px 8vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--primary);
  color: #000 !important;
  font-weight: 600;
}

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

.nav-cta:hover {
  transform: scale(1.1);
  transition: transform .3s ease;
}


/* ================ LOGO ================= */
.logo img {
  max-width: 600px;
  /* tamaño desktop */
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 40px;
}


/* ================= LAYOUT ================= */
section {
  padding: 120px 8vw;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--muted);
  margin-top: 10px;
}


/* ================= SCROLL REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  /* CLAVE */
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 20px;
}

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

.hero p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.3rem;
  margin-bottom: 40px;
}

/* ================= FLECHA SCROLL INDICATOR ================= */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 25px;
  /* borde inferior REAL */
  transform: translateX(-50%);

  font-size: 3.8rem;
  font-weight: 900;
  color: var(--primary);

  animation: bounce 1.6s infinite;
  text-decoration: none;
  opacity: 0.9;
}

/* ================= SERVICES ================= */
.servicesTitle {
  font-size: 2.2rem;
}

.domaine {
  color: var(--primary);
}

.services-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /*grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));*/
  gap: 30px;
}

.service-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 213, 74, 0.12),
      transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.service-card .icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ================= SERVICE CARD LIST ================= */

.service-card .service-list {
  list-style: none;
  /* sin bullets clásicos */
  padding: 15px;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.service-card .service-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

/* pequeño marcador sutil */
.service-card .service-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
  opacity: 0.6;
}

/* ================= AVIS GOOGLE ================= */

.avis .container {
  max-width: 1000px;
  /* o 900px */
}

/* ================= CONTACT ================= */


.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Form */
.contact-form {
  display: grid;
  gap: 20px;
}

input,
textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  font-size: 1rem;
}

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

textarea {
  resize: none;
  height: 140px;
}

/* Submit Button */
.btn {
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--primary);
  color: #000;
  font-weight: 600;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s ease;
}

.btn:hover {
  transform: scale(1.05);
}

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

/* Contact direct card */
.contact-direct {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}


/* ================= FOOTER ================= */
footer {
  padding: 40px 8vw;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {

  .contact-grid {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Cursor tipo acordeón */
  .service-card {
    cursor: pointer;
    position: relative;
    padding-bottom: 48px;
    /* espacio para "Voir plus" */
  }

  /* Indicador Voir plus / Voir moins */
  .service-card::after {
    content: "Voir plus";
    position: absolute;
    bottom: 18px;
    right: 24px;

    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    opacity: 0.8;
  }

  .service-card.open::after {
    content: "Voir moins";
  }

  /* Contenido cerrado por defecto */
  .service-card p,
  .service-card ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      max-height 0.4s ease,
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  /* Card abierta */
  .service-card.open p,
  .service-card.open ul {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  }

  section {
    padding-left: 0;
    padding-right: 0;
  }

  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateX(-50%) translateY(14px);
    opacity: 1;
  }
}


/* ================= FLOATING CONTACT BUTTON ================= */
.contact-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
}

/* Botón principal – TEXTO */
.fab-main {
  width: auto;
  min-width: 170px;
  height: auto;

  padding: 14px 20px;
  border-radius: 999px;

  border: none;
  cursor: pointer;

  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform .3s ease;
  background: var(--primary);
  color: #000;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

  animation: pulse 3s infinite;
}

.fab-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  /* justo encima del botón */
  right: 0;

  display: flex;
  flex-direction: column;
  gap: 12px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.contact-fab.open .fab-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 14px;

  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);

  color: var(--text);
  text-decoration: none;
  font-weight: 600;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.fab-item span {
  font-size: 0.9rem;
}

.fab-item:hover {
  border-color: var(--primary);
}

.fab-main:hover {
  transform: scale(1.05);
}

/* Pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 213, 74, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(255, 213, 74, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 213, 74, 0);
  }
}

/* =================  FOOTER LEGAL  ================= */

footer p a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin: 0 8px;
  transition: color 0.3s ease;
}

footer p a:hover {
  color: var(--primary);
  text-decoration: underline;
}