/* ===========================
   Thème Data4U (inspiré du logo)
   =========================== */

:root {
  --bg: #2f3a44;
  /* ardoise du cercle */
  --bg-900: #25303a;
  --surface: #33404c;
  /* surface carte foncée */
  --surface-2: #3b4957;
  --text: #ffffff;
  --muted: #a8b3bd;

  --turquoise: #3BC1C4;
  /* traits "réseau" */
  --turquoise-2: #2DA9AD;
  --green4: #4ED3A7;
  /* le "4" du logo, accent CTA */
  --link: #9CE7E9;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, .18);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(59, 193, 196, .08), transparent 40%),
    radial-gradient(1200px 800px at 120% 110%, rgba(78, 211, 167, .06), transparent 40%),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  letter-spacing: .2px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: "Montserrat", Inter, system-ui, sans-serif;
}

h1 {
  font-weight: 800;
  letter-spacing: .2px;
}

h2 {
  font-weight: 800;
  margin: 0 0 .6rem;
}

h3 {
  font-weight: 700;
  margin: 0 0 .4rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text);
  opacity: .92;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(38, 49, 58, .66);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: .3px;
}

.brand-name {
  font-size: 1.25rem;
}

.accent-4 {
  color: var(--green4);
  background-image: linear-gradient(140deg, var(--turquoise), var(--green4));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not (-webkit-background-clip: text) {
  .accent-4 {
    background-image: none;
    color: var(--green4);
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: .35rem .5rem;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a[aria-current="page"] {
  color: var(--turquoise);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0.75rem;
  font-size: 0.9rem;
}

.lang-switch-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0 .15rem;
  border-radius: 999px;
  transition: color .25s ease;
}

.lang-switch-link.is-active {
  color: var(--green4);
}

.header-user {
  display: none;
  font-size: .9rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0) 60%), var(--bg-900);
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.8rem;
}

.section-title::after {
  content: "";
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--turquoise), var(--green4));
  display: inline-block;
}

.section-intro {
  max-width: 680px;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.section.hero {
  position: relative;
  padding-bottom: clamp(5rem, 10vw, 7.5rem);
}

.hero .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}

.hero .hero-copy h1 {
  font-size: clamp(1.8rem, 2.8vw + 1rem, 3rem);
  margin: 0 0 .6rem;
}

.hero-cta {
  width: min(720px, 94vw);
  text-align: center;
  display: grid;
  place-items: center;
  gap: .6rem;
  margin: 0 auto;
}

.hero-cta .muted {
  max-width: 520px;
  font-style: italic;
  font-size: .9rem;
  color: rgba(255, 255, 255, .8);
}

/* Statistiques Datascoring */
.stats-intro {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
}

.datascoring-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.stat-card {
  background: linear-gradient(135deg, #26313a 0%, #1a2329 100%);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  text-align: center;
  border: 1px solid rgba(78, 211, 167, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 211, 167, 0.4);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #4ED3A7;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

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

@media (max-width: 640px) {
  .datascoring-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }
}

.btn-hero {
  --btn-bg: #4ED3A7 !important;
  --btn-fg: #041219;
  --btn-bd: rgba(59, 193, 196, .55);
  font-size: 1.05rem;
  padding: .9rem 2.4rem;
  border-radius: 999px;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1rem 0 1.25rem;
}

.hero-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  width: clamp(260px, 40vw, 480px);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero.hero-secondary {
  padding: clamp(78px, 10vw, 120px) 0 clamp(56px, 8vw, 92px);
  background: linear-gradient(135deg, rgba(59, 193, 196, .12), transparent 48%), var(--bg-900);
}

.hero-secondary .container {
  width: min(960px, 90vw);
}

.hero-secondary-content {
  max-width: 640px;
}

.hero-secondary h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3.2rem);
  margin-bottom: 1rem;
}

.hero-secondary .lead {
  color: rgba(255, 255, 255, .9);
  margin-bottom: 1.5rem;
}

.hero-secondary .actions {
  margin: 0;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .35));
}

/* Motif réseau (rappel du logo) */
.network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(59, 193, 196, .18) 0 18%, transparent 19%),
    conic-gradient(from 0deg, rgba(59, 193, 196, .25) 0 8deg, transparent 8deg 52deg, rgba(59, 193, 196, .25) 52deg 60deg, transparent 60deg 360deg),
    radial-gradient(ellipse at center, rgba(255, 255, 255, .06), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.logo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 0;
  margin-bottom: 1.5rem;
}

.logo-track {
  display: flex;
  gap: clamp(18px, 2.5vw, 36px);
  width: max-content;
  animation: carousel-scroll 32s linear infinite;
  will-change: transform;
}

