:root {
  --bg: #050505;
  --bg-soft: #0b0f13;
  --card: #111318;
  --card-2: #13161b;
  --text: #f4f4f4;
  --muted: #cfd2d8;
  --muted-2: #a9afb7;
  --accent: #59dfff;
  --accent-strong: #22c8f1;
  --border: rgba(89, 223, 255, 0.78);
  --shadow: 0 0 0 1px rgba(89,223,255,.32), 0 0 24px rgba(34, 200, 241, .12);
  --container: 1400px;
  --radius: 22px;
  --header-h: 64px;
  --btn-h: 34px;
  --btn-radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(89,223,255,0.20), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(89,223,255,0.12), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(89,223,255,0.10), transparent 60%),
    linear-gradient(180deg, #050505 0%, #020202 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, .btn { font: inherit; }


body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.25;
}

.container {
  width: min(calc(100% - 30px), 1400px);
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.site-header {
  position: fixed;
  top: 0;
	left: 0;
	width: 100%;
	height: var(--header-h);
  z-index: 9999 !important;
  backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.86);
  border-bottom: 1px solid rgba(89, 223, 255, 0.18);
}

.navbar {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 20px;
	flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 1.15rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(89,223,255,.25), rgba(89,223,255,.06));
  border: 1px solid rgba(89,223,255,.55);
  box-shadow: 0 0 18px rgba(89,223,255,.16) inset;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 900;
}

.brand-logo {
  width: 60px;        /* même taille que ton ancien carré */
  height: 60px;
  object-fit: contain;
  border-radius: 12px; /* optionnel, pour garder le style */
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0px;  /* Espace entre les boutons du menu principal */
  align-items: center;
  justify-content: flex-start;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: .2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: rgba(89,223,255,.34);
  background: rgba(89,223,255,.08);
}

#auth-links {
  margin-left: auto;
  display: flex;
  gap: 0px;  /* Espace entre les boutons alignés à droite du menu principal */
  align-items: center;
}

.nav-links.open #auth-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.nav-links.open #auth-links a {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(89,223,255,.32);
  background: rgba(89,223,255,.07);
  color: var(--text);
}

.page {
  flex: 1;
  padding: 54px 0 40px; /* réduit le padding bas */
	padding-top: calc(var(--header-h) + 20px);
  min-height: auto; /* IMPORTANT */
}

.hero-grid,
.two-col {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 40px;
  align-items: center;
}

.hero-media {
  position: relative;
}

.subtitle-toggle {
  position: absolute;
  right: 220px;
  bottom: 40px;
  z-index: 5;
  width: 34px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.55);
  color: white;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-media:hover .subtitle-toggle {
  opacity: 1;
}

.hero-media.hide-subtitle-button .subtitle-toggle {
  opacity: 0 !important;
}

.subtitle-toggle:focus {
  opacity: 1;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .92rem;
  margin-bottom: 18px;
}

video::cue {
  background: transparent;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  text-shadow:
    0 0 4px rgba(0,0,0,0.9),
    0 2px 6px rgba(0,0,0,0.8);
}

.title-xl,
.title-lg,
.title-md {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

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

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

.title-md {
  font-size: 1.2rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
  line-height: 1.3;
  max-width: 760px;
}

.hero-copy .lead {
	max-width: 900px;
	margin-top: 20px;
}

.hero-actions,
.actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
  transition: .2s ease;
}

.btn-primary {
  color: #041118;
  background: linear-gradient(180deg, #69e1fb 0%, #4fc9e6 100%);
  box-shadow: 0 10px 24px rgba(79, 201, 230, 0.2);
}

.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.03); }

.btn-secondary,
.btn-outline {
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(89,223,255,.8);
}
.btn-secondary:hover,
.btn-outline:hover {
  background: rgba(89,223,255,.08);
}

.visual-frame {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(131, 141, 160, .5), rgba(37, 43, 52, .85) 42%, rgba(10, 10, 10, .96) 88%);
}

.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
	object-position: center;
}

.section-head {
  margin-bottom: 46px;
}
.section-head.center { text-align: center; }
.section-head .lead { margin: 18px auto 0; }

.accent-line {
  width: 100%;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(
    90deg,
    var(--accent),
    rgba(89,223,255,0.5),
    transparent
  );
  box-shadow: 0 0 6px rgba(89,223,255,0.3);
}
.center .accent-line { margin-left: auto; margin-right: auto; }

.grid-4,
.grid-3 {
  display: grid;
  gap: 32px;
}
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(17,19,24,.96), rgba(10,11,14,.98));
  border: 5px solid rgba(89,223,255,.3);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 38px 28px 30px;
}

.card-icon {
  width: 54px;
  height: 54px;
  object-fit: cover;
  margin-bottom: 10px;
}

.card-title {
  font-size: clamp(1.4rem, 1.4vw, 2.0rem);
  line-height: .98;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0 0 2px;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.45;
}

.card ul {
  padding-left: 1.2rem;
  margin: 0 0 26px;
}
.card li + li { margin-top: 6px; }
.card .btn-outline {
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  width: 100%;
}

.feature-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
  padding: 0 0 18px;
	border-left: none;
  box-shadow: 0 0 0 5px rgba(89,223,255,0.3);
  border-radius: 12px;
  padding: 25px;	
}
.feature-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 10px;
}
.feature-card .content { padding: 0 18px 0 4px; }
.feature-card .card-title { margin-bottom: 16px; }

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.check-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  align-items: start;
}
.check-item .tick {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.check-item p {
  margin: 0;
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.45;
}
.check-item strong { color: var(--text); }

.industry-card {
  background: linear-gradient(180deg, rgba(22,24,29,.92), rgba(12,13,17,.98));
  border-left: 4px solid var(--accent);
  padding: 10px;
  min-height: 100%;
	margin-left: auto;
  margin-right: auto;
}
.industry-card img {
  width: 100%;
  height: 142px;
  object-fit: cover;
  margin-bottom: 22px;
}
.link-text {
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
  margin-top: 16px;
  text-decoration: underline;
}

.metric-card {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.metric-card p { margin-top: 0; }

.metric-label {
  color: var(--accent);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .94rem;
	margin-top: 20px;
  margin-bottom: 26px;
}
.metric-value {
  font-size: clamp(1.4rem, 3vw, 3.8rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.05em;
  margin-bottom: 55px;
}

.method-list {
  display: grid;
  gap: 54px;
  margin-top: 40px;
}
.method-step {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
}
.step-number {
  color: var(--accent);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: .9;
}
.step-content h2 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1;
  margin: 0 0 14px;
  letter-spacing: -.04em;
}
.step-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.4;
  max-width: 980px;
}
.step-line {
  width: 2px;
  height: 34px;
  background: var(--accent);
  margin-top: 18px;
  opacity: .8;
}

.testimonial-card {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 30px 34px;
}
.quote-mark {
  color: var(--accent);
  font-size: 4.5rem;
  line-height: .9;
  margin: 18px 0 16px;
  font-weight: 900;
}
.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
  max-width: 95%;
  margin: 0 0 28px;
}
.person-name {
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .94rem;
  margin-top: auto;
}
.person-role {
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.cta-box {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(19,21,25,.92), rgba(14,16,19,.98));
  position: relative;
}
.cta-box .accent-line { margin-bottom: 30px; }
.cta-copy { 
	max-width: 980px; 
}
.cta-copy .lead { 
	margin: 26px auto 0; 
	max-width: clamp(700px, 80vw, 1400px); 
}
.cta-copy .btn { 
	margin-top: 32px; 
	min-width: 290px; 
}
.cta-copy .title-lg {
  max-width: none;
}

