/* Metris — ardoise, papier et cuivre. Shared visual system. */
:root {
  --bleu: #243c4a;
  --bleu-clair: #48697d;
  --gris-fond: #f6f7f8;
  --gris-bord: #e1e6e9;
  --gris-texte: #475663;
  --orange: #a75735;
  --orange-fonce: #89452b;
  --vert: #287256;
  --rouge: #b53c3c;
  --radius: 12px;
  --ombre: 0 2px 5px #243c4a04;
  --papier: #fcfbf8;
  --muted: #65747e;
  --cuivre-pale: #f8eee6;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  letter-spacing: -0.012em;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.2;
}
a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
.btn {
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary:hover {
  box-shadow: 0 3px 10px #a7573526;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #c68461;
  outline-offset: 3px;
}
input,
select,
textarea {
  border-color: #d4dce1;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
}
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px #48697d15;
}
input[type="checkbox"],
input[type="radio"] {
  min-height: 0;
  width: auto;
}
label {
  color: var(--bleu);
}
.hint {
  color: #65727d;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1.2px;
  color: var(--bleu);
}
.logo:hover {
  text-decoration: none;
}
.logo .brand-mark,
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 34px;
  background: var(--orange);
  border-radius: 7px;
  color: white;
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  padding: 0 2px 4px 0;
}
.logo .brand-dot {
  color: var(--orange);
  margin-left: -9px;
}
.container {
  max-width: 1240px;
  padding: 0 36px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
  color: var(--orange);
  text-transform: uppercase;
}
.text-link {
  font-weight: 650;
  color: var(--bleu);
  font-size: 14px;
}
.text-link span {
  margin-left: 8px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  z-index: 600;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  transform: none;
}
/* Public site */
body.landing-page {
  background: var(--papier);
}
.landing-header {
  padding: 21px 0;
  background: var(--papier);
  border-bottom: 1px solid #e8e7e2;
}
.landing-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.landing-header nav a {
  margin: 0;
  color: var(--bleu);
  font-size: 13px;
}
.landing-header nav a:last-child {
  border: 1px solid #d7dcd9;
  padding: 9px 16px;
  border-radius: 7px;
}
.hero {
  padding: 80px 0 76px;
  background: none;
  backdrop-filter: none;
  color: var(--bleu);
  text-align: left;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 23px;
}
.hero .eyebrow > span {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}
.hero h1 {
  color: var(--bleu);
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 680;
  line-height: 1.09;
  margin-bottom: 23px;
  letter-spacing: -0.055em;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero p.sub {
  font-size: 16px;
  line-height: 1.8;
  color: #657079;
  max-width: 450px;
  margin: 0 0 29px;
}
.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-actions .btn {
  padding: 13px 19px;
}
.hero-actions .btn span {
  margin-left: 13px;
}
.hero-price {
  font-size: 12px;
  color: #6c787e;
  margin-top: 22px;
}
.hero-price strong {
  font-size: 16px;
  color: var(--bleu);
}
.hero-price > span {
  border-left: 1px solid #d7dad8;
  margin-left: 12px;
  padding-left: 12px;
}
.product-preview {
  background: white;
  border: 1px solid #dfe4e3;
  border-radius: 13px;
  box-shadow: 0 22px 65px #243c4a10;
  transform: rotate(-1deg);
  overflow: hidden;
}
.preview-top {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e8ecee;
  font-size: 11px;
  background: #f9faf9;
}
.preview-symbol {
  display: inline-grid;
  place-items: center;
  background: var(--bleu);
  color: white;
  width: 24px;
  height: 25px;
  border-radius: 5px;
  font-size: 21px;
  font-weight: 750;
  line-height: 1;
  padding-bottom: 3px;
}
.preview-demo {
  margin-left: auto;
  color: #65747e;
  font-size: 8px;
  letter-spacing: 0.12em;
}
.preview-body {
  padding: 25px;
}
.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.preview-heading h2 {
  font-size: 18px;
  margin: 7px 0 24px;
}
.preview-heading .eyebrow {
  font-size: 8px;
}
.preview-calendar {
  background: var(--cuivre-pale);
  color: var(--orange);
  padding: 5px 11px;
  border-radius: 50%;
}
.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e8ecee;
}
.preview-metrics > div {
  display: flex;
  flex-direction: column;
}
.preview-metrics b {
  font-size: 28px;
  color: var(--bleu);
  font-weight: 650;
  letter-spacing: -1px;
}
.preview-metrics span {
  font-size: 9px;
  color: var(--muted);
}
.preview-site {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0f1;
}
.site-monogram {
  width: 32px;
  height: 35px;
  background: #edf2f4;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #597380;
  font-size: 13px;
}
.preview-site > div {
  flex: 1;
  min-width: 0;
}
.preview-site strong {
  display: block;
  font-size: 11px;
}
.preview-site small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.preview-site .badge {
  font-size: 8px;
  white-space: nowrap;
}
.preview-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 21px;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(20% - 1px),
    #edf0f1 calc(20% - 1px),
    #edf0f1 20%
  );
}
.preview-week > span {
  font-size: 8px;
  color: var(--muted);
  padding: 0 5px 6px;
}
.preview-bar {
  border-radius: 4px;
  font-size: 9px;
  padding: 7px 9px;
}
.bar-one {
  grid-column: 1/5;
  background: #f3e4d9;
  color: #965134;
}
.bar-two {
  grid-column: 3/6;
  background: #e7eef1;
  color: #436575;
}
.preview-caption {
  font-size: 9px;
  text-align: right;
  color: #65747e;
  margin: 16px 0 0;
}
.benefit-strip {
  border-top: 1px solid #e7e8e4;
  border-bottom: 1px solid #e7e8e4;
}
.benefit-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 25px;
  padding-bottom: 25px;
  gap: 20px;
}
.benefit-strip span {
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.benefit-strip strong {
  font-size: 13px;
  color: var(--bleu);
  margin-left: 16px;
  letter-spacing: 0;
  font-weight: 550;
}
.feature-section {
  padding: 83px 0 60px;
}
.section-heading {
  text-align: center;
}
.section-heading h2,
.auth-intro h2 {
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -0.045em;
}
.section-heading > p:last-child {
  color: var(--muted);
  font-size: 14px;
}
.features {
  padding: 32px 0 0;
  gap: 16px;
}
.feature-card {
  background: white;
  border: 1px solid #e1e6e5;
  box-shadow: none;
  padding: 26px;
  border-radius: 10px;
}
.feature-card .feature-icon {
  background: #eff3f4;
  color: var(--bleu-clair);
  width: 39px;
  height: 39px;
  border-radius: 8px;
  margin-bottom: 22px;
}
.feature-card .feature-icon svg {
  width: 20px;
  height: 20px;
}
.feature-card h3 {
  font-size: 16px;
  margin-bottom: 11px;
}
.feature-card p {
  font-size: 13px;
  line-height: 1.75;
  color: #6b7880;
}
.ia-highlight {
  background: #eaf0f2;
  border: 0;
  margin: 0;
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  border-radius: 12px;
}
.ia-highlight h2 {
  font-size: 27px;
  font-weight: 650;
  margin: 14px 0 0;
}
.ia-highlight p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 16px;
}
.auth-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 90px 0;
}
.auth-intro > p:not(.eyebrow) {
  max-width: 390px;
  color: var(--muted);
  font-size: 14px;
}
.auth-price {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 28px 0;
}
.auth-price strong {
  font-size: 40px;
  color: var(--bleu);
  letter-spacing: -2px;
}
.auth-price span {
  font-size: 12px;
  color: #697780;
}
.auth-panels {
  display: block;
  padding: 0;
  scroll-margin-top: 35px;
}
.panel {
  background: white;
  border: 1px solid var(--gris-bord);
  padding: 30px;
  box-shadow: 0 12px 40px #243c4a05;
}
.panel h2 {
  font-size: 22px;
}
.panel .hint {
  line-height: 1.7;
}
.landing-footer {
  background: var(--bleu) !important;
  color: #c2cdd2 !important;
  padding: 30px 0 !important;
}
.landing-footer a {
  color: #c2cdd2 !important;
}
/* Workspace */
.app-shell {
  min-height: 100dvh;
}
.sidebar {
  width: 248px;
  background: #233a48;
  height: 100dvh;
  z-index: 110;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 24px 24px;
}
.sidebar .logo {
  padding: 0;
  border: 0;
  color: white;
  font-size: 25px;
}
.workspace-label {
  font-size: 9px;
  color: #9db1bc;
  letter-spacing: 0.13em;
  padding: 7px 24px 12px;
  font-weight: 650;
}
.sidebar nav {
  padding: 0 12px 14px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #6a7d88 transparent;
}
.sidebar nav a {
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #c6d2d8;
  min-height: 42px;
  gap: 12px;
  margin: 2px 0;
}
.sidebar nav a.active {
  background: #ffffff13;
  color: white;
  box-shadow: inset 3px 0 #c78460;
  border: 0;
}
.sidebar nav a .nav-icon {
  color: #9eafba;
  width: 18px;
  height: 18px;
}
.sidebar nav a.active .nav-icon {
  color: #dfa783;
}
.nav-group-label {
  font-size: 9px;
  letter-spacing: 0.13em;
  font-weight: 650;
  color: #9db1bc;
  padding: 25px 12px 8px;
}
.other-tools {
  margin-top: 23px;
  border-top: 1px solid #ffffff16;
  padding: 14px 0 0;
}
.other-tools summary {
  padding: 5px 12px;
  font-size: 11px;
  cursor: pointer;
  color: #9db1bc;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.other-tools summary::-webkit-details-marker {
  display: none;
}
.other-tools[open] summary span {
  transform: rotate(45deg);
}
.sidebar nav a.nav-external {
  font-size: 11px;
}
.sidebar .user-box {
  position: relative;
  padding: 18px 19px 18px 65px;
  background: #1e334011;
  font-size: 11px;
  border-top: 1px solid #ffffff16;
  flex-shrink: 0;
}
.user-avatar {
  position: absolute;
  left: 21px;
  top: 21px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #3e5461;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  color: #e8edef;
  font-weight: 650;
}
.sidebar .user-box #user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eef1f3;
  font-size: 11px;
}
.sidebar .user-box .role {
  font-size: 10px;
  color: #adc0ca;
  font-weight: 400;
}
.sidebar button.logout {
  font-size: 11px;
  color: #e2b49c;
  min-height: 30px;
  margin-top: 5px;
}
.help-reset-link {
  padding: 0;
  min-height: 24px;
  background: none;
  text-decoration: none;
  font-size: 10px;
  color: #9db1bc;
  margin: 0;
}
.app-main {
  padding: 0;
  background: #f6f7f8;
}
.workspace-topbar {
  height: 74px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--gris-bord);
  gap: 15px;
}
.workspace-breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #65747e;
}
.workspace-breadcrumb strong {
  font-size: 12px;
  font-weight: 550;
  color: var(--bleu);
}
.breadcrumb-divider {
  color: #b3bdc4;
}
.workspace-date {
  font-size: 11px;
  color: #65747e;
}
.workspace-date:first-letter {
  text-transform: uppercase;
}
#app-content {
  max-width: 1500px;
  margin: auto;
  padding: 34px 38px 70px;
  outline: none;
}
.app-main h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.045em;
}
.topbar-row {
  gap: 14px;
  margin-bottom: 24px;
}
.page-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 9px 0 0;
}
.card {
  border: 1px solid var(--gris-bord);
  padding: 22px;
  border-radius: 11px;
  box-shadow: var(--ombre);
}
.card h2 {
  font-size: 20px;
}
.toolbar {
  gap: 12px;
  margin-bottom: 18px;
}
.toolbar input {
  min-width: 210px;
}
.toolbar select {
  font-size: 12px;
  min-width: 160px;
}
.badge {
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-orange {
  background: #f8ede3;
  color: #94502f;
}
.badge-bleu {
  background: #eaf0f4;
  color: #496e85;
}
.badge-vert {
  background: #e7f2ed;
  color: #27694d;
}
.badge-gris {
  background: #edf0f1;
  color: #687580;
}
.badge-rouge {
  background: #fbeaea;
  color: #a53434;
}
table {
  font-size: 12px;
}
table th {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.07em;
  color: #65747e;
  padding: 14px 15px;
  background: #fafbfc;
}
table td {
  padding: 18px 15px;
  color: #64737f;
}
table td:first-child {
  font-weight: 600;
  color: var(--bleu);
}
table tr:last-child td {
  border-bottom: 0;
}
table tr:hover td {
  background: #f7f9fa;
}
.table-responsive {
  border-radius: 8px;
}
.help-note {
  background: #eef2f4;
  border: 1px solid #e0e7eb;
  color: #657985;
  font-size: 11px;
  padding: 12px 15px;
  line-height: 1.65;
}
.help-note .help-icon {
  color: #69818e;
  font-size: 0;
}
.help-note .help-icon:after {
  content: "i";
  font-family: Georgia, serif;
  font-size: 12px;
  border: 1px solid #a1b0b8;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
}
.help-note .help-close {
  min-height: 22px;
  font-size: 17px;
}
.kpi-row {
  gap: 15px;
  margin-bottom: 24px;
}
.kpi {
  border: 1px solid var(--gris-bord);
  padding: 21px 22px;
  border-radius: 10px;
}
.kpi .val {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.2;
  margin-bottom: 9px;
}
.kpi .lbl {
  font-size: 11px;
}
.kpi .kpi-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #65747e;
  margin-bottom: 15px;
}
.kpi .kpi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a3afb6;
}
.kpi:nth-child(2) .kpi-dot {
  background: #a75735;
}
.kpi:nth-child(3) .kpi-dot {
  background: #5d859a;
}
.kpi:nth-child(4) .kpi-dot {
  background: #438269;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}
.list-heading h2 {
  font-size: 16px;
  margin: 0;
}
.list-heading span {
  font-size: 11px;
  color: var(--muted);
}
.tabs {
  border-bottom: 1px solid var(--gris-bord);
  gap: 8px;
}
.tabs button {
  font-size: 12px;
  min-height: 42px;
}
.tabs button.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.ia-box {
  background: #f8f2ed;
  border-color: #eadbce;
}
.modal-overlay {
  background: #172c3bcc;
  backdrop-filter: blur(3px);
  padding: 35px 16px;
}
.modal-box {
  padding: 28px;
  border: 1px solid #dfe4e6;
  border-radius: 14px;
  box-shadow: 0 20px 70px #12233340;
}
.modal-header {
  margin-bottom: 18px;
  gap: 20px;
}
.modal-header h3 {
  font-size: 22px;
  font-weight: 600;
}
.modal-box .modal-close {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: #f0f3f4;
  color: #526773;
  flex-shrink: 0;
}
.empty-state {
  padding: 48px 20px;
  color: #7e8c95;
  font-size: 13px;
}
.empty-state strong {
  display: block;
  color: var(--bleu);
  font-size: 18px;
  margin-bottom: 8px;
}
.center-box {
  border: 1px solid var(--gris-bord);
  box-shadow: 0 12px 50px #243c4a0a;
}
.menu-toggle,
.menu-close {
  display: none;
}
.menu-backdrop {
  display: none;
}
@media (min-width: 861px) {
  .sidebar {
    position: sticky;
    top: 0;
  }
  .site-table {
    min-width: 700px;
  }
}
@media (max-width: 1100px) {
  .hero-layout {
    gap: 30px;
  }
  .hero {
    padding: 55px 0;
  }
  .hero-actions {
    gap: 14px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .preview-body {
    padding: 20px;
  }
  .sidebar {
    width: 222px;
  }
  .sidebar-brand {
    padding-left: 22px;
  }
  .workspace-topbar {
    padding: 0 25px;
  }
  #app-content {
    padding: 28px 25px 60px;
  }
  .auth-section {
    gap: 40px;
  }
}
@media (max-width: 860px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    transform: translateX(-102%);
    transition: transform 0.2s;
    z-index: 310;
  }
  .sidebar nav {
    display: block;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sidebar nav a {
    border: 0;
    padding: 11px 12px;
    font-size: 13px;
    min-height: 44px;
  }
  .sidebar .logo {
    width: auto;
  }
  .sidebar .user-box {
    width: 100%;
  }
  .menu-open {
    overflow: hidden;
  }
  .menu-open .sidebar {
    transform: none;
  }
  .menu-open .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    border-radius: 0;
    background: #10253288;
    z-index: 300;
    backdrop-filter: blur(2px);
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    padding: 0;
    width: 40px;
    min-height: 40px;
    font-size: 20px;
    background: #f0f3f4;
    color: var(--bleu);
  }
  .menu-close {
    display: block;
    background: #ffffff0c;
    color: white;
    padding: 0;
    width: 36px;
    min-height: 36px;
    font-size: 25px;
  }
  .sidebar-brand {
    padding: 22px;
  }
  .workspace-topbar {
    height: 66px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .workspace-date {
    display: none;
  }
  .workspace-breadcrumb {
    gap: 11px;
  }
  #app-content {
    padding: 24px 20px 45px;
  }
  .app-main h1 {
    font-size: 28px;
  }
  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi {
    padding: 17px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero-copy {
    max-width: 610px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero p.sub {
    max-width: 520px;
  }
  .product-preview {
    max-width: 600px;
    width: 100%;
    transform: none;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-section {
    gap: 30px;
  }
  .container {
    padding: 0 25px;
  }
  .hero {
    padding: 50px 0;
  }
  .benefit-strip strong {
    margin-left: 8px;
    font-size: 11px;
  }
  .ia-highlight {
    gap: 25px;
    padding: 30px;
  }
  .auth-intro h2 {
    font-size: 30px;
  }
  .landing-header nav {
    gap: 15px;
  }
  .landing-nav-feature {
    display: none;
  }
  .landing-header nav a {
    font-size: 11px;
  }
  .modal-overlay {
    padding: 20px 12px;
  }
  .modal-box {
    padding: 22px;
  }
}
@media (max-width: 580px) {
  .container {
    padding: 0 22px;
  }
  .landing-header {
    padding: 16px 0;
  }
  .landing-header .logo {
    font-size: 23px;
  }
  .landing-header nav a:last-child {
    padding: 8px 10px;
    font-size: 10px;
  }
  .hero {
    padding: 42px 0;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 0.12em;
    margin-bottom: 21px;
  }
  .hero p.sub {
    font-size: 14px;
  }
  .hero-actions {
    gap: 17px;
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-price {
    font-size: 10px;
  }
  .hero-price strong {
    font-size: 14px;
  }
  .hero-price > span {
    margin-left: 8px;
    padding-left: 8px;
  }
  .preview-body {
    padding: 18px;
  }
  .preview-top {
    padding: 13px 17px;
  }
  .preview-heading h2 {
    font-size: 15px;
  }
  .preview-metrics b {
    font-size: 25px;
  }
  .preview-metrics span {
    font-size: 8px;
  }
  .preview-site strong {
    font-size: 10px;
  }
  .preview-site small {
    font-size: 8px;
  }
  .preview-site {
    gap: 7px;
  }
  .site-monogram {
    width: 27px;
    height: 30px;
  }
  .preview-site .badge {
    font-size: 7px;
    padding: 4px 6px;
  }
  .preview-bar {
    font-size: 8px;
  }
  .benefit-strip .container {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .benefit-strip strong {
    font-size: 12px;
    margin-left: 15px;
  }
  .feature-section {
    padding: 50px 0 35px;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .section-heading > p:last-child {
    font-size: 13px;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 24px;
  }
  .feature-card {
    padding: 23px;
  }
  .feature-card .feature-icon {
    margin-bottom: 16px;
  }
  .ia-highlight {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px;
  }
  .ia-highlight h2 {
    font-size: 25px;
  }
  .auth-section {
    grid-template-columns: 1fr;
    padding: 50px 0;
    gap: 20px;
  }
  .auth-intro h2 {
    font-size: 32px;
  }
  .auth-price {
    margin: 18px 0;
  }
  .panel {
    padding: 23px;
  }
  .workspace-topbar {
    padding: 0 15px;
  }
  #app-content {
    padding: 23px 15px 45px;
  }
  .topbar-row {
    align-items: flex-start;
  }
  .topbar-row .btn-primary {
    font-size: 11px;
    padding: 10px 12px;
    min-height: 40px;
  }
  .app-main h1 {
    font-size: 26px;
  }
  .page-subtitle {
    font-size: 12px;
    max-width: 210px;
  }
  .kpi-row {
    gap: 10px;
  }
  .kpi {
    padding: 14px;
  }
  .kpi .val {
    font-size: 27px;
  }
  .kpi .kpi-caption {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .help-note {
    font-size: 10px;
  }
  .toolbar {
    gap: 9px;
  }
  .toolbar input,
  .toolbar select {
    width: 100%;
    min-width: 0;
    flex: 1 1 140px;
  }
  .card {
    padding: 16px;
    max-width: 100%;
  }
  .site-table thead {
    display: none;
  }
  .site-table,
  .site-table tbody {
    display: block;
  }
  .site-table tbody {
    display: grid;
    gap: 14px;
  }
  .site-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--gris-bord);
    border-radius: 9px;
    overflow: hidden;
    padding: 8px;
  }
  .site-table td {
    display: block;
    padding: 7px 9px;
    border: 0;
    font-size: 11px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .site-table td:before {
    content: attr(data-label);
    display: block;
    font-size: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #65747e;
    margin-bottom: 3px;
    font-weight: 500;
  }
  .site-table td:first-child {
    grid-column: 1/-1;
    font-size: 15px;
    padding-top: 9px;
  }
  .site-table td:first-child:before {
    display: none;
  }
  .site-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .list-heading h2 {
    font-size: 15px;
  }
  .list-heading span {
    font-size: 10px;
  }
  .ligne-row {
    grid-template-columns: 1fr 1fr;
  }
  .ligne-row > * {
    min-width: 0;
  }
  .modal-box {
    padding: 20px;
  }
  .modal-header h3 {
    font-size: 20px;
  }
  .toast-host {
    bottom: 15px;
  }
  .gantt-wrap {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

#recherche-chantier {
  width: 340px;
  max-width: 100%;
  font-size: 13px;
}
.center-box .logo {
  display: inline-flex;
}
.stat-card {
  border: 1px solid var(--gris-bord);
}
@media (max-width: 580px) {
  #recherche-chantier {
    flex: 1 1 100%;
    width: 100%;
    font-size: 14px;
  }
  .toolbar select {
    font-size: 13px;
  }
  .site-table td {
    font-size: 12px;
  }
  .site-table td:before {
    font-size: 9px;
  }
  .badge {
    font-size: 11px;
  }
  .sidebar .user-box #user-name,
  .sidebar button.logout {
    font-size: 12px;
  }
  .sidebar button.logout {
    min-height: 38px;
  }
  .workspace-breadcrumb,
  .workspace-breadcrumb strong {
    font-size: 13px;
  }
  .preview-site .badge {
    font-size: 8px;
  }
  .panel input {
    font-size: 16px;
  }
}

.modal-header h3 {
  overflow-wrap: anywhere;
  min-width: 0;
}
.modal-box .field {
  min-width: 0;
}
.client-toolbar input {
  flex: 1;
  min-width: 0;
}
.client-toolbar button {
  flex-shrink: 0;
}
.table-responsive td {
  overflow-wrap: anywhere;
}
.table-responsive td:first-child {
  max-width: 340px;
}
@media (max-width: 580px) {
  .modal-box input,
  .modal-box select,
  .modal-box textarea {
    font-size: 16px;
  }
  .client-toolbar input {
    flex-basis: 100%;
    max-width: none !important;
  }
}
