@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@500;600&display=swap");

:root {
  --bg: #050607;
  --panel: #0c0e10;
  --panel2: #111417;
  --text: #f4f4f2;
  --muted: #a6a9ad;
  --line: rgba(255, 255, 255, 0.11);
  --silver: #d6d8da;
  --silver2: #858a90;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  z-index: 100;
  background: rgba(5, 6, 7, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}
.nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav a {
  opacity: 0.8;
  transition: 0.25s;
}
.nav a:hover {
  opacity: 1;
}
.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 11px 18px !important;
  border-radius: 4px;
  opacity: 1 !important;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 25px;
}
.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 130px 8vw 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 72% 42%,
      rgba(210, 214, 218, 0.12),
      transparent 27%
    ),
    radial-gradient(
      circle at 20% 100%,
      rgba(120, 125, 130, 0.07),
      transparent 32%
    ),
    linear-gradient(120deg, #030405 0%, #0b0d0f 50%, #030405 100%);
}
.hero-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.hero-content {
  position: relative;
  max-width: 820px;
  z-index: 1;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #c5c8ca;
  margin-bottom: 20px;
}
h1,
h2 {
  font-family: Oswald, Inter, sans-serif;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.02em;
}
h1 {
  font-size: clamp(54px, 8vw, 105px);
  font-weight: 600;
}
h2 {
  font-size: clamp(40px, 5vw, 68px);
}
h1 span,
h2 span {
  color: #aeb2b5;
}
.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  margin: 26px 0 34px;
}
.hero-actions,
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* Accès citoyen visible dès l'arrivée sur le site */
.citizen-entry {
  margin-top: 24px;
  max-width: 590px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 13, 17, 0.72);
  text-decoration: none;
  color: var(--text);
  transition: 0.25s ease;
  backdrop-filter: blur(8px);
}
.citizen-entry:hover {
  border-color: rgba(205, 48, 55, 0.65);
  transform: translateY(-2px);
  background: rgba(18, 21, 26, 0.9);
}
.citizen-entry-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(205, 48, 55, 0.5);
  color: var(--gold);
  font-size: 20px;
  flex: none;
}
.citizen-entry span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.citizen-entry strong {
  font-size: 12px;
  letter-spacing: 2px;
  color: #fff;
}
.citizen-entry small {
  font-size: 12px;
  color: var(--muted);
}
.citizen-entry-arrow {
  margin-left: auto;
  color: var(--gold);
  font-size: 20px;
}
@media (max-width: 700px) {
  .citizen-entry {
    max-width: 100%;
    padding: 14px;
  }
  .citizen-entry strong {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  .citizen-entry small {
    font-size: 11px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: 0.25s;
}
.btn-primary {
  background: #e3e5e6;
  color: #08090a;
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.12);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-dark {
  background: #08090a;
  color: #fff;
}
.btn-dark:hover {
  transform: translateY(-2px);
}
.btn.big {
  min-height: 60px;
  padding: 0 30px;
}
.trust-row {
  display: flex;
  gap: 48px;
  margin-top: 55px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.trust-row div {
  display: flex;
  flex-direction: column;
}
.trust-row strong {
  font-size: 20px;
  letter-spacing: 0.12em;
}
.trust-row small {
  color: #777b80;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.18em;
}
.section {
  padding: 115px 8vw;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  background: #f0f0ee;
  color: #0b0c0d;
}
.intro .eyebrow {
  color: #70757a;
}
.intro p {
  font-size: 18px;
  color: #555a5e;
  max-width: 650px;
}
.dark-section {
  background: #080a0c;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-heading {
  margin-bottom: 60px;
}
.section-heading.centered {
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.service-card {
  min-height: 340px;
  padding: 28px;
  background: linear-gradient(145deg, #121518, #0b0d0f);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}
.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow);
}
.card-number {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #44484c;
  font-size: 12px;
  font-weight: 800;
}
.icon {
  font-size: 38px;
  color: #d7d9da;
  margin: 45px 0 25px;
}
.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.service-card p {
  color: #898e93;
  font-size: 14px;
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;
  align-items: center;
}
.lead {
  color: #73777b;
  font-size: 17px;
  max-width: 700px;
  margin: 25px 0;
}
.check-list {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}
.check-list div {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.check-list b {
  width: 25px;
  height: 25px;
  border: 1px solid #b8bbbd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.security-panel {
  min-height: 520px;
  background: linear-gradient(145deg, #15181b, #050607);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.security-panel:before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
}
.security-panel img {
  width: min(72%, 400px);
  filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.8));
  position: relative;
}
.panel-label {
  position: absolute;
  bottom: 25px;
  left: 25px;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: #777c81;
}
.panel-label span {
  margin: 0 8px;
}
.recruitment {
  background: linear-gradient(90deg, #0a0c0e, #14171a, #0a0c0e);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.recruit-box {
  max-width: 1100px;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.17);
  padding: 55px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: var(--shadow);
}
.recruit-box p {
  color: #8d9296;
  max-width: 620px;
  margin-top: 20px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.step {
  padding: 35px 25px;
  border-right: 1px solid var(--line);
}
.step:last-child {
  border-right: 0;
}
.step span {
  font-family: Oswald;
  font-size: 32px;
  color: #777b80;
}
.step h3 {
  margin: 18px 0 8px;
}
.step p {
  color: #777c81;
  font-size: 13px;
}
.faq-section {
  background: #080a0c;
}
.faq {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
}
summary:after {
  content: "+";
  color: #858a8e;
  font-size: 22px;
}
details[open] summary:after {
  content: "−";
}
details p {
  color: #858a8e;
  padding: 16px 40px 0 0;
  font-size: 14px;
}
.contact-section {
  padding: 120px 8vw;
  text-align: center;
  background: #ededeb;
  color: #090a0b;
}
.contact-section .eyebrow {
  color: #6c7175;
}
.contact-section p {
  color: #64686c;
  max-width: 650px;
  margin: 22px auto 30px;
}
.contact-actions {
  justify-content: center;
}
.contact-section .btn-ghost {
  color: #111;
  border-color: #111;
}
.contact-note {
  display: block;
  color: #9a9da0;
  margin-top: 20px;
  font-size: 10px;
}
footer {
  padding: 45px 8vw;
  background: #030405;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 30px;
}
.footer-brand img {
  width: 100px;
}
.footer-brand p {
  font-size: 9px;
  color: #686d71;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 5px;
}
.footer-links {
  display: flex;
  gap: 22px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999da0;
}
.copyright {
  text-align: right;
  color: #55595d;
  font-size: 10px;
}
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(5, 6, 7, 0.97);
    padding: 20px 8vw;
    border-bottom: 1px solid var(--line);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px 0;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    padding-left: 7vw;
    padding-right: 7vw;
  }
  .section {
    padding: 85px 7vw;
  }
  .intro,
  .split {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .security-panel {
    min-height: 420px;
  }
  .recruit-box {
    padding: 40px;
    flex-direction: column;
    align-items: flex-start;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  footer {
    grid-template-columns: 1fr;
  }
  .copyright {
    text-align: left;
  }
  .footer-links {
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 50px;
  }
  .hero p {
    font-size: 15px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .trust-row {
    gap: 20px;
  }
  .recruit-box {
    padding: 28px;
  }
  .security-panel {
    min-height: 340px;
  }
  .site-header {
    padding: 0 5vw;
  }
}

.btn-discord {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #15181b;
  color: #f2f3f4;
}
.btn-discord:hover {
  background: #202428;
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}
.discord-card {
  max-width: 760px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.55);
}
.discord-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #777b7e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex: 0 0 auto;
}
.discord-card div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.discord-card strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.discord-card span {
  font-size: 12px;
  color: #6b7074;
}
.discord-card > a {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.discord-card > a:hover {
  text-decoration: underline;
}
@media (max-width: 560px) {
  .discord-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .discord-card > a {
    margin-left: 60px;
  }
}

/* Arès Security — sections ajoutées en respectant le design existant */
.pricing-cards {
  grid-template-columns: repeat(3, 1fr);
}
.pricing-cards .service-card {
  min-height: 340px;
}
.price-main {
  font-size: 16px !important;
  color: #d6d8da !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.price-list {
  display: grid;
  gap: 13px;
  margin-top: 8px;
}
.price-list p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.price-list p:last-child {
  border-bottom: 0;
}
.price-list strong {
  color: #d6d8da;
  white-space: nowrap;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.partner-card {
  min-height: 95px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, #121518, #0b0d0f);
  border: 1px solid var(--line);
  color: #d6d8da;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: 0.3s;
}
.partner-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr 1fr;
  }
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  .partner-grid {
    grid-template-columns: 1fr;
  }
  .price-list p {
    display: block;
  }
  .price-list strong {
    display: block;
    margin-top: 4px;
  }
}

/* Ajustement final — contenu des cartes de tarifs */
.pricing-cards .service-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pricing-cards .service-card .icon {
  margin-top: 0;
  margin-bottom: 25px;
}
.pricing-cards .service-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}
.pricing-cards .service-card .price-list {
  margin-top: 8px;
}
.pricing-cards .service-card > .icon,
.pricing-cards .service-card > h3,
.pricing-cards .service-card > .price-main,
.pricing-cards .service-card > .price-list {
  transform: translateY(-28px);
}

/* Discord des entreprises partenaires */
.partner-card {
  flex-direction: column;
  gap: 10px;
}
.partner-name {
  display: block;
}
.partner-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #bfc3c6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: 0.25s;
}
.partner-discord:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}
.partner-discord.unavailable {
  opacity: 0.42;
  cursor: default;
}

/* Arès Security — enrichissement du site */
.stats-section {
  padding: 55px 8vw;
  background: #030405;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: auto;
}
.stat {
  padding: 18px 25px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat strong {
  display: block;
  font-family: Oswald, Inter, sans-serif;
  font-size: 34px;
  letter-spacing: 0.05em;
}
.stat span {
  display: block;
  color: #777c81;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.18em;
  margin-top: 5px;
}
.benefit-cards .service-card {
  min-height: 310px;
}
.commitments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.commitment {
  padding: 35px 25px;
  border-right: 1px solid var(--line);
}
.commitment:last-child {
  border-right: 0;
}
.commitment strong {
  font-family: Oswald, Inter, sans-serif;
  font-size: 23px;
  letter-spacing: 0.06em;
}
.commitment p {
  color: #777c81;
  font-size: 13px;
  margin-top: 12px;
}
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  z-index: 90;
  background: #e3e5e6;
  color: #08090a;
  border-radius: 3px;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: 0.25s;
}
.back-top:hover {
  transform: translateY(-3px);
  background: #fff;
}
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .commitments {
    grid-template-columns: 1fr 1fr;
  }
  .commitment:nth-child(2) {
    border-right: 0;
  }
  .commitment:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child {
    border-bottom: 0;
  }
  .commitments {
    grid-template-columns: 1fr;
  }
  .commitment {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .commitment:last-child {
    border-bottom: 0;
  }
  .back-top {
    right: 18px;
    bottom: 18px;
  }
}

/* Questionnaire de recrutement intégré */
.recruit-intro {
  margin-bottom: 28px;
}
.recruit-intro .recruit-box {
  min-height: auto;
}
.recruit-form-shell {
  background: linear-gradient(
    145deg,
    rgba(17, 20, 23, 0.98),
    rgba(8, 10, 12, 0.98)
  );
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.recruit-form-head {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}
.recruit-form-head h3 {
  margin: 8px 0 8px;
  font-family: Oswald, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.recruit-form-head p {
  margin: 0;
  color: var(--muted);
}
.google-form-wrap {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.google-form-wrap iframe {
  display: block;
  width: 100%;
  min-height: 1250px;
  height: 1650px;
  border: 0;
  background: #fff;
}
@media (max-width: 900px) {
  .recruit-form-shell {
    padding: 20px;
  }
  .google-form-wrap iframe {
    min-height: 1450px;
    height: 1850px;
  }
}
@media (max-width: 560px) {
  .recruit-form-shell {
    padding: 12px;
    border-radius: 16px;
  }
  .recruit-form-head {
    padding: 6px 4px 10px;
  }
  .google-form-wrap {
    border-radius: 12px;
  }
  .google-form-wrap iframe {
    min-height: 1550px;
    height: 2050px;
  }
}

/* Page recrutement dédiée */
.recruitment-page {
  background: #050607;
}
.nav-active {
  opacity: 1 !important;
}
.recruitment-hero {
  min-height: 62vh;
  padding: 155px 8vw 90px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 75% 45%,
      rgba(210, 214, 218, 0.12),
      transparent 27%
    ),
    linear-gradient(120deg, #030405 0%, #0d1012 50%, #030405 100%);
}
.recruitment-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.recruitment-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 850px;
}
.recruitment-hero-inner p {
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
  margin: 25px 0 30px;
}
.recruitment-form-section {
  padding: 90px 6vw 120px;
  background: #080a0c;
  border-bottom: 1px solid var(--line);
}
.recruitment-form-section .recruit-form-shell {
  max-width: 1150px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .recruitment-hero {
    padding: 135px 7vw 70px;
    min-height: 55vh;
  }
  .recruitment-form-section {
    padding: 60px 3vw 80px;
  }
  .recruitment-hero-inner h1 {
    font-size: clamp(48px, 12vw, 80px);
  }
}

/* Logos partenaires */
.partner-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 18px 24px;
  overflow: hidden;
}
.partner-logo-wrap {
  width: 100%;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.partner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}
.partner-card:hover .partner-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 12px 28px rgba(255, 255, 255, 0.08));
}
.partner-logo-placeholder {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.015) 55%,
    transparent 70%
  );
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.025),
    0 12px 35px rgba(0, 0, 0, 0.25);
}
.partner-logo-placeholder span {
  font-family: Oswald, sans-serif;
  font-size: 22px;
  letter-spacing: 0.16em;
  color: rgba(244, 244, 242, 0.58);
}
.partner-name {
  margin-top: 0;
}
@media (max-width: 900px) {
  .partner-card {
    min-height: 240px;
  }
  .partner-logo-wrap {
    height: 135px;
  }
}
@media (max-width: 560px) {
  .partner-logo-wrap {
    height: 150px;
  }
}

