/* ==========================================================================
   RESEAULIA — Design System SaaS
   Palette : Anthracite (#15181E), Bleu corporate (#1D68CD) et Bleu ciel (#38BDF8).
   Inspiré des standards de qualité et de modularité de Vanosia.fr.
   ========================================================================== */

/* --- Polices Poppins hébergées localement --- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
}

:root {
  /* Anthracite (Barre haute, footer, contrastes sombres) */
  --anthracite: #15181E;
  --anthracite-2: #1C212A;
  --anthracite-3: #262D38;
  --anthracite-border: #323A48;

  /* Bleu (Actions primaires, bandes logo) */
  --blue: #1D68CD;
  --blue-hover: #1554A8;
  --blue-light: #EFF6FF;
  --blue-border: #BFDBFE;

  /* Bleu ciel (Highlights, accents visuels, badges) */
  --sky: #38BDF8;
  --sky-dark: #0284C7;
  --sky-light: #F0F9FF;
  --sky-border: #BAE6FD;
  --sky-100: #E0F2FE;
  --sky-deep: #0369A1;
  /* texte bleu ciel lisible (AA) */

  /* Fonds & Surfaces */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;

  /* Typographie & Couleurs de texte */
  --text: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --font: "Poppins", system-ui, -apple-system, sans-serif;

  /* Statuts */
  --green: #10B981;
  --green-light: #ECFDF5;
  --gold: #F59E0B;
  --gold-light: #FFFBEB;

  /* Rayons & Ombres */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.1);
  --shadow-anthracite: 0 10px 30px rgba(0, 0, 0, 0.35);

  --header-height: 92px;
  /* haut de page ; 68px une fois la page défilée */
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
svg {
  vertical-align: middle;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-hover);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* --- Layout Conteneur --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-main {
  flex: 1 0 auto;
}

/* --- En-tête : Barre Haute Anthracite --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: var(--anthracite);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--sky);
}

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

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  position: relative;
  color: #E2E8F0;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 14px;
  background: transparent;
  transition: color 0.2s ease, font-size 220ms cubic-bezier(0.16, 1, 0.3, 1), padding 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tirets blancs au-dessus (::before) et en-dessous (::after) */
.nav-link::before,
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: #FFFFFF;
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  pointer-events: none;
}

.nav-link::before {
  top: 2px;
  transform-origin: center;
}

.nav-link::after {
  bottom: 2px;
  transform-origin: center;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link:hover::before,
.nav-link:hover::after,
.nav-link.active::before,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-link.active {
  color: #FFFFFF;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #E2E8F0;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ghost:hover {
  color: #FFFFFF;
  background-color: var(--anthracite-2);
}

/* Boutons universels */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

.btn-primary {
  background: linear-gradient(135deg, #1D68CD 0%, #1554A8 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(29, 104, 205, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary::after,
.btn-sky::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2575E6 0%, #175CC0 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 104, 205, 0.45), 0 0 16px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover::after,
.btn-sky:hover::after {
  left: 140%;
  transition: left 0.75s ease-in-out;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(29, 104, 205, 0.35);
}

.btn-sky {
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
  color: #0B1E3B;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sky:hover {
  background: linear-gradient(135deg, #56CCF2 0%, #0284C7 100%);
  color: #0B1E3B;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.55), 0 0 18px rgba(56, 189, 248, 0.45);
}

.btn-sky:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-outline-dark:hover {
  background-color: var(--surface-alt);
  border-color: var(--text);
  color: var(--text);
}

.btn-outline-light {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-block {
  width: 100%;
}

/* Burger Mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-drawer {
  background-color: var(--anthracite);
  border-top: 1px solid var(--anthracite-border);
  padding: 20px 24px;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.mobile-link {
  color: #E2E8F0;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 6px 0;
}

.mobile-link.active {
  color: var(--sky);
}

.mobile-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Badges & Pastilles --- */
.hero-kicker-band {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  /* Le retrait horizontal fait dépasser les 2 traits du texte de chaque côté,
     tout en gardant leur départ aligné sur le bord gauche du titre */
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--anthracite);
  background: transparent;
  border: none;
  align-self: flex-start;
}

/* 2 traits à plat, en écho aux barres du logo : bleu au-dessus, bleu ciel en dessous */
.hero-kicker-band::before,
.hero-kicker-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
}

.hero-kicker-band::before {
  top: 0;
  background: var(--blue);
}

.hero-kicker-band::after {
  bottom: 0;
  background: var(--sky);
}

/* Kicker Vanosia « Pour aller plus loin qu’un CRM » : calqué fidèlement sur hero-kicker-band */
.vanosia-kicker-band {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 6px 18px;
  font-size: 0.90rem;
  font-weight: 600;
  color: var(--anthracite);
  background: transparent;
  border: none;
  margin-bottom: 12px;
  align-self: flex-start;
}

.vanosia-kicker-band svg {
  color: var(--blue);
  flex-shrink: 0;
}

.vanosia-kicker-band::before,
.vanosia-kicker-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
}

.vanosia-kicker-band::before {
  top: 0;
  background: var(--blue);
}

.vanosia-kicker-band::after {
  bottom: 0;
  background: var(--sky);
}

/* Bouton Vanosia en noir plein, police blanche */
.btn-vanosia-dark {
  background-color: var(--anthracite);
  color: #FFFFFF !important;
  border: 1px solid var(--anthracite);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(21, 24, 30, 0.25);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-vanosia-dark:hover {
  background-color: var(--anthracite-3);
  border-color: var(--anthracite-3);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21, 24, 30, 0.35);
}

.badge-sky {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--surface);
  color: var(--sky-deep);
  border: 1px solid var(--sky-border);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-pill-gold {
  background-color: var(--gold-light);
  color: #B45309;
  border: 1px solid #FDE68A;
}

.eyebrow {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--sky-deep);
  margin-bottom: 8px;
}

/* --- Titres & Sections --- */
.section-head {
  margin-bottom: 32px;
}

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

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --- Séparateur signature tri-bandes (Anthracite en haut, blanc au milieu, Bleu en bas) --- */
.slant-separator {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  padding: 0;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.slant-track {
  width: 100%;
  margin-left: 0;
  display: flex;
  flex-direction: column;
}

.slant-stripe {
  width: 100%;
  display: block;
}

/* 1. Bande supérieure : Anthracite identique au header (#15181E) */
.slant-stripe.slant-anthracite,
.slant-stripe.slant-black {
  height: 4px;
  background-color: var(--anthracite);
}

/* 2. Liseré central : Blanc très fin */
.slant-stripe.slant-white {
  height: 1.5px;
  background-color: #FFFFFF;
}

/* 3. Bande inférieure : Bleu identique aux boutons d'action (#1D68CD) */
.slant-stripe.slant-blue {
  height: 4px;
  background-color: var(--blue);
}

/* --- Barre des Chiffres Clés (Stats Strip) --- */
.stats-strip {
  padding: 36px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  padding: 20px 22px;
  background-color: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue) 0%, var(--sky) 100%);
  border-radius: 4px 0 0 4px;
}

