/* ============================================================
   DERO Technology Solutions — ddero.ch
   Thème « Cyber » · Dark Mode absolu
   Charte : noir #000000 · cyan #00A3F7 → #50E8F5 · nid d'abeille
   Mobile-first · CSS pur avec variables
   ============================================================ */

/* ------------------------------------------------------------
   1. Variables & reset
   ------------------------------------------------------------ */
:root {
  /* Fonds */
  --bg:          #000000;
  --bg-soft:     #05070a;
  --panel:       rgba(12, 16, 20, 0.78);
  --panel-plein: #0b1014;

  /* Palette cyan / bleu (charte) */
  --bleu-1: #00A3F7;
  --bleu-2: #00BDF5;
  --cyan-3: #00D6F2;
  --cyan-4: #01E1ED;
  --cyan-5: #50E8F5;

  /* Textes */
  --texte:   #e8eef1;
  --texte-2: #aab6bd;
  --texte-3: #66737b;

  /* Lignes & états */
  --ligne:       rgba(0, 214, 242, 0.14);
  --ligne-forte: rgba(0, 214, 242, 0.34);
  --ok:          #4ade80;
  --erreur:      #ff5c74;

  /* Effets */
  --glow:      0 0 24px rgba(0, 214, 242, 0.32);
  --glow-fort: 0 0 46px rgba(0, 214, 242, 0.55);
  --degrade:   linear-gradient(120deg, var(--bleu-1), var(--cyan-3) 55%, var(--cyan-5));

  /* Géométrie */
  --rayon:    16px;
  --rayon-sm: 10px;
  --nav-h:    62px;

  /* Typographie */
  --police:        "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --police-texte:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --police-mono:   "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  min-height: 100vh;
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  /* Fond noir + motif « nid d'abeille » + halos cyan discrets */
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(0, 163, 247, 0.14), transparent 62%),
    radial-gradient(900px 520px at 88% 112%, rgba(80, 232, 245, 0.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='24.249' viewBox='0 0 42 24.249'%3E%3Cg fill='none' stroke='%2300D6F2' stroke-opacity='0.05' stroke-width='1'%3E%3Cpolygon points='14,0 7,12.124 -7,12.124 -14,0 -7,-12.124 7,-12.124'/%3E%3Cpolygon points='35,12.124 28,24.249 14,24.249 7,12.124 14,0 28,0'/%3E%3Cpolygon points='56,0 49,12.124 35,12.124 28,0 35,-12.124 49,-12.124'/%3E%3C/g%3E%3C/svg%3E"),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan-5);
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(0, 214, 242, 0.35);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--cyan-3);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Barre de défilement discrète */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #04060a; }
::-webkit-scrollbar-thumb {
  background: rgba(0, 214, 242, 0.22);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 214, 242, 0.45); }

/* Utilitaires */
.container { width: min(1080px, 92vw); margin-inline: auto; }

.mono { font-family: var(--police-mono); }

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Texte en dégradé cyan */
.accent {
  background: var(--degrade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------
   2. Navigation (en-tête collant)
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(2, 4, 7, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--ligne);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--texte);
  min-width: 0;
}

.brand img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 214, 242, 0.25));
}

.brand-texte {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-texte b {
  font-family: var(--police);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.brand-texte span {
  font-family: var(--police-mono);
  font-size: 8.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--texte-3);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  position: relative;
  font-family: var(--police-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texte-2);
  padding: 8px 0;
  transition: color 0.2s ease-out, text-shadow 0.2s ease-out;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--degrade);
  box-shadow: 0 0 8px rgba(0, 214, 242, 0.8);
  transition: width 0.25s ease-out;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--cyan-5);
  text-shadow: 0 0 14px rgba(80, 232, 245, 0.55);
}

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

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--ligne);
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cyan-3);
  border-radius: 2px;
  transition: transform 0.25s ease-out, opacity 0.2s ease-out;
}

.nav-burger.actif span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.actif span:nth-child(2) { opacity: 0; }
.nav-burger.actif span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 759px) {
  .nav-burger { display: flex; }

  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0 16px;
    background: rgba(3, 6, 9, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ligne);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out, visibility 0.25s;
  }

  .nav-menu.ouvert {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 14px 5vw;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-menu a::after { display: none; }
}

/* ------------------------------------------------------------
   3. Hero — logo & slogan
   ------------------------------------------------------------ */
.hero {
  padding: clamp(72px, 12vw, 132px) 0 clamp(56px, 8vw, 88px);
  text-align: center;
}

