:root {
  --ink-950: #142033;
  --ink-900: #1d2d45;
  --ink-800: #2d425f;
  --ink-700: #4e6687;
  --sand-100: #f5f4f0;
  --sand-200: #ece8df;
  --sand-300: #d6cfbf;
  --gold-500: #a77a3f;
  --gold-600: #8d6532;
  --mint-100: #dce6e3;
  --mint-500: #466c63;
  --white: #ffffff;
  --text: #415167;
  --text-soft: #6b7c92;
  --line: rgba(20, 32, 51, 0.12);
  --line-strong: rgba(20, 32, 51, 0.22);
  --shadow-sm: 0 8px 24px rgba(20, 32, 51, 0.05);
  --shadow-md: 0 18px 44px rgba(20, 32, 51, 0.08);
  --shadow-lg: 0 28px 70px rgba(20, 32, 51, 0.11);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1240px;
  --font-body: "Manrope", sans-serif;
  --font-display: "Libre Baskerville", serif;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #f8f7f4 0%, #f2f0eb 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  color: var(--ink-950);
  line-height: 1.08;
}

h1,
h2,
.section-title,
.hero-title,
.page-hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1,
.hero-title {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

h2,
.section-title,
.page-hero-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.text-gold {
  color: var(--gold-500) !important;
}

.text-muted {
  color: var(--text-soft) !important;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 4rem 0;
}

.section-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-header.centered {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow,
.section-tag,
.hero-badge,
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-900);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-subtitle,
.hero-subtitle,
.page-hero-subtitle {
  max-width: 48rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.btn-primary,
.btn-navy {
  background: var(--ink-950);
  color: var(--white);
  box-shadow: none;
}

.btn-primary:hover,
.btn-navy:hover {
  background: var(--ink-900);
  color: var(--white);
}

.btn-gold {
  background: var(--gold-500);
  color: var(--white);
  box-shadow: none;
}

.btn-gold:hover {
  background: var(--gold-600);
  color: var(--white);
}

.btn-outline,
.btn-outline-navy,
.btn-outline-white {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink-950);
}

/* Indicateur d’état (accès réservé) dans la navbar */
.private-access {
  position: relative;
  padding-right: 1.35rem;
}

.private-access .private-dot {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(20, 32, 51, 0.25);
}

.private-access.is-online .private-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.btn-outline:hover,
.btn-outline-navy:hover,
.btn-outline-white:hover {
  border-color: var(--ink-950);
  background: var(--ink-950);
  color: var(--white);
}

.btn-lg {
  min-height: 3.6rem;
  padding-inline: 1.6rem;
}

.w-100 {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.65rem 0;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  background: rgba(248, 247, 244, 0.92);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled::before {
  background: rgba(248, 247, 244, 0.98);
  border-color: rgba(20, 32, 51, 0.08);
  box-shadow: 0 10px 30px rgba(20, 32, 51, 0.05);
}

.site-header .container {
  position: relative;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.navbar-brand-header {
  gap: 0;
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  line-height: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12rem;
  height: 4.75rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-name {
  color: var(--ink-950);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-suffix {
  color: var(--gold-500);
  font-size: 1.5rem;
  font-weight: 500;
}

.brand-tagline {
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(16, 25, 43, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-950);
}

.nav-toggle i:last-child,
.nav-toggle[aria-expanded="true"] i:first-child {
  display: none;
}

.nav-toggle[aria-expanded="true"] i:last-child {
  display: inline-block;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  color: var(--ink-900);
  font-size: 0.93rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(20, 32, 51, 0.06);
  color: var(--ink-950);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.main-content {
  display: grid;
  gap: 0;
}

.hero {
  position: relative;
  padding: 2.25rem 0 4.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
}

.hero-title {
  max-width: 14ch;
}

.hero .hero-title {
  font-size: clamp(2.05rem, 4vw, 3.9rem);
  line-height: 1.03;
  max-width: 18ch;
}

.hero-subtitle {
  max-width: 40rem;
  font-size: 1.1rem;
}

.hero .hero-subtitle {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  max-width: 44rem;
}

.hero-actions,
.stacked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.proof-card,
.surface-card,
.metric-card,
.service-card,
.timeline-card,
.award-card,
.job-card,
.contact-card,
.sidebar-card,
.process-card,
.info-card,
.empty-state,
.stat-band,
.feature-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 32, 51, 0.08);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
}

.proof-card {
  padding: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.proof-value {
  color: var(--ink-950);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
}

.proof-label {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 100%;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(20, 32, 51, 0.98), rgba(29, 45, 69, 0.98));
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-visual-image {
  margin: -0.75rem -0.75rem 0;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-visual-image img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  opacity: 0.92;
}

.hero-panel h2,
.hero-panel h3,
.hero-panel p,
.hero-panel li,
.hero-panel strong {
  color: var(--white);
}

.hero-panel h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

.hero-panel-list {
  display: grid;
  gap: 0.9rem;
}

.hero-panel-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.8rem;
  align-items: start;
}

.hero-panel-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  color: #e3c18d;
}

.hero-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-anchor span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.stat-band {
  margin-top: 2.5rem;
  padding: 1.25rem;
}

.stat-grid,
.grid-2,
.grid-3,
.grid-4,
.service-grid,
.jobs-grid,
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.service-grid,
.jobs-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 1.25rem;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
}

.metric-card strong {
  display: block;
  margin-bottom: 0;
  color: var(--ink-950);
  font-size: 1.75rem;
}

.metric-card span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.split-layout,
.content-layout,
.contact-layout,
.jobs-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.surface-card {
  padding: 2rem;
}

.image-panel {
  overflow: hidden;
}

.image-panel-media,
.service-media {
  margin: -2rem -2rem 1.5rem;
  overflow: hidden;
}

.image-panel-media img,
.service-media img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.surface-card.dark {
  background: linear-gradient(180deg, rgba(20, 32, 51, 0.97), rgba(29, 45, 69, 0.97));
  color: var(--white);
}

.surface-card.dark h2,
.surface-card.dark h3,
.surface-card.dark p,
.surface-card.dark li {
  color: var(--white);
}

.feature-list,
.check-list,
.meta-list,
.job-meta,
.footer-links,
.footer-contact,
.timeline-list,
.value-list {
  display: grid;
  gap: 1rem;
}

.feature-list li,
.check-list li,
.job-meta li,
.meta-list li,
.footer-contact li,
.value-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.feature-list i,
.check-list i,
.job-meta i,
.meta-list i,
.footer-contact i,
.value-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(184, 138, 68, 0.14);
  color: var(--gold-600);
}

.story-rail {
  position: relative;
  padding-left: 1.5rem;
}

.story-rail::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-500), rgba(184, 138, 68, 0.18));
}