/* Demande de mission — espace partenaires */
.mission-section {
  position: relative;
  overflow: hidden;
}
.mission-section:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.055),
    transparent 45%
  );
  pointer-events: none;
}
.mission-section .section-heading,
.mission-form-shell {
  position: relative;
  z-index: 1;
}
.mission-intro {
  max-width: 720px;
  margin: 18px auto 0;
  color: #777c81;
  font-size: 14px;
  line-height: 1.8;
}
.mission-form-shell {
  max-width: 1050px;
  margin: 0 auto;
  padding: 34px;
  background: linear-gradient(145deg, #111417, #090b0d);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mission-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 18px;
}
.mission-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mission-form label > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c7c9cb;
}
.mission-form input,
.mission-form select,
.mission-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #080a0c;
  color: #e7e9ea;
  border-radius: 2px;
  padding: 14px 15px;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: 0.2s;
}
.mission-form input::placeholder,
.mission-form textarea::placeholder {
  color: #555b60;
}
.mission-form select {
  appearance: auto;
}
.mission-form input:focus,
.mission-form select:focus,
.mission-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.035);
}
.mission-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.mission-full {
  grid-column: 1/-1;
}
.mission-type-field {
  grid-column: 2;
}
.mission-vehicles-field {
  grid-column: 1/-1;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}
.mission-form-grid > label:first-child {
  grid-column: 1/-1;
}

.mission-other-company {
  margin-top: -2px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 2px;
}
.mission-other-company[hidden] {
  display: none !important;
}

.mission-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.mission-form-bottom p {
  margin: 0;
  color: #686e73;
  font-size: 11px;
  line-height: 1.7;
  max-width: 620px;
}
.mission-form .btn {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.mission-status {
  min-height: 22px;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.mission-status.success {
  color: #bfc3c6;
}
.mission-status.error {
  color: #d1a6a6;
}
.mission-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
@media (max-width: 700px) {
  .mission-form-shell {
    padding: 22px;
  }
  .mission-form-grid {
    grid-template-columns: 1fr;
  }
  .mission-full {
    grid-column: auto;
  }
  .mission-form-bottom {
    align-items: stretch;
    flex-direction: column;
  }
  .mission-form-bottom .btn {
    width: 100%;
  }
}

/* Placement des partenaires — Unicorn seul sur la dernière ligne, centré */
@media (min-width: 901px) {
  .unicorn-partner {
    grid-column: 2 / span 2;
    width: calc((100% - 15px) / 2);
    justify-self: center;
  }
}
@media (max-width: 900px) {
  .unicorn-partner {
    grid-column: auto;
    width: auto;
  }
}

/* ===== Espaces admin / citoyen ===== */
.portal-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 130px 24px 80px;
}
.portal-card {
  background: rgba(14, 18, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.portal-form {
  display: grid;
  gap: 16px;
}
.portal-form label {
  display: grid;
  gap: 8px;
  color: #bfc7d1;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.portal-form input,
.portal-form select,
.portal-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #0b0f13;
  border: 1px solid #293039;
  color: #fff;
  padding: 13px 14px;
  border-radius: 2px;
  outline: none;
}
.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
  border-color: #b82830;
}
.portal-title {
  margin: 8px 0 10px;
  font-size: clamp(32px, 5vw, 58px);
}
.portal-subtitle {
  color: #aeb6c0;
  max-width: 760px;
  line-height: 1.7;
}
.portal-note {
  padding: 12px 14px;
  border-left: 2px solid #b82830;
  background: rgba(205, 48, 55, 0.07);
  color: #adb5be;
  font-size: 13px;
  line-height: 1.6;
}
.portal-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.portal-tab {
  border: 1px solid #303841;
  background: #11161b;
  color: #d7dde4;
  padding: 11px 16px;
  cursor: pointer;
}
.portal-tab.active {
  border-color: #b82830;
  color: #f1a7a9;
}
.portal-status {
  min-height: 22px;
  font-size: 13px;
  color: #b82830;
}
.portal-table-wrap {
  overflow: auto;
  margin-top: 20px;
}
.portal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.portal-table th,
.portal-table td {
  border-bottom: 1px solid #252c33;
  padding: 13px 12px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}
.portal-table th {
  color: #dc454c;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.portal-table td {
  color: #d5dae0;
}
.portal-badge {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid #444d56;
  font-size: 11px;
}
.portal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.portal-actions .btn {
  cursor: pointer;
}
.portal-hidden {
  display: none !important;
}
.quote-box {
  margin-top: 18px;
  border: 1px solid #2a323a;
  padding: 18px;
  background: #0b0f13;
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 800px) {
  .portal-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }
  .portal-shell {
    padding-top: 100px;
  }
  .portal-card {
    padding: 22px;
  }
}

/* Écran de connexion initial */
body.site-locked {
  overflow: hidden;
}
.site-app {
  visibility: hidden;
  opacity: 0;
  min-height: 100vh;
}
.site-app.site-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: #050708;
}
.access-gate.access-gone {
  display: none;
}
.access-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(184, 145, 72, 0.13),
      transparent 36%
    ),
    linear-gradient(135deg, rgba(0, 0, 0, 0.86), rgba(10, 13, 17, 0.97));
}
.access-card {
  position: relative;
  width: min(560px, 100%);
  box-sizing: border-box;
  padding: 36px;
  background: rgba(11, 15, 19, 0.96);
  border: 1px solid rgba(205, 48, 55, 0.32);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
}
.access-brand {
  text-align: center;
  margin-bottom: 22px;
}
.access-brand img {
  width: 110px;
  max-height: 100px;
  object-fit: contain;
}
.access-title {
  margin: 8px 0 10px;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
}
.access-title span {
  color: #d43a42;
}
.access-subtitle {
  color: #aeb6c0;
  line-height: 1.6;
  margin-bottom: 24px;
}
.access-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 22px 0;
}
.access-tab {
  border: 1px solid #303841;
  background: #10151a;
  color: #bfc7d1;
  padding: 11px 8px;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.access-tab.active {
  border-color: #b82830;
  color: #f1a7a9;
  background: rgba(205, 48, 55, 0.08);
}
.access-form {
  display: grid;
  gap: 14px;
}
.access-hidden {
  display: none !important;
}
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.access-form label {
  display: grid;
  gap: 7px;
  color: #c5ccd4;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.access-form input {
  width: 100%;
  box-sizing: border-box;
  background: #080b0e;
  border: 1px solid #293039;
  color: #fff;
  padding: 13px 14px;
  outline: none;
}
.access-form input:focus {
  border-color: #b82830;
}
.access-submit {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}
.access-status {
  min-height: 18px;
  color: #d43a42;
  font-size: 12px;
}
.access-admin-label {
  color: #d43a42;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-left: 2px solid #b82830;
  padding-left: 10px;
  margin-bottom: 2px;
}
.access-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #68727d;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 650px) {
  .access-card {
    padding: 26px 20px;
  }
  .access-grid {
    grid-template-columns: 1fr;
  }
  .access-tabs {
    grid-template-columns: 1fr;
  }
}

