:root {
  --primary: #1678eb;
  --primary-dark: #0d4ea2;
  --gold: #f4c400;
  --gold-dark: #d5a900;
  --text: #182433;
  --muted: #66758a;
  --white: #ffffff;
  --bg: #f4f7fb;
  --soft: #edf2f7;
  --dark: #0f1724;
  --border: rgba(14, 25, 40, 0.08);
  --shadow: 0 14px 36px rgba(10, 25, 50, 0.10);
  --shadow-lg: 0 24px 70px rgba(10, 25, 50, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1400px, calc(100% - 20px));
  margin: 0 auto;
}

/* =========================
   TOPBAR
========================= */
.topbar {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}

/* =========================
   HEADER / NAV
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.nav {
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 1;
}

.site-logo {
  width: 220px;
  height: 120px;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  display: block;
  flex-shrink: 0;
}

.brand-fallback {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: none;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
  margin-left: 10px;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  padding: 14px 24px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.small {
  padding: 12px 18px;
  border-radius: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #11315b;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 90px 0;
}

.section-light {
  background: var(--bg);
}

.section-tag {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
}

.section-tag-light {
  color: var(--gold);
}

/* =========================
   HERO
========================= */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 110px 0 70px;
  min-height: 430px;
  background: #0f1724;
}

.project-page-hero {
  position: relative;
}

.project-hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 0.9s ease;
  transform: scale(1.02);
}

.project-hero-slide.is-active {
  opacity: 1;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 23, 36, 0.86) 0%, rgba(15, 23, 36, 0.68) 42%, rgba(15, 23, 36, 0.56) 100%),
    radial-gradient(circle at top left, rgba(244, 196, 0, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(22, 120, 235, 0.12), transparent 20%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.20);
}

.project-hero-lead {
  margin: 0;
  max-width: 760px;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.20);
}

.project-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.project-breadcrumb a {
  color: rgba(255, 255, 255, 0.90);
}

.project-breadcrumb a:hover {
  color: #fff;
}

.project-hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.project-hero-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.38);
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-hero-dot.is-active {
  background: var(--gold);
  transform: scale(1.12);
}

/* =========================
   INTRO / PREP
========================= */
.project-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 34px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.project-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(244, 196, 0, 0.10), transparent 22%),
    radial-gradient(circle at bottom right, rgba(22, 120, 235, 0.10), transparent 28%);
  pointer-events: none;
}

.project-intro > * {
  position: relative;
  z-index: 2;
}

.project-intro-left h2 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.project-intro-left p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.project-intro-right {
  display: grid;
  gap: 14px;
}

.project-intro-badge {
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7faff, #eef5fd);
  border: 1px solid rgba(22, 120, 235, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-intro-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.project-intro-badge strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 18px;
}

.project-intro-badge span {
  color: var(--muted);
  font-size: 14px;
}

.project-prep-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.project-prep-card {
  background: #fff;
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 25, 40, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-prep-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.project-prep-card h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 22px;
}

.project-prep-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.project-prep-list li + li {
  margin-top: 10px;
}

/* =========================
   LAYOUT FORM
========================= */
.project-submit-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
}

.project-main-card,
.project-side-card {
  background: #fff;
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 25, 40, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-main-card:hover,
.project-side-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.project-main-card {
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.project-main-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(22, 120, 235, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(244, 196, 0, 0.10), transparent 26%);
  pointer-events: none;
}

.project-main-card > * {
  position: relative;
  z-index: 2;
}

/* =========================
   HEAD FORM
========================= */
.project-card-head {
  margin-bottom: 24px;
}

.project-card-head-strong {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(14, 25, 40, 0.08);
}

.project-card-head-mark {
  width: 14px;
  height: 68px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--primary));
  box-shadow: 0 0 0 8px rgba(22, 120, 235, 0.06);
  flex-shrink: 0;
}

.project-card-head h3 {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 30px;
  line-height: 1.2;
}