.hero-logo {
  /* ~1/2 de la largeur d'écran (plafond 760px pour les très grands écrans) */
  width: clamp(230px, 50vw, 760px);
  margin-inline: auto;
  filter: drop-shadow(0 0 34px rgba(0, 214, 242, 0.30));
}

.hero-slogan {
  margin-top: 30px;
  font-size: clamp(1.08rem, 2.8vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--texte-2);
  line-height: 1.55;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--police-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-2);
  padding: 8px 15px;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: rgba(0, 214, 242, 0.04);
}

.point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: pointPulse 2.2s ease-out infinite;
}

@keyframes pointPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Pastilles d'état pilotées par le statut public (js/status.js) */
.point--attention {
  background: #ffa62b;
  box-shadow: 0 0 8px rgba(255, 166, 43, 0.55);
  animation: none;
}

.point--panne {
  background: #ff5c74;
  box-shadow: 0 0 8px rgba(255, 92, 116, 0.55);
  animation: none;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
}

.scroll-cue {
  display: inline-block;
  margin-top: 54px;
  color: var(--texte-3);
  animation: flotte 2.6s ease-in-out infinite;
  transition: color 0.2s ease-out;
}

.scroll-cue:hover { color: var(--cyan-5); }

@keyframes flotte {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ------------------------------------------------------------
   4. Boutons génériques
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--police);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--rayon-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
              background 0.18s ease-out, border-color 0.18s ease-out;
}

.btn-lg {
  padding: 17px 30px;
  font-size: 1.02rem;
}

.btn-primary {
  color: #02161b;
  background: var(--degrade);
  box-shadow: 0 0 22px rgba(0, 214, 242, 0.30);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-fort);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--cyan-5);
  border-color: var(--ligne-forte);
  background: rgba(0, 214, 242, 0.05);
}

.btn-ghost:hover {
  background: rgba(0, 214, 242, 0.11);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   5. Sections — titres & kickers
   ------------------------------------------------------------ */
.section {
  padding: clamp(64px, 10vw, 108px) 0;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 46px;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-5);
  margin-bottom: 14px;
  text-shadow: 0 0 16px rgba(80, 232, 245, 0.4);
}

h1,
h2 {
  font-family: var(--police);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 2.45rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #ffffff;
}

.intro {
  margin-top: 14px;
  color: var(--texte-2);
  font-size: 1.02rem;
}

/* ------------------------------------------------------------
   6. B. Module d'urgence 24/7
   ------------------------------------------------------------ */
.box-urgence {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 46px) clamp(22px, 5vw, 48px);
  border: 1px solid transparent;
  border-radius: 18px;

  /* Bordure lumineuse cyan animée (dégradé sur la border-box) */
  background:
    linear-gradient(rgba(10, 15, 18, 0.94), rgba(10, 15, 18, 0.94)) padding-box,
    linear-gradient(120deg,
      rgba(0, 163, 247, 0.75),
      rgba(80, 232, 245, 0.22) 28%,
      rgba(80, 232, 245, 0.75) 50%,
      rgba(0, 163, 247, 0.22) 78%,
      rgba(0, 163, 247, 0.75)) border-box;
  background-size: 100% 100%, 300% 100%;
  box-shadow:
    0 0 50px rgba(0, 163, 247, 0.13),
    inset 0 0 34px rgba(0, 214, 242, 0.035);
  animation: bordureVivante 7s linear infinite;
}

@keyframes bordureVivante {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 300% 0; }
}

.astreinte {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-5);
  padding: 8px 15px;
  border: 1px solid var(--ligne-forte);
  border-radius: 999px;
  margin-bottom: 26px;
  background: rgba(0, 214, 242, 0.05);
}

.champ-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-3);
  margin-bottom: 10px;
}

#phone {
  width: 100%;
  padding: 16px 18px;
  font-family: var(--police-mono);
  font-size: 16px; /* évite le zoom automatique iOS */
  color: var(--texte);
  background: #05080a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--rayon-sm);
  outline: none;
  text-align: center;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

#phone::placeholder { color: #4c565d; }

#phone:focus {
  border-color: var(--cyan-3);
  box-shadow: 0 0 0 3px rgba(0, 214, 242, 0.18), var(--glow);
}

/* Bouton d'action massif — pulsation */
.btn-urgence {
  width: 100%;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 19px 22px;
  font-family: var(--police);
  font-weight: 700;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #02161b;
  background: var(--degrade);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: pulsation 2.4s ease-in-out infinite;
  transition: transform 0.1s ease-out;
}

@keyframes pulsation {
  0%, 100% {
    box-shadow: 0 0 22px rgba(0, 214, 242, 0.35),
                0 8px 20px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: 0 0 54px rgba(80, 232, 245, 0.68),
                0 8px 20px rgba(0, 0, 0, 0.45);
  }
}

