:root {
  --anthracite: #17181c;
  --anthracite-light: #1e1f24;
  --gold: #d4af37;
  --gold-dark: #b8902e;
  --gold-light: #ead08a;
  --cream: #f4efe3;
  --muted: #8c8676;
  --border: #34301f;
  --text: #f4efe3;
  --surface: #1a1b20;
  --sl-consent-stack: 5.5rem;
  --sl-safe-bottom: env(safe-area-inset-bottom, 0px);
  --sl-safe-left: env(safe-area-inset-left, 0px);
  --sl-safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.55rem 0.9rem;
  background: var(--gold);
  color: var(--anthracite);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--anthracite);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 24, 28, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  color: var(--cream);
  text-decoration: none;
}

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

.logo-text {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-swift {
  grid-column: 1;
  grid-row: 1;
}

.logo-accent {
  grid-column: 2;
  grid-row: 1;
  color: var(--gold);
}

.logo-group {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0.14em;
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cream);
  background: rgba(212, 175, 55, 0.08);
}

.main-nav .nav-cta {
  margin-left: 0.5rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--anthracite) !important;
  font-weight: 600;
}

.main-nav .nav-cta:hover {
  filter: brightness(1.08);
  color: var(--anthracite) !important;
}

.lang-switch {
  display: flex;
  align-items: center;
  margin-inline-start: 0.35rem;
  padding: 0.12rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  gap: 0.1rem;
}

.lang-switch a {
  display: block;
  padding: 0.2rem 0.46rem;
  border-radius: 999px;
  border: none;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-switch a.is-active {
  color: var(--anthracite);
  background: linear-gradient(145deg, var(--gold), #c4a030);
  box-shadow: 0 1px 6px rgba(212, 175, 55, 0.28);
}

.lang-switch a:hover:not(.is-active) {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.admin-header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.admin-page {
  overflow-x: clip;
}

body.admin-page .site-header {
  overflow: hidden;
}

.admin-logout-btn {
  border-color: var(--gold);
  color: var(--cream);
  white-space: nowrap;
}

.admin-lang-links {
  display: flex;
  align-items: center;
  padding: 0.12rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  gap: 0.1rem;
}

.admin-lang-link {
  padding: 0.2rem 0.46rem;
  border-radius: 999px;
  border: none;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-lang-link.is-active {
  color: var(--anthracite);
  background: linear-gradient(145deg, var(--gold), #c4a030);
  box-shadow: 0 1px 6px rgba(212, 175, 55, 0.28);
}

.admin-lang-link:hover:not(.is-active) {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212, 175, 55, 0.12), transparent),
    var(--anthracite);
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.hero h1 em,
.hero-tagline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cream), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline-rotator {
  position: relative;
  margin-bottom: 1.25rem;
}

.hero-tagline-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 0.15rem 0 0.85rem;
}

.hero-tagline-stage::before {
  content: "";
  position: absolute;
  inset: -0.45rem -0.65rem 0.35rem;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 120% 90% at 0% 50%, rgba(212, 175, 55, 0.16), transparent 58%),
    linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 62%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-tagline-stage.is-live::before {
  opacity: 1;
}

.hero-tagline-rotator,
.hero-tagline-stage {
  max-width: 100%;
}

.hero-tagline-viewport {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  width: max-content;
  max-width: 100%;
  perspective: 1400px;
  transform-style: preserve-3d;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.hero-tagline-viewport > .hero-tagline,
.hero-tagline-viewport > .hero-tagline-sizers {
  grid-area: 1 / 1;
}

.hero-tagline-shimmer {
  display: block;
  height: 2px;
  width: 100%;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), var(--gold), rgba(212, 175, 55, 0.15), transparent);
  transform: scaleX(0.18);
  transform-origin: left center;
  opacity: 0.35;
  transition:
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.75s ease;
}

.hero-tagline-stage.is-live .hero-tagline-shimmer {
  transform: scaleX(1);
  opacity: 1;
}

.hero-tagline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0;
  transform: translate3d(-112%, 0, 0) scale(0.94) rotateY(10deg);
  filter: blur(10px);
  opacity: 0;
  transition:
    transform 0.98s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.72s ease,
    opacity 0.72s ease;
  will-change: transform, filter, opacity;
  transform-origin: center left;
}

.hero-tagline--sizer,
.hero-tagline--probe {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  width: max-content;
  max-width: inherit;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  filter: none;
  opacity: 1;
}

.hero-tagline-sizers {
  display: grid;
  visibility: hidden;
  pointer-events: none;
}

.hero-tagline-sizers > .hero-tagline--sizer,
.hero-tagline-sizers > .hero-tagline--probe {
  grid-area: 1 / 1;
  position: static;
}

.hero-tagline.is-entering {
  transform: translate3d(-112%, 0, 0) scale(0.94) rotateY(10deg);
  filter: blur(10px);
  opacity: 0;
  transition: none;
}

.hero-tagline.is-visible {
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
  filter: blur(0);
  opacity: 1;
}

.hero-tagline.is-exiting {
  transform: translate3d(112%, 0, 0) scale(1.03) rotateY(-8deg);
  filter: blur(8px);
  opacity: 0;
}

.hero-tagline.is-visible em {
  animation: hero-tagline-accent-glow 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-tagline-accent-glow {
  0% {
    filter: brightness(0.82);
  }

  100% {
    filter: brightness(1.08);
  }
}

html[lang="ar"] .hero-tagline {
  max-width: 100%;
  line-height: 1.35;
  transform-origin: center right;
}

html[lang="ar"] .hero-tagline--sizer,
html[lang="ar"] .hero-tagline--probe {
  width: auto;
  max-width: 100%;
}

html[lang="ar"] .hero-tagline-shimmer {
  transform-origin: right center;
}

html[lang="ar"] .hero-tagline.is-entering {
  transform: translate3d(112%, 0, 0) scale(0.94) rotateY(-10deg);
}

html[lang="ar"] .hero-tagline.is-visible {
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
}

html[lang="ar"] .hero-tagline.is-exiting {
  transform: translate3d(-112%, 0, 0) scale(1.03) rotateY(8deg);
}

@media (prefers-reduced-motion: reduce) {
  .hero-tagline-stage::before,
  .hero-tagline-shimmer {
    display: none;
  }

  .hero-tagline {
    transform: none;
    filter: none;
    opacity: 1;
    transition: none;
  }

  .hero-tagline.is-visible em {
    animation: none;
  }
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-content,
.hero-visual {
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.page-banner {
  position: relative;
  min-height: clamp(240px, 38vw, 400px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--anthracite) 0%,
    rgba(23, 24, 28, 0.75) 45%,
    rgba(23, 24, 28, 0.35) 100%
  );
}

.page-banner .banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: clamp(240px, 38vw, 400px);
  padding: 2.5rem 0;
}

.page-banner h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero .stats-row {
  margin-top: 2.5rem;
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0;
}

.media-row.reverse .media-frame {
  order: 2;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.section-image {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.section-image img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

.cards-grid.images .card {
  padding: 0;
  overflow: hidden;
}

.cards-grid.images .card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.cards-grid.images .card-body {
  padding: 1.5rem;
}

.contact-visual {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.contact-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--anthracite);
}

.btn-primary:hover {
  color: var(--anthracite);
  filter: brightness(1.08);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Sections */
section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.section-header p {
  color: var(--muted);
  max-width: 60ch;
}

.section-alt {
  background: var(--anthracite-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.card-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.925rem;
  color: var(--muted);
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

thead {
  background: rgba(212, 175, 55, 0.08);
}

th,
td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
}

td {
  color: var(--muted);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Page content */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 65ch;
  font-size: 1.05rem;
}

.content-block {
  margin-bottom: 2.5rem;
}

.content-block h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--cream);
}

.content-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--gold-light);
}