.stat-card:hover {
  transform: translateY(-3px);
  background-color: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: var(--sky-border);
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 6px;
}

.stat-number {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.stat-unit {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
}

.stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}

.stat-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 2.2rem;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Micro-interaction : Fade-in up au scroll --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-card {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }

  .reveal-card.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Hero Section Accueil --- */
.hero-section {
  padding: 58px 0 62px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 14px 0 20px;
}

.hl-blue {
  color: var(--blue);
}

.hl-sky {
  color: var(--sky-deep);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

/* --- Mini-étiquettes Chiffres Clés Hero (en remplacement des puces texte) --- */
.hero-stats-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.hero-stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hero-stat-pill:hover {
  border-color: var(--sky-border);
  background-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 104, 205, 0.08);
}

.hero-stat-pill-num {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  display: flex;
  align-items: baseline;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.hero-stat-pill-num .unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky-dark);
  margin-left: 1px;
}

.hero-stat-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero-stat-pill-text strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--anthracite);
}

.hero-stat-pill-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-perks {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-perk-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-perk-item svg {
  color: var(--green);
}

/* En-tête de fenêtre d'exemple (page Fonctionnalités) */
.mockup-header {
  background-color: var(--anthracite);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--anthracite-border);
}

.mockup-title {
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Section Les 3 Piliers --- */
.pillars-section {
  padding: 44px 0 60px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sky-border);
}

.pillar-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky-light) 0%, var(--sky-100) 100%);
  border: 1px solid var(--sky-border);
  color: var(--sky-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.pillar-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.pillar-features li svg {
  color: var(--sky-dark);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- Section Métiers Interactive --- */
.metiers-section {
  padding: 48px 0 60px;
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--sky-100) 100%);
  border-top: 1px solid var(--sky-border);
  border-bottom: 1px solid var(--sky-border);
}

.metiers-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: var(--surface);
  border: 1px solid var(--sky-border);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--sky);
  color: var(--sky-deep);
}

.filter-btn.active {
  background-color: var(--sky-deep);
  color: #FFFFFF;
  border-color: var(--sky-deep);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
}

.metiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.metier-card {
  background-color: var(--surface);
  border: 1px solid var(--sky-border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.metier-card:hover {
  background-color: var(--surface);
  border-color: var(--sky);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.metier-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.metier-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background-color: var(--sky-100);
  color: var(--sky-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metier-card-top h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.metier-naf {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

.metier-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.metier-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metier-card:hover .metier-link {
  color: var(--blue-hover);
}

/* --- Section Tarifs --- */
.pricing-section {
  padding: 48px 0 60px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.pricing-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: var(--sky);
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--surface) 45%);
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.18);
  overflow: visible;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--anthracite);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pricing-head h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.pricing-num {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.pricing-currency {
  font-size: 1.2rem;
  vertical-align: super;
}

.pricing-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-note {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.pricing-features li svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- Écosystème Vanosia & Si Besoin --- */
.ecosystem-section {
  padding: 60px 0;
  background-color: var(--sky-100);
  border-top: 1px solid var(--sky-border);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}

.ecosystem-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.ecosystem-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.ecosystem-head h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.ecosystem-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ecosystem-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ecosystem-note {
  font-size: 0.85rem;
  color: var(--text-light);
}

.trust-badge-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* --- Bloc Créateur Jean Vano (sous la réassurance Si Besoin) --- */
.creator-badge-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.creator-badge-wrap:hover {
  border-color: var(--sky-border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.creator-avatar-wrap {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--sky);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--anthracite);
}

.creator-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creator-badge-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.creator-badge-text strong a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.creator-badge-text strong a:hover {
  color: var(--blue-hover);
  text-decoration-color: var(--blue);
}

.creator-badge-text span {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.trust-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background-color: var(--anthracite);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge-text strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.trust-badge-text strong a {
  color: var(--blue);
}

.trust-badge-text span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- FAQ Accordion --- */
.faq-section {
  padding: 48px 0 60px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--sky);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  color: var(--text-light);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(90deg);
  color: var(--sky-dark);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* --- CTA Banner Final --- */
.cta-banner {
  background: var(--anthracite);
  color: #FFFFFF;
  padding: 38px 0 34px;
  border-top: 1px solid var(--anthracite-border);
}

.cta-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #FFFFFF;
}

.cta-content p {
  font-size: 1.05rem;
  color: #CBD5E1;
  margin-bottom: 22px;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-perks li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #94A3B8;
}

.cta-perks li svg {
  color: var(--sky);
}

/* --- Fil d'Ariane --- */
.breadcrumb-wrap {
  padding: 16px 0;
  font-size: 0.88rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-item a {
  color: var(--text-light);
}

.breadcrumb-item a:hover {
  color: var(--blue);
}

.breadcrumb-item::after {
  content: "›";
  margin-left: 8px;
  color: var(--line-strong);
}

.breadcrumb-item:last-child::after {
  content: "";
}

.breadcrumb-item span[aria-current] {
  color: var(--text);
  font-weight: 600;
}

/* --- Page Métier Dédiée --- */
.metier-detail-section {
  padding: 70px 0;
}

/* --- Formulaires Inscription & Connexion --- */
.auth-page-section {
  padding: 60px 0 80px;
}

.auth-card {
  max-width: 520px;
  margin: 0 auto;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.auth-card-head {
  text-align: center;
  margin-bottom: 28px;
}

.auth-card-head h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-card-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background-color: #FFFFFF;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 104, 205, 0.15);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- Pied de page : zone centrale claire (dégradé bleu ciel), barre des mentions en anthracite --- */
.site-footer {
  background-color: var(--anthracite);
  color: var(--text-muted);
}

/* Zone centrale : liens sur fond clair, halo bleu ciel en bas à gauche */
.footer-main {
  background:
    radial-gradient(560px 400px at 0% 100%, rgba(56, 189, 248, 0.30), rgba(56, 189, 248, 0) 72%),
    radial-gradient(480px 320px at 100% 0%, rgba(29, 104, 205, 0.10), rgba(29, 104, 205, 0) 70%),
    linear-gradient(180deg, #FFFFFF 0%, var(--sky-light) 55%, var(--sky-100) 100%);
  border-top: 1px solid var(--sky-border);
  padding: 64px 0 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 40px;
}

/* Vignette anthracite autour du logo */
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  background: var(--anthracite);
  box-shadow: 0 8px 20px rgba(21, 24, 30, 0.22);
}

.footer-logo-link:hover {
  background: var(--anthracite-2);
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 18px 0 20px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface);
  border: 1px solid var(--sky-border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--sky-deep);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links li a:hover {
  color: var(--sky-deep);
}

.footer-links .link-external {
  color: var(--text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-links .link-external:hover {
  color: var(--sky-deep);
}

.link-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* Barre des mentions : reste en anthracite */
.footer-bottom-bar {
  background-color: var(--anthracite);
  border-top: 1px solid var(--anthracite-border);
}

.footer-bottom {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.85rem;
  color: #94A3B8;
}

.footer-copy strong {
  color: #E2E8F0;
}

.footer-copy a {
  color: #CBD5E1;
}

.footer-copy a:hover {
  color: var(--sky);
}

.footer-badges-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-pill {
  font-size: 0.78rem;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-pill svg {
  color: var(--sky);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {

  .hero-grid,
  .metier-hero-grid,
  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pillars-grid,
  .metiers-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .pillars-grid,
  .metiers-grid,
  .metier-detail-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* ==========================================================================
   Classes de pages (anciens styles inline) & utilitaires
   ========================================================================== */

/* --- Mises en page communes --- */
.page-breadcrumb {
  padding-top: 24px;
}

.section-tight {
  padding-top: 20px;
}

.no-border-top {
  border-top: none;
}

.container-narrow {
  max-width: 860px;
}

.hero-compact {
  padding: 40px 0 60px;
}

.hero-title-centered {
  max-width: 800px;
  margin: 16px auto 20px;
}

.hero-lead-centered {
  max-width: 700px;
  margin: 0 auto;
}

.section-surface {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-lead--left {
  margin: 0 0 20px;
  font-size: 1rem;
}

.ecosystem-grid--even {
  grid-template-columns: 1fr 1fr;
}

.actions-center {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Cartes --- */
.card-elevated {
  box-shadow: var(--shadow-lg);
}

.card-title-sm {
  font-size: 1.25rem;
}

.icon-wrap--dark {
  background: var(--anthracite);
  border-color: var(--anthracite);
  color: var(--sky);
}

.mockup-header--inset {
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

/* --- Pages légales & À propos --- */
.prose-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
  color: var(--text-muted);
}

.prose-card--lg {
  padding: 40px 36px;
  font-size: 1.05rem;
}

.prose-title {
  font-size: 2rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 20px;
}

.prose-h2 {
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 700;
  margin: 24px 0 10px;
}

.prose-h2-lg {
  font-size: 1.6rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 16px;
}

.prose-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

/* --- Page 404 --- */
.notice-card {
  max-width: 600px;
  margin: 40px auto;
  background: var(--surface);
  border: 1px solid var(--sky-border);
  border-radius: var(--radius-lg);
  padding: 50px 32px;
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.12);
}

.badge-lg {
  font-size: 1rem;
  padding: 6px 16px;
}

.notice-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 20px 0 14px;
}

.notice-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* --- Connexion / Inscription / Contact --- */
.auth-page-section {
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--bg) 60%);
}

.auth-card--wide {
  max-width: 640px;
}

.round-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--sky-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.round-icon--dark {
  background: var(--anthracite);
  color: var(--sky);
}

.round-icon--success {
  background: var(--green-light);
  color: #047857;
}

.round-icon--lg {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.round-icon--xl {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.link-muted-sm {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-switch {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footnote {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.success-block {
  text-align: center;
  padding: 20px 0;
}

.success-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.success-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-text {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.info-box {
  background: var(--sky-light);
  padding: 18px;
  border-radius: var(--radius);
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.6;
  border: 1px solid var(--sky-border);
  margin-bottom: 24px;
}

.alert-error {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.contact-direct {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.block-label {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

/* --- Maquettes de la page Fonctionnalités --- */
.contact-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--sky-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-name {
  font-size: 1.1rem;
  display: block;
}

.note-box {
  background: var(--surface-alt);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-pill-neutral {
  background: #E2E8F0;
  color: var(--text);
}

.doc-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.doc-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.reminder-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reminder-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--sky-light);
  border-left: 3px solid var(--sky);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.reminder-item--gold {
  background: var(--gold-light);
  border-left-color: var(--gold);
}

/* --- Page métier : métiers voisins --- */
.metiers-section--related {
  padding: 50px 0;
  background: var(--sky-light);
}

.related-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.related-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.metiers-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.metier-card--compact {
  padding: 16px;
}

.metier-card--compact .metier-card-top {
  margin-bottom: 6px;
}

.metier-card--compact .metier-icon {
  width: 36px;
  height: 36px;
}

.metier-card--compact h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.metier-card--compact .metier-link {
  font-size: 0.8rem;
}

/* --- Tableau comparatif des tarifs --- */
.compare-wrap {
  max-width: 900px;
  margin: 40px auto 60px;
}

.compare-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.compare-scroll {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.compare-table thead tr {
  background: var(--sky-light);
  border-bottom: 1px solid var(--sky-border);
}

.compare-table th {
  padding: 16px 20px;
}

.compare-table td {
  padding: 14px 20px;
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--line);
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table .ta-c {
  text-align: center;
}

.compare-table .col-plan {
  width: 22%;
}

.compare-table .is-pro {
  color: var(--sky-deep);
}

.compare-table .is-muted {
  color: var(--text-muted);
}

.compare-table .is-off {
  color: var(--text-light);
}

/* --- Utilitaires --- */
.text-blue {
  color: var(--blue);
}

.text-gold {
  color: #B45309;
}

.text-light {
  color: var(--text-light);
}

.text-sm {
  font-size: 0.95rem;
  line-height: 1.6;
}

.text-note {
  font-size: 0.85rem;
  color: var(--text-light);
}

.text-xs-muted {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.fw-600 {
  font-weight: 600;
}

.m-0 {
  margin: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-14 {
  margin-top: 14px;
}

.mt-16 {
  margin-top: 16px;
}

/* ==========================================================================
   Accessibilité : focus clavier & réduction des animations
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.form-input:focus-visible,
.form-select:focus-visible {
  outline: none;
  /* le halo bleu de :focus suffit sur les champs */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .btn:hover,
  .btn-primary:hover,
  .btn-sky:hover,
  .pillar-card:hover,
  .metier-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   Responsive des nouvelles classes & en-tête mobile
   ========================================================================== */
@media (max-width: 1024px) {
  .ecosystem-grid--even {
    grid-template-columns: 1fr;
  }

  .metiers-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* Connexion / Inscription restent accessibles dans le tiroir mobile */
  .header-actions .btn-ghost,
  .header-actions .btn-primary {
    display: none;
  }

  .header-brand .site-logo {
    height: 44px;
    width: auto;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .prose-card,
  .prose-card--lg {
    padding: 28px 20px;
  }

  .notice-card {
    padding: 36px 20px;
  }

  .notice-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .metiers-grid--4 {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 28px 20px;
  }
}


/* ==========================================================================
   Typographie des grands titres : 600 + léger resserrement
   ========================================================================== */
.hero-title,
.section-title,
.cta-content h2,
.metier-hero h1,
.prose-title,
.notice-title,
.auth-card-head h1,
.success-heading,
.pricing-num {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Métiers de l'accueil : seuls les 6 métiers vitrines sont visibles à l'ouverture */
.metier-card.is-hidden {
  display: none;
}

/* ==========================================================================
   Accueil : mot surligné & sélecteur « Qu'est-ce qui vous intéresse ? »
   ========================================================================== */

/* « consolidé » : seul mot mis en évidence, surligné bleu ciel légèrement penché */
.hl-mark {
  display: inline-block;
  background: var(--sky);
  color: var(--anthracite);
  padding: 0 0.16em;
  border-radius: 8px;
  transform: rotate(-1.2deg);
}

/* Les ancres ne passent pas sous l'en-tête collant */
section[id],
.faq-item[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* Zone anthracite */
.picker {
  min-width: 0;
  background: var(--anthracite);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-anthracite);
}

.picker-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: #FFFFFF;
}

.picker-sub {
  color: #CBD5E1;
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.picker-chips button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  background: transparent;
  color: #FFFFFF;
  border: 2px solid var(--anthracite-border);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .picker-chips button[aria-pressed="false"]:hover {
    border-color: var(--sky);
    background: rgba(56, 189, 248, 0.08);
  }
}

.picker-chips button[aria-pressed="true"] {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--anthracite);
}

.picker-chips button:active {
  transform: scale(0.96);
}

/* Panneaux superposés : la hauteur ne saute pas d'un choix à l'autre */
.picker-panels {
  display: grid;
}

.picker-panels>.picker-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
}

.picker-panels>.picker-panel[hidden] {
  display: none;
}

.picker-panel {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 24px;
}

.picker-panel .step-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky-deep);
}

.picker-panel .step-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.picker-panel .step-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-dark-solid {
  width: 100%;
  justify-content: space-between;
  margin-top: auto;
  background: var(--anthracite);
  color: #FFFFFF;
}

.btn-dark-solid:hover {
  background: var(--anthracite-3);
  color: #FFFFFF;
}

.picker-js .picker-panel {
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.picker-js .picker-panel:not(.is-active) {
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}

@media (prefers-reduced-motion: reduce) {

  .picker-js .picker-panel,
  .picker-js .picker-panel:not(.is-active) {
    transform: none;
  }
}

@media (max-width: 480px) {
  .picker {
    padding: 24px 18px;
  }

  .picker-panel {
    padding: 20px;
  }
}

/* --- Accueil : pastille alignée sur le haut de la zone anthracite, grand titre façon si-besoin --- */
.hero-grid {
  align-items: stretch;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-stats-mini {
  margin-top: auto;
  padding-top: 16px;
}

.hero-grid .hero-title {
  font-size: clamp(2.3rem, 3.2vw + 1rem, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
}

.hero-grid .hero-title .hl-mark {
  margin: 0.06em 0;
}

/* --- Accueil : colonnes 60/40, cadrage équilibré --- */
.hero-section:has(.hero-grid) {
  padding-top: 60px;
  padding-bottom: 64px;
}

.hero-grid {
  grid-template-columns: 1.25fr 0.95fr;
  gap: 40px;
}

.hero-grid .hero-lead {
  max-width: 44ch;
  font-size: 1.18rem;
  margin-bottom: 22px;
}

/* Surlignage dessiné en dégradé : même rendu au repos, mais animable de gauche à droite */
.hl-mark {
  background: linear-gradient(var(--sky), var(--sky)) no-repeat 0 0 / 100% 100%;
}

@media (max-width: 640px) {
  .hero-stats-mini {
    grid-template-columns: 1fr;
  }
}

/* --- Apparition du haut de page (texte en cascade, puis zone anthracite, puis surlignage) --- */
@media (prefers-reduced-motion: no-preference) {

  .hero-content>*,
  .hero-grid .picker {
    animation: rl-rise 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-content> :nth-child(2) {
    animation-delay: 70ms;
  }

  .hero-content> :nth-child(3) {
    animation-delay: 140ms;
  }

  .hero-content> :nth-child(4) {
    animation-delay: 210ms;
  }

  .hero-content> :nth-child(5) {
    animation-delay: 280ms;
  }

  .hero-grid .picker {
    animation-delay: 260ms;
  }

  .hero-grid .hl-mark {
    animation: rl-highlight 700ms cubic-bezier(0.16, 1, 0.3, 1) 420ms both;
  }
}

@keyframes rl-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes rl-highlight {
  from {
    background-size: 0% 100%;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-section:has(.hero-grid) {
    padding-top: 56px;
  }

  .hero-grid .hero-lead {
    max-width: none;
  }
}

/* ==========================================================================
   En-tête pleine largeur (plafonnée à 1366 px) et logo qui rétrécit au défilement
   ========================================================================== */
.header-inner.container {
  max-width: 1366px;
  padding-left: 40px;
  padding-right: 40px;
  transition: height 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.header-brand .site-logo {
  height: 64px;
  width: auto;
  transition: height 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled .header-inner {
  height: 64px;
}

.site-header.is-scrolled .header-brand .site-logo {
  height: 44px;
}

/* Réduction proportionnelle des liens du menu et des boutons d'action au scroll */
.site-header.is-scrolled .nav-link {
  font-size: 0.88rem;
  padding: 6px 11px;
}

.site-header.is-scrolled .nav-link::before {
  top: 0px;
}

.site-header.is-scrolled .nav-link::after {
  bottom: 0px;
}

.site-header.is-scrolled .header-actions {
  gap: 10px;
}

.site-header.is-scrolled .header-actions .btn-ghost {
  font-size: 0.88rem;
  padding: 7px 12px;
}

.site-header.is-scrolled .header-actions .btn-primary {
  font-size: 0.88rem;
  padding: 8px 16px;
}

@media (max-width: 1024px) {
  .header-inner.container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-brand .site-logo {
    height: 54px;
  }
}

@media (max-width: 768px) {

  .header-inner.container,
  .site-header.is-scrolled .header-inner {
    height: 72px;
  }

  .header-brand .site-logo {
    height: 46px;
  }

  .site-header.is-scrolled .header-brand .site-logo {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .header-inner.container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   Liens et actions secondaires en anthracite
   Le bouton principal reste bleu corporate (règle .btn-primary plus haut).
   ========================================================================== */
:root {
  --action: var(--anthracite);
  --action-hover: var(--anthracite-3);
}

/* Bouton principal dans la barre du haut et le bandeau final : bleu corporate, format compact */
.site-header .btn-primary,
.cta-banner .btn-primary {
  background: linear-gradient(135deg, #1D68CD 0%, #1554A8 100%);
  color: #FFFFFF;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 10px 22px;
  box-shadow: 0 2px 10px rgba(29, 104, 205, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .btn-primary:hover,
.cta-banner .btn-primary:hover {
  background: linear-gradient(135deg, #2575E6 0%, #175CC0 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(29, 104, 205, 0.55), 0 0 14px rgba(56, 189, 248, 0.35);
}

/* Liens */
a {
  color: var(--action);
}

a:hover {
  color: var(--sky-deep);
}

.faq-answer a,
.prose-card a,
.ecosystem-desc a,
.trust-badge-text a,
.auth-switch a,
.contact-direct a,
.info-box a {
  color: var(--action);
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.faq-answer a:hover,
.prose-card a:hover,
.ecosystem-desc a:hover,
.trust-badge-text a:hover,
.auth-switch a:hover,
.contact-direct a:hover,
.info-box a:hover {
  color: var(--sky-deep);
}

.metier-link {
  color: var(--action);
}

.metier-card:hover .metier-link {
  color: var(--sky-deep);
}

.breadcrumb-item a:hover {
  color: var(--action);
}

/* Filtre de métiers actif */
.filter-btn.active {
  background-color: var(--action);
  border-color: var(--action);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(21, 24, 30, 0.20);
}

/* Champs de formulaire : halo de focus bleu ciel, comme le focus clavier */
.form-input:focus,
.form-select:focus {
  border-color: var(--sky-dark);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   Bandeaux bleus pleine largeur derrière les titres de section (accueil)
   Le fond déborde du conteneur grâce à une ombre géante rognée sur les côtés.
   ========================================================================== */
.section-band {
  padding-top: 0;
  position: relative;
}

.section-band > .slant-separator {
  position: relative;
  margin-bottom: 0;
  z-index: 20;
}

.section-band .section-head {
  position: relative;
  padding: 42px 0 38px;
  margin-bottom: 32px;
  background: var(--blue);
  box-shadow: 0 0 0 100vmax var(--blue);
  clip-path: inset(0 -100vmax);
}

.section-band .eyebrow {
  color: #E0F2FE;
}

.section-band .section-title {
  color: #FFFFFF;
}

.section-band .section-lead {
  color: #DBEAFE;
}

/* Les cartes des piliers chevauchent le bas du bandeau */
.section-band--overlap .section-head {
  padding-bottom: 96px;
  margin-bottom: 0;
}

.section-band--overlap .pillars-grid {
  position: relative;
  margin-top: -68px;
}

.section-band--overlap .pillar-card {
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .section-band .section-head {
    padding: 32px 0 28px;
    margin-bottom: 28px;
  }

  .section-band--overlap .section-head {
    padding-bottom: 84px;
    margin-bottom: 0;
  }

  .section-band--overlap .pillars-grid {
    margin-top: -64px;
  }
}
/* ==========================================================================
   Accueil : 2 chiffres clés sur une ligne, titre agrandi
   ========================================================================== */
.hero-grid .hero-title {
  font-size: clamp(2.6rem, 4vw + 1rem, 4.6rem);
}

/* ==========================================================================
   Tarifs : 3 formules (Freemium, Essentiel, Pro)
   ========================================================================== */
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1140px;
  align-items: stretch;
}

.pricing-grid .pricing-card {
  padding: 36px 28px;
}

.compare-table .col-plan {
  width: 18%;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  .hero-grid .hero-title {
    font-size: clamp(2.2rem, 7vw + 0.5rem, 2.8rem);
  }
}

/* ==========================================================================
   Piliers numérotés (accueil) : un grand numéro remplace l'icône
   ========================================================================== */
.pillar-num {
  display: block;
  margin-bottom: 14px;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.pillar-num::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--sky);
}

/* ==========================================================================
   Cartes métiers allégées : fond translucide, pas d'ombre ni de soulèvement
   ========================================================================== */
.metier-card {
  background-color: rgba(255, 255, 255, 0.82);
  border-color: var(--sky-border);
  box-shadow: none;
}

.metier-card:hover {
  background-color: #FFFFFF;
  border-color: var(--sky);
  box-shadow: none;
  transform: none;
}

.metier-card .metier-icon {
  width: 38px;
  height: 38px;
  background-color: transparent;
  border: 1px solid var(--sky-border);
}

/* Au survol d'une carte métier, le symbole de l'icône passe au bleu corporate */
.metier-card .metier-icon {
  transition: color 0.2s ease, border-color 0.2s ease;
}

.metier-card:hover .metier-icon {
  color: var(--blue);
  border-color: var(--blue);
}

/* ==========================================================================
   Haut de page type des pages intérieures (fiche métier)
   Même structure que l'accueil, titre plafonné à 3,4rem : l'accueil reste la page la plus forte.
   ========================================================================== */
.page-hero .hero-grid .hero-title {
  font-size: clamp(2.2rem, 2.2vw + 1.2rem, 3.4rem);
}

/* Mot surligné long (ex. « installateurs énergies renouvelables ») : le surlignage suit les retours à la ligne */
.hl-mark--wrap {
  display: inline;
  padding: 0 0.12em;
  transform: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Les preuves descendent en bas de colonne, au niveau du bas de la zone anthracite */
.page-hero .hero-perks {
  margin-top: auto;
  padding-top: 16px;
}

/* Zone anthracite générique (contenu fixe, sans sélecteur) */
.dark-panel {
  min-width: 0;
  background: var(--anthracite);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-anthracite);
}

.dark-panel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 20px;
}

.dark-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #E2E8F0;
}

.dark-panel-list li svg {
  color: var(--sky);
  margin-top: 3px;
}

.dark-panel .picker-panel .step-title {
  margin-bottom: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-grid .dark-panel {
    animation: rl-rise 640ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
  }
}

@media (max-width: 768px) {
  .page-hero .hero-grid .hero-title {
    font-size: clamp(2rem, 6vw + 0.5rem, 2.6rem);
  }
}

/* Surlignage sur plusieurs lignes : bande limitée au cœur des lettres,
   pour que la ligne suivante ne recouvre pas les jambages (g, p, q) de la précédente */
.hl-mark--wrap {
  border-radius: 0;
  background: linear-gradient(transparent 14%, var(--sky) 14%, var(--sky) 86%, transparent 86%) no-repeat 0 0 / 100% 100%;
}

.page-hero .hero-perks {
  gap: 8px 16px;
}

/* Étiquettes de chiffres clés cliquables (liens vers les métiers et vers les piliers) */
a.hero-stat-pill,
a.hero-stat-pill:hover {
  text-decoration: none;
  color: inherit;
}


/* « Connexion » de la barre du haut : vrai bouton à contour clair, en paire avec « Créer un compte » */
.header-actions .btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  padding: 9.5px 18px;
  color: #FFFFFF;
}

.header-actions .btn-ghost:hover {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .header-actions .btn-ghost {
  padding: 7.5px 14px;
}

/* Chiffres clés du haut de page : étiquettes à la largeur de leur contenu, centrées dans la colonne */
.hero-stats-mini {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-stats-mini .hero-stat-pill {
  flex: 0 0 auto;
  padding: 8px 16px;
}

/* ==========================================================================
   Page Tarifs : formules qui chevauchent le bandeau bleu, comparatif à en-tête anthracite
   ========================================================================== */
.section-band--overlap .pricing-grid {
  position: relative;
  margin-top: -68px;
}

.section-band--overlap .pricing-card {
  box-shadow: var(--shadow-lg);
}


.compare-table thead tr {
  background: var(--anthracite);
  border-bottom: none;
}

.compare-table thead th {
  color: #FFFFFF;
}

.compare-table thead th.is-pro {
  color: var(--sky);
}

.pricing-card[id],
.compare-wrap[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

@media (max-width: 768px) {
  .section-band--overlap .pricing-grid {
    margin-top: -64px;
  }
}

/* ==========================================================================
   Pages intérieures : liens de la zone anthracite (FAQ) et écrans de formulaire en deux colonnes
   ========================================================================== */
.dark-panel-links {
  display: flex;
  flex-direction: column;
  margin: 4px 0 20px;
  border-top: 1px solid var(--anthracite-border);
}

.dark-panel-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--anthracite-border);
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
}

.dark-panel-links a svg {
  color: var(--sky);
  flex-shrink: 0;
  transition: transform 160ms ease;
}

.dark-panel-links a:hover {
  color: var(--sky);
}

.dark-panel-links a:hover svg {
  transform: translateX(3px);
}

/* Connexion, inscription, contact : formulaire à gauche, zone anthracite de réassurance à droite */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: start;
  max-width: 1080px;
}

.auth-layout .auth-card {
  max-width: none;
  margin: 0;
}

.auth-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

/* Les 2 étiquettes posées dans une zone anthracite */
.dark-panel .hero-stats-mini {
  justify-content: flex-start;
  margin: 0 0 20px;
  padding-top: 0;
}

@media (max-width: 1024px) {
  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .auth-aside {
    position: static;
  }
}

/* Champ mot de passe avec bouton « œil » pour afficher la saisie */
.password-field {
  position: relative;
}

.password-field .form-input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.password-toggle .pw-show,
.password-toggle .pw-hide {
  display: inline-flex;
}

.password-toggle .pw-hide,
.password-toggle[aria-pressed="true"] .pw-show {
  display: none;
}

.password-toggle[aria-pressed="true"] .pw-hide {
  display: inline-flex;
}

/* Générateur de mot de passe (inscription) */
.pw-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 8px;
}

.pw-generate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pw-generate svg {
  color: var(--sky-deep);
}

.pw-generate:hover {
  color: var(--sky-deep);
}

.pw-status {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Règles du mot de passe : icône « i » et bulle anthracite au-dessus du champ */
.label-row--start {
  justify-content: flex-start;
  gap: 6px;
}

.pw-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--sky-deep);
  cursor: help;
}

.pw-info:hover {
  background: var(--sky-100);
}

.pw-bubble {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 30;
  width: min(320px, 100%);
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--anthracite);
  color: #FFFFFF;
  box-shadow: var(--shadow-anthracite);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  pointer-events: none;
}

/* Petite pointe vers le champ */
.pw-bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: var(--anthracite);
}

.pw-group:has(.pw-info:hover) .pw-bubble,
.pw-group:has(.pw-info:focus-visible) .pw-bubble,
.password-field:focus-within .pw-bubble {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
}

.pw-bubble-title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pw-rules {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pw-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #CBD5E1;
}

.pw-rules li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #94A3B8;
  flex-shrink: 0;
}

/* Règle respectée : coche bleu ciel */
.pw-rules li.is-ok {
  color: #FFFFFF;
}

.pw-rules li.is-ok::before {
  width: 10px;
  height: 6px;
  border-radius: 0;
  border: solid var(--sky);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}

@media (prefers-reduced-motion: reduce) {
  .pw-bubble {
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Inscription : choix du métier dans une fenêtre avec recherche (nom, code APE)
   ========================================================================== */
.metier-picker {
  position: relative;
}

.metier-picker-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--text-light);
}

.metier-picker.has-value .metier-picker-btn {
  color: var(--text);
  padding-right: 76px;
}

.metier-picker-btn svg {
  color: var(--sky-deep);
  flex-shrink: 0;
}

.metier-picker-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Petite croix pour retirer le métier choisi, à gauche de la loupe */
.metier-picker-clear {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
}

.metier-picker-clear:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.metier-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.3);
  overflow: hidden;
}

.metier-dialog[open] {
  display: flex;
  flex-direction: column;
}

.metier-dialog::backdrop {
  background: rgba(21, 24, 30, 0.6);
}

.metier-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 18px 24px;
  background: var(--anthracite);
  color: #FFFFFF;
}

.metier-dialog-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.metier-dialog-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
}

.metier-dialog-close:hover {
  background: var(--anthracite-3);
}

.metier-dialog-search {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  padding: 20px 24px 8px;
}

.metier-dialog-count {
  margin: 0;
  padding: 4px 24px 8px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.metier-results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 0 12px 12px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.metier-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.metier-option:hover,
.metier-option:focus-visible {
  background: var(--sky-light);
}

.metier-option[aria-current="true"] {
  background: var(--sky-100);
}

.metier-option-icon {
  display: inline-flex;
  color: var(--sky-deep);
  flex-shrink: 0;
}

.metier-option-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.metier-option-nom {
  font-weight: 600;
  font-size: 0.95rem;
}

.metier-option-famille {
  font-size: 0.8rem;
  color: var(--text-light);
}

.metier-option-ape {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sky-deep);
  font-variant-numeric: tabular-nums;
}

.metier-empty {
  margin: 0;
  padding: 16px 24px 24px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .metier-dialog-search {
    grid-template-columns: 1fr;
  }
}

/* Éléments masqués tant que JavaScript ne les a pas activés (leur display ne doit pas écraser [hidden]) */
.password-toggle[hidden],
.pw-tools[hidden],
.metier-picker[hidden],
.metier-picker-clear[hidden] {
  display: none;
}