.btn-urgence:active { transform: scale(0.985); }

.btn-urgence:disabled {
  opacity: 0.6;
  cursor: wait;
  animation: none;
}

/* Variantes pilotées par le statut public (js/status.js ← status.json) */
.btn-urgence--intervention {
  color: #ffffff;
  background: linear-gradient(120deg, #ff5c5c, #c62828 55%, #8e1414);
  animation: pulsationIntervention 2.4s ease-in-out infinite;
}

@keyframes pulsationIntervention {
  0%, 100% {
    box-shadow: 0 0 22px rgba(255, 92, 92, 0.35),
                0 8px 20px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: 0 0 54px rgba(255, 92, 92, 0.68),
                0 8px 20px rgba(0, 0, 0, 0.45);
  }
}

.btn-urgence--pause,
.btn-urgence--pause:disabled {
  color: #9aa3aa;
  background: linear-gradient(120deg, #3a4147, #262c31);
  animation: none;
  cursor: not-allowed;
  opacity: 0.85;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Bouton facultatif « Préciser la panne » — masqué tant que le
   numéro n'est pas saisi (js/urgence.js le révèle) */
.btn-precision {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cyan-5);
  background: rgba(0, 214, 242, 0.05);
  border: 1px dashed rgba(0, 214, 242, 0.34);
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}

.btn-precision[hidden] { display: none; }

.btn-precision:hover {
  background: rgba(0, 214, 242, 0.11);
  border-color: var(--cyan-3);
}

.btn-precision:focus-visible {
  outline: none;
  border-color: var(--cyan-3);
  box-shadow: 0 0 0 3px rgba(0, 214, 242, 0.18);
}

/* Une précision est enregistrée : le bouton passe en vert */
.btn-precision.rempli {
  color: var(--ok);
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.07);
}

.statut {
  margin-top: 20px;
  font-size: 13px;
  color: var(--texte-3);
  text-align: center;
  min-height: 1.5em;
  transition: color 0.25s ease-out;
}

.statut.info   { color: var(--cyan-5); }
.statut.ok     { color: var(--ok); }
.statut.erreur { color: var(--erreur); }

.urgence-note {
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--texte-3);
  text-align: center;
  letter-spacing: 0.03em;
}

/* QR code — scan depuis un PC (ouvre ddero.ch sur le natel) */
.qr-plaque {
  flex-shrink: 0;
  padding: 8px;
  background: #ffffff;
  border-radius: 10px;
  line-height: 0;
  box-shadow: 0 0 20px rgba(0, 163, 247, 0.30);
}

.qr-plaque img {
  width: 84px;
  height: 84px;
  display: block;
}

.urgence-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed rgba(0, 214, 242, 0.18);
}

.urgence-qr-texte {
  text-align: left;
  font-size: 12.5px;
  color: var(--texte-2);
  line-height: 1.5;
  max-width: 220px;
}

.urgence-qr-texte b {
  display: block;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 2px;
}

/* Sur mobile on est déjà sur le natel : version compacte centrée */
@media (max-width: 480px) {
  .urgence-qr { flex-direction: column; gap: 12px; }
  .urgence-qr-texte { text-align: center; max-width: none; }
}

/* ------------------------------------------------------------
   7. C. Services
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 760px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

.service-card {
  /* Colonne : permet d'épingler un bouton en bas de carte
     (margin-top: auto sur son conteneur). */
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 34px);
  background: var(--panel);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  transition: transform 0.25s ease-out, border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--ligne-forte);
  box-shadow: 0 16px 42px rgba(0, 163, 247, 0.12), var(--glow);
}

.service-icone {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--cyan-3);
  border: 1px solid var(--ligne-forte);
  border-radius: 12px;
  background: rgba(0, 214, 242, 0.06);
  margin-bottom: 20px;
  box-shadow: inset 0 0 14px rgba(0, 214, 242, 0.10);
}

.service-card h3 {
  font-family: var(--police);
  font-weight: 600;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.service-card ul { list-style: none; }

/* Phrase d'accroche des cartes service (ex. impression 3D) */
.service-accroche {
  margin: 0 0 14px;
  color: var(--texte-2);
}

.service-card li {
  position: relative;
  padding: 10px 0 10px 22px;
  color: var(--texte-2);
}

.service-card li + li { border-top: 1px dashed rgba(255, 255, 255, 0.07); }

.service-card li::before {
  content: "›";
  position: absolute;
  left: 2px;
  top: 8px;
  color: var(--cyan-3);
  font-family: var(--police-mono);
  font-weight: 700;
}

/* Tarif de base */
.tarif {
  margin-top: 28px;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--ligne-forte);
  border-radius: var(--rayon);
  background:
    linear-gradient(180deg, rgba(0, 163, 247, 0.09), rgba(0, 214, 242, 0.02));
  box-shadow: 0 0 36px rgba(0, 163, 247, 0.10);
}