.content-block p,
.content-block li {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.content-block ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.content-block li {
  margin-bottom: 0.4rem;
}

.highlight-box {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box p {
  color: var(--cream);
  font-size: 1.05rem;
  font-style: italic;
  margin: 0;
}

/* Timeline / phases */
.phases {
  display: grid;
  gap: 1rem;
}

.phase-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.phase-num {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--anthracite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.phase-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--cream);
}

.phase-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.phase-deliverable {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--gold);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info .info-item {
  margin-bottom: 1.25rem;
}

.contact-info .info-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--cream);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--anthracite);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Avis & notations */
.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.reviews-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.reviews-score {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.reviews-score-value {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.reviews-score-count {
  font-size: 0.9rem;
  color: var(--muted);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.stars-muted {
  color: var(--border);
}

.star-picker {
  display: flex;
  gap: 0.35rem;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star-picker input {
  display: none;
}

.star-picker label {
  cursor: pointer;
  font-size: 1.65rem;
  color: var(--border);
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input:checked ~ label {
  color: var(--gold);
}

.reviews-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}

.review-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.review-author {
  font-weight: 600;
  color: var(--cream);
}

.review-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.review-comment {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.review-service {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.form-alert {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-alert.show {
  display: block;
}

.form-alert.success {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--cream);
}

.form-alert.error {
  background: rgba(180, 60, 60, 0.12);
  border: 1px solid rgba(180, 60, 60, 0.35);
  color: #f0c0c0;
}

.admin-panel {
  max-width: 960px;
  margin: 0 auto;
}

.admin-login,
.admin-queue {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.admin-queue.hidden,
.admin-login.hidden,
.admin-totp.hidden,
.admin-totp-enroll.hidden,
#admin-totp-backups-wrap.hidden,
#admin-login-form.hidden {
  display: none;
}

.admin-totp-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.admin-totp-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-totp-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 0.85rem;
  background: #fff;
  padding: 0.5rem;
  border-radius: 8px;
}

.admin-totp-secret-label {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-totp-secret {
  display: block;
  word-break: break-all;
  font-size: 0.85rem;
}

.admin-totp-backups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
  padding-left: 1.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.btn-small {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-approve {
  background: rgba(80, 160, 100, 0.2);
  color: #a8e0b8;
  border: 1px solid rgba(80, 160, 100, 0.45);
}

.btn-reject {
  background: rgba(160, 80, 80, 0.15);
  color: #f0b0b0;
  border: 1px solid rgba(160, 80, 80, 0.4);
}

.admin-item {
  border-top: 1px solid var(--border);
  padding-top: 1.15rem;
  margin-top: 1.15rem;
}

.admin-item:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.admin-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.admin-badge.pending {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
}

.admin-badge.approved {
  background: rgba(80, 160, 100, 0.15);
  color: #a8e0b8;
}

.admin-badge.rejected {
  background: rgba(160, 80, 80, 0.15);
  color: #f0b0b0;
}

.admin-badge.new,
.admin-badge.quoted {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
}

.admin-badge.sent {
  background: rgba(80, 160, 100, 0.15);
  color: #a8e0b8;
}

.admin-badge.archived {
  background: rgba(120, 120, 120, 0.15);
  color: var(--muted);
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--anthracite);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.admin-tab.is-active {
  border-color: var(--gold);
  color: var(--cream);
  background: rgba(212, 175, 55, 0.1);
}

.admin-cotation-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-page .admin-panel {
  max-width: 1120px;
}

.admin-cotation-list-wrap,
.admin-cotation-detail-wrap {
  background: var(--anthracite);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.admin-cotation-list-wrap {
  position: sticky;
  top: 4.75rem;
  max-height: calc(100dvh - 5.75rem);
  overflow: auto;
}

.admin-table-wrap--pricing {
  max-height: min(42vh, 22rem);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.admin-pricing-table--market thead th,
.admin-extras-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--anthracite);
  box-shadow: 0 1px 0 var(--border);
}

.admin-pricing-table--market th,
.admin-pricing-table--market td,
.admin-extras-table th,
.admin-extras-table td {
  padding: 0.32rem 0.45rem;
  vertical-align: middle;
}

.admin-pricing-table--market .admin-profile-tag {
  display: inline;
  margin: 0 0 0 0.4rem;
}

.admin-market-source--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
  max-width: 14rem;
  font-size: 0.72rem;
  line-height: 1.25;
}

.admin-cotation-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

.admin-cotation-list-item.is-active {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.admin-cotation-list-title {
  color: var(--cream);
  font-weight: 600;
}

.admin-cotation-empty {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 1rem 0.25rem;
}

.admin-cotation-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.admin-cotation-detail-header h2 {
  margin: 0 0 0.35rem;
  color: var(--cream);
  font-size: 1.15rem;
}

.admin-cotation-notes p {
  margin: 0.35rem 0 0.65rem;
}

.admin-cotation-notes .btn {
  margin-top: 0.35rem;
}

.admin-promo-apply {
  margin: 0.85rem 0 1.1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.16);
}

.admin-promo-apply h3 {
  margin: 0 0 0.4rem;
  color: var(--cream);
  font-size: 0.98rem;
}

.admin-promo-apply-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  margin-top: 0.65rem;
}

.admin-promo-apply-row label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-promo-apply-row input {
  min-width: 160px;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}

.admin-document-display {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 1rem;
}

.admin-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--cream);
  font-size: 0.88rem;
  cursor: pointer;
}

.admin-check-row input {
  margin-top: 0.2rem;
  accent-color: var(--gold, #d4af37);
}

.admin-cotation-section {
  margin-top: 1.25rem;
}

.admin-cotation-section h3,
.admin-section-head h3 {
  margin: 0;
  color: var(--cream);
  font-size: 1rem;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-pricing-table th,
.admin-pricing-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-pricing-table th {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
}

.admin-price-ref {
  color: var(--muted);
  white-space: nowrap;
}

.admin-price-bound {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.admin-price-bound--min {
  color: #2f855a;
}

.admin-price-bound--max {
  color: #b7791f;
}

.admin-pricing-hint {
  margin-bottom: 0.85rem;
  max-width: 72ch;
}

.admin-price-status {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.admin-price-status--low {
  color: #2b6cb0;
}

.admin-price-status--high {
  color: #c53030;
}

.admin-price-status--ref {
  color: var(--gold);
}

.admin-profile-tag {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.admin-market-source {
  display: grid;
  gap: 0.2rem;
  font-size: 0.74rem;
  max-width: 260px;
}

.admin-market-source a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-source-price {
  font-weight: 600;
  color: var(--text);
}

.admin-source-note,
.admin-source-date {
  color: var(--muted);
  line-height: 1.35;
}

.admin-pricing-table--market th:nth-child(2),
.admin-pricing-table--market th:nth-child(3),
.admin-pricing-table--market th:nth-child(4) {
  white-space: nowrap;
}

.admin-market-pricing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.06);
}

.admin-market-pricing-copy {
  display: grid;
  gap: 0.25rem;
}

.admin-market-pricing-copy strong {
  color: var(--cream);
  font-size: 0.92rem;
}

.admin-market-pricing-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-pricing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 1rem 0;
}

.admin-currency-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
}

.admin-currency-bar label {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-currency-bar select {
  min-width: 220px;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.admin-price-input,
.admin-inline-input {
  width: 100%;
  min-width: 120px;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.admin-inline-textarea {
  width: 100%;
  min-width: 140px;
  min-height: 3.2rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  resize: vertical;
  white-space: pre-wrap;
  word-break: break-word;
  box-sizing: border-box;
}

.admin-extras-table {
  table-layout: auto;
}

.admin-extras-table th:nth-child(1),
.admin-extras-table td:nth-child(1) {
  min-width: 160px;
}

.admin-extras-table th:nth-child(2),
.admin-extras-table td:nth-child(2),
.admin-extras-table th:nth-child(3),
.admin-extras-table td:nth-child(3) {
  min-width: 200px;
}

.admin-price-input {
  max-width: 120px;
}

.admin-totals-card {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.06);
  display: grid;
  gap: 0.55rem;
  max-width: 320px;
  margin-left: auto;
}

.admin-totals-card div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.admin-totals-card strong {
  color: var(--cream);
}

.admin-totals-ttc {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--cream) !important;
}

.admin-totals-ttc strong {
  color: var(--gold) !important;
  font-size: 1.05rem;
}

.admin-project-type-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.admin-project-type-bar select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}

.admin-cotation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.admin-audit-central {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-audit-central-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.admin-audit-intro {
  margin: 0;
  max-width: 52rem;
}

.admin-audit-section-block {
  margin-bottom: 1.5rem;
}

.admin-audit-projects-table td {
  vertical-align: top;
}

.admin-audit-registry-table tbody tr[data-audit-open-row] {
  cursor: pointer;
}

.admin-audit-registry-table tbody tr[data-audit-open-row]:hover {
  background: rgba(212, 175, 55, 0.06);
}

.admin-cotation-list-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.admin-audit-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
}

.admin-audit-status--conforme {
  color: #8fd5a6;
  border-color: rgba(143, 213, 166, 0.45);
}

.admin-audit-status--non_conforme,
.admin-audit-status--non-conforme {
  color: #f0a5a5;
  border-color: rgba(240, 165, 165, 0.45);
}

.admin-audit-status--pending,
.admin-audit-status--active,
.admin-audit-status--inactive {
  color: var(--muted);
}

.admin-audit-registry-table td {
  vertical-align: top;
}

.admin-analytics-connection,
.admin-analytics-exclusions-wrap {
  margin-top: 1rem;
}

.admin-analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.admin-analytics-actions .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

#refresh-analytics-registry[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.admin-analytics-ip-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.85rem;
}

.admin-analytics-ip-form input {
  min-width: min(100%, 220px);
  flex: 1 1 180px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
}

.admin-analytics-ip-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.admin-analytics-ip-cell .btn {
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
}

#analytics-connection-hint {
  margin-top: 0.65rem;
}

.admin-analytics-exclusions p {
  margin: 0.35rem 0;
  color: var(--cream-muted, rgba(245, 230, 200, 0.78));
}

.admin-analytics-table td {
  vertical-align: top;
}

.admin-analytics-session-paths {
  display: grid;
  gap: 0.25rem;
}

.admin-analytics-session-path code {
  font-size: 0.82rem;
}

.admin-analytics-session-path.is-current code {
  color: var(--gold-light);
}

.admin-analytics-journal-wrap {
  max-height: min(28rem, calc(100dvh - 18rem));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.admin-analytics-journal-wrap .admin-analytics-table {
  width: 100%;
  table-layout: auto;
}

.admin-analytics-journal-wrap .admin-analytics-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border);
}

.admin-analytics-journal-wrap .admin-analytics-table td:nth-child(2),
.admin-analytics-journal-wrap .admin-analytics-table th:nth-child(2),
.admin-analytics-journal-wrap .admin-analytics-table td:nth-child(3),
.admin-analytics-journal-wrap .admin-analytics-table th:nth-child(3) {
  max-width: 12rem;
}

.admin-analytics-journal-wrap .admin-analytics-table td:nth-child(2) code,
.admin-analytics-journal-wrap .admin-analytics-table td:nth-child(3) code {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.admin-analytics-journal-wrap .admin-analytics-session-paths {
  max-height: 5.5rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.admin-analytics-journal-wrap .admin-analytics-table td:last-child,
.admin-analytics-journal-wrap .admin-analytics-table th:last-child {
  max-width: 14rem;
}

.admin-analytics-journal-wrap .admin-analytics-table td:last-child .admin-audit-finding-detail {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.admin-audit-feature-table td,
.admin-audit-feature-table th {
  font-size: 0.88rem;
}

.admin-audit-finding-detail {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.admin-audit-project-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.admin-audit-project-bar input[type="url"] {
  flex: 1;
  min-width: 220px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 900px) {
  .admin-cotation-layout {
    grid-template-columns: 1fr;
  }

  .admin-cotation-list-wrap {
    position: static;
    max-height: 16rem;
  }
}

/* Newsletter */
.newsletter-band {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), transparent 70%), var(--anthracite-light);
  padding: 2.25rem 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
}

.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.newsletter-copy h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.newsletter-copy p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 42ch;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.form-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-consent a {
  color: var(--gold);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  color: var(--cream);
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content code {
  color: var(--gold-light);
  font-size: 0.9em;
}

.privacy-tools-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.privacy-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.privacy-tool-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--anthracite-light);
}

.privacy-tool-card h3 {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.privacy-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.privacy-form input[type='email'] {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.8rem;
  background: var(--anthracite);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

.privacy-export-output {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--anthracite);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.newsletter-form input[type='email'] {
  display: block;
  width: 100%;
  flex: none;
  min-height: 0;
  padding: 0.7rem 0.85rem;
  background: var(--anthracite);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  line-height: 1.4;
}

.newsletter-form input[type='email']:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.newsletter-form .btn-primary {
  width: 100%;
}

.newsletter-alert {
  margin: 0;
  display: none;
}

.newsletter-alert.show {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--anthracite-light);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom a.footer-legal-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-bottom a.footer-legal-link:hover {
  color: var(--gold-light);
}

.site-social {
  margin-top: 1.25rem;
}

.site-social-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0 0 0.65rem;
}

.site-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-social-link:hover img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(28%) saturate(620%) hue-rotate(6deg) brightness(95%) contrast(92%);
}

.site-social-link img {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.site-social-link:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.site-social-link--pending {
  opacity: 0.72;
  cursor: default;
}

.site-social-link--pending:hover {
  border-color: var(--border);
  background: rgba(0, 0, 0, 0.18);
  transform: none;
}

.site-social-link--pending:hover img {
  filter: none;
}

.site-social--compact {
  margin-top: 0;
}

.site-social--compact .site-social-label {
  text-align: center;
}

.site-social--compact .site-social-list {
  justify-content: center;
}

.site-social-strip {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--anthracite-light);
  padding: 1.25rem 0 1.5rem;
}

.admin-social-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.admin-social-field {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.18);
}

.admin-social-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.admin-social-field label {
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-social-field input[type='url'],
.admin-social-field input[type='text'] {
  width: 100%;
}

.admin-social-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.admin-social-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.admin-social-links-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.admin-facebook-panel {
  display: grid;
  gap: 1rem;
}

.admin-facebook-composer {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.18);
}

.admin-facebook-row {
  display: grid;
  gap: 0.35rem;
}

.admin-facebook-row label,
.admin-facebook-composer > label {
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-facebook-select,
.admin-facebook-composer textarea,
.admin-facebook-composer input[type='url'] {
  width: 100%;
}

.admin-facebook-composer textarea {
  min-height: 10rem;
  resize: vertical;
}

.admin-facebook-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-facebook-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-facebook-badge--ok {
  color: #b8f5c8;
  background: rgba(46, 125, 50, 0.25);
  border: 1px solid rgba(129, 199, 132, 0.35);
}

.admin-facebook-badge--pending {
  color: #ffe082;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 224, 130, 0.35);
}

.admin-facebook-badge--error {
  color: #ffb4ab;
  background: rgba(198, 40, 40, 0.18);
  border: 1px solid rgba(239, 154, 154, 0.35);
}

.admin-facebook-setup code {
  font-size: 0.82em;
}

.admin-facebook-preview {
  padding: 0.85rem 0.95rem;
  border: 1px dashed var(--border);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
}

.admin-facebook-preview-label {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-facebook-preview pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.55;
}

.admin-contact-template-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.admin-contact-template-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.admin-contact-template-tab.is-active {
  color: var(--cream);
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}

.admin-contact-template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-contact-template-editor textarea,
.admin-contact-template-preview textarea {
  min-height: 220px;
  resize: vertical;
}

.admin-contact-template-preview-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem 1rem;
}

.admin-contact-template-preview-subject {
  color: var(--cream);
  margin: 0;
}

.admin-contact-template-preview-body {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--cream);
  background: transparent;
  border: 0;
  padding: 0;
}