/* Connexion Discord */
.discord-login-btn {
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0 2px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  background: #5865f2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.18);
}
.discord-login-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(88, 101, 242, 0.25);
}
.discord-login-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 17px;
  flex: 0 0 30px;
}
.discord-login-btn strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.discord-login-btn small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}
.discord-login-arrow {
  margin-left: auto;
  font-size: 20px;
}
.access-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
  color: #68727d;
  font-size: 9px;
  letter-spacing: 0.15em;
}
.access-divider::before,
.access-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
}

/* Discord-only authentication */
.discord-access-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(88, 101, 242, 0.28);
  background: linear-gradient(
    145deg,
    rgba(88, 101, 242, 0.08),
    rgba(10, 13, 17, 0.45)
  );
}
.discord-access-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 101, 242, 0.55);
  color: #8e98ff;
  font-size: 20px;
}
.discord-access-copy {
  display: grid;
  gap: 5px;
}
.discord-access-copy strong {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #fff;
}
.discord-access-copy span {
  font-size: 12px;
  line-height: 1.6;
  color: #aeb6c0;
}
.session-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 8px;
}
.session-actions.access-hidden {
  display: none !important;
}
.session-actions #session-name {
  font-size: 10px;
  color: #bfc7d1;
  letter-spacing: 0.08em;
}
.session-logout {
  border: 1px solid rgba(205, 48, 55, 0.45);
  background: transparent;
  color: #d8b76d;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.session-logout:hover {
  background: rgba(205, 48, 55, 0.08);
}
.discord-portal-btn {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #5865f2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.16);
  transition: 0.2s ease;
}
.discord-portal-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.discord-portal-btn > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.discord-portal-btn strong {
  font-size: 12px;
  letter-spacing: 0.08em;
}
.discord-portal-btn small {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.72);
}
.discord-portal-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex: none;
}

/* Arès Security — choix d'espace + espace partenaire */
.access-choice-grid {
  align-items: stretch;
}
.access-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  text-decoration: none;
  color: var(--text);
  background: rgba(8, 11, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 180px;
  transition: 0.22s ease;
}
.access-choice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(205, 48, 55, 0.55);
  background: rgba(15, 19, 24, 0.95);
}
.access-choice-card strong {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #fff;
}
.access-choice-card small {
  color: var(--muted);
  line-height: 1.6;
  max-width: 420px;
}
.access-choice-icon {
  font-size: 28px;
  color: var(--gold);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(205, 48, 55, 0.45);
}
.access-choice-arrow {
  margin-top: auto;
  color: var(--gold);
  font-size: 22px;
}
.partner-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.partner-summary-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 10, 14, 0.65);
  padding: 20px;
}
.partner-summary-card span,
.partner-summary-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.partner-summary-card strong {
  display: block;
  color: #fff;
  font-size: 28px;
  margin: 7px 0;
}
.quote-box {
  background: rgba(8, 11, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px;
}
.quote-box h3 {
  margin: 8px 0 18px;
}
.session-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 9px 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.session-logout:hover {
  border-color: rgba(205, 48, 55, 0.65);
  color: var(--gold);
}
@media (max-width: 800px) {
  .partner-summary-grid {
    grid-template-columns: 1fr;
  }
  .access-choice-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ARÈS SECURITY — NAVBAR PREMIUM V20
   Refonte visuelle de l'en-tête sans modifier les fonctions.
   ========================================================= */
.site-header {
  height: 76px;
  padding: 0 clamp(18px, 3.2vw, 58px);
  gap: 24px;
  background: linear-gradient(180deg, rgba(4, 5, 7, 0.94), rgba(4, 5, 7, 0.82));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(205, 48, 55, 0.32),
    transparent
  );
  pointer-events: none;
}
.brand {
  width: 72px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  position: relative;
}
.brand::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 8px;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  background: rgba(205, 48, 55, 0.16);
  filter: blur(8px);
  border-radius: 50%;
}
.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.5));
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}
.brand:hover img {
  transform: translateY(-1px) scale(1.035);
  filter: drop-shadow(0 7px 18px rgba(0, 0, 0, 0.65));
}
.nav {
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.075em;
  white-space: nowrap;
}
.nav > a:not(.nav-cta) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #b9bdc2;
  opacity: 1;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}
.nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d43a42, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}
.nav > a:not(.nav-cta):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}
.nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}
.nav > a[href="citoyen.html"] {
  color: #f1a7a9 !important;
  background: rgba(205, 48, 55, 0.055);
  border-color: rgba(205, 48, 55, 0.15) !important;
}
.nav > a[href="citoyen.html"]::before {
  content: "•";
  color: #d43a42;
  margin-right: 6px;
  font-size: 13px;
}
.nav .nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px !important;
  margin-left: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.025);
  color: #d5d8db;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 20px rgba(0, 0, 0, 0.14);
  letter-spacing: 0.09em;
}
.nav .nav-cta::after {
  content: "↗";
  font-size: 13px;
  color: #858b91;
}
.nav .nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}
.nav .discord-server-link {
  min-height: 38px;
  padding: 0 11px !important;
  margin-left: 3px;
  border-color: rgba(255, 255, 255, 0.11) !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.018);
  color: #aeb3b8;
  font-size: 9.5px;
  box-shadow: none;
}
.nav .discord-server-link::after {
  color: #737980;
  font-size: 11px;
}
.nav .discord-server-link:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.035);
  color: #e1e3e5;
}
.direction-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  margin-left: 4px;
  border: 1px solid rgba(205, 48, 55, 0.48);
  border-radius: 8px;
  background: rgba(205, 48, 55, 0.07);
  color: #d9b76c;
  text-decoration: none;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transition: 0.22s ease;
}
.direction-link:hover {
  border-color: rgba(205, 48, 55, 0.82);
  background: rgba(205, 48, 55, 0.14);
  color: #fff;
  transform: translateY(-1px);
}
.session-actions {
  min-height: 38px;
  margin-left: 7px !important;
  padding: 3px 4px 3px 10px;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.session-actions #session-name {
  display: inline-flex;
  align-items: center;
  max-width: 240px;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  color: #dfe2e5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.session-actions #session-name {
  flex: 0 1 auto;
  width: auto;
  white-space: nowrap;
}
.session-actions #session-name::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #65c98a;
  box-shadow: 0 0 9px rgba(101, 201, 138, 0.65);
  flex: none;
}
.session-logout {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: #aeb3b8;
  font-size: 8.5px;
  letter-spacing: 0.11em;
  transition: 0.22s ease;
}
.session-logout:hover {
  color: #fff;
  border-color: rgba(205, 48, 55, 0.38);
  background: rgba(205, 48, 55, 0.08);
}
.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
@media (max-width: 1320px) {
  .site-header {
    padding: 0 20px;
    gap: 12px;
  }
  .nav > a:not(.nav-cta) {
    padding: 0 6px;
    font-size: 9.5px;
  }
  .nav > a:not(.nav-cta)::after {
    left: 7px;
    right: 7px;
  }
  .nav .nav-cta {
    padding: 0 11px !important;
  }
  .session-actions {
    margin-left: 3px !important;
    padding-left: 7px;
  }
  .session-actions #session-name {
    max-width: 180px;
  }
}
@media (max-width: 900px) {
  .site-header {
    height: 72px;
    padding: 0 5vw;
  }
  .brand {
    height: 58px;
    width: 62px;
    flex-basis: 62px;
  }
  .brand img {
    width: 58px;
    height: 58px;
  }
  .nav {
    top: 72px;
    padding: 12px 5vw 18px;
    gap: 4px;
    border-bottom: 1px solid rgba(205, 48, 55, 0.16);
    background: rgba(5, 6, 8, 0.98);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.42);
  }
  .nav > a:not(.nav-cta) {
    min-height: 46px;
    padding: 0 13px;
  }
  .nav .nav-cta {
    margin: 4px 0 0;
    justify-content: center;
  }
  .session-actions {
    justify-content: space-between;
    margin: 4px 0 0 !important;
    padding: 5px 6px 5px 13px;
  }
  .session-actions #session-name {
    max-width: 220px;
    font-size: 10px;
  }
  .session-logout {
    min-height: 36px;
  }
}
@media (max-width: 560px) {
  .site-header {
    padding: 0 16px;
  }
  .brand {
    width: 58px;
    flex-basis: 58px;
  }
  .brand img {
    width: 54px;
    height: 54px;
  }
}

/* =========================================================
   ARÈS SECURITY — ADMIN / DIRECTION UI V21
   Interface sombre premium : aucun champ blanc, identité Discord
   et actions de direction harmonisées avec le site.
   ========================================================= */