.tarif-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-5);
  margin-bottom: 10px;
}

.tarif-prix {
  font-family: var(--police);
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  color: #ffffff;
}

.tarif-prix strong {
  font-weight: 700;
  font-size: 1.18em;
  background: var(--degrade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(0, 214, 242, 0.35);
}

/* Badge « Créneau Libre » — affiché quand horaire_libre_actif
   est true dans status.json (piloté depuis cockpit.php) */
.tarif-libre-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 7px 16px;
  font-family: var(--police-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cyan-3);
  background: rgba(0, 214, 242, 0.07);
  border: 1px solid rgba(0, 214, 242, 0.42);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(0, 214, 242, 0.16);
}

.tarif-libre-badge[hidden] { display: none; }

/* ------------------------------------------------------------
   8. D. Labo & Projets R&D — cartes « Cyber »
   ------------------------------------------------------------ */
.labo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 760px) {
  .labo-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

.lab-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  overflow: hidden;
  transition: transform 0.25s ease-out, border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}

.lab-card:hover {
  transform: translateY(-5px);
  border-color: var(--ligne-forte);
  box-shadow: 0 16px 44px rgba(0, 163, 247, 0.13), var(--glow);
}

/* Équerres cyan aux coins — signature « Cyber » */
.lab-card::before,
.lab-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cyan-3);
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.25s ease-out, box-shadow 0.25s ease-out;
}

.lab-card::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 8px;
}

.lab-card::after {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 8px;
}

.lab-card:hover::before,
.lab-card:hover::after {
  opacity: 1;
  box-shadow: 0 0 14px rgba(0, 214, 242, 0.5);
}

.lab-thumb {
  height: 200px;
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(0, 163, 247, 0.10), transparent 70%),
    #090d11;
  border-bottom: 1px solid var(--ligne);
  overflow: hidden;
}

.lab-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0.94;
  transition: transform 0.5s ease-out, opacity 0.3s ease-out;
}

.lab-card:hover .lab-thumb img {
  transform: scale(1.045);
  opacity: 1;
}

/* Emplacement image vide → motif technique */
.lab-thumb--vide { display: grid; place-items: center; color: var(--texte-3); }

.lab-thumb--vide svg { opacity: 0.55; }

/* Objet photographié sur fond transparent : affiché en entier, centré
   sur le fond technique de la vignette (au lieu du recadrage « cover ») */
.lab-thumb--objet { padding: 14px 18px; }

.lab-thumb--objet img { object-fit: contain; }

.lab-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 24px 24px 20px;
}

.lab-nom {
  font-family: var(--police);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.lab-sous-titre {
  margin-top: -4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan-3);
}

.lab-desc {
  font-size: 14.5px;
  color: var(--texte-2);
  line-height: 1.65;
}

/* Emplacements pour les tags (badges technologies) */
.lab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.tag {
  font-family: var(--police-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-5);
  padding: 5px 11px;
  border: 1px solid rgba(0, 214, 242, 0.28);
  border-radius: 999px;
  background: rgba(0, 214, 242, 0.07);
  box-shadow: inset 0 0 10px rgba(0, 214, 242, 0.05);
}

/* Pied de carte : emplacements lien GitHub + mise à jour */
.lab-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 14px 24px;
  border-top: 1px dashed rgba(0, 214, 242, 0.16);
  font-family: var(--police-mono);
  font-size: 12px;
  color: var(--texte-3);
}

.lab-repo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.lab-repo svg { fill: currentColor; }

.lab-repo a {
  color: var(--cyan-5);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease-out, text-shadow 0.2s ease-out;
}

.lab-repo a:hover {
  text-shadow: 0 0 12px rgba(80, 232, 245, 0.6);
  border-bottom-color: var(--cyan-5);
}

.lab-bientot {
  color: var(--texte-3);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}

.lab-maj { white-space: nowrap; }