.story-step {
  position: relative;
  padding: 0 0 1.6rem 1.5rem;
}

.story-step::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 0.4rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(184, 138, 68, 0.12);
}

.story-step:last-child {
  padding-bottom: 0;
}

.story-step time,
.timeline-date,
.award-year,
.service-number {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--gold-600);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-grid .service-card,
.jobs-grid .job-card,
.card-grid .surface-card {
  height: 100%;
}

.service-card,
.job-card,
.award-card,
.process-card,
.contact-card,
.sidebar-card,
.info-card,
.empty-state {
  padding: 1.65rem;
}

.timeline-card {
  padding: 1.65rem;
  display: grid;
  gap: 0.75rem;
}

.timeline-card h3 {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .timeline-card {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }
}
.service-card {
  display: grid;
  gap: 1rem;
}

.service-card .section-title {
  font-size: clamp(1.6rem, 2.2vw, 2.35rem);
  line-height: 1.06;
  margin-bottom: 0.25rem;
  overflow-wrap: anywhere;
  word-break: normal;
}

.service-card p {
  font-size: 0.98rem;
  line-height: 1.65;
}

.service-media {
  border-bottom: 1px solid var(--line);
}

.service-media img {
  height: 13rem;
}

.service-card-icon,
.process-icon,
.contact-icon,
.info-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(20, 32, 51, 0.98), rgba(45, 66, 95, 0.98));
  color: var(--white);
  box-shadow: none;
}