.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 78% 8%,
      rgba(205, 48, 55, 0.07),
      transparent 24%
    ),
    radial-gradient(
      circle at 8% 85%,
      rgba(110, 130, 150, 0.05),
      transparent 28%
    ),
    #07090b;
}
.admin-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 80%);
}
.admin-page .portal-shell {
  max-width: 1240px;
  padding: 110px 28px 70px;
}
.admin-page .portal-card {
  background: linear-gradient(
    145deg,
    rgba(13, 17, 21, 0.97),
    rgba(8, 11, 14, 0.97)
  );
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  padding: 36px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.admin-page #admin-view > .portal-card {
  padding: 34px 34px 30px;
}
.admin-page .portal-title {
  font-size: clamp(42px, 5.5vw, 68px);
  letter-spacing: 0.015em;
  margin-top: 7px;
}
.admin-page .portal-title span {
  color: #c5c9cd;
}
.admin-page .portal-subtitle {
  font-size: 14px;
  color: #8f98a2;
}
.admin-page .eyebrow {
  color: #d43a42;
  font-size: 10px;
  letter-spacing: 0.28em;
}
.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-identity {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: linear-gradient(
    135deg,
    rgba(88, 101, 242, 0.1),
    rgba(255, 255, 255, 0.025)
  );
  color: #dce1e6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.admin-identity::before {
  content: "●";
  font-size: 8px;
  color: #7d8cff;
  text-shadow: 0 0 10px rgba(125, 140, 255, 0.65);
}
.admin-logout {
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: #0d1115;
  color: #c2c7cc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  cursor: pointer;
  transition: 0.2s ease;
}
.admin-logout:hover {
  color: #fff;
  border-color: rgba(205, 48, 55, 0.5);
  background: rgba(205, 48, 55, 0.07);
  transform: translateY(-1px);
}
.admin-page .portal-tabs {
  margin: 28px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.admin-page .portal-tab {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d1217;
  color: #aeb6bf;
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: 0.2s ease;
}
.admin-page .portal-tab:hover {
  color: #fff;
  border-color: rgba(205, 48, 55, 0.35);
  background: #11171d;
}
.admin-page .portal-tab.active {
  border-color: rgba(205, 48, 55, 0.55);
  color: #e2c17b;
  background: rgba(205, 48, 55, 0.07);
}
.admin-page .portal-table-wrap {
  margin-top: 0;
}
.admin-page .portal-table {
  min-width: 780px;
}
.admin-page .portal-table th {
  padding: 15px 12px;
  color: #c99f54;
  border-bottom: 1px solid rgba(205, 48, 55, 0.18);
}
.admin-page .portal-table td {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  color: #d9dee3;
}
.admin-page .portal-table tbody tr {
  transition: background 0.18s ease;
}
.admin-page .portal-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}
.admin-page .portal-badge {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 4px;
  color: #cfd5db;
  background: #0d1217;
}
.admin-page .portal-table .portal-tab {
  padding: 8px 13px;
}
.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.admin-delete-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(214, 82, 82, 0.32);
  border-radius: 6px;
  background: rgba(110, 25, 25, 0.14);
  color: #e2a0a0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: 0.2s ease;
}
.admin-delete-btn:hover {
  color: #fff;
  border-color: rgba(225, 91, 91, 0.65);
  background: rgba(150, 35, 35, 0.22);
  transform: translateY(-1px);
}
.admin-page .quote-box {
  margin-top: 22px;
  padding: 24px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: linear-gradient(145deg, #0a0e12, #080b0e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.admin-page .quote-box h3 {
  font-size: 19px;
  letter-spacing: 0.02em;
}
.admin-page .quote-box p {
  color: #aeb6bf;
}
.admin-quote-grid {
  margin-top: 20px;
  gap: 16px;
}
.admin-field,
.admin-message-field {
  display: grid;
  gap: 8px;
  color: #aeb7c1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.admin-control {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 12px;
  background: #0d1217 !important;
  color: #e8ebee !important;
  border: 1px solid #2a333d !important;
  border-radius: 6px;
  outline: none;
  font:
    500 12px Inter,
    Arial,
    sans-serif;
  color-scheme: dark;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.admin-control:focus {
  border-color: rgba(205, 48, 55, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(205, 48, 55, 0.08);
}
.admin-control::placeholder {
  color: #66717c;
}
.admin-field select.admin-control {
  appearance: auto;
  cursor: pointer;
}
.admin-textarea {
  height: auto;
  min-height: 128px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.6;
}
.admin-message-field {
  margin-top: 18px;
}
.admin-save-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.admin-save-btn {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(205, 48, 55, 0.55);
  border-radius: 6px;
  background: linear-gradient(135deg, #d43a42, #9a1e26);
  color: #090a0b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: 0.2s ease;
}
.admin-save-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.admin-page #quote-send-status {
  color: #cda95f;
}
.admin-page #login-view {
  max-width: 650px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .admin-page .portal-shell {
    padding: 92px 14px 45px;
  }
  .admin-page .portal-card,
  #admin-view > .portal-card {
    padding: 22px 18px !important;
  }
  .admin-top-actions {
    width: 100%;
  }
  .admin-identity {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }
  .admin-logout {
    flex: 0 0 auto;
  }
  .admin-quote-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .admin-top-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .admin-identity,
  .admin-logout {
    width: 100%;
    justify-content: center;
  }
  .admin-page .portal-title {
    font-size: 43px;
  }
  .admin-save-btn {
    width: 100%;
  }
}

/* En-tête allégé : identité Discord seule, accès déplacés hors de la barre. */
.nav .nav-login-link {
  display: none !important;
}
.session-actions {
  margin-left: 14px !important;
  padding: 0 !important;
  min-height: 36px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 8px !important;
}
.session-actions #session-name {
  max-width: 180px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: #d5d8db;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.session-actions #session-name::before {
  width: 5px;
  height: 5px;
  margin-right: 7px;
}
.direction-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(205, 48, 55, 0.24);
  border-radius: 8px;
  background: rgba(205, 48, 55, 0.035);
  color: #bca06a;
  text-decoration: none;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transition: 0.2s ease;
}
.direction-hero-link:hover {
  border-color: rgba(205, 48, 55, 0.55);
  background: rgba(205, 48, 55, 0.08);
  color: #e3c47f;
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .session-actions {
    margin-left: 0 !important;
  }
}

/* Header : pseudo seul + accès Direction discret et indépendant. */
.header-direction-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  margin-left: 4px;
  border: 1px solid rgba(205, 48, 55, 0.18);
  border-radius: 7px;
  background: rgba(205, 48, 55, 0.025);
  color: #b7a06f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: 0.2s ease;
}
.header-direction-link:hover {
  border-color: rgba(205, 48, 55, 0.42);
  background: rgba(205, 48, 55, 0.06);
  color: #dec27f;
}
.footer-discord-link {
  color: #bfc3c7 !important;
  transition: 0.2s ease;
}
.footer-discord-link:hover {
  color: #fff !important;
}
@media (max-width: 1100px) {
  .header-direction-link {
    margin-left: 0;
  }
}
@media (max-width: 900px) {
  .header-direction-link {
    min-height: 32px;
    padding: 0 10px;
    font-size: 8px;
  }
}

/* Header compact : navigation, accès Direction et compte restent toujours visibles. */
.site-header {
  gap: 22px;
  min-width: 0;
}
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}
.header-right .nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  gap: 22px;
  white-space: nowrap;
}
.header-account {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.header-account .header-direction-link {
  flex: 0 0 auto;
}
.header-account .session-actions {
  flex: 0 0 auto;
  margin-left: 0 !important;
}
.header-account .session-actions #session-name {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1400px) {
  .site-header {
    padding: 0 28px;
  }
  .header-right .nav {
    gap: 15px;
    font-size: 11px;
  }
  .header-account {
    gap: 6px;
  }
  .header-account .session-actions #session-name {
    max-width: 125px;
  }
}
@media (max-width: 1180px) {
  .header-right .nav {
    gap: 11px;
    font-size: 10px;
  }
  .header-account .session-actions #session-name {
    max-width: 105px;
  }
}
@media (max-width: 900px) {
  .header-right {
    display: contents;
  }
  .header-account {
    width: 100%;
    justify-content: space-between;
  }
}

.site-header {
  height: 82px;
}
.brand img {
  width: 68px;
  height: 68px;
}
/* V73 — header légèrement agrandi : navigation compacte + compte toujours visible */
@media (min-width: 901px) {
  .site-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 28px;
    padding-right: 28px;
  }
  .header-right {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }
  .header-right .nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    overflow: visible;
  }
  .header-right .nav > a:not(.nav-cta) {
    flex: 0 1 auto;
    min-width: 0;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 9.5px;
    letter-spacing: 0.065em;
  }
  .header-account {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
  }
  .header-account .session-actions {
    flex: 0 0 auto;
    margin: 0 !important;
  }
  .header-account .session-actions #session-name {
    max-width: 145px;
  }
}
@media (min-width: 901px) and (max-width: 1450px) {
  .site-header {
    padding-left: 20px;
    padding-right: 20px;
    gap: 10px;
  }
  .header-right {
    gap: 7px;
  }
  .header-right .nav {
    gap: 4px;
  }
  .header-right .nav > a:not(.nav-cta) {
    padding-left: 4px;
    padding-right: 4px;
    font-size: 8.8px;
  }
  .header-account .session-actions #session-name {
    max-width: 105px;
  }
  .header-direction-link {
    padding-left: 9px;
    padding-right: 9px;
  }
  .session-logout {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* V73 — hauteur mobile conservée pour éviter de tasser la navigation. */
@media (max-width: 900px) {
  .site-header {
    height: 76px;
  }
  .brand img {
    width: 64px;
    height: 64px;
  }
}

/* V77 — bouton de connexion Discord visible pour les visiteurs non connectés. */
.header-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(205, 48, 55, 0.24);
  border-radius: 7px;
  background: rgba(205, 48, 55, 0.035);
  color: #c9cdd2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: 0.2s ease;
}
.header-login-link:hover {
  border-color: rgba(205, 48, 55, 0.5);
  background: rgba(205, 48, 55, 0.08);
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 1450px) {
  .header-login-link {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 8.5px;
  }
}
@media (max-width: 900px) {
  .header-login-link {
    min-height: 32px;
    padding: 0 9px;
    font-size: 8px;
  }
}