/* ------------------------------------------------------------
   9. E. Pied de page
   ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--ligne);
  background: linear-gradient(180deg, rgba(0, 163, 247, 0.05), transparent 55%);
  padding-top: clamp(48px, 7vw, 72px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.25fr 1fr 1fr; }
}

.footer-brand img {
  width: 150px;
  filter: drop-shadow(0 0 18px rgba(0, 214, 242, 0.25));
}

.footer-slogan {
  margin-top: 16px;
  font-style: italic;
  font-size: 13.5px;
  color: var(--texte-2);
  line-height: 1.6;
}

.footer-titre {
  font-family: var(--police-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-5);
  margin-bottom: 16px;
}

.footer address {
  font-style: normal;
}

.footer address p,
.footer-bloc p {
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--texte-2);
}

.footer strong { color: #ffffff; font-weight: 600; }

.footer a {
  color: var(--cyan-5);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: text-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.footer a:hover {
  text-shadow: 0 0 12px rgba(80, 232, 245, 0.6);
  border-bottom-color: var(--cyan-5);
}

.footer-note { color: var(--texte-3) !important; font-size: 13px !important; }

.footer-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.footer-qr .qr-plaque { padding: 6px; }

.footer-qr .qr-plaque img { width: 68px; height: 68px; }

.footer-qr .footer-note { margin: 0; line-height: 1.5; }

.footer-bar {
  margin-top: clamp(40px, 6vw, 60px);
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-bar p {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--texte-3);
}

/* ------------------------------------------------------------
   10. Fenêtre de confirmation interactive (modal)
   ------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease-out, visibility 0.25s;
}

.modal.ouvert {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 3, 5, 0.78);
}

.modal-panel {
  position: relative;
  width: min(430px, 100%);
  padding: 26px;
  background: #0b1014;
  border: 1px solid var(--ligne-forte);
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(0, 214, 242, 0.18), 0 24px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.25s ease-out;
}

.modal.ouvert .modal-panel { transform: none; }

.modal-titre {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-5);
  margin-bottom: 12px;
}

.modal-message {
  font-size: 15px;
  color: var(--texte);
  line-height: 1.65;
  white-space: pre-line;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions .btn { flex: 1 1 140px; padding: 12px 16px; font-size: 0.93rem; }

/* Popup « Préciser la panne » : texte d'aide, champ libre, compteur */
.modal-aide {
  font-size: 13px;
  color: var(--texte-3);
  line-height: 1.55;
  margin-bottom: 18px;
}

.champ-precision {
  display: block;
  width: 100%;
  min-height: 88px;
  max-height: 40vh;
  padding: 14px 16px;
  font-family: var(--police);
  font-size: 15px; /* évite le zoom automatique iOS */
  color: var(--texte);
  background: #05080a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--rayon-sm);
  outline: none;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.champ-precision::placeholder { color: #4c565d; }

.champ-precision:focus {
  border-color: var(--cyan-3);
  box-shadow: 0 0 0 3px rgba(0, 214, 242, 0.18);
}

.modal-compteur {
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--texte-3);
  text-align: right;
}

/* ------------------------------------------------------------
   11. Apparitions au défilement
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.dans {
  opacity: 1;
  transform: none;
}

/* Léger décalage en cascade dans les grilles */
.services-grid .reveal:nth-child(2),
.labo-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.labo-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.labo-grid .reveal:nth-child(4) { transition-delay: 0.36s; }

/* ------------------------------------------------------------
   12. Page mentions légales (impressum.html)
   ------------------------------------------------------------ */
.hero-legale {
  /* padding-top ≥ 80 px : le titre passe SOUS le bouton retour
     flottant (18 + 46 = 64 px) — aucun chevauchement quel que
     soit l'écran, et le titre reste aligné sur les sections. */
  padding: clamp(80px, 12vw, 110px) 0 clamp(28px, 4vw, 44px);
}

.page-legale h1 {
  font-family: var(--police);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 2.4rem);
  color: #ffffff;
}

/* Bouton de retour flottant : petit carré à coins arrondis, flèche
   moderne, fixé en haut à gauche — visible en permanence (miroir
   des boutons flottants de l'admin) ; le titre du hero démarre
   plus bas pour ne jamais passer dessous. */