.service-card-title,
.job-card-title,
.award-title,
.process-title,
.contact-card h3,
.sidebar-title {
  margin-bottom: 0.4rem;
}

.service-card-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-900);
  font-weight: 600;
}

.service-card-link:hover,
.text-link:hover {
  color: var(--gold-600);
}

.quote-block {
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(245, 244, 240, 0.95);
}

.quote-block p:last-child {
  margin-bottom: 0;
}

.page-hero {
  padding: 5rem 0 2rem;
}

.page-hero-shell {
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20, 32, 51, 0.98), rgba(29, 45, 69, 0.98));
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.page-hero-title,
.page-hero-subtitle,
.page-hero-shell p,
.page-hero-shell li,
.page-hero-shell a {
  color: var(--white);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.breadcrumbs span {
  opacity: 0.7;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.page-hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.filters-panel {
  padding: 1.6rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr)) auto;
  gap: 1rem;
  align-items: end;
}

.filter-field {
  display: grid;
  gap: 0.45rem;
}

.filter-field label {
  color: var(--ink-900);
  font-size: 0.86rem;
  font-weight: 600;
}

.form-control,
.form-select,
.search-field {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(16, 25, 43, 0.12);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink-950);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-control:focus,
.form-select:focus,
.search-field:focus {
  outline: 0;
  border-color: rgba(184, 138, 68, 0.8);
  box-shadow: 0 0 0 4px rgba(184, 138, 68, 0.12);
  background: var(--white);
}

textarea.form-control {
  min-height: 10rem;
  resize: vertical;
}

.search-wrap {
  position: relative;
}

.search-wrap i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-soft);
}

.search-wrap .search-field {
  padding-left: 2.9rem;
}

.jobs-results {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-tag,
.job-badge,
.job-contract-badge,
.job-remote-badge,
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.job-badge {
  background: rgba(16, 25, 43, 0.08);
  color: var(--ink-900);
}

.job-contract-badge {
  background: rgba(45, 122, 99, 0.12);
  color: var(--mint-500);
}

.job-remote-badge,
.filter-tag,
.badge-soft {
  background: rgba(184, 138, 68, 0.12);
  color: var(--gold-600);
}

.job-card {
  display: grid;
  gap: 1rem;
}

.job-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.job-card-title a:hover {
  color: var(--gold-600);
}

.job-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.deadline-note {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.empty-state {
  text-align: center;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(16, 25, 43, 0.08);
  color: var(--ink-900);
  font-size: 1.4rem;
}

.detail-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
}

.content-stack,
.sidebar-stack {
  display: grid;
  gap: 1.5rem;
}

.job-richtext > *:last-child {
  margin-bottom: 0;
}

.sidebar-card.sticky {
  position: sticky;
  top: 7rem;
}

.sidebar-list {
  display: grid;
  gap: 0.9rem;
}

.sidebar-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.sidebar-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sidebar-label {
  color: var(--text-soft);
}

.sidebar-value {
  color: var(--ink-950);
  font-weight: 600;
  text-align: right;
}

.share-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-link,
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-900);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.share-link:hover,
.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--white);
}

.contact-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.contact-rail {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: grid;
  gap: 0.75rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-form-card {
  padding: 2rem;
}

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

.field-span-2 {
  grid-column: 1 / -1;
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

.form-label {
  color: var(--ink-900);
  font-size: 0.86rem;
  font-weight: 600;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: rgba(180, 35, 24, 0.55);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.invalid-feedback {
  color: #b42318;
  font-size: 0.82rem;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: rgba(180, 35, 24, 0.55);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: rgba(45, 122, 99, 0.5);
}

.alert {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(45, 122, 99, 0.1);
  border-color: rgba(45, 122, 99, 0.18);
  color: #155947;
}

.alert-danger {
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.18);
  color: #8e1f15;
}

.btn-close {
  float: right;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: grid;
  gap: 0.75rem;
  width: min(26rem, calc(100vw - 2rem));
  pointer-events: none;
}

.site-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(20, 32, 51, 0.18);
  transform: translateY(10px);
  opacity: 0;
  animation: toast-in 220ms ease forwards;
}

.site-toast.is-leaving {
  animation: toast-out 200ms ease forwards;
}

.site-toast.is-success {
  border-color: rgba(45, 122, 99, 0.22);
}

.site-toast.is-error {
  border-color: rgba(180, 35, 24, 0.22);
}

.site-toast-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 32, 51, 0.06);
  color: var(--ink-950);
}