/* Réponses de recrutement — interface Direction */
.admin-page .recruitment-response-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.admin-page .recruitment-response-head h3 {
  margin: 7px 0 0;
  font-size: 20px;
  letter-spacing: 0.01em;
}
.admin-page .recruitment-discord {
  font-size: 11px;
  color: #8f99a5;
  letter-spacing: 0.04em;
}
.admin-page .recruitment-choice {
  margin-top: 22px;
}
.admin-page .recruitment-choice-label {
  display: block;
  margin-bottom: 9px;
  color: #aeb7c1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-page .recruitment-choice-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-page .recruitment-choice-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #2a333d;
  border-radius: 6px;
  background: #0d1217;
  color: #d7dce1;
  font:
    800 10px Inter,
    Arial,
    sans-serif;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: 0.2s ease;
}
.admin-page .recruitment-choice-btn:hover {
  border-color: rgba(205, 48, 55, 0.55);
  transform: translateY(-1px);
}
.admin-page .recruitment-choice-btn.selected {
  border-color: rgba(205, 48, 55, 0.7);
  background: rgba(205, 48, 55, 0.12);
  color: #e3c47f;
  box-shadow: 0 0 0 1px rgba(205, 48, 55, 0.08) inset;
}
.admin-page .recruitment-message-field {
  margin-top: 24px;
}
.admin-page .admin-recruitment-message {
  width: 100%;
  box-sizing: border-box;
  min-height: 300px;
  margin-top: 2px;
  padding: 18px 19px;
  resize: vertical;
  background: #090d11 !important;
  color: #f1f3f5 !important;
  border: 1px solid #2a333d !important;
  border-radius: 8px;
  outline: none;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.8;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-page .recruitment-delete-btn {
  border: 1px solid rgba(190, 78, 78, 0.55);
  background: rgba(190, 78, 78, 0.08);
  color: #d98787;
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: 0.18s ease;
}
.admin-page .recruitment-delete-btn:hover {
  border-color: rgba(210, 95, 95, 0.8);
  background: rgba(190, 78, 78, 0.14);
  transform: translateY(-1px);
}
.admin-page .admin-recruitment-message:focus {
  border-color: rgba(205, 48, 55, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(205, 48, 55, 0.08);
}
.admin-page .admin-recruitment-message::placeholder {
  color: #69737e;
}
.admin-page .recruitment-message-help {
  margin-top: 9px;
  color: #727d88;
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 800px) {
  .admin-page .recruitment-choice-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }
  .admin-page .recruitment-choice-btn {
    width: 100%;
  }
}

/* Documents devis / factures et archives */
.mission-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.mission-meta-grid > div {
  border: 1px solid #252c33;
  border-radius: 10px;
  padding: 12px;
  background: #0b0f13;
}
.mission-meta-grid strong {
  display: block;
  color: #c99f50;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.mission-meta-grid span {
  color: #e8eaed;
  font-size: 14px;
}
.admin-document-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.document-editor {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #2a3138;
  border-radius: 12px;
  background: #0a0e12;
}
.document-form-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.document-lines {
  margin: 16px 0;
}
.document-lines-head,
.document-line {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) 100px 140px 70px;
  gap: 8px;
  align-items: center;
}
.document-lines-head {
  color: #aeb6c0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 7px;
}
.document-line {
  margin-bottom: 8px;
}
.document-line .admin-delete-btn {
  padding: 9px 10px;
}
.document-editor .admin-message-field {
  display: block;
  margin: 14px 0;
}
.document-editor textarea {
  width: 100%;
  box-sizing: border-box;
  background: #0b0f13;
  color: #fff;
  border: 1px solid #293039;
  padding: 12px;
  border-radius: 8px;
}
.document-editor .admin-control {
  box-sizing: border-box;
  width: 100%;
}
@media (max-width: 800px) {
  .mission-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .document-lines-head {
    display: none;
  }
  .document-line {
    grid-template-columns: 1fr 90px 120px 62px;
  }
}

.document-total-preview {
  margin: 18px 0 10px auto;
  max-width: 420px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}
.document-total-preview > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0;
}
.document-total-preview .document-total-final {
  font-size: 1.08rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 6px;
  padding-top: 10px;
}
.doc-line-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 100px;
}
.portal-muted {
  display: block;
  color: #8f98a8;
  margin-top: 6px;
  font-size: 0.82rem;
}

/* V89 — Réorganisation visuelle du bloc devis / facture */
.document-editor {
  margin-top: 20px !important;
  padding: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #0b1015 0%, #090d11 100%) !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.document-form-head {
  margin-bottom: 20px !important;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.document-form-head h3 {
  margin: 5px 0 0 !important;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.document-lines {
  margin: 20px 0 16px !important;
  padding: 0;
  overflow-x: auto;
}
.document-lines-head,
.document-line {
  display: grid !important;
  grid-template-columns: minmax(250px, 2.3fr) 92px 150px minmax(150px, 1fr) !important;
  gap: 12px !important;
  align-items: center;
}
.document-lines-head {
  padding: 0 12px 4px !important;
  color: #77818d !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  white-space: nowrap;
}
.document-lines-head span:nth-child(4) {
  text-align: right !important;
  justify-self: end;
  width: 100%;
}
.document-lines-head span:nth-child(5) {
  display: none !important;
}
.document-line {
  position: relative;
  min-width: 760px;
  margin-bottom: 0 !important;
  padding: 5px 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 0;
  background: transparent;
  transition: background 0.18s ease;
}
.document-line:hover {
  border-color: rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.018);
}
.document-line .admin-control {
  min-height: 38px;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}
.document-line .doc-qty {
  text-align: center;
}
.document-line .doc-price {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.document-line .doc-locked {
  color: #d9dde2 !important;
  background: #0d1217 !important;
}
.doc-line-total {
  min-width: 0 !important;
  width: 100%;
  justify-self: end;
  padding-right: 0;
  color: #f0f2f4;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.document-line .admin-delete-btn {
  position: absolute;
  right: -4px;
  top: 5px;
  width: 68px;
  min-height: 38px;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 9px !important;
}
.document-line:has(.admin-delete-btn) {
  padding-right: 78px;
}
.document-total-preview {
  width: min(100%, 430px);
  max-width: none !important;
  margin: 16px 0 8px auto !important;
  padding: 14px 16px 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}
.document-total-preview > div {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 7px 0 !important;
  color: #9da6b0;
  font-size: 12px;
}
.document-total-preview > div strong {
  color: #e9edf0;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.document-total-preview .document-total-final {
  margin: 8px -16px 0 !important;
  padding: 13px 16px 12px !important;
  border-top: 1px solid rgba(205, 48, 55, 0.2) !important;
  border-radius: 0 0 12px 12px;
  background: rgba(205, 48, 55, 0.045);
  color: #d7dce1;
  font-size: 13px !important;
}
.document-total-preview .document-total-final strong {
  color: #e1c27d;
  font-size: 17px;
}
.document-editor .admin-message-field {
  margin-top: 20px !important;
}
@media (max-width: 900px) {
  .document-editor {
    padding: 16px !important;
  }
  .document-lines-head,
  .document-line {
    grid-template-columns: minmax(210px, 2fr) 82px 130px minmax(145px, 1fr) !important;
  }
  .document-lines-head span:nth-child(4) {
    text-align: right !important;
  }
  .document-lines-head span:nth-child(5) {
    display: none !important;
  }
  .document-total-preview {
    width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 650px) {
  .document-lines-head {
    display: none !important;
  }
  .document-line {
    min-width: 0 !important;
    grid-template-columns: 1fr 82px 125px !important;
    padding: 6px 8px !important;
  }
  .document-line .doc-desc {
    grid-column: 1 / -1;
  }
  .document-line .doc-qty {
    grid-column: 1;
  }
  .document-line .doc-price {
    grid-column: 2 / 4;
  }
  .document-line .doc-line-total {
    grid-column: 3;
    grid-row: 2;
    justify-content: flex-end;
    text-align: right;
    padding: 0;
    align-self: center;
  }
  .document-line .admin-delete-btn {
    grid-column: 3;
    grid-row: 3;
  }
}

/* Comptabilité Direction */
.admin-page .compta-box {
  margin-top: 0;
  padding: 14px;
}
.compta-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.compta-head .quote-title {
  margin: 4px 0 5px;
}
.compta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.compta-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #aeb6bf;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.compta-field input {
  width: 100%;
  box-sizing: border-box;
  background: #0b0f13;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #f1f3f5;
  padding: 8px 9px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
}
.compta-field input:focus {
  border-color: rgba(205, 48, 55, 0.55);
  box-shadow: 0 0 0 2px rgba(205, 48, 55, 0.08);
}
.compta-input-wrap {
  position: relative;
}
.compta-input-wrap input {
  padding-right: 30px;
}
.compta-input-wrap b {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #c99f54;
  font-size: 12px;
  letter-spacing: 0;
}
.compta-results {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  overflow: hidden;
  background: #0b0f13;
}
.compta-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #aeb6bf;
  font-size: 12px;
}
.compta-result:last-child {
  border-bottom: 0;
}
.compta-result strong {
  color: #f1f3f5;
  font-size: 15px;
  white-space: nowrap;
}
.compta-result-highlight strong {
  color: #c99f54;
}
.compta-result-total {
  background: rgba(205, 48, 55, 0.055);
}
.compta-result-total span {
  color: #e4e8ec;
  font-weight: 600;
}
.compta-result-total strong {
  font-size: 16px;
  color: #fff;
}

/* Comptabilite et effectif Direction */
.compta-sections {
  display: grid;
  gap: 8px;
}
.compta-accordion,
.compta-subcategory {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: #0b0f13;
  overflow: hidden;
}
.compta-accordion > summary,
.compta-subcategory > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #e4e8ec;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
}
.compta-accordion > summary::-webkit-details-marker,
.compta-subcategory > summary::-webkit-details-marker {
  display: none;
}
.compta-accordion > summary:after,
.compta-subcategory > summary:after {
  content: "+";
  color: #c99f54;
  font-size: 15px;
}
.compta-accordion[open] > summary:after,
.compta-subcategory[open] > summary:after {
  content: "−";
}
.compta-accordion > summary > span:first-child {
  font-weight: 650;
}
.compta-accordion-hint {
  margin-left: auto;
  color: #929ca6;
  font-size: 10px;
}
.compta-accordion-content {
  padding: 0 12px 12px;
}
.compta-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 2px 0 9px;
}
.compta-balance-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #10151a;
  color: #aeb6bf;
  font-size: 11px;
}
.compta-balance-item strong {
  color: #f1f3f5;
  font-size: 16px;
}
.compta-balance-item:first-child strong {
  color: #e2c17b;
}
.compta-subcategory {
  margin-bottom: 9px;
  background: transparent;
}
.compta-subcategory > summary {
  padding: 8px 10px;
  color: #c99f54;
  font-size: 12px;
}
.compta-entry-form,
.compta-fund-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 9px 0;
}
.compta-entry-form .admin-field,
.compta-fund-form .admin-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #aeb6bf;
  font-size: 11px;
}
.compta-form-actions,
.compta-fund-form > .admin-save-row {
  grid-column: 1/-1;
  flex-wrap: wrap;
}
.compta-record-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}
.compta-data-table {
  min-width: 760px;
}
.compta-data-table th,
.compta-data-table td {
  padding: 7px 9px;
  font-size: 11px;
}
.compta-data-table td {
  vertical-align: middle;
}
.compta-income {
  color: #8fcea4 !important;
}
.compta-expense {
  color: #e2a09a !important;
}
.compta-empty {
  margin: 8px 0;
  color: #929ca6;
  font-size: 12px;
}
.compta-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 9px 0 5px;
  color: #dfe3e7;
  font-size: 12px;
}
.compta-history-head span {
  color: #7f8993;
  font-size: 10px;
  text-align: right;
}
.compta-history-note {
  display: block;
  color: #8d7a58;
  font-size: 9px;
  margin-top: 2px;
}
.compta-source {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid rgba(205, 48, 55, 0.25);
  border-radius: 999px;
  color: #c99f54;
  font-size: 9px;
  white-space: nowrap;
}
.compta-agent-picker,
.staff-certifications {
  min-width: 0;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #cbd1d8;
}
.compta-agent-picker {
  grid-column: 1/-1;
}
.compta-agent-picker legend,
.staff-certifications legend {
  padding: 0 5px;
  color: #c99f54;
  font-size: 10px;
}
.compta-agent-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.compta-agent-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  background: #10151a;
  font-size: 11px;
}
.compta-agent-option input,
.staff-certifications input {
  accent-color: #c99f54;
}
.compta-agent-option small {
  color: #929ca6;
  font-size: 9px;
}
.compta-salary-list {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
}
.compta-salary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #d9dee3;
  font-size: 11px;
}
.compta-salary-row input {
  width: 105px;
}
.compta-record {
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.compta-record-heading,
.compta-record-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.compta-record-heading {
  color: #e4e8ec;
  font-size: 12px;
}
.compta-record-heading > span {
  color: #929ca6;
  font-size: 10px;
}
.compta-record-summary {
  margin-top: 5px;
  color: #aeb6bf;
  font-size: 10px;
}
.compta-record-summary strong {
  color: #f1f3f5;
}
.compta-payroll-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px 12px;
  margin: 7px 0;
  padding: 0;
  list-style: none;
  color: #cbd1d8;
  font-size: 10px;
}
.compta-payroll-list li {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.compta-payroll-list li span {
  white-space: nowrap;
  color: #e2c17b;
  font-weight: 700;
}

@media (max-width: 760px) {
  .compta-balance-grid,
  .compta-entry-form,
  .compta-fund-form,
  .staff-form-grid {
    grid-template-columns: 1fr;
  }
  .compta-agent-list,
  .compta-salary-list,
  .compta-payroll-list {
    grid-template-columns: 1fr;
  }
  .compta-agent-picker,
  .compta-form-actions,
  .compta-fund-form > .admin-save-row,
  .compta-salary-list {
    grid-column: 1;
  }
  .compta-accordion-hint {
    display: none;
  }
  .compta-accordion-content {
    padding: 0 9px 10px;
  }
  .compta-entry-form,
  .compta-fund-form {
    padding: 8px 0;
  }
  .compta-history-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .compta-history-head span {
    text-align: left;
  }
  .compta-data-table {
    min-width: 700px;
  }
  .staff-box .compta-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .compta-salary-row input {
    width: 100px;
  }
}
.staff-box {
  padding: 24px;
}
.staff-box .compta-head {
  align-items: center;
}
.staff-form {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #0b0f13;
}
.staff-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.staff-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.staff-certifications label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.staff-warning {
  max-width: 100%;
}
.staff-warning textarea {
  resize: vertical;
}
.staff-table-wrap {
  margin-top: 18px !important;
}
.staff-table {
  min-width: 1100px !important;
}
.staff-table th,
.staff-table td {
  white-space: nowrap;
}
.staff-table td:nth-child(10) {
  white-space: normal;
  min-width: 180px;
  max-width: 280px;
}
@media (max-width: 760px) {
  .compta-balance-grid,
  .compta-entry-form,
  .compta-fund-form,
  .staff-form-grid {
    grid-template-columns: 1fr;
  }
  .compta-agent-list,
  .compta-salary-list,
  .compta-payroll-list {
    grid-template-columns: 1fr;
  }
  .compta-agent-picker,
  .compta-form-actions,
  .compta-fund-form > .admin-save-row,
  .compta-salary-list,
  .compta-fund-preview {
    grid-column: 1;
  }
  .compta-accordion-hint {
    display: none;
  }
  .compta-accordion-content {
    padding: 0 12px 14px;
  }
  .compta-entry-form,
  .compta-fund-form {
    padding: 12px 0;
  }
  .staff-box .compta-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .compta-salary-row input {
    width: 120px;
  }
}

/* Comptabilité : filtres, compteurs et pagination des historiques (ajouts) */
.compta-subcategory > summary {
  flex-wrap: wrap;
  row-gap: 6px;
}
.compta-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-right: auto;
  margin-left: 6px;
}
.compta-filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #aeb6bf;
  padding: 3px 10px;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}