.retour {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--texte-2);
  text-decoration: none;
  border: 1px solid rgba(80, 232, 245, 0.28);
  border-radius: 14px;
  background: rgba(10, 14, 18, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

.retour:hover,
.retour:focus-visible {
  color: var(--cyan-5);
  box-shadow: 0 0 24px rgba(80, 232, 245, 0.35);
  transform: translateY(-2px);
}

.page-legale section {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-legale h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.page-legale p {
  color: var(--texte-2);
  font-size: 15px;
  max-width: 70ch;
  margin-bottom: 10px;
}

.page-legale address {
  font-style: normal;
  color: var(--texte-2);
  font-size: 15px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   13. Accessibilité — mouvement réduit
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   14. Accès particuliers — bouton fixe + panneau off-canvas
   ------------------------------------------------------------ */
.btn-particulier {
  position: fixed;
  top: calc(var(--nav-h) + 14px);
  right: 14px;
  z-index: 1060;
  padding: 10px 18px;
  font-family: var(--police);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: rgba(9, 13, 17, 0.88);
  border: 1px solid var(--bleu-1);
  border-radius: 999px;
  cursor: pointer;
  animation: lueur-particulier 3.4s ease-in-out infinite;
  transition: border-color 0.25s ease-out, transform 0.25s ease-out;
}

@keyframes lueur-particulier {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 163, 247, 0.30), inset 0 0 8px rgba(0, 163, 247, 0.08); }
  50%      { box-shadow: 0 0 22px rgba(0, 214, 242, 0.55), inset 0 0 10px rgba(0, 214, 242, 0.12); }
}

.btn-particulier:hover,
.btn-particulier:focus-visible {
  animation: none;
  border-color: var(--cyan-3);
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(0, 214, 242, 0.65), inset 0 0 12px rgba(0, 214, 242, 0.14);
}

/* Le fond est figé tant que le panneau est ouvert */
body.particulier-ouvert { overflow: hidden; }

/* Voile assombri cliquable */
.voile-particulier {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
}

body.particulier-ouvert .voile-particulier {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-out;
}

/* Panneau glissant depuis la droite */
.panneau-particulier {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(400px, 94vw);
  height: 100vh;
  height: 100dvh;
  padding: clamp(20px, 4vw, 28px) 24px 30px;
  overflow-y: auto;
  background: linear-gradient(165deg, #0d1216, #070a0d);
  border-left: 1px solid var(--ligne-forte);
  box-shadow: -18px 0 46px rgba(0, 0, 0, 0.55), 0 0 34px rgba(0, 163, 247, 0.10);
  transform: translateX(105%);
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.particulier-ouvert .panneau-particulier { transform: translateX(0); }

.panneau-tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panneau-titre {
  font-family: var(--police);
  font-size: 1.22rem;
  line-height: 1.3;
  color: #ffffff;
}

.panneau-fermer {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--cyan-3);
  background: rgba(0, 214, 242, 0.06);
  border: 1px solid var(--ligne-forte);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.panneau-fermer:hover,
.panneau-fermer:focus-visible {
  color: #ffffff;
  border-color: var(--cyan-3);
  box-shadow: 0 0 16px rgba(0, 214, 242, 0.35);
}

.panneau-accroche {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--texte-2);
}

.panneau-accroche b { color: #ffffff; }

/* Liste des pannes domestiques — puces losange cyan */
.panneau-liste {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.panneau-liste li {
  position: relative;
  padding: 11px 0 11px 26px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--texte-2);
  border-bottom: 1px solid var(--ligne);
}

.panneau-liste li:last-child { border-bottom: none; }

.panneau-liste li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--cyan-3);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(0, 214, 242, 0.45);
}

/* Actions : appel direct + accès au module d'urgence */
.panneau-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.btn-panneau {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 18px;
  font-family: var(--police);
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(120deg, var(--bleu-1), var(--cyan-3));
  border-radius: var(--rayon);
  box-shadow: 0 0 20px rgba(0, 163, 247, 0.35), 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.25s ease-out, transform 0.25s ease-out;
}

.btn-panneau .mono {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
}

.btn-panneau:hover,
.btn-panneau:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(0, 214, 242, 0.55), 0 8px 20px rgba(0, 0, 0, 0.45);
}

.panneau-lien-urgence {
  font-size: 12.5px;
  color: var(--texte-3);
  text-align: center;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.panneau-lien-urgence:hover,
.panneau-lien-urgence:focus-visible { color: var(--cyan-3); }

/* Frais de déplacement selon la zone d'habitation */
.panneau-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.zone-label {
  font-family: var(--police-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--cyan-3);
}

.zone-select-wrap { position: relative; }

.zone-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 42px 12px 14px;
  font-family: var(--police-texte);
  font-size: 14px;
  color: #ffffff;
  background: rgba(0, 214, 242, 0.05);
  border: 1px solid var(--ligne-forte);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.zone-select:hover,
.zone-select:focus-visible {
  border-color: var(--cyan-3);
  box-shadow: 0 0 14px rgba(0, 214, 242, 0.25);
  outline: none;
}

.zone-select option {
  background: #0b1014;
  color: var(--texte);
}

.zone-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan-3);
  pointer-events: none;
}

.zone-frais {
  font-size: 13px;
  color: var(--texte-2);
}