.small-note { 
	font-size: .95rem; 
	margin-top: -5px;
	margin-bottom: 5px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card ul {
  flex-grow: 1; /* pousse le bouton vers le bas */
}

.card .btn {
  margin-top: auto;
}

.industry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.industry-card p {
  flex-grow: 1; /* pousse le lien vers le bas */
}

.industry-card .link-text {
  margin-top: auto;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(5,5,5,0.9);
  backdrop-filter: blur(10px);
	padding: 2px 0;
	opacity: 0.8;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-minimal {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 0;
  min-height: auto;
}

.footer-brand-line {
  font-size: clamp(0.80rem, 1.5vw, 1.0rem);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap; /* empêche coupure */
}

.footer-link {
  white-space: nowrap;
}

.footer .brand-mark {
  width: 28px;
  height: 28px;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.footer-short {
  display: none;
}

.price-nowrap {
    white-space: nowrap !important;
}

.documents-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.document-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

.voice-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.72);
  display: grid;
  place-items: center;
}

.voice-modal-box {
  width: min(92vw, 560px);
  background: #111318;
  border: 1px solid rgba(89,223,255,.5);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.voice-modal-close {
  float: right;
  background: transparent;
  border: 0;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.voice-modal audio {
  width: 100%;
  margin-top: 14px;
}

.voice-modal[hidden] {
  display: none !important;
}

.template-modal-box {
  width: min(92vw, 920px);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.template-modal-top-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.template-modal-top-row select {
  width: 100%;
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  border-radius: var(--btn-radius);
  border: 1px solid rgba(89,223,255,.45);
  background: white;
  color: #050505;
  padding: 4px 10px;
  font: inherit;
}

.template-modal-action-btn {
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  padding: 0 14px;
  white-space: nowrap;
}

.template-prompt-preview {
  width: 100%;
  min-height: 430px;
  max-height: 55vh;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid rgba(89,223,255,.45);
  background: #0b0f13;
  color: white;
  padding: 12px;
  font: inherit;
  line-height: 1.35;
  box-sizing: border-box;
}

.template-prompt-preview:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(89,223,255,.15);
}

.bottom-cta-section {
  margin-top: -20px;
  margin-bottom: 28px;
}

.bottom-cta {
  width: 100%;
  min-height: auto;
  padding: 8px 20px 12px;
  border: none;
  box-shadow: none;
}

.bottom-cta-copy {
  width: 100%;
  max-width: none;
}

.bottom-cta-actions {
  width: 100%;
  margin: 12px 0 0;
}

.bottom-cta-btn {
  width: 100%;
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  padding: 0 14px;
  font-size: 0.9rem;
  box-sizing: border-box;
  white-space: nowrap;
}

.bottom-cta-title {
  margin: 0;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: #f4f4f4;
}

.bottom-cta-btn.btn-primary {
  border: 1px solid transparent;
}

.site-header .container,
.footer .container {
  width: auto;
  max-width: none;
  margin: 0;
  padding-left: 15px;
  padding-right: 15px;
}

/* ===== ROI BLOCK ===== */

.roi-box {
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17,19,24,.96), rgba(10,11,14,.98));
  border: 5px solid rgba(89,223,255,.3);
  box-shadow: var(--shadow);
  text-align: center;
}

.roi-head {
  margin-bottom: 10px;
}

.roi-head .lead {
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.2;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
	justify-items: center;
}

.roi-item {
  width: 100%;
  max-width: 220px;
  text-align: center;
  border-radius: 12px;
  background: rgba(89,223,255,0.05);
}

.roi-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.roi-value {
	font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
	margin-top: 0;
}

.roi-value.accent {
  color: var(--accent);
}

.roi-item.highlight {
  border: 1px solid rgba(89,223,255,.4);
  background: rgba(89,223,255,0.08);
	padding-top: 10px;
  padding-bottom: 14px;
}

.roi-item.highlight {
  transform: translateY(-11px);
}

.roi-note {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--muted);
}

.roi-sous-note {
  margin-top: 2px;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  color: var(--muted);
}

.dashboard-actions-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 16px;
  width: 100%;
}

.dashboard-actions-row .auth-btn {
  flex: 1;
  margin-top: 0 !important; /* On annule la marge top pour l'alignement */
}

.auth-section-box {
  border: 1px solid var(--border); /* Ou une couleur comme #333 / #e2e8f0 selon votre thème */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.02);
}

/* ÉTAT ACTIF (Modifications détectées) */
.btn-cancel-mini {
  width: 100px;
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  background: #bdc3c7;
  border: 1px solid #a9afb7;
  color: #050505;
  border-radius: var(--btn-radius);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* EFFET AU SURVOL (Le bouton devient blanc brillant) */
.btn-cancel-mini:not(.is-disabled):not(:disabled):hover {
  background: #ffffff;            /* Blanc pur au survol */
  color: #000000;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(89, 223, 255, 0.35); /* Halo HubVoiceAI */
}

/* ÉTAT INACTIF (Texte lisible mais sans fond) */
.btn-cancel-mini.is-disabled,
.btn-cancel-mini:disabled {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #a9afb7 !important;       /* Gris muted-2 pour être vu sans gêner */
  opacity: 1 !important;           /* On retire l'opacité pour que la couleur soit nette */
  cursor: not-allowed;
  filter: none;                    /* On retire le grayscale pour garder la teinte propre */
  box-shadow: none !important;
}

/* ===== Refonte navigation / pages regroupées ===== */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* ===== Refonte navigation / pages regroupées ===== */
.stacked-sections {
  display: grid;
  gap: 72px;
}

.stacked-sections > section {
  margin: 0;
}

/* ==========================================================================
   ALIGNEMENT ET DESIGN DE LA LIGNE NUMÉRO DE TÉLÉPHONE (DASHBOARD)
   ========================================================================== */
/* Structure alignée pour les contrôles sur une seule ligne */
.row-align {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.row-controls {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
}

/* Style de l'entrée texte en lecture seule */
input#agentPhoneNumber[readonly] {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(89, 223, 255, 0.2) !important;
  color: var(--muted-2);
  cursor: not-allowed;
  font-style: italic;
  height: var(--btn-h) !important;
  min-height: var(--btn-h) !important;
  max-height: var(--btn-h) !important;
}

.switch input:checked + .toggle-slider {
  background-color: rgba(89,223,255,0.12);
  border-color: var(--accent);
}

.switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
  background-color: var(--accent);
}

/* Alignement et encapsulation de la bascule "Actif" 
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  height: var(--btn-h);
}*/

.toggle-label {
  font-size: 13px;
  color: var(--muted);
  user-select: none;
}

/* Personnalisation de la taille de la modal pour la liste des numéros */
.modal-large {
  max-width: 550px !important;
  width: 90%;
}

.vapi-numbers-list {
  margin: 20px 0;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid rgba(89, 223, 255, 0.15);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.vapi-number-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}

.vapi-number-item:last-child {
  border-bottom: none;
}

.vapi-number-item:hover {
  background: rgba(89, 223, 255, 0.08);
}

.vapi-number-item.selected {
  background: rgba(89, 223, 255, 0.15);
  border-left: 3px solid var(--accent);
}

.vapi-number-item .phone-status {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.vapi-number-item.selected .phone-status {
  background: var(--accent);
  color: var(--bg);
  font-weight: bold;
}

.placeholder-loading {
  text-align: center;
  color: var(--muted-2);
  font-style: italic;
  padding: 30px !important;
}

body[data-page="dashboard"] .voice-select-row {
  display: grid;
  grid-template-columns: 1fr auto !important; /* Reste fluide à gauche, rigide à droite */
  gap: 12px;
  width: 100%;
  align-items: center;
}

.phone-actions-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

#dashAgentActifLabel {
  font-size: 1rem !important; /* Même taille que le label "Message d'accueil" */
  font-weight: 700 !important; /* Même épaisseur */
  color: var(--muted) !important;
  font-family: Inter, sans-serif;
  user-select: none;
}

.phone-toggle-inline .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#btnChooseNumber {
  width: var(--btn-h) !important;
  min-width: var(--btn-h) !important;
  max-width: var(--btn-h) !important;
  height: var(--btn-h) !important;
  padding: 0 !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.dashboard-traditional-checkbox {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  accent-color: var(--accent) !important; /* Conserve le bleu HubVoiceAI au clic */
  cursor: pointer;
}

/* ===== Page Index ===== */
body[data-page="home"] .stacked-sections {
  gap: 40px;
}
body[data-page="home"] .hero-copy .lead:last-child {
  margin-bottom: 0;
}
body[data-page="home"] .stacked-sections > section:nth-child(2) {
  margin-top: -30px;
}

body[data-page="home"] .stacked-sections > section:nth-child(2) .section-head {
  margin-bottom: 18px;
}