.logo-item {
  width: clamp(120px, 14vw, 180px);
  height: clamp(60px, 8vw, 92px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .4rem 1rem;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(223, 228, 236, .6);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.logo-item img {
  max-width: min(110%, calc(100% - 10px));
  max-height: min(110%, calc(100% - 10px));
  object-fit: contain;
  filter: none;
}

.logo-carousel:hover .logo-track,
.logo-carousel:focus-within .logo-track {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}

.carousel-cta {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 2rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.3rem;
  margin-top: 2rem;
}

.logo-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.2rem;
  border: 1px solid rgba(223, 228, 236, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.logo-card img {
  max-width: min(110%, calc(100% - 10px));
  max-height: 96px;
  object-fit: contain;
  filter: none;
}

.logo-section-heading {
  margin-top: 3rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.network::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 2px dashed rgba(255, 255, 255, .18);
  border-radius: 16px;
}

.network::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(59, 193, 196, .12), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(78, 211, 167, .10), transparent 38%);
  mix-blend-mode: screen;
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-primary {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-posts {
  margin-top: 1.8rem;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, .06);
}

.btn,
.btn-cta,
.btn-outline,
.btn-ghost,
.btn-primary,
.btn-hero,
.icon-btn,
.agent-btn,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer;
}

.card h3 {
  font-size: 1.2rem;
  margin: 0;
}

.card p {
  color: var(--muted);
}

.card .link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--link);
  font-weight: 600;
}

.card.card-post {
  gap: 1rem;
  padding: 1.6rem;
}

.card-media-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
  width: 100%;
  height: 180px;
}

.card-media-grid.has-multiple {
  grid-template-columns: 1fr 1fr;
}

.card-post .card-media {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: relative;
}

.card-post .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.overlay-count {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.card-post .card-body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.card-post .card-excerpt {
  font-size: .95rem;
  color: rgba(255, 255, 255, .78);
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-post .card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.card-post .card-footer .link {
  margin-top: 0;
}

.card-post .card-date {
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
  text-align: right;
  white-space: nowrap;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(1.4rem, 2.5vw, 2.4rem);
  align-items: flex-start;
}

.legal-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.sidebar-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .85);
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .75rem;
}

.legal-btn {
  width: 100%;
  text-align: left;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 193, 196, .18);
  background: rgba(59, 193, 196, .08);
  color: #f4fbfb;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.legal-btn:hover,
.legal-btn:focus {
  outline: none;
  border-color: rgba(59, 193, 196, .38);
  background: rgba(59, 193, 196, .14);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
}

.legal-btn.is-active {
  background: linear-gradient(135deg, rgba(59, 193, 196, .35), rgba(78, 211, 167, .28));
  border-color: rgba(78, 211, 167, .65);
  color: #041219;
}

.legal-content-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-source {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  color: rgba(255, 255, 255, .78);
}

.legal-source a {
  color: var(--link);
  word-break: break-all;
}

.legal-card-display {
  background: rgba(255, 255, 255, .92);
  color: #1b2832;
  border: 1px solid rgba(4, 18, 25, .08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .26);
  padding: clamp(1.4rem, 2vw, 2rem);
  gap: 1.25rem;
}

.legal-card-display .muted {
  color: #52616b;
}

.legal-card-display h1,
.legal-card-display h2,
.legal-card-display h3 {
  color: #0f1e26;
}

.legal-card-display p,
.legal-card-display li,
.legal-card-display span,
.legal-card-display div {
  color: #1b2832;
}

.legal-card-display a {
  color: #0b6ca8;
  text-decoration: underline;
}

.legal-card-display hr {
  border-color: rgba(4, 18, 25, .15);
}

.legal-card-display table {
  color: #1b2832;
}

.legal-card-display iframe {
  width: 100%;
  height: clamp(480px, 65vh, 720px);
  border: none;
  border-radius: calc(var(--radius) - 4px);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(4, 18, 25, .06);
}

@media (max-width: 960px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .8rem;
  }

  .legal-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
  }

  .legal-list li {
    flex: 1 1 calc(50% - .6rem);
    min-width: 220px;
  }

  .legal-btn {
    font-size: .95rem;
  }
}

@media (max-width: 640px) {
  .legal-list li {
    flex-basis: 100%;
    min-width: 0;
  }

  .legal-card-display iframe {
    height: clamp(360px, 60vh, 620px);
  }
}

@media (max-width: 960px) {
  .cards-posts {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.grid-legal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
}

.legal-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(59, 193, 196, .12), rgba(59, 193, 196, .06));
  border: 1px dashed rgba(59, 193, 196, .35);
  padding: .9rem 1rem;
  border-radius: var(--radius);
}