.zone-frais b {
  font-size: 15px;
  color: var(--cyan-3);
  text-shadow: 0 0 12px rgba(0, 214, 242, 0.45);
}

/* Champ téléphone du particulier (même style que le select) */
.panneau-zone .zone-label:not(:first-child) { margin-top: 6px; }

.zone-champ {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--police-texte);
  font-size: 14px;
  color: #ffffff;
  background: rgba(0, 214, 242, 0.05);
  border: 1px solid var(--ligne-forte);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.zone-champ::placeholder { color: var(--texte-3); }

.zone-champ:hover,
.zone-champ:focus-visible {
  border-color: var(--cyan-3);
  box-shadow: 0 0 14px rgba(0, 214, 242, 0.25);
}

/* Retour d'état de l'envoi + bouton occupé */
.panneau-retour {
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--texte-2);
}

.panneau-retour.ok     { color: #4ade80; }
.panneau-retour.erreur { color: #ff5c74; }
.panneau-retour.info   { color: var(--cyan-3); }

.btn-panneau:disabled {
  cursor: wait;
  opacity: 0.85;
  transform: none;
}

/* Bouton « + Entrer vos coordonnées » (sous le champ téléphone) :
   ouvre la popup centrale — la fiche client est remplie par le
   visiteur et enregistrée directement dans le cockpit */
.btn-coordonnees {
  margin-top: 4px;
  padding: 11px 16px;
  font-family: var(--police);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cyan-3);
  text-align: center;
  background: rgba(0, 214, 242, 0.05);
  border: 1px dashed var(--bleu-1);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s ease-out, border-color 0.2s ease-out,
              box-shadow 0.2s ease-out, background 0.2s ease-out;
}

.btn-coordonnees:hover,
.btn-coordonnees:focus-visible {
  color: #ffffff;
  border: 1px solid var(--cyan-3);
  background: rgba(0, 214, 242, 0.10);
  box-shadow: 0 0 16px rgba(0, 214, 242, 0.30);
}

.coordonnees-aide {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--texte-3);
}

/* ---------- Popup centrale « Vos coordonnées » (au-dessus du panneau) ---------- */

.voile-coordonnees {
  position: fixed;
  inset: 0;
  z-index: 1070;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
}

body.coordonnees-ouvert .voile-coordonnees {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-out;
}

.popup-coordonnees {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1080;
  width: min(560px, 92vw);
  max-height: 86vh;
  max-height: 86dvh;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 26px) 26px 26px;
  background: linear-gradient(165deg, #0d1216, #070a0d);
  border: 1px solid var(--ligne-forte);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 163, 247, 0.12);
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.28s ease-out, visibility 0s linear 0.28s;
}

body.coordonnees-ouvert .popup-coordonnees {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.28s ease-out;
}

.popup-tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.popup-titre {
  font-family: var(--police);
  font-size: 1.15rem;
  line-height: 1.3;
  color: #ffffff;
}

.popup-accroche {
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--texte-2);
}

.popup-accroche b { color: #ffffff; }

#form-coordonnees {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.popup-champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* NPA + Localité sur la même ligne */
.popup-duo {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
}

/* Le textarea « Votre besoin » : redimensionnable verticalement */
.popup-notes {
  min-height: 72px;
  resize: vertical;
  line-height: 1.5;
}

/* Piège anti-robots : hors écran, jamais visible d'un humain */
.champ-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.popup-retour { text-align: center; }

@media (max-width: 480px) {
  .btn-particulier { top: calc(var(--nav-h) + 10px); right: 10px; padding: 8px 12px; font-size: 11.5px; }
  .panneau-particulier { padding-inline: 20px; }
  .popup-coordonnees { width: 94vw; padding-inline: 18px; }
  .popup-duo { grid-template-columns: 84px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-particulier { animation: none; }
  .panneau-particulier,
  .voile-particulier { transition: none; }
  .popup-coordonnees,
  .voile-coordonnees { transition: none; }
}

/* Visuel d'en-tête des cartes service : illustrations WebP avec
   transparence (produits « flottants » sur le dégradé) */
.service-visuel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  margin: calc(-1 * clamp(24px, 4vw, 34px)) calc(-1 * clamp(24px, 4vw, 34px)) 18px;
  background:
    linear-gradient(180deg, rgba(0, 163, 247, 0.12), rgba(0, 214, 242, 0.04));
  border-bottom: 1px solid var(--ligne);
  overflow: hidden;
}

.service-visuel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   Effets « vitrine » (23.10.2026, pilotés par js/hero-fx.js)
   1. Circuit vivant : canvas discret derrière le contenu du hero,
      nœuds cyan reliés entre eux et répondant au pointeur.
   2. Spotlight : lueur radiale qui suit la souris (variables
      --mx/--my posées par le JS ; pointeur fin uniquement).
   3. Reflet des cartes service : lueur au point du curseur
      (variables --cx/--cy posées par le JS, avec le tilt 3D).
   ============================================================ */

.hero { position: relative; overflow: hidden; }

.hero-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Halloween 3D : deuxième canvas (WebGL) ajouté par
   js/hero-halloween-3d.js au-dessus du canvas 2D — celui-ci garde
   le circuit et la météo, la 3D apporte la profondeur. */
.hero-fx-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Le contenu du hero passe au-dessus des canvas et du spotlight */
.hero > :not(.hero-fx-canvas):not(.hero-fx-3d) { position: relative; z-index: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, -600px) var(--my, -600px),
              rgba(0, 214, 242, 0.10), transparent 65%);
}