body[data-page="home"] .stacked-sections > section:nth-child(2) .section-head .lead {
  margin-top: 12px;
}

body[data-page="home"] .stacked-sections > section:nth-child(2) .card-title {
  margin-top: -10px;
  margin-bottom: 18px;
}

body[data-page="home"] .stacked-sections > section:nth-child(3) .section-head {
  margin-bottom: 10px;
}

body[data-page="home"] .stacked-sections > section:nth-child(3) .section-head .lead {
  margin-top: 8px;
  margin-bottom: 0;
}

body[data-page="home"] .stacked-sections > section:last-child .cta-copy .btn {
  margin-top: 0px;
  margin-bottom: 0px;
}

body[data-page="home"] .stacked-sections > section:last-child .hero-actions {
  margin-top: 12px !important;
}

body[data-page="home"] p {
  line-height: 1.3;
}
body[data-page="home"] p.lead {
  margin-top: 15px !important;
  margin-bottom: 15px !important;
}

body[data-page="home"] .cta-box {
  min-height: 240px;           /* avant: ~360-420px */
  padding: 20px 20px;          /* réduit l’espace global */
  display: flex;
  align-items: center;         /* centre verticalement */
  justify-content: center;
}

body[data-page="home"] .cta-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;                   /* espace plus compact */
}

body[data-page="home"] .before-after-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

body[data-page="home"] .before-after-card {
  min-height: auto;
  padding: 22px 18px 18px;
}

body[data-page="home"] .before-after-card .metric-label {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

body[data-page="home"] .before-after-card .metric-value {
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

body[data-page="home"] .before-after-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.32;
}
body[data-page="home"] .two-col {
  align-items: start;
}
body[data-page="home"] .two-col .visual-frame {
  margin-top: 10px;
}
body[data-page="home"] .metric-card {
  min-height: auto;
  padding: 22px 18px 18px;
	padding-top: 10px;
}
body[data-page="home"] .metric-card .card-icon {
  margin-bottom: 6px;
}
body[data-page="home"] .metric-card .metric-label {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.82rem;
}
body[data-page="home"] .metric-card .metric-value {
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.05;
  margin-bottom: 12px;
}
body[data-page="home"] .metric-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.32;
}

body[data-page="home"] .hero-actions {
  width: 100%;
}

body[data-page="home"] .hero-actions .btn {
  width: 100%;
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  padding: 0 14px;
}

/* ===== Page Solutions ===== */
body[data-page="solutions"] .card {
  padding: 20px 18px 16px;
}

body[data-page="solutions"] .metric-card {
  padding: 16px 16px 14px;
  min-height: auto; /* enlève la grande hauteur forcée */
}

body[data-page="solutions"] .metric-label {
  margin-top: 10px;
  margin-bottom: 12px; /* avant: 26px */
}

body[data-page="solutions"] .metric-value {
  margin-bottom: 20px; /* avant: 55px */
}

body[data-page="solutions"] .metric-card p {
  margin-top: 0;
}

body[data-page="solutions"] .two-col .visual-frame {
  /*height: 380px;*/
	height: clamp(320px, 34vw, 380px);
  position: relative;
  overflow: hidden;
}

body[data-page="solutions"] .two-col .visual-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

body[data-page="solutions"] .section-head {
  /*display: inline-block;*/
  display: block;
  width: 100%;	
}

body[data-page="solutions"] .section-head.center {
  /*max-width: 1400px;*/
	max-width: clamp(700px, 80vw, 1400px);
  margin: 0 auto 46px;
  text-align: center;
}

body[data-page="solutions"] .section-head.center .title-lg {
	max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body[data-page="solutions"] .section-head .accent-line {
  width: 100%;
  margin-top: 8px; /* rapproche du titre */
}

body[data-page="solutions"] .stacked-sections > section:first-child .card-title {
  font-size: clamp(1.2rem, 1.4vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
	margin-top: -5px; /* + d’espace entre titre et texte (avant: 20px) */
	margin-bottom: 28px; /* + d’espace entre titre et texte (avant: 20px) */
}

body[data-page="solutions"] .stacked-sections > section:first-child .card-icon {
  margin-bottom: 0px; /* moins d’espace sous l’icône (avant: 0px implicite + padding global) */
}

body[data-page="solutions"] .stacked-sections > section:first-child .card {
  padding-top: 24px;  /* réduit espace au-dessus de l’icône (avant: 38px) */
}

body[data-page="solutions"] .stacked-sections > section:not(:first-child) .section-head {
  margin-bottom: 22px;
}

body[data-page="solutions"] .page {
  padding-bottom: 60px; /* Espace en bas page Solutions */
}

body[data-page="solutions"] .stacked-sections {
  gap: 50px; /* Espace entre les paragraphes */
}

body[data-page="solutions"] .grid-4 .card {
  padding: 20px 18px 14px;
}

/* ===== Page Tech ===== */
body[data-page="tech"] .feature-card {
  padding: 12px;
  gap: 8px;
}

body[data-page="tech"] .feature-card img {
  margin-bottom: 6px;
}

body[data-page="tech"] .feature-card .card-title {
  margin-bottom: 6px;
}

body[data-page="tech"] .card {
  padding: 18px 16px 28px;
  gap: 10px;
	margin-top: 0;
}

body[data-page="tech"] .card p {
  margin: 0;
  line-height: 1.35;
}

body[data-page="tech"] .card-title {
  margin-bottom: 4px;
}

body[data-page="tech"] .feature-card,
body[data-page="tech"] .method-list,
body[data-page="tech"] .check-list {
  margin-top: 18px;
}

body[data-page="tech"] .section-head {
/*  display: inline-block;*/
  display: block;
  width: 100%;	
	margin-bottom: 18px;
}

body[data-page="tech"] .section-head .reveal {
  margin-bottom: 24px;
}

body[data-page="tech"] .section-head.center .title-lg {
	max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body[data-page="tech"] .section-head .accent-line {
  width: 100%;
  margin-top: 8px; /* rapproche du titre */
	margin-bottom: 22px;
}

body[data-page="tech"] .method-list {
  gap: 20px; /* moins d’espace entre les blocs */
}

body[data-page="tech"] .method-step {
	grid-template-columns: 50px 1fr;
  gap: 0px; /* resserre colonnes */
}

body[data-page="tech"] .stacked-sections {
  gap: 50px; /* Réduire espace entre les 3 blocs de la page Tech */
}

body[data-page="tech"] .stacked-sections > section:nth-child(1) .section-head,
body[data-page="tech"] .stacked-sections > section:nth-child(2) .section-head,
body[data-page="tech"] .stacked-sections > section:nth-child(3) .section-head {
  margin-bottom: 4px; /* Réduit espace sous le titre principal */
}

body[data-page="tech"] .stacked-sections > section:nth-child(3) .check-list {
  gap: 6px; /* espace entre les lignes */
}

body[data-page="tech"] .stacked-sections > section:nth-child(3) .check-item {
  gap: 10px; /* espace entre tick et texte légèrement réduit */
}

body[data-page="tech"] .stacked-sections > section:nth-child(3) .check-list {
  margin-bottom: 30px;
}

body[data-page="tech"] .stacked-sections > section:last-child {
  margin-bottom: 20px;
}

body[data-page="tech"] .step-number {
  font-size: clamp(1.4rem, 2.2vw, 2.2rem); /* Chiffres 01 / 02 / 03 */
}

body[data-page="tech"] .step-content h2 {
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  margin-bottom: 8px;
}

body[data-page="tech"] .step-content p {
  font-size: 1.05rem;
  line-height: 1.35;
}

body[data-page="tech"] .feature-tech {
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body[data-page="tech"] .feature-tech .card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

body[data-page="tech"] .feature-tech p {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--muted);
}

body[data-page="tech"] .grid-4 {
  gap: 20px;
}

/* ===== Page Pricing ===== */
body[data-page="pricing"] .pricing-hero {
  display: block !important;
  width: min(100%, 1000px);
  margin: 0 auto 24px; /* réduit l'espace sous le texte */
  text-align: center;
}

body[data-page="pricing"] .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;              /* moins d'espace entre les 3 blocs */
  margin-top: -20px;      /* remonte les blocs vers le texte */
	margin-bottom: -8px;
}

body[data-page="pricing"] .card.reveal {
  padding: 18px 18px 16px;
}

body[data-page="pricing"] .pricing-highlight {
  min-height: auto;       /* supprime la hauteur inutile */
  padding: 18px 16px 16px;/* resserre l'intérieur */
}

body[data-page="pricing"] .pricing-highlight .metric-label {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

body[data-page="pricing"] .pricing-highlight .metric-value {
  font-size: clamp(1.25rem, 2vw, 2rem); /* chiffres plus petits */
  line-height: 1.05;
  margin-bottom: 12px;                  /* moins d'espace sous la ligne centrale */
}

body[data-page="pricing"] .pricing-highlight p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.32;
}

body[data-page="pricing"] .pricing-table-wrap {
  width: 100%;
  overflow-x: hidden;
  border: 5px solid rgba(89,223,255,.3);
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(17,19,24,.96), rgba(10,11,14,.98));
}

body[data-page="pricing"] .pricing-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

body[data-page="pricing"] .pricing-table th,
body[data-page="pricing"] .pricing-table td {
  padding: 7px 9px;
  text-align: left;
  border-bottom: 1px solid rgba(89,223,255,.15);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-page="pricing"] .pricing-table th {
  color: var(--text);
  font-size: clamp(0.72rem, 0.9vw, 0.88rem);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(89,223,255,.08);
}

body[data-page="pricing"] .pricing-table td {
  color: var(--muted);
  font-size: clamp(0.6rem, 0.9vw + 0.4rem, 0.95rem);
  line-height: 1.3;
}

body[data-page="pricing"] .pricing-table th:not(:first-child),
body[data-page="pricing"] .pricing-table td:not(:first-child),
body[data-page="pricing"] .pricing-table-summary th:not(:first-child),
body[data-page="pricing"] .pricing-table-summary td:not(:first-child) {
  text-align: right;
}

body[data-page="pricing"] .pricing-table tbody tr:hover {
  background: rgba(89,223,255,.04);
}

body[data-page="pricing"] .pricing-table .is-accent {
  color: var(--accent);
  font-weight: 800;
}

body[data-page="pricing"] table.pricing-table tbody td:first-child,
body[data-page="pricing"] table.pricing-table-summary tbody td:first-child {
  font-weight: 700;
  color: #ff7a7a !important;
  letter-spacing: 0.02em;
}

body[data-page="pricing"] .pricing-note {
  margin-top: 9px;
}

body[data-page="pricing"] .pricing-note p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 1rem;
}