.project-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================
   FORM
========================= */
.project-form-pro {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row-pro {
  display: grid;
  gap: 18px;
}

.two-columns-pro {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
}

.form-section-title span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 0 0 6px rgba(244, 196, 0, 0.12);
  flex-shrink: 0;
}

.form-section-title h4 {
  margin: 0;
  color: var(--primary);
  font-size: 20px;
  letter-spacing: 0.01em;
}

.input-group-pro label,
.carrier-photo-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}

.input-group-pro input,
.input-group-pro select,
.input-group-pro textarea {
  width: 100%;
  padding: 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fcfdff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group-pro input:focus,
.input-group-pro select:focus,
.input-group-pro textarea:focus {
  border-color: rgba(22, 120, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(22, 120, 235, 0.08);
}

.input-group-pro textarea {
  resize: vertical;
  min-height: 120px;
}

.field-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   PHOTO PORTEUR
========================= */
.carrier-profile-box-pro {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 20px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(244, 196, 0, 0.08), transparent 26%),
    linear-gradient(135deg, #ffffff, #eef5fd);
  border: 1px solid rgba(22, 120, 235, 0.08);
}

.carrier-photo-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carrier-photo-preview-pro {
  width: 100%;
  min-height: 280px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(244, 196, 0, 0.10), transparent 25%),
    linear-gradient(135deg, #ffffff, #eef5fd);
  border: 1px dashed rgba(22, 120, 235, 0.18);
  box-shadow: inset 0 0 0 1px rgba(22, 120, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carrier-photo-preview-pro span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.carrier-photo-preview-pro img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.carrier-fields-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================
   FILE BOXES
========================= */
.upload-box-pro {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #f3f8ff);
  border: 1px dashed rgba(22, 120, 235, 0.20);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.upload-box-pro:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* =========================
   SUBMIT BAR
========================= */
.project-submit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 25, 40, 0.08);
}

.project-submit-note {
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-feedback {
  margin: 0;
  font-weight: 600;
}

.form-feedback.info {
  color: #35506e;
}

.form-feedback.success {
  padding: 12px 14px;
  color: #08743e;
  background: #dcf8e9;
  border: 1px solid rgba(8, 116, 62, 0.18);
  border-radius: 14px;
}

.form-feedback.error {
  padding: 12px 14px;
  color: #a53b3b;
  background: #ffe3e3;
  border: 1px solid rgba(165, 59, 59, 0.18);
  border-radius: 14px;
}

.btn:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

/* =========================
   SIDE CARD
========================= */
.project-side-card {
  padding: 24px 22px;
  position: sticky;
  top: 110px;
}

.side-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(22, 120, 235, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.project-side-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 24px;
}

.project-side-card p {
  margin-top: 0;
  color: var(--muted);
}

.project-side-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.project-side-item {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7faff, #eef5fd);
  border: 1px solid rgba(22, 120, 235, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-side-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.project-side-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.project-side-item span {
  color: var(--muted);
  font-size: 14px;
}

.project-side-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(244, 196, 0, 0.12), rgba(22, 120, 235, 0.08));
  border: 1px solid rgba(244, 196, 0, 0.18);
}

.project-side-note h4 {
  margin: 0 0 8px;
  color: var(--primary);
}

.project-side-note p {
  margin: 0;
  color: var(--muted);
}

/* =========================
   FOOTER CLAIR
========================= */
.footer {
  margin-top: auto;
  background: #eef3f8;
  color: #2f3b4a;
  padding: 32px 0 14px;
  border-top: 1px solid rgba(14, 25, 40, 0.08);
}

.footer-main {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #1f73df;
}

.footer-brand-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #607189;
  max-width: 240px;
}

.footer-column h4 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  color: #6f6889;
  text-transform: uppercase;
}

.footer-column p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #2f3b4a;
}

.footer-column a {
  color: #2f3b4a;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #1678eb;
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(14, 25, 40, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: #607189;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   REVEAL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1180px) {
  .project-intro,
  .project-submit-layout {
    grid-template-columns: 1fr;
  }

  .project-prep-layout {
    grid-template-columns: 1fr;
  }

  .project-side-card {
    position: static;
  }

  .nav {
    min-height: 108px;
    padding: 8px 0;
  }

  .site-logo {
    width: 180px;
    height: 96px;
  }

  .brand-text {
    margin-left: 8px;
  }

  .nav-links {
    gap: 18px;
  }

  .footer-main {
    grid-template-columns: 240px 1fr 1fr;
  }

  .footer-column:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 920px) {
  .carrier-profile-box-pro {
    grid-template-columns: 1fr;
  }

  .carrier-photo-preview-pro,
  .carrier-photo-preview-pro img {
    min-height: 220px;
  }

  .nav {
    min-height: 96px;
    padding: 8px 0;
  }

  .site-logo {
    width: 150px;
    height: 82px;
  }

  .brand-text {
    margin-left: 6px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 13px;
    max-width: 260px;
    white-space: normal;
    line-height: 1.25;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(22, 120, 235, 0.06);
  }

  .nav-links a::after {
    display: none;
  }

  .page-hero {
    padding: 90px 0 56px;
    min-height: 390px;
  }

  .project-hero-overlay {
    background:
      linear-gradient(180deg, rgba(15, 23, 36, 0.78) 0%, rgba(15, 23, 36, 0.60) 50%, rgba(15, 23, 36, 0.56) 100%);
  }

  .project-hero-slide {
    background-position: center top;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .two-columns-pro {
    grid-template-columns: 1fr;
  }

  .project-intro,
  .project-main-card,
  .project-side-card,
  .project-prep-card {
    padding: 20px 18px;
  }

  .project-card-head-strong {
    flex-direction: column;
  }

  .project-card-head-mark {
    width: 68px;
    height: 14px;
  }

  .project-submit-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-card-head h3,
  .project-side-card h3 {
    font-size: 24px;
  }

  .project-intro-left h2 {
    font-size: 28px;
  }

  .project-hero-lead {
    font-size: 16px;
  }

  .page-hero {
    padding: 78px 0 46px;
    min-height: 350px;
  }

  .project-hero-dots {
    margin-top: 18px;
  }

  .footer {
    padding: 26px 0 14px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-logo {
    width: 110px;
    height: 110px;
  }

  .footer-brand-title {
    font-size: 20px;
  }

  .footer-column h4 {
    font-size: 16px;
  }

  .footer-column p,
  .footer-bottom p {
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1240px, calc(100% - 14px));
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0;
  }

  .nav {
    min-height: 84px;
    padding: 6px 0;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .site-logo {
    width: 118px;
    height: 64px;
  }

  .brand-text {
    margin-left: 4px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
    max-width: 150px;
    white-space: normal;
    line-height: 1.25;
  }

  .section {
    padding: 68px 0;
  }

  .page-hero {
    padding: 68px 0 42px;
    min-height: 320px;
  }

  .page-hero h1 {
    font-size: clamp(30px, 10vw, 48px);
  }

  .project-breadcrumb {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .project-hero-lead {
    line-height: 1.7;
  }

  .project-hero-dot {
    width: 12px;
    height: 12px;
  }

  .carrier-photo-preview-pro,
  .carrier-photo-preview-pro img {
    min-height: 200px;
  }
}

@media (max-width: 420px) {
  .site-logo {
    width: 104px;
    height: 58px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 10px;
    max-width: 130px;
  }

  .project-hero-lead {
    font-size: 15px;
  }

  .page-hero {
    padding: 60px 0 36px;
    min-height: 290px;
  }

  .footer-logo {
    width: 96px;
    height: 96px;
  }

  .footer-brand-title {
    font-size: 18px;
  }
}


/* =========================================================
   FNRSIT - NAVIGATION PREMIUM : SURVOL + CLIC ACTIF
   Ajouté pour donner un vrai fond visuel aux boutons du menu.
========================================================= */
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-links a::after {
  display: none !important;
}

.nav-links a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 120, 235, 0.26);
}

.nav-links a:active {
  transform: translateY(0) scale(0.97);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: #11315b;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 12px 28px rgba(244, 196, 0, 0.28);
}

.nav-links a:focus-visible {
  outline: none;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 0 4px rgba(22, 120, 235, 0.18);
}

@media (max-width: 920px) {
  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 15px;
    border-radius: 14px;
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-links a[aria-current="page"] {
    transform: translateX(4px);
  }
}


/* =========================================================
   FNRSIT - EFFETS PREMIUM : DÉPÔT DE PROJETS
========================================================= */
.project-intro,
.project-prep-card,
.project-main-card,
.project-side-card,
.project-side-item,
.upload-box-pro,
.project-intro-badge {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.project-prep-card::before,
.project-side-card::before,
.project-main-card::after,
.project-intro::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at top left, rgba(244, 196, 0, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(22, 120, 235, 0.14), transparent 36%);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project-prep-card > *,
.project-side-card > *,
.project-main-card > *,
.project-intro > * {
  position: relative;
  z-index: 2;
}

.project-intro:hover,
.project-prep-card:hover,
.project-side-card:hover,
.project-main-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 28px 70px rgba(10, 25, 50, 0.20);
  border-color: rgba(22, 120, 235, 0.22);
}

.project-prep-card:hover::before,
.project-side-card:hover::before,
.project-main-card:hover::after,
.project-intro:hover::after {
  opacity: 1;
}

.project-side-item:hover,
.project-intro-badge:hover,
.upload-box-pro:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 18px 40px rgba(10, 25, 50, 0.14);
  border-color: rgba(22, 120, 235, 0.22);
}

.project-card-head-mark,
.form-section-title span,
.carrier-photo-preview-pro,
.btn {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

.project-main-card:hover .project-card-head-mark,
.project-main-card:hover .form-section-title span {
  transform: scale(1.08);
  box-shadow: 0 0 0 10px rgba(244, 196, 0, 0.14);
}

.project-main-card:hover .carrier-photo-preview-pro {
  box-shadow: inset 0 0 0 1px rgba(22, 120, 235, 0.18), 0 18px 42px rgba(10, 25, 50, 0.10);
}

.project-submit-bar .btn:hover,
.project-hero-dot:hover {
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 760px) {
  .project-intro:hover,
  .project-prep-card:hover,
  .project-side-card:hover,
  .project-main-card:hover {
    transform: translateY(-7px) scale(1.01);
  }
}

/* Site-wide mobile fixes for project pages */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 24px, 100%) !important;
  }

  .nav {
    min-height: auto !important;
    padding: 10px 0 !important;
    align-items: center !important;
  }

  .brand {
    max-width: calc(100% - 58px);
  }

  .site-logo {
    width: min(150px, 42vw) !important;
    height: auto !important;
  }

  .brand-text {
    min-width: 0;
  }

  .page-hero {
    min-height: auto !important;
    padding: 76px 0 58px !important;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.7rem) !important;
  }

  .project-intro,
  .project-prep-layout,
  .project-submit-layout,
  .form-row-pro,
  .upload-box-pro,
  .footer-main {
    grid-template-columns: 1fr !important;
  }

  .project-main-card,
  .project-side-card,
  .project-prep-card,
  .project-intro,
  .upload-box-pro {
    width: 100%;
    max-width: 100%;
  }

  .form-actions,
  .project-submit-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn,
  .project-submit-bar .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 18px, 100%) !important;
  }

  .site-logo {
    width: min(118px, 36vw) !important;
  }

  .project-main-card,
  .project-side-card,
  .project-prep-card,
  .project-intro {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  input,
  textarea,
  select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }
}