.admin-contact-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.admin-contact-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.admin-contact-section-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.admin-contact-section-tab.is-active {
  color: var(--cream);
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.1);
}

.admin-contact-inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-contact-inbox-list-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-contact-inbox-table tbody tr {
  cursor: pointer;
}

.admin-contact-inbox-row.is-selected td {
  background: rgba(212, 175, 55, 0.08);
}

.admin-contact-status {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-contact-status.is-pending {
  color: #f0c674;
  background: rgba(240, 198, 116, 0.12);
}

.admin-contact-status.is-sent {
  color: #8fd4a8;
  background: rgba(143, 212, 168, 0.12);
}

.admin-contact-status.is-manual {
  color: #9ec5ff;
  background: rgba(158, 197, 255, 0.12);
  margin-left: 0.35rem;
}

.admin-contact-pipeline-panel {
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(212, 175, 55, 0.04);
}

.admin-contact-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.admin-contact-pipeline-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-contact-brief-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--cream);
  font-size: 0.92rem;
}

.admin-contact-create-panel {
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  background: rgba(212, 175, 55, 0.04);
}

.admin-contact-create-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-contact-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.admin-contact-inbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .admin-contact-create-grid {
    grid-template-columns: 1fr;
  }
}

.admin-contact-reply-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.admin-contact-reply-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.admin-contact-incoming-message {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.18);
  color: var(--cream);
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.55;
}