body[data-page="pricing"] .pricing-two-col {
  align-items: start;
}

body[data-page="pricing"] .pricing-side-card ul {
  margin-bottom: 24px;
}

body[data-page="pricing"] .section-head {
  display: inline-block;
	margin-bottom: 18px;
}

body[data-page="pricing"] .section-head .accent-line {
  width: 100%;
  margin-top: 8px;
}

body[data-page="pricing"] .stacked-sections {
  gap: 20px; /* au lieu de 72px */
}

body[data-page="pricing"] .pricing-grid,
body[data-page="pricing"] .pricing-two-col,
body[data-page="pricing"] .pricing-highlight,
body[data-page="pricing"] .pricing-side-card,
body[data-page="pricing"] .pricing-table-wrap {
  min-width: 0;
}

body[data-page="pricing"] .metric-value,
body[data-page="pricing"] .card-title,
body[data-page="pricing"] td,
body[data-page="pricing"] th {
  overflow-wrap: anywhere;
}

body[data-page="pricing"] .cta-box {
  min-height: 240px;     /* réduit fortement la hauteur */
  padding: 20px 20px;    /* moins d’espace interne */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Pricing V2 : tableau simplifié + détail complet ===== */
body[data-page="pricing"] .quick-read {
  padding: 14px 12px 12px;
}

body[data-page="pricing"] .quick-read .card-title {
  margin-bottom: 6px;
}

body[data-page="pricing"] .pricing-side-card .card-title {
  margin-bottom: 6px;
}

body[data-page="pricing"] .quick-read p {
  margin: 0;
  line-height: 1.35;
}

body[data-page="pricing"] .pricing-table-wrap--summary {
  overflow-x: auto;
}

body[data-page="pricing"] .pricing-table-summary {
  width: 100%;
  table-layout: fixed;
}

body[data-page="pricing"] .pricing-table-summary th,
body[data-page="pricing"] .pricing-table-summary td {
  padding: 9px 11px;
	width: 25%;
}

body[data-page="pricing"] .pricing-table-summary tbody td:first-child {
  color: var(--text);
}

body[data-page="pricing"] .pricing-note-compact p {
  margin: 6px 0;
}

body[data-page="pricing"] .pricing-details {
  border: 1px solid rgba(89,223,255,.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17,19,24,.96), rgba(10,11,14,.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}
body[data-page="pricing"] .pricing-details summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 22px;
  font-weight: 800;
  color: var(--text);
  position: relative;
	font-size: 1.2rem;
}
body[data-page="pricing"] .pricing-summary-text {
  display: block;
  max-width: calc(100% - 30px);
  line-height: 1.25;
}
body[data-page="pricing"] .pricing-details summary::-webkit-details-marker {
  display: none;
}
body[data-page="pricing"] .pricing-details summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--accent);
}
body[data-page="pricing"] .pricing-details[open] summary::after {
  content: "–";
}
body[data-page="pricing"] .pricing-details-body {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(89,223,255,.14);
}
body[data-page="pricing"] .pricing-details .pricing-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}
body[data-page="pricing"] .pricing-details .pricing-note {
  margin-top: 14px;
}

body[data-page="pricing"] .roi-head .lead {
  max-width: none;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.2;
}

body[data-page="pricing"] .calls-estimate {
  font-size: 0.75rem;
  color: var(--muted-2);
  margin-right: 6px;
  white-space: nowrap;
	font-weight: normal;
}

body[data-page="pricing"] .minutes-value {
  white-space: nowrap;
}

/* ===== Page dashboard ===== */

body[data-page="dashboard"] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-page="dashboard"] .page {
  flex: 1;
  display: flex;
  padding-top: calc(var(--header-h) + 10px);
  padding-bottom: 42px;
  min-height: 100vh;  
}

body[data-page="dashboard"] input,
body[data-page="dashboard"] select {
  height: 34px;
  min-height: 34px;
  padding: 4px 10px;
  border-width: 1px;
  border-color: rgba(89,223,255,.45);
  font-size: 0.95rem;
  border-radius: 8px;
}

body[data-page="dashboard"] .auth-wrap {
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

body[data-page="dashboard"] .auth-card {
  padding-top: 18px;
  padding-bottom: 16px;
  padding-left: 22px;
  padding-right: 22px;	
	width: 100%;
	max-width: none;
}

body[data-page="dashboard"] .auth-card .btn {
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  padding-top: 0;
  padding-bottom: 0;
}

body[data-page="dashboard"] .auth-card .title-lg {
  margin-bottom: 14px;
}

body[data-page="dashboard"] .form-group {
  margin-bottom: 6px;
}

body[data-page="dashboard"] .form-group label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.88rem;
}

body[data-page="dashboard"] .readonly-line {
  margin: 3px 0;
  line-height: 1.2;
}

body[data-page="dashboard"] .auth-btn {
  margin-top: 12px;
}

body[data-page="dashboard"] .auth-bottom {
  margin-top: 8px;
  margin-bottom: 0;
}

body[data-page="dashboard"] .dashboard-title {
  margin-bottom: 14px;
}

body[data-page="dashboard"] .compact-form .form-group {
  margin-bottom: 7px;
}

body[data-page="dashboard"] .compact-form input,
body[data-page="dashboard"] .compact-form select {
  min-height: 38px;
  padding: 7px 11px;
}

body[data-page="dashboard"] .dashboard-spacing-top {
  margin-top: 10px;
}

body[data-page="dashboard"] .auth-card .voice-info-btn {
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  padding: 0 12px;
}

body[data-page="dashboard"] .dashboard-agent-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 16px;
  width: 100%;
}

body[data-page="dashboard"] .dashboard-agent-row .dashboard-field-group {
  display: block;
  width: 100%;
}

