/* ============================================================
   COMPOSANTS : en-tête, boutons, libellés, étiquettes, cartes
   ============================================================ */

/* ---------- Barre de navigation flottante (verre sombre) ---------- */
.entete {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: var(--gouttiere);
  pointer-events: none; /* seule la pilule reçoit les clics */
}
.entete__barre {
  position: relative;
  pointer-events: auto;
  max-width: 1000px;
  height: var(--hauteur-nav);
  margin-inline: auto;
  padding: 0 7px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 60%),
    color-mix(in srgb, var(--fond) 62%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 30px rgba(0, 0, 0, 0.35);
  transition: background-color 0.3s var(--courbe), border-color 0.3s var(--courbe);
}
/* Reflet vert très léger sur le bord du verre */
.entete__barre::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(100deg, var(--vert-bord), transparent 28%, transparent 70%, var(--vert-fond));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.entete.defile .entete__barre { background-color: color-mix(in srgb, var(--fond) 76%, transparent); }

.entete__nom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.entete__nom-marque {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--vert-fond);
  border: 1px solid var(--vert-bord);
  color: var(--vert);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.entete__liens {
  display: flex;
  align-items: center;
  gap: 2px;
}
.entete__liens a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--texte-2);
  transition: color 0.2s var(--courbe), background-color 0.2s var(--courbe);
}
.entete__liens a:hover { color: var(--texte); background: rgba(255, 255, 255, 0.06); }
/* Onglet actif : pastille verte translucide */
.entete__liens a.actif {
  color: var(--vert-clair);
  background: var(--vert-fond);
  box-shadow: inset 0 0 0 1px var(--vert-bord);
}
/* Contact : bouton d'action à droite */
.entete__liens a.entete__cta {
  margin-left: 8px;
  padding: 9px 18px;
  background: var(--vert);
  color: #06120c;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(93, 203, 149, 0.4), 0 4px 16px rgba(93, 203, 149, 0.18);
}
.entete__liens a.entete__cta:hover,
.entete__liens a.entete__cta.actif { background: var(--vert-clair); color: #06120c; }

.entete__burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--texte);
}
.entete__burger svg { width: 20px; height: 20px; }

/* ---------- Libellé au-dessus des titres ("eyebrow") ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--police-mono);
  font-size: var(--taille-libelles);   /* même taille pour tous les libellés verts */
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* Libellé seul (sans grand titre blanc) : plus grand, reste sous la taille des titres */
/* Libellé seul (sans grand titre blanc) : même taille que les autres */
.eyebrow--seul { gap: 14px; }

.titre-section {
  margin-top: 18px;
  font-size: calc(clamp(2rem, 1.4rem + 2.2vw, 2.9rem) * var(--echelle-titres));
  max-width: 20ch;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--rayon-petit);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition:
    background-color 0.25s var(--courbe),
    border-color 0.25s var(--courbe),
    color 0.25s var(--courbe),
    transform 0.25s var(--courbe);
}
.bouton:hover { transform: translateY(-2px); }
.bouton svg { width: 16px; height: 16px; transition: transform 0.25s var(--courbe); }
.bouton:hover svg { transform: translateX(3px); }

.bouton--principal {
  background: var(--vert);
  color: #06120c;
}
.bouton--principal:hover { background: var(--vert-clair); }

.bouton--secondaire {
  border-color: var(--ligne-forte);
  color: var(--texte);
}
.bouton--secondaire:hover { border-color: var(--texte-3); background: var(--surface); }

.bouton[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* Lien texte avec flèche */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--texte);
  transition: color 0.2s var(--courbe);
}
.lien-fleche svg { width: 16px; height: 16px; transition: transform 0.25s var(--courbe); }
.lien-fleche:hover svg { transform: translateX(4px); }
.lien-fleche:hover { color: var(--vert); }

/* ---------- Étiquettes de technologies ---------- */
.etiquettes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.etiquette {
  font-family: var(--police-mono);
  font-size: 0.72rem;
  line-height: 1;
  padding: 8px 10px;
  border: 1px solid var(--ligne-forte);
  border-radius: 6px;
  color: var(--texte-2);
  background: var(--fond-2);
  white-space: nowrap;
  transition: border-color 0.2s var(--courbe), color 0.2s var(--courbe);
}
.etiquette:hover { border-color: var(--vert-bord); color: var(--texte); }

/* ---------- Badge de statut ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--vert-bord);
  background: var(--vert-fond);
  border-radius: var(--rayon-petit);
  font-size: 0.84rem;
  color: var(--texte);
}
.badge strong { font-weight: 600; color: var(--vert); }
.point {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vert);
  flex: none;
}
/* Pulsation très discrète du statut */
.point--vivant::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--vert);
  animation: pulsation 2.8s var(--courbe) infinite;
}
@keyframes pulsation {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

.statut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--texte-2);
}

/* ---------- Emplacement "à compléter" ---------- */
.a-completer {
  border: 1px dashed var(--ligne-forte);
  border-radius: var(--rayon-petit);
  padding: 16px 18px;
  color: var(--texte-3);
  font-size: 0.92rem;
}
.a-completer strong {
  display: block;
  font-family: var(--police-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: 4px;
  font-weight: 500;
}

/* Liste avec coches */
.liste-coches { display: grid; gap: 12px; }
.liste-coches li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--texte-2);
}
.liste-coches svg { width: 18px; height: 18px; color: var(--vert); margin-top: 3px; }