.admin-contact-email-preview {
  margin-top: 1rem;
}

.admin-contact-preview-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f0f12;
}

.admin-contact-empty {
  padding: 1.5rem 0.5rem;
}

@media (max-width: 900px) {
  .admin-contact-template-layout {
    grid-template-columns: 1fr;
  }

  .admin-contact-inbox-layout {
    grid-template-columns: 1fr;
  }
}

/* Animations */
:root {
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-soft: cubic-bezier(0.45, 0, 0.55, 1);
  --anim-duration: 0.85s;
}

/* Indicateur permanent (3 points or) */
.gold-dots {
  position: fixed;
  bottom: 1.35rem;
  right: 1.35rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}

.gold-dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
}

.gold-dot:nth-child(1) { --dot-delay: 0s; }
.gold-dot:nth-child(2) { --dot-delay: 0.4s; }
.gold-dot:nth-child(3) { --dot-delay: 0.8s; }

@media (prefers-reduced-motion: no-preference) {
  .gold-dot {
    animation: goldDotPulse 2.8s var(--ease-in-out-soft) infinite;
    animation-delay: var(--dot-delay, 0s);
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(circle at 18% 22%, rgba(212, 175, 55, 0.04) 0%, transparent 44%),
      radial-gradient(circle at 82% 78%, rgba(212, 175, 55, 0.03) 0%, transparent 42%);
    animation: ambientGlow 18s var(--ease-in-out-soft) infinite alternate;
  }

  .site-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -60%;
    width: 220%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(212, 175, 55, 0) 38%,
      rgba(212, 175, 55, 0.42) 50%,
      rgba(212, 175, 55, 0) 62%,
      transparent 100%
    );
    animation: headerShimmer 8s var(--ease-in-out-soft) infinite;
  }

  .logo-accent,
  .logo-group {
    animation: logoBreath 5.5s var(--ease-in-out-soft) infinite;
  }

  body.is-loaded .site-header {
    animation: headerReveal 0.75s var(--ease-out-expo) both;
  }

  .hero-content.animate-on-scroll { --anim-delay: 80ms; }
  .hero-visual.animate-on-scroll { --anim-delay: 180ms; }
  .page-banner .banner-content.animate-on-scroll { --anim-delay: 120ms; }

  .animate-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity var(--anim-duration) var(--ease-out-expo),
      transform var(--anim-duration) var(--ease-out-expo);
    transition-delay: var(--anim-delay, 0ms);
    will-change: opacity, transform;
  }

  .animate-on-scroll.from-left {
    transform: translateX(-26px);
  }

  .animate-on-scroll.from-right {
    transform: translateX(26px);
  }

  .animate-on-scroll.scale-in {
    transform: scale(0.97);
  }

  .animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero-visual img,
  .media-frame img,
  .section-image img,
  .contact-visual img,
  .cards-grid.images .card img {
    transition: transform 1.1s var(--ease-out-expo);
  }

  .animate-on-scroll.is-visible .hero-visual img,
  .animate-on-scroll.is-visible .media-frame img,
  .animate-on-scroll.is-visible .section-image img,
  .animate-on-scroll.is-visible .contact-visual img,
  .cards-grid.images .card.is-visible img {
    transform: scale(1);
  }

  .hero-visual img,
  .media-frame img,
  .section-image img,
  .contact-visual img,
  .cards-grid.images .card img {
    transform: scale(1.03);
  }

  .cards-grid.images .card.is-visible img {
    animation: imageDrift 9s var(--ease-in-out-soft) infinite;
  }

  .hero-visual.is-visible img {
    animation: imageDrift 10s var(--ease-in-out-soft) infinite;
  }

  .page-banner img {
    animation: bannerKenBurns 22s var(--ease-in-out-soft) infinite alternate;
  }

  .btn {
    transition:
      filter 0.25s ease,
      transform 0.35s var(--ease-out-expo),
      box-shadow 0.35s var(--ease-out-expo);
  }

  .btn-primary:hover {
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.22);
  }

  .phase-num {
    transition: transform 0.5s var(--ease-out-expo);
  }

  .phase-item.is-visible .phase-num {
    animation: phasePulse 0.7s var(--ease-out-expo) both;
  }

  .stat-value {
    display: inline-block;
    transition: transform 0.6s var(--ease-out-expo), color 0.4s ease;
  }

  .stat.is-visible .stat-value {
    animation: statPop 0.65s var(--ease-out-expo) both;
  }

  .logo-accent,
  .logo-group {
    transition: color 0.4s ease, text-shadow 0.4s ease;
  }

  a.logo-link:hover .logo-accent,
  a.logo-link:hover .logo-group {
    animation: none;
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
    color: var(--gold-light);
  }

  .main-nav a {
    transition:
      color 0.25s ease,
      background 0.25s ease,
      transform 0.3s var(--ease-out-expo);
  }

  .main-nav a:hover {
    transform: translateY(-1px);
  }

  .table-wrap tbody tr {
    opacity: 0;
    transform: translateX(-10px);
    transition:
      opacity 0.55s var(--ease-out-expo),
      transform 0.55s var(--ease-out-expo),
      background 0.2s ease;
    transition-delay: var(--row-delay, 0ms);
  }

  .table-wrap tbody tr:nth-child(1) { --row-delay: 0ms; }
  .table-wrap tbody tr:nth-child(2) { --row-delay: 60ms; }
  .table-wrap tbody tr:nth-child(3) { --row-delay: 120ms; }
  .table-wrap tbody tr:nth-child(4) { --row-delay: 180ms; }
  .table-wrap tbody tr:nth-child(5) { --row-delay: 240ms; }
  .table-wrap tbody tr:nth-child(6) { --row-delay: 300ms; }
  .table-wrap tbody tr:nth-child(7) { --row-delay: 360ms; }
  .table-wrap tbody tr:nth-child(8) { --row-delay: 420ms; }
  .table-wrap tbody tr:nth-child(9) { --row-delay: 480ms; }
  .table-wrap tbody tr:nth-child(10) { --row-delay: 540ms; }
  .table-wrap tbody tr:nth-child(11) { --row-delay: 600ms; }
  .table-wrap tbody tr:nth-child(12) { --row-delay: 660ms; }

  .table-wrap.is-visible tbody tr {
    opacity: 1;
    transform: none;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    transition:
      border-color 0.25s ease,
      box-shadow 0.35s var(--ease-out-expo),
      transform 0.35s var(--ease-out-expo);
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
    transform: translateY(-1px);
  }
}