.compta-filter-btn:hover {
  border-color: rgba(205, 48, 55, 0.45);
  color: #e4e8ec;
}
.compta-filter-btn.active {
  background: rgba(205, 48, 55, 0.14);
  border-color: rgba(205, 48, 55, 0.6);
  color: #e2c17b;
}
.compta-filter-clear {
  border-style: dashed;
}
.compta-count {
  color: #7f8993;
  font-size: 10px;
  white-space: nowrap;
}
.compta-history-intro {
  margin: 0 10px;
  color: #7f8993;
  font-size: 10px;
}
.compta-subcategory > .compta-record-list {
  padding: 0 10px;
}
.compta-subcategory > .compta-record-list .compta-record:first-child {
  border-top: 0;
}
.compta-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 10px 10px;
  color: #929ca6;
  font-size: 11px;
}
.compta-pager:empty {
  display: none;
}
.compta-pager-btn {
  background: #10151a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: #e4e8ec;
  padding: 5px 11px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.compta-pager-btn:hover:not(:disabled) {
  border-color: rgba(205, 48, 55, 0.5);
  color: #e2c17b;
}
.compta-pager-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Fonds total en haut de la comptabilité */
.compta-fund-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(205, 48, 55, 0.3);
  border-radius: 7px;
  background: #10151a;
  color: #aeb6bf;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compta-fund-total strong {
  color: #e2c17b;
  font-size: 24px;
  letter-spacing: 0;
}
.compta-fund-total strong.negative {
  color: #e2a09a;
}

/* Vue Gouvernement : comptabilité en lecture seule */
.gov-readonly #compta-panel form,
.gov-readonly #compta-panel .admin-row-actions {
  display: none !important;
}

/* Espace employés */
.emp-back {
  margin-bottom: 10px;
}
.emp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.emp-head h3 {
  margin: 0;
  color: #e4e8ec;
  font-size: 18px;
}
.emp-head span {
  color: #929ca6;
  font-size: 11px;
}
.emp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.emp-stat {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: #10151a;
  color: #aeb6bf;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.emp-stat strong {
  display: block;
  margin-top: 4px;
  color: #e2c17b;
  font-size: 22px;
  letter-spacing: 0;
}
.emp-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.emp-section > h4 {
  margin: 0 0 8px;
  color: #d43a42;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.emp-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px;
  border: 1.5px dashed rgba(205, 48, 55, 0.45);
  border-radius: 8px;
  background: #0d1217;
  color: #aeb6bf;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.emp-drop strong {
  color: #e2c17b;
}
.emp-drop.dragover {
  background: #161d24;
  border-color: #e2c17b;
}
.emp-files {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.emp-files li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #10151a;
  color: #cbd1d8;
  font-size: 12px;
}
.emp-files li small {
  color: #929ca6;
}
.emp-equip-form {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 2fr;
  gap: 8px;
  margin-bottom: 10px;
}
.emp-equip-form .admin-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #aeb6bf;
  font-size: 11px;
}
.emp-equip-form .admin-save-row {
  grid-column: 1/-1;
  flex-wrap: wrap;
}
.emp-adjust {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.emp-adjust .admin-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #aeb6bf;
  font-size: 11px;
}
.emp-adjust input {
  max-width: 120px;
}
@media (max-width: 900px) {
  .emp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .emp-equip-form {
    grid-template-columns: 1fr;
  }
}