body[data-page="dashboard"] .dashboard-agent-row .form-group,
body[data-page="dashboard"] .dashboard-agent-row select {
  width: 100%;
}

body[data-page="dashboard"] .dashboard-voice-full {
  grid-column: 1 / -1;
  margin-top: 14px;
}

body[data-page="dashboard"] .voice-select-row select {
  width: 100%;
}

body[data-page="dashboard"] .documents-card {
	padding-top: 22px;
	padding-bottom: 22px;
}

body[data-page="dashboard"] .documents-main-title {
	width: 100%;
	margin-bottom: 18px;
}

body[data-page="dashboard"] .documents-layout {
  display: flex;
  flex-direction: column;
  grid-template-columns: 1fr;
  gap: 22px;
	align-items: start;
	min-width: 0;
}

body[data-page="dashboard"] .documents-help {
	display: block;
	margin-bottom: 10px;
}

body[data-page="dashboard"] .documents-upload-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

body[data-page="dashboard"] .choose-document-btn {
	min-height: 38px;
	padding: 0 16px;
	width: auto;
	flex-shrink: 0;
}

body[data-page="dashboard"] .selected-document-name {
	height: 38px;
	display: flex;
	align-items: center;
	padding: 0 12px;
	border: 1px solid rgba(89,223,255,.45);
	border-radius: 8px;
	background: #0b0f13;
	color: white;
	flex: 1;
	width: auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body[data-page="dashboard"] .documents-list-box {
	margin-top: 0;
	border: 1px solid rgba(89,223,255,.35);
	border-radius: 12px;
	padding: 12px;
	background: rgba(255,255,255,.02);
}

body[data-page="dashboard"] .documents-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 0;
}

body[data-page="dashboard"] .document-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 5px 12px;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 10px;
	background: rgba(255,255,255,.03);
}

body[data-page="dashboard"] .document-info {
	min-width: 0;
}

body[data-page="dashboard"] .document-title {
	font-weight: 700;
	color: white;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body[data-page="dashboard"] .document-meta {
	font-size: 0.82rem;
	color: var(--muted);
	margin-top: 2px;
}

body[data-page="dashboard"] .document-status-ready {
  color: #7cff9b;
  font-weight: 800;
}

body[data-page="dashboard"] .document-status-error {
  color: #ff4d4d;
  font-weight: 800;
}

body[data-page="dashboard"] .document-status-processing {
  color: var(--muted);
  font-weight: 400;
  animation: document-processing-blink 1s ease-in-out infinite;
}

@keyframes document-processing-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

body[data-page="dashboard"] .delete-document-btn {
	min-height: 30px;
	padding: 0 10px;
	font-size: 0.82rem;
	width: auto;
	flex-shrink: 0;
}

body[data-page="dashboard"] .documents-list-title {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 10px;
	letter-spacing: 0.02em;
}

body[data-page="dashboard"] .documents-right {
	width: 100%;
}

body[data-page="dashboard"] .dashboard-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(89,223,255,.28);
  padding-bottom: 10px;
}

body[data-page="dashboard"] .dashboard-tab {
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  padding: 0 12px;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(89,223,255,.45);
  background: rgba(89,223,255,.05);
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

body[data-page="dashboard"] .dashboard-tab.active {
  background: var(--accent);
  color: #041118;
}

body[data-page="dashboard"] .dashboard-tab-panel {
  display: none;
  overflow: hidden;
  min-height: 0;  
}

body[data-page="dashboard"] .dashboard-tab-panel.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  overflow-y: auto;
  padding-right: 8px;
}

body[data-page="dashboard"] .dashboard-tabs-card {
  margin-top: 0;
  height: auto;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
}

body[data-page="dashboard"] .toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

body[data-page="dashboard"] .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(89,223,255,.45);
  transition: .3s;
  border-radius: 24px;
}

body[data-page="dashboard"] .toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--muted);
  transition: .3s;
  border-radius: 50%;
}

body[data-page="dashboard"] .toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

body[data-page="dashboard"] .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

body[data-page="dashboard"] .agent-buttons-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

body[data-page="dashboard"] .create-agent-btn,
body[data-page="dashboard"] .delete-agent-btn {
  width: var(--btn-h);
  min-width: var(--btn-h);
  max-width: var(--btn-h);
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(89, 223, 255, 0.8);
  color: var(--accent);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body[data-page="dashboard"] .update-tool-btn,
body[data-page="dashboard"] .sync-vapi-btn {
  width: var(--btn-h);
  min-width: var(--btn-h);
  max-width: var(--btn-h);
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(89, 223, 255, 0.8);
  color: var(--accent);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body[data-page="dashboard"] .create-agent-btn:hover,
body[data-page="dashboard"] .delete-agent-btn:hover,
body[data-page="dashboard"] .update-tool-btn:hover,
body[data-page="dashboard"] .sync-vapi-btn:hover {
  background: rgba(89, 223, 255, 0.08);
}

body[data-page="dashboard"] .sync-vapi-row {
  width: auto;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body[data-page="dashboard"] #dashboardForm .prompt-sync-vapi-row {
  margin-left: 0;
  margin-top: -12px;
  justify-content: flex-start;
  width: 185px;
}

body[data-page="dashboard"] .dashboard-actions-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  padding-left: 206px; 
  width: 100%;
}

body[data-page="dashboard"] .toggle-switch input:checked + .toggle-slider {
  background-color: rgba(89,223,255,0.12);
  border-color: var(--accent);
}

body[data-page="dashboard"] .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
  background-color: var(--accent);
}

body[data-page="dashboard"] #dashAgentActifLabel {
  font-weight: 600;
  color: var(--text);
}

body[data-page="dashboard"] #tab-prompt.active {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body[data-page="dashboard"] #promptForm {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body[data-page="dashboard"] #savePromptBtn {
  width: 100%;
  margin-top: 16px;
  margin-bottom: 0px;
}

body[data-page="dashboard"] #accountForm .form-group {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

body[data-page="dashboard"] #accountForm .form-group label {
  width: 185px;
  margin-bottom: 0;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;  
}

body[data-page="dashboard"] #accountForm .form-group select {
  flex: 1;
  width: 100%;
}

body[data-page="dashboard"] #accountForm .form-group input {
  flex: 1;
  width: 100%;
}

body[data-page="dashboard"] #accountForm .readonly-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

body[data-page="dashboard"] #accountForm .readonly-line strong {
  display: inline-block;
  width: 185px;
  flex-shrink: 0;
}

body[data-page="dashboard"] #promptForm .form-group {
  flex: 1;
}

body[data-page="dashboard"] #dashboardMessage {
  margin-top: 8px;
}

body[data-page="dashboard"] #dashboardForm {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto; /* Empêche le formulaire de s'écraser sur petit écran */
  min-height: 0;
}

body[data-page="dashboard"] #dashboardForm input,
body[data-page="dashboard"] #dashboardForm select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body[data-page="dashboard"] #dashboardForm input.agent-doc-checkbox {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  accent-color: var(--accent);
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

body[data-page="dashboard"] #dashboardForm #dashAgentDescription {
  width: 100%;
  max-width: 100%;
  background: #0b0f13;
  color: white;
  border: 1px solid rgba(89, 223, 255, 0.45);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body[data-page="dashboard"] #dashboardForm #dashAgentDescription:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(89, 223, 255, 0.15);
}

body[data-page="dashboard"] #dashboardForm .auth-btn {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 10px;
}

body[data-page="dashboard"] #dashboardForm .form-group {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 7px;  
}

body[data-page="dashboard"] #dashboardForm .form-group label:first-child {
  width: 185px;
  margin-bottom: 0;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
}

body[data-page="dashboard"] #dashboardForm .form-group.prompt-group {
  flex: 1;
  align-items: stretch;
  min-height: 90px;
  margin-bottom: 6px;
}

body[data-page="dashboard"] #dashboardForm .form-group select,
body[data-page="dashboard"] #dashboardForm .voice-select-row {
  flex: 1;
  width: 100%;
}

body[data-page="dashboard"] #dashboardForm .toggle-switch {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 26px;
  flex-shrink: 0;
}

body[data-page="dashboard"] #dashboardForm .toggle-switch input[type="checkbox"] {
  position: absolute;
  width: 0;
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  opacity: 0;
}