@keyframes headerReveal {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientGlow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate(2%, -1.5%) scale(1.04);
    opacity: 1;
  }
}

@keyframes goldDotPulse {
  0%,
  100% {
    opacity: 0.12;
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
    transform: scale(1);
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 6px rgba(212, 175, 55, 0.65),
      0 0 14px rgba(212, 175, 55, 0.25);
    transform: scale(1);
  }
}

@keyframes headerShimmer {
  0% {
    transform: translateX(0);
    opacity: 0.35;
  }
  50% {
    opacity: 0.75;
  }
  100% {
    transform: translateX(28%);
    opacity: 0.35;
  }
}

@keyframes logoBreath {
  0%,
  100% {
    color: var(--gold);
    text-shadow: 0 0 0 rgba(212, 175, 55, 0);
  }
  50% {
    color: var(--gold-light);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.18);
  }
}

@keyframes bannerKenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.045);
  }
}

@keyframes imageDrift {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.015) translateY(-5px);
  }
}

@keyframes phasePulse {
  0% {
    transform: scale(0.88);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes statPop {
  0% {
    transform: scale(0.92) translateY(6px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gold-dot {
    opacity: 0.35;
    animation: none;
  }

  body::after,
  .site-header::after {
    display: none;
  }

  .logo-accent,
  .logo-group {
    animation: none !important;
  }

  .animate-on-scroll,
  .table-wrap tbody tr {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .page-banner img,
  .hero-visual img,
  .cards-grid.images .card img {
    animation: none !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    overflow: visible;
  }

  .site-header.menu-open {
    z-index: 2400;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 2402;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    font-size: 1.25rem;
  }

  .header-inner {
    position: static;
    gap: 0.75rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2401;
    background: var(--anthracite);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem calc(1rem + var(--sl-safe-bottom));
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .main-nav .nav-cta {
    margin-left: 0;
    justify-content: center;
    text-align: center;
  }

  .lang-switch {
    align-self: stretch;
    width: 100%;
    justify-content: space-between;
    margin-inline: 0;
    margin-top: 0.35rem;
  }

  .lang-switch a {
    flex: 1 1 0;
    min-height: 2.75rem;
    display: grid;
    place-items: center;
    padding: 0.55rem 0.2rem;
    font-size: 0.72rem;
  }

  .footer-grid,
  .contact-grid,
  .hero-grid,
  .media-row,
  .reviews-layout,
  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  .media-row.reverse .media-frame {
    order: 0;
  }

  .phase-item {
    grid-template-columns: 1fr;
  }
}

/* Chatbot assistant */
.chatbot {
  position: fixed;
  bottom: 1.35rem;
  left: 1.35rem;
  z-index: 120;
}

.chatbot-hostess {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.chatbot-toggle {
  width: 3.35rem;
  height: 3.35rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--anthracite-light), var(--surface));
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.35s var(--ease-out-expo, ease),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

.chatbot-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 10px 32px rgba(212, 175, 55, 0.12);
}

.chatbot-toggle-icon {
  width: 1.35rem;
  height: 1.35rem;
  grid-area: 1 / 1;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.chatbot-toggle-icon--close {
  opacity: 0;
  transform: scale(0.8);
}

.chatbot.is-open .chatbot-toggle-icon--open {
  opacity: 0;
  transform: scale(0.8);
}

.chatbot.is-open .chatbot-toggle-icon--close {
  opacity: 1;
  transform: scale(1);
}

.chatbot-panel {
  position: absolute;
  bottom: calc(100% + 0.85rem);
  left: 0;
  width: min(22rem, calc(100vw - 2.7rem));
  max-height: min(32rem, calc(100vh - 6rem));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.chatbot-panel.hidden {
  display: none;
}

.chatbot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(23, 24, 28, 0.65);
}

.chatbot-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.chatbot-header h2 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  color: var(--cream);
}

.chatbot-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chatbot-close svg {
  width: 1rem;
  height: 1rem;
}

.chatbot-close:hover {
  color: var(--cream);
  border-color: rgba(212, 175, 55, 0.35);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 12rem;
}

.chatbot-message {
  max-width: 92%;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.chatbot-message--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--cream);
}

.chatbot-message--user {
  align-self: flex-end;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--cream);
}

.chatbot-message--typing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.4rem;
}

.chatbot-message--typing span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
  animation: chatbotTyping 1.2s ease-in-out infinite;
}

.chatbot-message--typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-message--typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 0.75rem;
}