.legal-card:hover {
  border-style: solid;
}

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  width: min(820px, 94vw);
  height: min(90vh, 820px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.modal-card#datascoring-modal .modal-header,
#datascoring-modal .modal-header {
  background: var(--green4);
  border-bottom-color: rgba(4, 18, 25, .25);
}

.modal-body {
  padding: 1rem 1.2rem;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.modal-body.is-hidden {
  display: none;
}

.modal-card,
.modal-result {
  min-height: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

fieldset {
  margin: .8rem 0 1rem;
  border: 1px dashed rgba(59, 193, 196, .35);
  border-radius: 14px;
  padding: .8rem 1rem;
}

legend {
  padding: 0 .4rem;
  color: #eaf7f8;
  font-weight: 700;
}

.q {
  display: grid;
  grid-template-columns: 1fr 220px 40px;
  align-items: center;
  gap: .8rem;
  margin: .6rem 0;
}

.q input[type="range"] {
  width: 100%;
}

.q output {
  width: 40px;
  text-align: right;
  color: var(--muted);
}

.icon-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, .06);
}

.modal-result {
  padding: 1rem 1.2rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-result.hidden {
  display: none;
}

.scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin: .8rem 0;
}

.score-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  background: linear-gradient(180deg, rgba(59, 193, 196, .12), rgba(59, 193, 196, .06));
  border: 1px dashed rgba(59, 193, 196, .35);
  border-radius: 12px;
  padding: .6rem .8rem;
}

.score-pill span {
  font-weight: 800;
  color: var(--green4);
}

.quickwins {
  display: grid;
  gap: .6rem;
  margin: .8rem 0;
}

.quickwins .card {
  background: var(--surface-2);
}

.quickwins .card h4 {
  margin: 0 0 .25rem;
}

.quickwins .card h5 {
  margin: .25rem 0 .15rem;
  font-size: .95rem;
}

.recommendation-list {
  margin: .8rem 0;
  padding-left: 1.2rem;
  display: grid;
  gap: .4rem;
}

.recommendation-list li {
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
}

/* Accordéons pour les quickwins par axe */
details.quickwins-accordion {
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: .35rem .75rem .65rem;
}

details.quickwins-accordion+details.quickwins-accordion {
  margin-top: .4rem;
}

details.quickwins-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  cursor: pointer;
  padding: .25rem .15rem;
}

details.quickwins-accordion summary::-webkit-details-marker {
  display: none;
}

.quickwins-accordion-title {
  font-weight: 700;
  color: #f5fcff;
}

.quickwins-accordion-icon {
  transition: transform .18s ease;
  font-size: 1rem;
  color: var(--green4);
}

details.quickwins-accordion[open] .quickwins-accordion-icon {
  transform: rotate(180deg);
}

details.quickwins-accordion>article.card {
  margin-top: .25rem;
  background: transparent;
  border: 0;
  padding: .35rem 0 0;
}

.modal-result .actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: .8rem;
}

.modal-result-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: .4rem;
}

#diagnostic p {
  margin: .25rem 0;
}

.diagnostic-block {
  margin: 2.5rem 0;
}

.diagnostic-title {
  font-weight: 700;
  margin: 0 0 .25rem;
}

.diagnostic-text {
  margin: 0;
}

.email-inline {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

#datascore-email {
  min-width: 220px;
  padding: .5rem .7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(4, 18, 25, .6);
  color: #f5fcff;
}

#datascore-email::placeholder {
  color: rgba(255, 255, 255, .45);
}

.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .24);
}

.email-status {
  margin-top: .4rem;
  font-size: .85rem;
  color: var(--green4);
}

.email-status.email-status-error {
  color: #fca5a5;
}

@keyframes wizardSlideInFromRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wizardSlideOutToLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-24px);
  }
}

.wizard-body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.wizard-progress-track {
  display: grid;
  grid-template-columns: repeat(10, minmax(16px, 1fr));
  gap: .4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.wizard-progress-track li {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  transition: background .3s ease;
}

.wizard-progress-track li.is-complete {
  background: var(--green4);
}

.wizard-progress-track li.is-active {
  background: var(--turquoise);
}

@keyframes wizardProgressBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .2;
  }
}

.wizard-progress-track li.is-pulsing {
  animation: wizardProgressBlink .35s ease-in-out 3;
}

.wizard-steps {
  display: grid;
}