/* Garde rapprochée : menu déroulant compact au style de base du site */
.cp-dropdown {
  margin: 0 0 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.cp-dropdown > summary {
  font-size: 13px;
}
.cp-dropdown > summary:after {
  font-size: 18px;
}
.cp-dropdown > p {
  padding: 8px 40px 0 0;
  font-size: 12px;
}
.cp-dropdown .cp-form {
  padding-top: 12px;
}
.cp-dropdown .mission-form-grid {
  gap: 12px;
}
.cp-day {
  display: block;
  margin-top: 4px;
  color: #e2c17b;
  font-size: 12px;
  font-weight: 600;
}

/* Arès Security : navigation et formulaires mobiles */
@media (max-width: 900px) {
  .site-header:has(.menu-toggle) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: minmax(76px, auto);
    column-gap: 10px;
    padding: 0 14px;
  }
  .site-header:has(.menu-toggle) .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .site-header:has(.menu-toggle) .header-right {
    display: contents;
  }
  .site-header:has(.menu-toggle) .header-account {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    min-width: 0;
    gap: 6px;
  }
  .site-header:has(.menu-toggle) .menu-toggle {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }
  .site-header:has(.menu-toggle) .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 22px;
    background: #07090b;
    border-bottom: 1px solid rgba(205, 48, 55, 0.3);
    white-space: normal;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.65);
  }
  .site-header:has(.menu-toggle) .nav:not(.open) {
    display: none;
  }
  .site-header:has(.menu-toggle) .nav.open {
    display: flex;
  }
  .site-header:has(.menu-toggle) .nav a {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .site-header:not(:has(.menu-toggle)) {
    gap: 12px;
    padding: 0 16px;
  }
  .site-header:not(:has(.menu-toggle)) .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-header:not(:has(.menu-toggle)) .nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px;
  }
  .site-header .session-actions {
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 4px !important;
  }
  .site-header .session-actions #session-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-header .header-account .header-direction-link {
    padding: 0 7px;
    font-size: 9px;
  }
  .site-header .header-account .session-logout {
    padding: 0 7px;
    font-size: 9px;
  }
  .site-header .header-account .header-login-link {
    min-height: 40px;
    font-size: 10px;
  }
  .site-header .header-account .header-direction-link {
    min-height: 40px;
  }

  .admin-page .portal-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    padding: 0 0 12px;
    margin: 18px 0 16px;
    -webkit-overflow-scrolling: touch;
  }
  .admin-page .portal-tabs .portal-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 44px;
  }
  .portal-card,
  .quote-box,
  .document-editor {
    max-width: 100%;
    min-width: 0;
  }
  .portal-table-wrap {
    max-width: 100%;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .portal-status,
  .portal-subtitle {
    overflow-wrap: anywhere;
  }
  .admin-top-actions {
    min-width: 0;
    flex-wrap: wrap;
  }
  .admin-page .mission-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .site-header:has(.menu-toggle) .brand img {
    width: 54px;
    height: 54px;
  }
  .site-header:has(.menu-toggle) .header-account {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .site-header .session-actions #session-name {
    max-width: 76px;
  }
  .hero {
    min-height: 0;
    padding: 118px 18px 62px;
  }
  .hero h1 {
    font-size: clamp(38px, 11vw, 54px);
    overflow-wrap: break-word;
  }
  .hero p {
    font-size: 15px;
    margin: 18px 0 24px;
  }
  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  .trust-row {
    gap: 14px;
    justify-content: space-between;
    margin-top: 32px;
  }
  .trust-row strong {
    font-size: 16px;
  }
  .section {
    padding: 64px 18px;
  }
  .section-heading {
    margin-bottom: 28px;
  }
  .section h2,
  .contact-section h2 {
    font-size: clamp(29px, 8vw, 44px);
  }
  .intro,
  .split {
    gap: 25px;
  }
  .service-card {
    min-height: 0;
    padding: 24px;
  }
  .price-list p {
    gap: 8px;
    font-size: 13px;
  }
  .recruit-box {
    padding: 22px;
  }
  .security-panel {
    min-height: 255px;
  }
  .mission-form-shell {
    padding: 17px;
  }
  .mission-form-grid {
    gap: 14px;
  }
  .mission-form input,
  .mission-form select,
  .mission-form textarea,
  .portal-form input,
  .portal-form select,
  .portal-form textarea,
  .admin-control,
  .document-editor input,
  .document-editor textarea {
    font-size: 16px !important;
    max-width: 100%;
  }
  .mission-form input,
  .mission-form select,
  .mission-form textarea {
    min-height: 48px;
  }
  .mission-type-field,
  .mission-vehicles-field,
  .mission-form-grid > label:first-child {
    grid-column: 1/-1;
  }
  .mission-form-bottom {
    gap: 12px;
  }
  .portal-shell,
  .admin-page .portal-shell {
    padding: 104px 12px 35px;
    max-width: 100%;
  }
  .portal-card,
  .admin-page .portal-card,
  #admin-view > .portal-card {
    padding: 18px 13px !important;
  }
  .portal-title,
  .admin-page .portal-title {
    font-size: clamp(30px, 9vw, 43px);
    overflow-wrap: anywhere;
  }
  .portal-grid,
  .quote-grid,
  .admin-quote-grid,
  .staff-form-grid,
  .compta-grid,
  .mission-meta-grid,
  .admin-page .mission-meta-grid {
    grid-template-columns: 1fr;
  }
  .quote-box,
  .document-editor {
    padding: 15px 12px !important;
  }
  .document-form-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .document-lines {
    overflow: visible;
  }
  .document-lines-head {
    display: none !important;
  }
  .document-line,
  .document-lines .document-line {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important;
    width: 100%;
    gap: 8px !important;
    padding: 12px !important;
    margin: 0 0 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #10151a;
  }
  .document-line .doc-desc {
    grid-column: 1/-1;
    min-width: 0;
  }
  .document-line .doc-qty,
  .document-line .doc-price {
    min-width: 0;
    width: 100%;
  }
  .document-line .doc-line-total {
    grid-column: 1;
    align-self: center;
    text-align: left !important;
    white-space: normal;
  }
  .document-line .admin-delete-btn {
    position: static !important;
    grid-column: 2;
    justify-self: end;
    align-self: center;
    min-height: 40px;
    width: auto;
    padding: 8px 12px !important;
  }
  .document-line:has(.admin-delete-btn) {
    padding: 12px !important;
  }
  .admin-document-actions,
  .admin-save-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .admin-document-actions > *,
  .admin-save-row .admin-save-btn {
    min-height: 44px;
  }
  .compta-agent-list,
  .compta-salary-list,
  .compta-payroll-list {
    grid-template-columns: 1fr;
  }
  .access-card,
  .access-choice-grid {
    max-width: 100%;
    min-width: 0;
  }
  .discord-access-panel {
    max-width: 100%;
    min-width: 0;
  }
  footer {
    padding: 32px 18px;
  }
}
@media (max-width: 380px) {
  .site-header:has(.menu-toggle) {
    column-gap: 4px;
    padding: 0 8px;
  }
  .site-header:has(.menu-toggle) .brand img {
    width: 44px;
    height: 44px;
  }
  .site-header .header-account .header-direction-link {
    font-size: 8px;
    padding: 0 5px;
  }
  .site-header .header-account .header-login-link {
    font-size: 8px;
    padding: 0 6px;
  }
  .site-header .header-account .session-logout {
    font-size: 8px;
    padding: 0 5px;
  }
}

/* Arès recrutement : horaire proposé par la direction */
.recruitment-appointment-panel {
  padding: 16px;
  border: 1px solid #2d3640;
  border-radius: 12px;
  background: #0b0e12;
  margin: 16px 0;
}
.recruitment-appointment-panel[hidden] {
  display: none;
}
.recruitment-appointment-panel small {
  color: #98a3ae;
  display: block;
  margin-top: 9px;
}
.recruitment-appointment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
}
.recruitment-appointment-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #e1e6eb;
}
.recruitment-appointment-grid .admin-control {
  width: 100%;
  min-width: 0;
  padding: 11px;
}
@media (max-width: 700px) {
  .recruitment-appointment-grid {
    grid-template-columns: 1fr;
  }
}

/* Espace technique : grille fluide, sans changement de la présentation Direction. */
.admin-space-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 20px; }
.configuration-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 18px 0 24px; }
.configuration-setting { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; }
.configuration-setting .admin-field { min-width: 0; }
.configuration-setting .admin-control { width: 100%; }
.configuration-checks { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.configuration-checks label { display: inline-flex; align-items: center; gap: 7px; }
#admin-space .quote-box { margin-top: 18px; }
@media (max-width: 650px) {
  #admin-space .portal-tabs { display: flex; overflow-x: auto; gap: 8px; }
  #admin-space .portal-tab { white-space: nowrap; }
  #admin-space .staff-form-grid { grid-template-columns: 1fr; }
  #admin-space .admin-save-row { flex-wrap: wrap; }
}

/* Défilement unifié : pages, tableaux, menus, formulaires et fenêtres. */
@media (hover: hover) and (pointer: fine) {
  html, body, body * {
    scrollbar-width: thin;
    scrollbar-color: rgba(173, 185, 199, 0.36) transparent;
  }
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(173, 185, 199, 0.33);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(205, 48, 55, 0.7);
    border: 2px solid transparent;
    background-clip: padding-box;
  }
  ::-webkit-scrollbar-corner {
    background: transparent;
  }
  .portal-table-wrap,
  .document-lines,
  .portal-tabs,
  .staff-editor-dialog {
    scrollbar-color: rgba(205, 48, 55, 0.48) transparent;
  }
}

/* Menus des effectifs. Le menu est hors du tableau pour rester visible. */
.staff-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.staff-table .staff-actions-cell {
  width: 48px;
  min-width: 48px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}
.staff-action-trigger {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #c8d0d8;
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.staff-action-trigger:hover,
.staff-action-trigger[aria-expanded="true"] {
  border-color: rgba(205, 48, 55, 0.28);
  background: rgba(205, 48, 55, 0.1);
  color: #ffc1c3;
}
.staff-action-trigger:focus-visible,
.staff-actions-menu button:focus-visible,
.staff-dialog-close:focus-visible {
  outline: 2px solid #f14d54;
  outline-offset: 2px;
}
.staff-actions-menu {
  position: fixed;
  z-index: 1100;
  min-width: 168px;
  padding: 5px;
  border: 1px solid rgba(205, 48, 55, 0.22);
  border-radius: 10px;
  background: #13191f;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5);
}
.staff-actions-menu[hidden] {
  display: none;
}
.staff-actions-menu button {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #dce2e8;
  font: 600 12px Inter, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}
.staff-actions-menu button:hover,
.staff-actions-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.07);
}
.staff-actions-menu .staff-menu-danger {
  color: #efadad;
}
.staff-actions-menu .staff-menu-danger:hover {
  background: rgba(195, 64, 64, 0.14);
}

/* Fenêtre d'ajout et de modification de fiche. */
.staff-editor-dialog {
  position: fixed;
  inset: 0;
  width: min(94vw, 760px);
  max-width: 760px;
  max-height: min(88dvh, 860px);
  margin: auto;
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(205, 48, 55, 0.27);
  border-radius: 14px;
  background: #0b1015;
  color: #f4f4f2;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}
.staff-editor-dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(3px);
}
.staff-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding-bottom: 16px;
}
.staff-dialog-heading .eyebrow {
  margin-bottom: 6px;
}
.staff-dialog-heading h3 {
  font-size: 22px;
}
.staff-dialog-heading .portal-subtitle {
  margin-top: 3px;
}
.staff-dialog-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #151c23;
  color: #d9dfe5;
  font-size: 26px;
  cursor: pointer;
}
.staff-dialog-close:hover {
  border-color: rgba(205, 48, 55, 0.45);
  color: #fff;
}
.staff-editor-dialog .staff-form {
  margin: 0;
  padding: 18px 0 0;
  border: 0;
  background: transparent;
}
.staff-editor-dialog .staff-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 620px) {
  .staff-editor-dialog {
    width: calc(100vw - 22px);
    max-height: 92dvh;
    padding: 16px;
  }
  .staff-editor-dialog .staff-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .staff-editor-dialog .admin-save-row > button {
    flex: 1 1 140px;
  }
}
@media (forced-colors: active) {
  .staff-actions-menu,
  .staff-editor-dialog {
    border: 1px solid CanvasText;
  }
}