.chatbot-suggestion {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.chatbot-suggestion:hover {
  color: var(--cream);
  border-color: rgba(212, 175, 55, 0.35);
}

.chatbot-form {
  display: flex;
  gap: 0.55rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(23, 24, 28, 0.55);
}

.chatbot-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--anthracite);
  color: var(--cream);
  padding: 0.65rem 0.8rem;
  font: inherit;
}

.chatbot-form input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.45);
}

.chatbot-send {
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chatbot-send svg {
  width: 1rem;
  height: 1rem;
}

@keyframes chatbotTyping {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 768px) {
  .chatbot {
    bottom: calc(1rem + var(--sl-safe-bottom));
    left: calc(1rem + var(--sl-safe-left));
  }

  .chatbot-panel {
    width: min(22rem, calc(100vw - 2rem - var(--sl-safe-left) - var(--sl-safe-right)));
    max-height: min(28rem, calc(100dvh - 8.5rem - var(--sl-safe-bottom)));
  }

  .chatbot-close {
    width: 2.75rem;
    height: 2.75rem;
  }

  .chatbot-send {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-message--typing span {
    animation: none;
    opacity: 0.7;
  }
}

/* Arabic (RTL) */
html[lang="ar"] {
  direction: rtl;
}

html[lang="ar"] .main-nav .nav-cta {
  margin-left: 0;
  margin-right: 0.35rem;
}

html[lang="ar"] .lang-switch {
  margin-inline-start: 0;
  margin-inline-end: 0.35rem;
}

html[lang="ar"] .chatbot {
  left: auto;
  right: 1.35rem;
}

html[lang="ar"] .chatbot-panel {
  left: auto;
  right: 0;
}

html[lang="ar"] .chatbot-message--bot {
  align-self: flex-end;
}

html[lang="ar"] .chatbot-message--user {
  align-self: flex-start;
}

@media (max-width: 768px) {
  html[lang="ar"] .chatbot {
    right: 1rem;
  }
}

/* Projects showcase */
.projects-showcase-wrap {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 0%, rgba(212, 175, 55, 0.11), transparent 60%),
    radial-gradient(ellipse 50% 40% at 95% 20%, rgba(212, 175, 55, 0.07), transparent 55%),
    var(--anthracite-light);
  border-block: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.projects-showcase-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.12;
  pointer-events: none;
}

.projects-showcase-wrap .container {
  position: relative;
  z-index: 1;
}

.projects-showcase-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.projects-section-header {
  text-align: start;
  margin-bottom: 0;
}

.projects-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.projects-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.projects-stat {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(26, 27, 32, 0.72);
  text-align: center;
}

.projects-stat-value {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.projects-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.projects-featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.projects-featured-grid .project-card-featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.35rem;
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
}

.projects-filter {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.projects-filter:hover {
  color: var(--cream);
  border-color: rgba(212, 175, 55, 0.45);
}

.projects-filter.is-active {
  color: var(--anthracite);
  border-color: transparent;
  background: linear-gradient(145deg, var(--gold), #c4a030);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.project-card.is-hidden {
  display: none;
}

.project-card-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.project-preview-frame {
  display: flex;
  flex-direction: column;
  background: #0f1014;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(180deg, #23242a 0%, #1a1b20 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-preview-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.project-preview-dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-style: normal;
}

.project-preview-dots i:first-child {
  background: #ff6b6b;
}

.project-preview-dots i:nth-child(2) {
  background: #ffd166;
}

.project-preview-dots i:nth-child(3) {
  background: #6bcb77;
}

.project-preview-url {
  flex: 1;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-preview-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111216;
}

.project-card-featured .project-preview-viewport {
  aspect-ratio: auto;
  min-height: 280px;
  flex: 1;
}

.project-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

.project-card:hover .project-preview-image {
  transform: scale(1.045);
}

.project-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-card-featured .project-card-media {
  aspect-ratio: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  background: linear-gradient(to top, rgba(23, 24, 28, 0.82) 0%, rgba(23, 24, 28, 0.08) 55%);
}

.project-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--anthracite);
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
}

.project-card-year,
.project-card-live {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(23, 24, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.project-card-live-muted {
  max-width: 11rem;
  text-align: end;
  line-height: 1.25;
}

.project-card-body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.project-card-eyebrow {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.project-card-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project-card-excerpt,
.project-card-highlight {
  color: var(--muted);
  font-size: 0.95rem;
}

.project-card-highlight {
  color: var(--cream);
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(212, 175, 55, 0.06);
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.project-metric {
  min-width: 4.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.project-metric-value {
  display: block;
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.project-metric-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-tags li {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.project-cta-live {
  color: var(--gold-light);
}

.project-cta-icon {
  width: 0.85rem;
  height: 0.85rem;
  position: relative;
}

.project-cta-icon::before,
.project-cta-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.project-cta-icon::before {
  width: 100%;
  height: 2px;
  bottom: 0.15rem;
  left: 0;
}

.project-cta-icon::after {
  width: 2px;
  height: 100%;
  top: 0;
  right: 0;
}

.project-cta-case {
  color: var(--gold);
}

.projects-showcase-cta {
  margin-top: 2.25rem;
  text-align: center;
}

.projects-page-main {
  padding: 0 0 4rem;
}

.projects-page-banner .banner-content h1 {
  max-width: 18ch;
}

.projects-page-cta {
  margin-top: 3rem;
  text-align: center;
}

.projects-page-cta h2 {
  margin-bottom: 0.75rem;
}

.projects-page-cta p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 1.25rem;
}

html[lang="ar"] .projects-showcase-head,
html[dir="rtl"] .projects-showcase-head {
  direction: rtl;
}

html[lang="ar"] .project-card-overlay,
html[dir="rtl"] .project-card-overlay {
  flex-direction: row-reverse;
}

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

  .projects-featured-grid {
    grid-template-columns: 1fr;
  }

  .projects-featured-grid .project-card-featured {
    grid-row: auto;
  }

  .project-card-featured .project-card-media {
    min-height: 240px;
  }
}

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

/* Demande de cotation */
.cotation-layout {
  max-width: 960px;
  margin: 0 auto;
}

.cotation-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.cotation-intro {
  margin-bottom: 1.25rem;
}

.cotation-identite {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cotation-identite h2 {
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 1rem;
}

.cotation-identite-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cotation-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: var(--anthracite);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cotation-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cotation-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.cotation-tab {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--anthracite);
  color: var(--muted);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cotation-tab:hover {
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--cream);
}

.cotation-tab.is-active {
  border-color: var(--gold);
  color: var(--cream);
  background: rgba(212, 175, 55, 0.1);
}

.cotation-tab-panel {
  display: none;
}

.cotation-tab-panel.is-active {
  display: block;
}

.cotation-category-header h2 {
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.category-title-main {
  display: inline;
  font-weight: 600;
  color: var(--cream);
}

.category-title-sep {
  color: var(--border);
  font-weight: 400;
  padding: 0 0.15rem;
}

.category-title-metaphor {
  display: block;
  margin-top: 0.35rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.92em;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.cotation-category-header p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.cotation-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.cotation-feature-item {
  position: relative;
}

.cotation-feature-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--anthracite);
  transition: border-color 0.2s ease;
}

.cotation-feature-label:hover {
  border-color: rgba(212, 175, 55, 0.45);
}

.cotation-feature-label input[type='checkbox'] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.cotation-feature-text {
  flex: 1;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cotation-notes-group {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.feature-info-btn {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
  padding: 0;
}

.feature-info-btn:hover,
.feature-info-btn:focus {
  border-color: var(--gold);
  outline: none;
}

.feature-tooltip {
  display: none;
  margin: 0.45rem 0 0 2.2rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--cream);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
}

.feature-tooltip.is-visible {
  display: block;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .cotation-identite-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cotation-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-tooltip {
    margin-left: 0;
  }
}

.admin-billing-central {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-billing-link-section {
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.admin-billing-central .admin-audit-central-head {
  flex-wrap: wrap;
}

.admin-billing-list-table tbody tr.is-selected {
  background: rgba(212, 175, 55, 0.08);
}

.admin-billing-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  color: var(--muted);
}

.admin-billing-status--paid {
  color: #8fd5a6;
  border-color: rgba(143, 213, 166, 0.45);
}

.admin-billing-status--partial,
.admin-billing-status--invoiced {
  color: #f0d59a;
  border-color: rgba(240, 213, 154, 0.45);
}

.admin-billing-status--proforma {
  color: #a8c7ff;
  border-color: rgba(168, 199, 255, 0.45);
}

.admin-billing-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-billing-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-billing-kpi {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-billing-kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.admin-billing-section {
  margin-bottom: 1.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-billing-section h3,
.admin-billing-section h4 {
  color: var(--cream);
  font-size: 0.98rem;
  margin: 0 0 0.65rem;
}

.admin-billing-danger-zone {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.18);
}

.admin-billing-issue-bar,
.admin-billing-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-top: 0.75rem;
}

.admin-billing-issue-bar label,
.admin-billing-upload label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-billing-issue-bar input,
.admin-billing-issue-bar select,
.admin-billing-upload input[type='text'],
.admin-billing-upload input[type='file'] {
  min-width: 160px;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.admin-billing-payments-list,
.admin-billing-events {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.verify-page {
  padding: 2rem 0 3rem;
}

.verify-layout {
  display: grid;
  gap: 1.25rem;
  max-width: 760px;
}

.card-panel {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.verify-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 1rem 0 0;
}

.verify-result-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.15rem;
}

.verify-result-grid dd {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.verify-result-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.verify-result-badge--valid {
  color: #8fd5a6;
  border-color: rgba(143, 213, 166, 0.45);
}

.verify-result-badge--warn {
  color: #f0d59a;
  border-color: rgba(240, 213, 154, 0.45);
}

.verify-result-badge--invalid {
  color: #f0a5a5;
  border-color: rgba(240, 165, 165, 0.45);
}

.verify-installments {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.verify-payment-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.payment-card-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
  align-items: center;
}

.payment-mobile-networks {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.payment-mobile-networks--inline {
  gap: 0.25rem;
}

.payment-card-brand--network img {
  height: 1.35rem;
  width: auto;
  aspect-ratio: 128 / 84;
  image-rendering: -webkit-optimize-contrast;
}

.payment-mobile-networks--inline .payment-card-brand--network img {
  height: 1rem;
}

.payment-card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-card-brand--logo {
  min-width: auto;
  padding: 0.2rem 0.35rem;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 0;
}

.payment-card-brand--logo img {
  display: block;
  width: auto;
  height: 1.5rem;
}

.payment-card-brand--logo img[alt='Visa'] {
  aspect-ratio: 780 / 500;
  image-rendering: -webkit-optimize-contrast;
}

.payment-card-brand--logo img[alt='Mastercard'] {
  aspect-ratio: 64 / 42;
}

.payment-card-brand--inline {
  min-width: auto;
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
}

.payment-card-brand--inline img {
  height: 1rem;
}

.payment-card-brand--visa {
  color: #1a1f71;
  background: #fff;
}

.payment-card-brand--mc {
  color: #fff;
  background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%);
}

.payment-card-brand--momo {
  color: #fff;
  background: linear-gradient(135deg, #0f766e 0%, #059669 100%);
}

.sl-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 0 calc(1rem + var(--sl-safe-bottom));
  background: var(--anthracite-light);
  border-top: 1px solid var(--gold-dark);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.sl-consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.sl-consent-copy {
  flex: 1 1 18rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--cream) !important;
  -webkit-text-fill-color: var(--cream) !important;
}

.sl-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-shrink: 0;
}

.sl-consent-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold) !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.sl-consent-more:hover {
  color: var(--gold-light) !important;
}

.sl-consent-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--anthracite) !important;
  -webkit-text-fill-color: var(--anthracite) !important;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sl-consent-ok:hover {
  filter: brightness(1.08);
}

.sl-consent-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: transparent;
  color: var(--cream) !important;
  -webkit-text-fill-color: var(--cream) !important;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sl-consent-no:hover {
  border-color: var(--gold-light);
  color: var(--gold-light) !important;
  -webkit-text-fill-color: var(--gold-light) !important;
}

.sl-consent-spacer {
  height: var(--sl-consent-stack);
  flex-shrink: 0;
}

body.sl-consent-active .chatbot {
  bottom: calc(var(--sl-consent-stack) + 1rem);
}

body.sl-consent-active .gold-dots {
  bottom: calc(var(--sl-consent-stack) + 1rem);
}

body.sl-consent-active .promo-fab {
  bottom: calc(var(--sl-consent-stack) + 1rem);
}

@media (max-width: 768px) {
  :root {
    --sl-consent-stack: calc(10rem + var(--sl-safe-bottom));
  }

  .sl-consent-bar {
    padding: 0.7rem 0 calc(0.7rem + var(--sl-safe-bottom));
  }

  .sl-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .sl-consent-copy {
    flex-basis: auto;
    font-size: 0.85rem;
  }

  .sl-consent-actions {
    justify-content: stretch;
  }

  .sl-consent-ok,
  .sl-consent-no {
    width: 100%;
    min-height: 2.75rem;
  }
}

@media (max-width: 768px) {
  .admin-billing-kpis {
    grid-template-columns: 1fr;
  }

  .verify-result-grid {
    grid-template-columns: 1fr;
  }
}


/* Cahier client brief */
.brief-layout {
  max-width: 960px;
  margin: 0 auto;
}

.brief-gate-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.brief-gate-divider::before,
.brief-gate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.brief-dossier-banner {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.06);
}

.brief-dossier-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.brief-dossier-ref,
.brief-dossier-email,
.brief-dossier-project {
  margin: 0.15rem 0;
  color: var(--cream);
  font-size: 0.92rem;
}

.brief-intro {
  margin-bottom: 1.25rem;
}

.brief-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.brief-tabs {
  margin-top: 0.5rem;
  min-height: 12rem;
}

.brief-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: var(--anthracite);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.brief-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.brief-notes-group {
  margin-top: 1.5rem;
}

body.brief-page .page-banner .banner-content p.brief-public-intro {
  max-width: 62ch;
}

@media (max-width: 640px) {
  .brief-form {
    padding: 1.15rem;
  }
}

html.brief-direct-access #brief-gate,
html.brief-direct-access .brief-public-intro,
html.brief-session-active .brief-public-intro,
html.brief-session-active #brief-gate {
  display: none !important;
}

html.brief-direct-access #brief-app,
html.brief-session-active #brief-app {
  display: block !important;
}

html.brief-direct-access #brief-app.brief-app-loading > :not(#brief-loading) {
  display: none !important;
}

#brief-loading {
  display: none;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted, #9a9588);
}

html.brief-direct-access #brief-loading {
  display: block;
}

.u-color-cream { color: var(--cream); }
.u-lead-muted { color: var(--muted); max-width: 65ch; font-size: 1.05rem; }
.u-lead-muted-wide { color: var(--muted); max-width: 72ch; font-size: 1.05rem; }
.u-m-0 { margin: 0; }
.u-w-full { width: 100%; }
.u-mt-075 { margin-top: 0.75rem; }
.u-mt-125 { margin-top: 1.25rem; }
.u-ml-075 { margin-left: 0.75rem; }
.u-ms-075 { margin-inline-start: 0.75rem; }
.u-mt-1 { margin-top: 1rem; }
.u-mt-2 { margin-top: 2rem; }
.u-mt-3 { margin-top: 3rem; }
.u-mb-1 { margin-bottom: 1rem; }
.u-mb-075 { margin: 0 0 0.75rem; }
.u-mt-075-mb-0 { margin-top: 0.75rem; margin-bottom: 0; }
.u-mt-2-center { margin-top: 2rem; text-align: center; }
.u-heading { font-size: 1.15rem; color: var(--cream); margin: 0 0 0.35rem; }
.u-heading-sm { font-size: 1.05rem; color: var(--cream); margin: 0 0 0.75rem; }
.u-heading-soft { font-size: 1.15rem; color: var(--cream); margin: 2rem 0 0.5rem; }
.u-heading-section { font-size: 1.15rem; color: var(--cream); margin: 2rem 0 1rem; }
.u-heading-banner { margin-bottom: 1rem; font-size: 1.15rem; color: var(--cream); }
.u-heading-plain { font-size: 1.15rem; color: var(--cream); margin: 0; }
.u-heading-tight { font-size: 1.15rem; color: var(--cream); margin: 0 0 1rem; }
.u-heading-xs { font-size: 1.05rem; margin: 0 0 1rem; }
.u-admin-gate { padding: 4rem 0; max-width: 42rem; }
.u-admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.u-uppercase { text-transform: uppercase; }
.u-flex-1 { flex: 1; }
.u-max-220 { max-width: 220px; }
.u-actions-wrap { align-items: center; gap: 0.5rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .stagger-70-i0 { --anim-delay: 0ms; }
  .stagger-70-i1 { --anim-delay: 70ms; }
  .stagger-70-i2 { --anim-delay: 140ms; }
  .stagger-70-i3 { --anim-delay: 210ms; }
  .stagger-70-i4 { --anim-delay: 280ms; }
  .stagger-70-i5 { --anim-delay: 350ms; }
  .stagger-70-i6 { --anim-delay: 420ms; }
  .stagger-70-i7 { --anim-delay: 490ms; }
  .stagger-80-i0 { --anim-delay: 0ms; }
  .stagger-80-i1 { --anim-delay: 80ms; }
  .stagger-80-i2 { --anim-delay: 160ms; }
  .stagger-80-i3 { --anim-delay: 240ms; }
  .stagger-80-i4 { --anim-delay: 320ms; }
  .stagger-80-i5 { --anim-delay: 400ms; }
  .stagger-80-i6 { --anim-delay: 480ms; }
  .stagger-80-i7 { --anim-delay: 560ms; }
  .stagger-90-i0 { --anim-delay: 0ms; }
  .stagger-90-i1 { --anim-delay: 90ms; }
  .stagger-90-i2 { --anim-delay: 180ms; }
  .stagger-90-i3 { --anim-delay: 270ms; }
  .stagger-90-i4 { --anim-delay: 360ms; }
  .stagger-90-i5 { --anim-delay: 450ms; }
  .stagger-90-i6 { --anim-delay: 540ms; }
  .stagger-90-i7 { --anim-delay: 630ms; }
  .stagger-90-i8 { --anim-delay: 720ms; }
  .stagger-90-i9 { --anim-delay: 810ms; }
  .stagger-90-i10 { --anim-delay: 900ms; }
  .stagger-90-i11 { --anim-delay: 990ms; }
  .stagger-100-i0 { --anim-delay: 0ms; }
  .stagger-100-i1 { --anim-delay: 100ms; }
  .stagger-100-i2 { --anim-delay: 200ms; }
  .stagger-100-i3 { --anim-delay: 300ms; }
  .stagger-100-i4 { --anim-delay: 400ms; }
  .stagger-100-i5 { --anim-delay: 500ms; }
  .stagger-100-i6 { --anim-delay: 600ms; }
  .stagger-100-i7 { --anim-delay: 700ms; }
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .hero-tagline-rotator,
  .hero-tagline-stage,
  .hero-tagline-viewport {
    max-width: 100%;
  }

  .hero-tagline-viewport {
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  }

  .hero-tagline {
    max-width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .btn {
    min-height: 2.75rem;
  }

  .hero-lead {
    font-size: 1.02rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .stat {
    padding: 1rem 0.75rem;
  }

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

  .page-banner,
  .page-banner .banner-content {
    min-height: 200px;
  }

  .page-banner .banner-content {
    padding: 1.75rem 0 1.35rem;
  }

  .cotation-form,
  .contact-form,
  form.card {
    padding: 1.15rem;
  }

  .cotation-tab {
    min-height: 2.5rem;
  }

  .feature-info-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .feature-tooltip {
    margin-left: 0;
    margin-inline-start: 0;
  }

  .star-picker {
    gap: 0.15rem;
  }

  .star-picker label {
    padding: 0.4rem;
    font-size: 2rem;
  }

  .project-cta,
  .project-cta-live,
  .project-cta-case {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .form-consent input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
  }

  .site-footer a {
    display: inline-block;
    padding: 0.25rem 0;
    overflow-wrap: anywhere;
  }

  body:has(.site-header.menu-open) .promo-offer-dock,
  body:has(.site-header.menu-open) .chatbot,
  body:has(.site-header.menu-open) .gold-dots {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.sl-promo-active .gold-dots {
    display: none;
  }

  .table-wrap,
  .admin-table-wrap {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 400px) {
  .container {
    width: calc(100% - 1.15rem);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .logo-text {
    font-size: 1.35rem;
  }

  .promo-offer-copy strong {
    font-size: 0.82rem;
  }
}

.sl-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