.site-toast.is-success .site-toast-icon {
  background: rgba(45, 122, 99, 0.12);
  color: #155947;
}

.site-toast.is-error .site-toast-icon {
  background: rgba(180, 35, 24, 0.12);
  color: #8e1f15;
}

.site-toast-title {
  font-weight: 700;
  color: var(--ink-950);
  font-size: 0.95rem;
  line-height: 1.2;
}

.site-toast-message {
  margin-top: 0.25rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.site-toast-close {
  border: 0;
  background: transparent;
  color: rgba(20, 32, 51, 0.55);
  cursor: pointer;
  padding: 0.15rem;
  border-radius: 0.5rem;
}

.site-toast-close:hover {
  background: rgba(20, 32, 51, 0.06);
  color: var(--ink-950);
}

@keyframes toast-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(10px);
    opacity: 0;
  }
}

.cta-banner {
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20, 32, 51, 0.98), rgba(29, 45, 69, 0.98));
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.cta-banner h2,
.cta-banner p {
  color: var(--white);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-shell {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 32, 51, 0.99), rgba(23, 35, 55, 0.99));
  color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-lg);
}

.footer-shell .navbar-brand {
  align-items: flex-start;
  flex-wrap: wrap;
  row-gap: 0.6rem;
}

.footer-shell .navbar-brand > span {
  min-width: 0;
}

/* Marque / texte du footer (fond sombre) */
.footer-shell .brand-name {
  color: var(--white);
}

.footer-shell .brand-tagline {
  color: rgba(255, 255, 255, 0.68);
}

.footer-shell .brand-mark {
  width: 8.5rem;
  height: 3.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 1.5rem;
}

.footer-shell h4,
.footer-shell p,
.footer-shell a,
.footer-shell li {
  color: rgba(255, 255, 255, 0.82);
}

.footer-shell h4 {
  color: var(--white);
  font-size: 1rem;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-legal a:hover {
  color: #f4d8a1;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink-950);
  color: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-layout,
  .content-layout,
  .contact-layout,
  .jobs-layout,
  .detail-layout,
  .footer-grid,
  .filters-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .service-grid,
  .jobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .site-header {
    padding: 0.5rem 0;
  }

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

  .nav-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.5rem;
    background: rgba(250, 248, 243, 0.98);
    border: 1px solid rgba(16, 25, 43, 0.08);
    box-shadow: var(--shadow-lg);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link,
  .nav-actions .btn {
    justify-content: center;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .brand-mark {
    width: 9rem;
    height: 3.7rem;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4rem 0;
  }

  .page-hero {
    padding-top: 4rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .service-grid,
  .jobs-grid,
  .stat-grid,
  .hero-proof,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-shell,
  .hero-panel,
  .surface-card,
  .service-card,
  .job-card,
  .contact-form-card,
  .footer-shell,
  .cta-banner,
  .filters-panel {
    padding: 1.4rem;
  }

  .footer-shell .brand-mark {
    width: 7.25rem;
    height: 2.9rem;
  }

  .footer-shell .brand-lockup {
    flex-wrap: wrap;
    row-gap: 0.15rem;
  }

  .footer-bottom,
  .cta-row,
  .job-card-footer,
  .jobs-results {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar-list li {
    flex-direction: column;
  }

  .sidebar-value {
    text-align: left;
  }

  .image-panel-media,
  .service-media {
    margin: -1.4rem -1.4rem 1.2rem;
  }
}