.wizard-step {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.wizard-step.is-active {
  display: flex;
}

.wizard-step.is-entering-right {
  animation: wizardSlideInFromRight 1.5s ease forwards;
}

.wizard-step.is-exiting-left {
  animation: wizardSlideOutToLeft 1.5s ease forwards;
}

.wizard-step-header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.wizard-info {
  color: rgba(255, 255, 255, .78);
  line-height: 1.5;
}

.wizard-question {
  align-items: end;
}

.wizard-question output {
  display: none;
}

.score-squares {
  display: inline-flex;
  gap: .6rem;
  align-items: center;
}

.score-square {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.score-square:hover:not(.is-active) {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .35);
}

.score-square.is-active {
  border-width: 3px;
  border-color: var(--green4);
  background: rgba(59, 193, 196, .26);
  box-shadow: 0 0 0 1px rgba(4, 18, 25, .4);
}

.score-range-visually-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.wizard-examples {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: .75rem 1rem;
}

.wizard-examples summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--turquoise);
}

.wizard-examples summary::-webkit-details-marker {
  display: none;
}

.wizard-examples ul {
  margin: .6rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: .4rem;
}

.wizard-examples li {
  color: rgba(255, 255, 255, .78);
}

.wizard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .4rem;
}

.wizard-step-indicator {
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
}

.wizard-controls [data-prev] {
  display: none !important;
}

.wizard-controls [data-next] {
  display: none;
}

.wizard-controls [data-next].is-visible {
  display: inline-flex;
}

.wizard-body.is-hidden {
  display: none;
}

.wizard-controls .btn[disabled] {
  opacity: .45;
  pointer-events: none;
}

.modal-result[aria-hidden="true"] {
  display: none;
}

@media (max-width: 960px) {
  .wizard-progress-track {
    grid-template-columns: repeat(5, minmax(24px, 1fr));
    grid-auto-rows: 6px;
  }
}

@media (max-width: 720px) {
  .wizard-step-header h3 {
    font-size: 1.2rem;
  }

  .wizard-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-controls .btn {
    width: 100%;
  }

  .wizard-step-indicator {
    order: -1;
    text-align: center;
  }
}

.btn {
  --btn-bg: #3a4957;
  --btn-fg: var(--text);
  --btn-bd: rgba(255, 255, 255, .15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 600;
  transition: transform .08s ease, filter .2s ease, background .2s ease;
}

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

.btn-cta {
  --btn-bg: linear-gradient(90deg, var(--green4), var(--turquoise));
  --btn-bd: transparent;
  color: #0b2325;
}

.btn-login {
  --btn-bg: linear-gradient(135deg, var(--green4), var(--turquoise));
  --btn-fg: #041219;
  --btn-bd: transparent;
  padding: .55rem 1.3rem;
  font-size: .9rem;
}

.site-nav .btn-login {
  margin-left: .5rem;
}

.btn-outline {
  --btn-bg: transparent;
  --btn-bd: rgba(59, 193, 196, .55);
}

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, .06);
  --btn-bd: rgba(255, 255, 255, .1);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem;
  font-size: .85rem;
  color: #0d2426;
  background: rgba(59, 193, 196, .85);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
}

.cta-band {
  background: linear-gradient(90deg, rgba(59, 193, 196, .14), rgba(78, 211, 167, .14));
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: var(--bg-900);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-bubble {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
}

.agent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(90px 90px at 30% 30%, var(--green4), var(--turquoise));
  color: #072022;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, .18);
}

.agent-btn:hover {
  transform: translateY(-1px);
}

.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 60;
  background: rgba(59, 193, 196, .18);
  color: var(--text);
  text-decoration: none;
  border: 1px dashed rgba(59, 193, 196, .55);
  padding: .6rem .8rem;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .18);
  }

  50% {
    transform: translateY(-4px);
    box-shadow: 0 14px 22px rgba(0, 0, 0, .22);
  }
}

.hidden {
  display: none !important;
}

/* Formulaire de signature */
.form {
  display: grid;
  gap: 0.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.partner-banner {
  background: var(--surface-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem 0;
  flex-wrap: wrap;
}

.partner-logo {
  height: 48px;
  width: auto;
}

.partner-copy {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: left;
  max-width: 720px;
}

.partner-copy p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted-lighter);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.link-inline {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  transition: color .2s ease;
}

.link-inline:hover,
.link-inline:focus {
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
}

.form label {
  display: grid;
  gap: .3rem;
  font-weight: 600;
  color: #eaf7f8;
  padding-top: .4rem;
  padding-bottom: .4rem;
}

.form input,
.form select,
.form textarea {
  background: rgba(255, 255, 255, .98);
  color: #0e1a20;
  border: 1px solid rgba(59, 193, 196, .35);
  border-radius: 12px;
  padding: .7rem .9rem;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* Premier groupe un peu décollé du titre */
.form label:first-child {
  margin-top: .2rem;
}

/* Titre de la section avec un peu plus d’air au-dessus du premier champ */
#signature h2 {
  margin-bottom: 0.6rem;
}

.form .grid {
  display: grid;
  gap: 0.7rem;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green4);
  box-shadow: 0 0 0 3px rgba(78, 211, 167, .25);
}