.service-card { position: relative; overflow: hidden; }

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  background: radial-gradient(320px circle at var(--cx, 50%) var(--cy, 50%),
              rgba(80, 232, 245, 0.14), transparent 70%);
}

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

/* Décompte du tarif (js/hero-fx.js) : le nombre roule depuis
   170 CHF jusqu'au prix configuré — halo renforcé pendant la
   descente, « pop » lumineux à l'arrivée (posé sur le strong
   pour emporter son dégradé cyan avec l'échelle) */
#tarif-taux.tarif-roule {
  text-shadow: 0 0 20px rgba(80, 232, 245, 0.8);
}

.tarif-prix strong.tarif-pop {
  display: inline-block;
  animation: tarif-pop 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tarif-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after { content: none; }
  .service-card { transition: none; }
  .service-card::after { transition: none; }
  .tarif-prix strong.tarif-pop { animation: none; }
}

/* ------------------------------------------------------------
   15. Page « R&D sur mesure » (offre-rd.html)
   ------------------------------------------------------------ */

/* Cette page porte la barre de navigation collante (z-index 500) :
   le bouton retour flottant descend sous celle-ci pour rester
   visible et cliquable en permanence. */
body.page-offre-rd .retour { top: calc(var(--nav-h) + 14px); }

/* Cartes sans vignette : les équerres des coins ne doivent jamais
   chevaucher le texte — le corps de carte est donc décalé. */
body.page-offre-rd .lab-body { padding: 36px 30px 34px; }

/* Listes des cartes R&D : puce « › » cyan, interlignes aérés */
.lab-body ul,
.lab-body ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lab-body ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--texte-2);
}

.lab-body ul li::before {
  content: "›";
  position: absolute;
  left: 2px;
  top: 0;
  font-family: var(--police-mono);
  font-weight: 700;
  color: var(--cyan-3);
}

/* Méthodologie : étapes numérotées en monospace cyan */
.lab-body ol { counter-reset: etape; }

.lab-body ol li {
  position: relative;
  padding-left: 40px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--texte-2);
}

.lab-body ol li::before {
  counter-increment: etape;
  content: counter(etape, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--police-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan-3);
}

.lab-body li strong {
  color: var(--texte);
  font-weight: 600;
}

/* ------------------------------------------------------------
   16. Bouton flottant WhatsApp (toutes les pages publiques)
   ------------------------------------------------------------
   Fixé en bas à droite, au-dessus du contenu et sous les
   panneaux (z-index 95 < 1000). Palette du site : pas de vert
   WhatsApp, le bouton reprend les accents cyan.
   Son clic est mesuré par js/visites.js grâce à data-stat="wa".
   ------------------------------------------------------------ */
.btn-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px 0 17px;
  color: var(--texte);
  text-decoration: none;
  background: rgba(10, 14, 18, 0.90);
  border: 1px solid rgba(80, 232, 245, 0.28);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.50);
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

.btn-whatsapp svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--cyan-5);
}

.btn-whatsapp span {
  font-family: var(--police-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Survol réservé aux appareils à pointeur (pas d'état collé sur iPad) */
@media (hover: hover) {
  .btn-whatsapp:hover,
  .btn-whatsapp:focus-visible {
    border-color: var(--cyan-3);
    box-shadow: 0 0 26px rgba(0, 214, 242, 0.38), 0 10px 28px rgba(0, 0, 0, 0.50);
    transform: translateY(-2px);
  }
}

/* Écran étroit : bouton rond, le libellé disparaît */
@media (max-width: 620px) {
  .btn-whatsapp {
    width: 54px;
    padding: 0;
  }
  .btn-whatsapp span { display: none; }
}

/* Impression : aucun bouton flottant */
@media print {
  .btn-whatsapp { display: none; }
}