/* ================================================
   ARÈS SECURITY | IDENTITÉ NOIR / ROUGE
   Les éléments fonctionnels, données et formulaires
   existants restent inchangés.
   ================================================ */
:root {
  color-scheme: dark;
  --bg: #07080a;
  --panel: #0e1115;
  --panel2: #15191e;
  --text: #f4f3f3;
  --muted: #a7a9af;
  --line: rgba(234, 237, 242, .105);
  --gold: #e14a52; /* compatibilité avec les anciens composants */
  --silver: #e5e7ea;
  --silver2: #9b9fa6;
  --ares-red: #d02e38;
  --ares-red-light: #f05c62;
  --ares-red-dark: #8e1921;
  --ares-line: rgba(211, 55, 63, .3);
  --shadow: 0 22px 58px rgba(0, 0, 0, .48);
}
html { scrollbar-color: #542229 #0d0f13; }
body { background: #07080a; }
::selection { background: #a92e3c; color: white; }
:focus-visible { outline: 2px solid #f05c62; outline-offset: 3px; }
:where(input, textarea, select, button) { accent-color: #d53a43; }

/* En-tête sobre, séparation rouge discrète. */
.site-header {
  background: rgba(7, 8, 11, .94);
  border-bottom: 1px solid rgba(217, 68, 75, .16);
  box-shadow: 0 8px 35px rgba(0, 0, 0, .32);
}
.site-header::before {
  background: linear-gradient(90deg, transparent 12%, rgba(211, 53, 62, .75) 49%, transparent 88%);
}
.brand::after { background: rgba(201, 37, 49, .24); }
.brand img { filter: drop-shadow(0 4px 10px rgba(197, 23, 39, .19)); }
.brand:hover img { filter: drop-shadow(0 5px 18px rgba(197, 23, 39, .37)); }
.nav a:hover, .nav a:focus-visible { color: #fff; }
.nav a:hover::after, .nav a:focus-visible::after { background: #d53a43; }
.nav-cta, .header-direction-link, .header-login-link { border-color: rgba(218, 64, 74, .25); }
.nav-cta:hover, .header-direction-link:hover, .header-login-link:hover { border-color: #d43a42; }

/* Accueil : le nouveau blason reste décoratif, les contenus demeurent lisibles. */
.hero { min-height: min(900px, 94svh); isolation: isolate; }
.hero-bg {
  background:
    radial-gradient(ellipse at 78% 44%, rgba(151, 22, 34, .18), transparent 42%),
    radial-gradient(ellipse at 15% 93%, rgba(114, 22, 30, .105), transparent 45%),
    linear-gradient(125deg, #06070a 0%, #111014 60%, #070709 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 7% 1% 0 52%;
  background: url('assets/ares-security-logo.png') center / contain no-repeat;
  opacity: .19;
  filter: saturate(.92) drop-shadow(0 0 35px rgba(200, 35, 43, .2));
  pointer-events: none;
}
.hero-bg::after { opacity: .11; }
.hero-content { max-width: 760px; }
.hero h1 { text-wrap: balance; }
h1 span, h2 span, .portal-title span { color: #f06970; }
.eyebrow { color: #ef7f83; }
.eyebrow::before { color: #d63a43; }
.hero .eyebrow { letter-spacing: .28em; }
.hero-actions { gap: 12px; }
.btn, .admin-save-btn, .admin-logout, .portal-tab, .discord-login-btn {
  transition: background-color .2s ease, border-color .2s ease,
              box-shadow .2s ease, color .2s ease, transform .2s ease;
}
.btn-primary, .admin-save-btn {
  background: linear-gradient(135deg, #d33843, #a71d2b);
  border: 1px solid rgba(255, 142, 146, .22);
  color: #fff;
  box-shadow: 0 6px 22px rgba(138, 22, 33, .21);
}
.btn-primary:hover, .admin-save-btn:hover {
  background: linear-gradient(135deg, #ed4d56, #b72733);
  box-shadow: 0 9px 26px rgba(171, 26, 39, .3);
}
.btn-ghost:hover, .btn-discord:hover { border-color: rgba(241, 100, 105, .48); }
.trust-row { border-top-color: rgba(225, 70, 79, .28); }
.trust-row strong { color: #f6f4f4; }
.trust-row small { color: #a6a4a7; }

/* Même univers graphique sur les sections auparavant très claires. */
.intro, .contact-section {
  background: linear-gradient(145deg, #111216, #0b0c0f);
  color: var(--text);
  border-block: 1px solid rgba(209, 48, 59, .15);
}
.intro p, .contact-section p, .contact-note { color: #aeb0b6; }
.intro .eyebrow, .contact-section .eyebrow { color: #f0787f; }
.contact-section .btn-ghost { color: #fff; border-color: rgba(236, 239, 243, .34); }
.contact-section .btn-ghost:hover { border-color: #d43a42; }
.discord-card { background: #15161b; border-color: rgba(211, 55, 63, .23); }
.discord-card span { color: #b5b7bd; }
.discord-icon { border-color: rgba(223, 64, 74, .4); }
.dark-section, .faq-section, .recruitment-form-section { background: #090a0d; }
.recruitment { background: linear-gradient(115deg, #090a0d, #151014, #090a0d); }
.recruit-box { border-color: rgba(209, 51, 61, .23); }

/* Cartes et blocs : structure neutre, trait d'accent au survol. */
.service-card, .partner-card, .access-choice-card,
.security-panel, .mission-form-shell, .quote-box,
.portal-card, .compta-box, .scenario {
  background: linear-gradient(150deg, rgba(25, 27, 33, .95), rgba(11, 12, 16, .98));
  border-color: rgba(237, 238, 242, .095);
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #d33540, rgba(211, 53, 64, 0));
  opacity: .55;
}
.service-card:hover, .partner-card:hover, .access-choice-card:hover {
  border-color: rgba(226, 70, 79, .47);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .38);
}
.card-number, .step span { color: #c65960; }
.service-card .icon, .access-choice-icon { color: #eb686f; }
.service-card p, .step p, .lead { color: #a8abb1; }
.security-panel::before { border-color: rgba(215, 57, 67, .25); }
.security-panel img { filter: drop-shadow(0 17px 32px rgba(182, 29, 41, .17)); }
.citizen-entry, .partner-summary-card { border-color: rgba(222, 69, 78, .17); }
.citizen-entry:hover { border-color: rgba(222, 69, 78, .5); }
.citizen-entry-icon, .access-choice-icon { border-color: rgba(222, 69, 78, .38); }

/* Espaces privés : onglets, formulaires, menus et fenêtres. */
.admin-page, .recruitment-page { background: #08090c; }
.admin-page .portal-shell, .portal-shell { color: #f4f3f3; }
.portal-tabs { border-bottom-color: rgba(214, 57, 65, .24); }
.portal-tab.active, .portal-tab[aria-selected='true'],
.compta-filter-btn.active { border-color: rgba(225, 70, 78, .56); color: #fff; }
.admin-control, .field input, .field select, .field textarea,
.mission-form input, .mission-form select, .mission-form textarea {
  background-color: #111419;
  border-color: rgba(225, 226, 232, .15);
  color: #f5f5f6;
}
.admin-control:focus, .field input:focus, .field select:focus,
.field textarea:focus, .mission-form input:focus, .mission-form select:focus,
.mission-form textarea:focus {
  border-color: #d54851;
  box-shadow: 0 0 0 3px rgba(214, 58, 67, .12);
}
.admin-save-btn, .admin-page .admin-save-btn { color: #fff; }
.staff-editor-dialog {
  background: #101216;
  border-color: rgba(218, 62, 73, .35);
}
.staff-action-trigger:hover, .staff-action-trigger[aria-expanded='true'],
.staff-actions-menu button:hover { border-color: rgba(220, 64, 74, .32); }
.staff-actions-menu { background: #14171c; border-color: rgba(220, 64, 74, .3); }
.staff-dialog-close:hover { border-color: #d43a42; }
.quote-pdf-drop:hover, .quote-pdf-drop.dragover { border-color: #d43a42; }
.recruitment-page .field input:focus, .recruitment-page .field select:focus,
.recruitment-page .field textarea:focus {
  border-color: #e35a63;
  box-shadow: 0 0 0 3px rgba(211, 52, 63, .14);
}

/* Discrétion des barres, tout en conservant leur accessibilité. */
:where(html, body, div, section, main, article, aside, dialog, textarea) {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 53, 63, .56) rgba(13, 15, 19, .6);
}
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #101115; }
::-webkit-scrollbar-thumb {
  border: 1px solid #14151a;
  border-radius: 9px;
  background: #713039;
}
::-webkit-scrollbar-thumb:hover { background: #c84650; }

@media (max-width: 900px) {
  .hero { min-height: 70svh; }
  .hero-bg::before { inset: 15% -12% 6% 34%; opacity: .11; }
  .nav { background: rgba(9, 10, 13, .98); border-bottom-color: #59242b; }
}
@media (max-width: 560px) {
  .hero { padding-top: 116px; }
  .hero-bg::before { inset: 15% -42% 10% 12%; opacity: .09; }
  .hero-actions > a { width: 100%; }
  .service-card { min-height: 250px; }
  .intro, .contact-section { padding-block: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card, .btn, .brand img { transition-duration: .01ms; }
}

/* Connexion Discord conservée, mais intégrée à la charte Arès. */
.discord-portal-btn, .discord-login-btn {
  background: linear-gradient(115deg, #242026, #141317);
  border: 1px solid rgba(221, 66, 77, .5);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .3);
}
.discord-portal-btn:hover, .discord-login-btn:hover {
  background: linear-gradient(115deg, #311a21, #1b151a);
  border-color: rgba(239, 87, 95, .78);
  box-shadow: 0 12px 30px rgba(139, 29, 42, .19);
}
.discord-access-panel {
  border-color: rgba(220, 61, 71, .28);
  background: linear-gradient(145deg, rgba(148, 31, 42, .12), rgba(10, 12, 16, .68));
}
.discord-access-icon, .discord-portal-icon { border-color: rgba(220, 61, 71, .45); color: #f18b91; }