body[data-page="dashboard"] #dashboardForm .prompt-group label {
  align-self: flex-start;
  margin-top: 8px;
}

body[data-page="dashboard"] #saveDashboardBtn {
  margin-top: auto;
}

body[data-page="dashboard"] #addDocBtn {
  width: 100% !important;
}

body[data-page="dashboard"] .dashboard-tabs {
  margin-bottom: 8px;
}

body[data-page="dashboard"] #tab-documents .documents-layout {
  gap: 8px;
  margin-top: 0;
}

body[data-page="dashboard"] #tab-documents .docs-hint {
  margin: 6px 0 6px !important;
  line-height: 1.1;
}

body[data-page="dashboard"] #newAgentName {
  min-height: 36px;
  height: 36px;
  max-height: 36px;
  line-height: 36px;
}

/* Wrapper commun pour le Prompt ET les Documents */
body[data-page="dashboard"] .prompt-textarea-wrapper,
body[data-page="dashboard"] .documents-list-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Style spécifique pour la boîte de documents dans ce mode */
body[data-page="dashboard"] .dashboard-docs-box {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(89,223,255,.45);
  background: #0b0f13;
  color: white;
  padding: 6px 30px 6px 10px;
  box-sizing: border-box;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 2px;
  scrollbar-gutter: stable;
}

body[data-page="dashboard"] .dashboard-docs-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(89,223,255,.15);
}

/* On s'assure que les labels dans la boîte de documents ont l'air normaux et sont bien centrés */
body[data-page="dashboard"] .dashboard-docs-box label {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  font-weight: normal !important;
  font-size: 0.95rem !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

body[data-page="dashboard"] .dashboard-docs-box p {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 26px;
  line-height: 26px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="dashboard"] #dashboardForm .form-group.documents-group {
  flex: none;
  align-items: stretch;
  min-height: 34px;
  margin-bottom: 7px;
}

body[data-page="dashboard"] .documents-group label {
  align-self: flex-start;
  margin-top: 8px;
}

body[data-page="dashboard"] .expand-prompt-btn {
  position: absolute;
  top: 4px;
  right: 19px;
  width: 26px;
  height: 26px;
  background: rgba(5, 5, 5, 0.25);
  border: 1px solid rgba(89, 223, 255, 0.45);
  color: rgba(89, 223, 255, 0.45);
  border-radius: 6px;
  color: var(--accent);
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;          /* Supprime tout padding interne parasite */  
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  -webkit-tap-highlight-color: transparent;
  outline: none;  
}

body[data-page="dashboard"] .expand-prompt-btn svg { /* Force l'icône SVG à s'adapter proprement à la taille du bouton */
  width: 18px !important;         /* Légèrement réduit pour garder de belles proportions dans 25px */
  height: 18px !important;
  display: block;
  margin: 0 !important;           /* Évite les décalages induits par le navigateur */
}

body[data-page="dashboard"] .expand-prompt-btn:hover {
  background: var(--accent);
  color: #041118;
  border-color: var(--accent);
}

body[data-page="dashboard"] .dashboard-prompt-textarea {
  flex: 1;
  min-height: 90px;
  resize: none;
  border-radius: 8px;
  border: 1px solid rgba(89,223,255,.45);
  background: #0b0f13;
  color: white;
  padding: 8px 30px 8px 10px;
  font: inherit;
  box-sizing: border-box;
}

body[data-page="dashboard"] .dashboard-prompt-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(89,223,255,.15);
  outline: none;
}

body[data-page="dashboard"] #tab-agent .prompt-group {
  margin-bottom: 2px !important;
}

/* ===== État Agrandissement Prompt ===== */
body[data-page="dashboard"] #tab-agent.prompt-is-expanded .form-group:not(.prompt-group),
body[data-page="dashboard"] #tab-agent.prompt-is-expanded .toggle-form-group {
  display: none !important;
}

body[data-page="dashboard"] #tab-agent.prompt-is-expanded .prompt-group {
  margin-top: 0;
}

/* ===== État Agrandissement Documents ===== */
body[data-page="dashboard"] #tab-agent.docs-are-expanded .form-group:not(.documents-group),
body[data-page="dashboard"] #tab-agent.docs-are-expanded .toggle-form-group {
  display: none !important;
}

body[data-page="dashboard"] #tab-agent.docs-are-expanded .documents-group {
  margin-top: 0;
  flex: 1 !important;
}

body[data-page="dashboard"] #tab-agent.docs-are-expanded .dashboard-docs-box {
  height: auto;
  min-height: 120px;
  max-height: none;
  overflow-y: auto;
  justify-content: flex-start;
  align-items: stretch;
  padding: 8px 30px 8px 10px;
}

body[data-page="dashboard"] #dashboardForm .prompt-label-actions {
  width: 185px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 24px;
  margin-top: -5px;
}

body[data-page="dashboard"] #dashboardForm .prompt-label-actions label {
  width: auto !important;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 700;
}

body[data-page="dashboard"] .choose-template-open-btn {
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  width: 185px;
  padding: 0 12px;
  justify-content: flex-start;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  margin-top: 2px;
}

/* ===== Page Contact ===== */

body[data-page="contact"] .hero-actions {
  width: 100%;
  gap: 16px;
}

body[data-page="contact"] .hero-actions .btn {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  margin-top: 0;
  padding: 0 14px;
}

/* ===== Page RGPD / Legal ===== */

body[data-page="rgpd"] .legal-page {
  max-width: 900px;
  padding-bottom: 10px;  /* moins d’espace bas */
}

body[data-page="rgpd"] .section-head {
  margin-bottom: 20px;
}

body[data-page="rgpd"] .section-head .lead {
  margin-top: 8px;
}

.legal-card {  /* Cadre principal */
  padding: 22px;
  border-left: 3px solid var(--accent);
}

.legal-card h2 {  /* Titres sections */
  font-size: 1.1rem;
  margin: 16px 0 5px;
}

.legal-card ul {  /* Listes */
  margin: 6px 0 10px;
  padding-left: 18px;
}

.legal-card h2:first-child {  /* Première section sans marge haute */
  margin-top: 0;
}

body[data-page="rgpd"] .legal-card p,
body[data-page="rgpd"] .legal-card li {
  margin: 3.5px 0;
  line-height: 1.10;
  font-size: 0.95rem;
  color: var(--muted);
}

.legal-card a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== Page Admin ===== */

body[data-page="admin"] .page {
  flex: 1;
  display: flex;
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: 20px;
  min-height: 100vh;
}

body[data-page="admin"] .page > .container {
  flex: 1;
  display: flex;
  width: min(calc(100% - 30px), 1400px);
}

body[data-page="admin"] .admin-card {
  width: 100%;
  height: calc(100vh - var(--header-h) - 80px);
  min-height: 0;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  padding: 28px 28px 24px;
  overflow: hidden;
}

body[data-page="admin"] .admin-card .title-lg {
  text-align: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

body[data-page="admin"] .admin-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin-top: 0;
  flex-shrink: 0;
}

body[data-page="admin"] .admin-action-btn {
  width: min(100%, 620px);
  height: auto;
  min-height: 64px;
  max-height: none;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  text-align: left;
  border-radius: 10px;
  line-height: 1.25;
}

body[data-page="admin"] .admin-action-btn strong {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
}

body[data-page="admin"] .admin-action-btn span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

body[data-page="admin"] .admin-action-btn:hover {
  background: rgba(89, 223, 255, 0.08);
}

body[data-page="admin"] .admin-test-search {
  width: 100%;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(89,223,255,.25);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

body[data-page="admin"] .admin-test-search h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--text);
  flex-shrink: 0;
}

body[data-page="admin"] .admin-test-search label {
  font-weight: 800;
  color: var(--text);
  font-size: 0.95rem;
  flex-shrink: 0;
}

body[data-page="admin"] #adminTestAgent,
body[data-page="admin"] #adminTestQuestion,
body[data-page="admin"] #adminTestDbQuery,
body[data-page="admin"] #adminTestResult {
  width: 100%;
  border: 1px solid rgba(89,223,255,.45);
  border-radius: 8px;
  background: #0b0f13;
  color: white;
  font: inherit;
  min-width: 0;
}