.form .form-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: rgba(255, 255, 255, .9);
}

.form .form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  accent-color: var(--green4);
  margin-top: .2rem;
}

.signature-pad {
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(59, 193, 196, .35);
  border-radius: 14px;
  padding: .4rem;
}

.signature-pad canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.form .actions {
  margin-top: .4rem;
}

/* =============================
   Formulaires d'authentification
   (login, first-login, forgot, reset)
   ============================= */

.page-main {
  min-height: calc(100vh - 72px);
  padding: 3rem 0 4rem;
}

.page-main .card {
  max-width: 520px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-field span {
  font-size: .9rem;
  font-weight: 600;
  color: #eaf7f8;
}

.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="text"],
.form-field input[type="url"] {
  background: rgba(255, 255, 255, .98);
  color: #0e1a20;
  border: 1px solid rgba(148, 163, 184, .7);
  border-radius: 12px;
  padding: .7rem .9rem;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-field input[type="email"]::placeholder,
.form-field input[type="password"]::placeholder,
.form-field input[type="text"]::placeholder,
.form-field input[type="url"]::placeholder {
  color: rgba(148, 163, 184, .9);
}

.form-field input[type="email"]:focus,
.form-field input[type="password"]:focus,
.form-field input[type="text"]:focus,
.form-field input[type="url"]:focus {
  outline: none;
  border-color: var(--green4);
  box-shadow: 0 0 0 3px rgba(78, 211, 167, .25);
}

/* Styler les select comme les input dans les form-field */
.form-field select {
  background: rgba(255, 255, 255, .98);
  color: #0e1a20;
  border: 1px solid rgba(148, 163, 184, .7);
  border-radius: 8px;
  padding: .6rem;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-field select:focus {
  outline: none;
  border-color: var(--green4);
  box-shadow: 0 0 0 3px rgba(78, 211, 167, .25);
}

/* Espacement uniforme pour tous les labels de champs */
.form-field span {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .4rem;
}

.link-muted {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: underline;
}

.link-muted:hover {
  color: var(--link);
}

.alert {
  padding: .6rem .8rem;
  border-radius: 10px;
  font-size: .9rem;
  margin: 0 0 .6rem;
}

.alert-error {
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .55);
  color: #fecaca;
}

.alert-success {
  background: rgba(74, 222, 128, .12);
  border: 1px solid rgba(74, 222, 128, .55);
  color: #bbf7d0;
}

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

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

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

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: .8rem 4vw;
    background: rgba(34, 44, 52, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .site-nav a {
    display: block;
    padding: .6rem 0;
  }

  .site-nav .btn-login {
    display: inline-flex;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-block;
  }
}

a:focus,
button:focus {
  outline: 2px solid var(--turquoise);
  outline-offset: 2px;
}

[data-sticky].is-scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

#charte .container {
  display: grid;
  justify-content: center;
}

#charte .card {
  background: #f7fbf9;
  color: #2f3438;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34), 0 6px 18px rgba(0, 0, 0, .22);
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, .32));
  width: min(900px, 92vw);
  max-height: 60vh;
  overflow: auto;
  margin: 0 auto;
  /* s'assure d'une séparation visuelle */
}

#charte .card h2,
#charte .card h3,
#charte .card h4 {
  color: #1f2a31;
}

#charte .card p {
  margin: .35rem 0;
  color: #2f3438;
  line-height: 1.55;
}

#charte .card ul {
  margin: .4rem 0 .8rem 1.2rem;
  color: #2f3438;
}

#charte .card {
  scrollbar-color: var(--green4) transparent;
  scrollbar-width: thin;
}

#charte .card::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}

#charte .card::-webkit-scrollbar-track {
  background: transparent;
}

#charte .card::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(78, 211, 167, .95), rgba(59, 193, 196, .95));
  border-radius: 999px;
  border: 2px solid rgba(247, 251, 249, .7);
}

/* Aligner la section signature avec la largeur du bloc référentiel (#charte) */
#signature .container {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding-left: 1.6rem;
  /* aligner sur le padding de .card */
  padding-right: 1.6rem;
}