body[data-page="admin"] #adminTestResult {
  flex: 0 1 calc(100% - 2px);
  min-height: 120px;
  resize: none;
  overflow-y: auto;
  padding: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
  margin-bottom: 2px;
}

body[data-page="admin"] #adminTestAgent,
body[data-page="admin"] #adminTestDbQuery,
body[data-page="admin"] #adminTestResult {
  margin-left: 2px;
  width: calc(100% - 4px);
}

body[data-page="admin"] #adminTestAgent {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 4px 10px;
  flex-shrink: 0;
}

body[data-page="admin"] .admin-test-question-row {
  width: calc(100% - 4px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  flex-shrink: 0;
  margin-left: 2px;
}

body[data-page="admin"] .admin-test-question-row #adminTestQuestion {
  margin-left: 0;
  width: 100%;
}

body[data-page="admin"] #adminTestQuestion {
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  padding: 7px 10px;
  resize: none;
  overflow-y: auto;
  line-height: 1.35;
}

body[data-page="admin"] #adminTestSearchBtn {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  white-space: nowrap;
  align-self: start;
}

body[data-page="admin"] #adminTestDbQuery {
  height: 112px;
  min-height: 112px;
  max-height: 112px;
  resize: none;
  overflow-y: auto;
  padding: 10px 12px;
  line-height: 1.35;
  white-space: pre;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  body[data-page="admin"] .admin-test-question-row {
    grid-template-columns: 1fr;
  }
  body[data-page="admin"] #adminTestSearchBtn {
    width: 100%;
  }
}

/* ===== Cookie Banner ===== */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 52px;
  z-index: 100000;
	flex-direction: column;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(89,223,255,.45);
  border-radius: 16px;
  background: rgba(10, 12, 16, 0.96);
  box-shadow: 0 0 30px rgba(89,223,255,.18);
  backdrop-filter: blur(12px);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-content {
  max-width: 850px;
}

.cookie-content strong {
  color: var(--text);
  font-size: 1rem;
}

.cookie-content p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.cookie-actions {
  display: flex;
  /*justify-content: space-between;*/
	justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: nowrap;
}

.cookie-actions .btn {
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  padding: 0 14px;
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
}

.cookie-accept {
  flex: 1.2;
}

/* ===== Cookie Modal ===== */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.62);
}

.cookie-modal-box {
  width: min(100%, 560px);
  border: 1px solid rgba(89,223,255,.45);
  border-radius: 18px;
  background: rgba(10, 12, 16, 0.98);
  box-shadow: 0 0 40px rgba(89,223,255,.22);
  padding: 26px;
}

.cookie-modal-box h2 {
  margin: 0 0 10px;
  color: var(--text);
}

.cookie-modal-box p {
  color: var(--muted);
  line-height: 1.45;
}

.cookie-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
}

.cookie-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ===== AUTH ===== */

.auth-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:75vh;
}

.auth-card{
  width:100%;
  max-width:min(92vw, 920px);
  padding:40px;
}

.auth-card h1{
  margin-bottom:30px;
  text-align:center;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:22px;
}

.form-group label{
  color:var(--muted);
  font-weight:600;
}

.form-group input{
  height:54px;
  border-radius:10px;
  border:1px solid rgba(89,223,255,.25);
  background:#0b0f13;
  color:white;
  padding:0 16px;
  font-size:1rem;
}

.form-group input:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 12px rgba(89,223,255,.15);
}

.auth-btn {
  width: 100%;
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 10px;
}

.auth-bottom{
  margin-top:24px;
  text-align:center;
  color:var(--muted);
}

.auth-bottom a{
  color:var(--accent);
}

button:disabled,
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

button:not(:disabled),
.btn:not(.is-disabled) {
  cursor: pointer;
}

.readonly-line {
  margin: 12px 0;
  color: var(--text);
  font-size: 1rem;
}

.readonly-line + .readonly-line {
  margin-top: 14px;
}

#saveAccountBtn {
  margin-top: 22px;
}

#viewport-size {
  font-weight: 600;
  opacity: 0.8;
  white-space: nowrap;
	/*display:none !important;*/
}

/* ==========================================================================
   PAGE LOGIN
   ========================================================================== */

body[data-page="login"] input#email,
body[data-page="login"] input#password,
body[data-page="login"] input#email:hover,
body[data-page="login"] input#password:hover,
body[data-page="login"] input#email:focus,
body[data-page="login"] input#password:focus,
body[data-page="login"] input#email:active,
body[data-page="login"] input#password:active,
body[data-page="login"] input#email:-webkit-autofill,
body[data-page="login"] input#password:-webkit-autofill,
body[data-page="login"] input#email:-webkit-autofill:hover,
body[data-page="login"] input#password:-webkit-autofill:hover,
body[data-page="login"] input#email:-webkit-autofill:focus,
body[data-page="login"] input#password:-webkit-autofill:focus,
body[data-page="login"] input#email:-webkit-autofill:active,
body[data-page="login"] input#password:-webkit-autofill:active {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 4px 10px;
  border: 1px solid rgba(89,223,255,.45);
  border-radius: 8px;
  background: #0b0f13;
  color: white;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  box-sizing: border-box;
  outline: none;
  -webkit-text-fill-color: white;
  caret-color: white;
  box-shadow: 0 0 0 1000px #0b0f13 inset;
  transition: none;
  transform: none;
  appearance: none;
  -webkit-appearance: none;
}

body[data-page="register"] #registerForm input,
body[data-page="register"] #registerForm input:hover,
body[data-page="register"] #registerForm input:focus,
body[data-page="register"] #registerForm input:active,
body[data-page="register"] #registerForm input:-webkit-autofill,
body[data-page="register"] #registerForm input:-webkit-autofill:hover,
body[data-page="register"] #registerForm input:-webkit-autofill:focus,
body[data-page="register"] #registerForm input:-webkit-autofill:active {
  width: 100%;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 4px 10px;
  border: 1px solid rgba(89,223,255,.45);
  border-radius: 8px;
  background: #0b0f13;
  color: white;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 18px;
  box-sizing: border-box;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-text-fill-color: white;
  caret-color: white;
  box-shadow: 0 0 0 1000px #0b0f13 inset;
  transition: none;
  transform: none;
}

/* ############### Responsive ############### */ 

@media (min-width: 1083px) {
  body[data-page="home"] .hero-grid {
    align-items: start;
  }
  body[data-page="home"] .hero-grid .visual-frame {
    margin-top: 50px;
  }
  body[data-page="home"] .hero-grid .visual-frame,
  body[data-page="home"] .two-col .visual-frame,
  body[data-page="home"] .hero-grid .visual-frame img,
  body[data-page="home"] .two-col .visual-frame img {
    border-radius: 28px;
  }	
}

@media (max-width: 1082px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid,
  .two-col { grid-template-columns: 1fr; }
  .visual-frame,
  .two-col .visual-frame { min-height: 420px; }
  .method-step { grid-template-columns: 110px 1fr; }
  body[data-page="home"] .stacked-sections > section:nth-child(2) {
    margin-top: -10px;
  }
  body[data-page="home"] .hero-grid .visual-frame {
    min-height: auto;
    aspect-ratio: 16 / 8;
  }
  body[data-page="home"] .before-after-grid,
  body[data-page="home"] .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body[data-page="solutions"] .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
	body[data-page="tech"] .grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

  body[data-page="tech"] .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-page="pricing"] .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  body.logged-in .menu-toggle {
    display: inline-grid;
    place-items: center;
  }
  body.logged-in .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8,8,8,.98);
    border: 1px solid rgba(89,223,255,.25);
    border-radius: 18px;
    padding: 14px;
  }
  body.logged-in .nav-links.open {
    display: flex;
  }
  body.logged-in .nav-links a {
    width: 100%;
    border-radius: 12px;
  }
}

@media (max-width: 830px) {
  .grid-4,
  .grid-3 { grid-template-columns: 1fr; }
  .method-step { grid-template-columns: 1fr; gap: 18px; }
  .method-list { gap: 34px; }
  .step-line { display: none; }
  .container { width: min(var(--container), calc(100% - 30px)); }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8,8,8,.98);
    border: 1px solid rgba(89,223,255,.25);
    border-radius: 18px;
    padding: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; border-radius: 12px; }
  .menu-toggle { display: inline-grid;}
  body[data-page="home"] .before-after-grid,
  body[data-page="home"] .grid-3 {
    grid-template-columns: 1fr;
  }  body[data-page="home"] .hero-grid .visual-frame,
  body[data-page="home"] .two-col .visual-frame {
    min-height: auto;
    aspect-ratio: 16 / 8;
  }	
  body[data-page="pricing"] .pricing-details summary {
    padding: 16px 18px;
  }
  body[data-page="pricing"] .pricing-details-body {
    padding: 0 10px 12px;
  }
  body[data-page="pricing"] .pricing-table-summary th,
  body[data-page="pricing"] .pricing-table-summary td {
    padding: 8px 10px;
  }
  body[data-page="pricing"] .pricing-grid {
    grid-template-columns: 1fr;
  }
  body[data-page="pricing"] .pricing-table td {
    padding: 6px 8px;
  }
  body[data-page="pricing"] .grid-3 {
    grid-template-columns: 1fr;
  }
  body[data-page="pricing"] .grid-3 .quick-read {
    width: 100%;
    max-width: none;
  }	
}

@media (max-width: 760px) {
  body[data-page="solutions"] .grid-3 {
    grid-template-columns: 1fr;
  }
  body[data-page="solutions"] .grid-3 {
    grid-template-columns: 1fr !important;
  }
  body[data-page="solutions"] .grid-3 .card {
    width: 100%;
    max-width: none;
  }
	body[data-page="tech"] .grid-3,
  body[data-page="tech"] .grid-4 {
    grid-template-columns: 1fr;
  }
  body[data-page="tech"] .stacked-sections > section:first-child .feature-card {
    padding: 12px 12px 0px;  /* réduit le bas */
    gap: 0px;                 /* resserre l’intérieur */
  }
  body[data-page="tech"] .stacked-sections > section:first-child .feature-card img {
    width: 180px !important;
    height: 180px !important;
    max-width: none !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover;
    margin: 0 auto 6px !important;
  }
  body[data-page="dashboard"] .dashboard-agent-row {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    left: 12px;
    right: 12px;
    bottom: 48px;
  }
  .cookie-actions {
    justify-content: stretch;
  }
  .cookie-actions .btn {
    flex: 1;
  }
  .legal-card {
    padding: 24px 20px;
  }
}

@media (max-width: 700px) {
  body[data-page="home"] .hero-grid .visual-frame,
  body[data-page="home"] .two-col .visual-frame {
    aspect-ratio: 16 / 7;
  }	
	.footer-full {
    display: none;
  }
  .footer-short {
    display: inline;
  }	
	body[data-page="dashboard"] #dashboardForm {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .menu-toggle {
    display: none;
  }
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .navbar {
    gap: 10px;
  }
  .brand {
    font-size: 1rem;
    gap: 10px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .nav-links a {
    padding: 6px 7px;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  body[data-page="home"] .economic-section .grid-3,
  body[data-page="home"] .before-after-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page="home"] .economic-section .card,
  body[data-page="home"] .before-after-card {
    width: 100%;
    max-width: none;
  }

	body[data-page="dashboard"] .documents-upload-row {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 8px;
		width: 100%;
		max-width: 100%;
	}

	body[data-page="dashboard"] .choose-document-btn {
		width: auto;
		min-width: 86px;
		padding-left: 10px;
		padding-right: 10px;
	}

	body[data-page="dashboard"] .selected-document-name {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	body[data-page="dashboard"] .document-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
	}

	body[data-page="dashboard"] .delete-document-btn {
		width: auto;
		padding-left: 8px;
		padding-right: 8px;
	}

  body[data-page="dashboard"] #accountForm .form-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  body[data-page="dashboard"] #accountForm .form-group label {
    width: auto;
  }
  
  body[data-page="dashboard"] #accountForm .readonly-line {
    flex-direction: row;
    align-items: flex-start;
  }
  
  body[data-page="dashboard"] #accountForm .readonly-line strong {
    width: 190px;
  }
  
  body[data-page="dashboard"] #dashboardForm .form-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  
  body[data-page="dashboard"] #dashboardForm .form-group label:first-child {
    width: auto;
  }
  
  body[data-page="dashboard"] #dashboardForm .form-group.toggle-form-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  
  body[data-page="dashboard"] #dashboardForm .form-group.toggle-form-group label:first-child {
    width: auto;
    padding-right: 6px;
  }
  
  body[data-page="dashboard"] .dashboard-actions-row .btn-cancel-mini {
    flex-shrink: 0 !important;      /* Empêche le bouton Annuler de se faire écraser */
  }
  
  body[data-page="dashboard"] .dashboard-actions-row {
    flex-direction: row !important; /* Force le maintien sur une seule ligne */
    flex-wrap: nowrap !important;   /* Interdit le saut de ligne */
    padding-left: 0;                /* Retire l'alignement décalé sur mobile */
    margin-top: 6px;                /* Rapproche harmonieusement les boutons du prompt */
  }
  
  body[data-page="dashboard"] .dashboard-actions-row .auth-btn {
    flex: 1 !important;             /* Permet au bouton Enregistrer de prendre tout l'espace restant */
    width: auto !important;         /* Annule le width 100% qui cassait la ligne */
  }
  
  /* ===== Harmonie et 1 seule ligne sur Mobile (Prompt & Documents) ===== */
  body[data-page="dashboard"] #dashboardForm .form-group.documents-group,
  body[data-page="dashboard"] #dashboardForm .form-group.prompt-group {
    margin-bottom: 6px; /* Espacement vertical identique à tous les autres champs */
    flex: none;         
    min-height: 0;
  }

  body[data-page="dashboard"] .dashboard-prompt-textarea {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    overflow: hidden;
  }

  body[data-page="dashboard"] .dashboard-docs-box {
    height: var(--btn-h) !important;
    min-height: var(--btn-h) !important;
    max-height: var(--btn-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
  }

  body[data-page="dashboard"] #tab-agent.docs-are-expanded .dashboard-docs-box,
  body[data-page="dashboard"] #tab-agent.prompt-is-expanded .dashboard-prompt-textarea {
    height: 100% !important; /* Passe en 100% pour forcer le remplissage du parent */
    max-height: none !important;
    min-height: 120px !important;
    overflow-y: auto !important;
  }

  body[data-page="dashboard"] #tab-agent.prompt-is-expanded .prompt-group,
  body[data-page="dashboard"] #tab-agent.docs-are-expanded .documents-group {
    flex: 1 !important;
  }

  body[data-page="contact"] .hero-actions {
    flex-direction: column;
  }
  
  body[data-page="dashboard"] .agent-buttons-wrapper {
    width: auto;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
  }

  body[data-page="dashboard"] .create-agent-btn,
  body[data-page="dashboard"] .delete-agent-btn,
  body[data-page="dashboard"] .update-tool-btn,
  body[data-page="dashboard"] .sync-vapi-btn {
    flex: none;
    width: var(--btn-h);
    min-width: var(--btn-h);
    max-width: var(--btn-h);
    height: var(--btn-h);
    min-height: var(--btn-h);
    max-height: var(--btn-h);
  }

  body[data-page="dashboard"] #dashboardForm .form-group .voice-select-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px;
    width: 100%;
    align-items: center;
  }
  
  body[data-page="dashboard"] #dashboardForm .form-group .voice-select-row select,
  body[data-page="dashboard"] #dashboardForm .form-group .voice-select-row input[type="text"] {
    min-width: 0;
  }
  
  body[data-page="dashboard"] .agent-buttons-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    width: auto !important;
    min-width: max-content;
    flex-shrink: 0;
  }
  
  body[data-page="dashboard"] .phone-actions-container {
    width: auto !important;
    min-width: max-content;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
  }
}

@media (max-width: 450px) {
  .roi-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .roi-item {
    max-width: 260px;
  }

  body[data-page="dashboard"] .sync-rest {  /* Masque les mots "la base" du bouton Synchroniser sur mobile */
    display: none;
  }
 
}

@media (pointer: coarse) {
  body[data-page="dashboard"] .expand-prompt-btn {
    right: 2px;
  }
  
  body[data-page="dashboard"] .dashboard-prompt-textarea {
    padding-right: 48px;
  }
}
