/* ==========================================================================
   Éveil Digital & IA — Feuille de style
   Palette identique aux supports Word / PowerPoint du programme.
   ========================================================================== */

:root {
  --navy: #1f3864;
  --deepnavy: #14213d;
  --gold: #c9962b;
  --gold-light: #e4b95c;
  --blue: #2e74b5;
  --white: #ffffff;
  --lightgrey: #eef1f6;
  --card: #f6f7fb;
  --muted: #6b7a99;
  --text: #1b2333;
  --border: #e2e6ef;
  --success: #1f8a55;
  --danger: #b3422f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 33, 61, 0.18);
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Calibri", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Cambria", Georgia, serif;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
  text-decoration: none;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}

.section-light {
  background: var(--white);
}

.section-tint {
  background: var(--lightgrey);
}

.section-dark {
  background: var(--deepnavy);
  color: #cadcfc;
  position: relative;
  overflow: hidden;
}

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--white);
}

.section-header {
  max-width: 720px;
  margin: 0 0 48px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-header .lead {
  font-size: 18px;
  color: var(--muted);
}

.section-dark .section-header .lead {
  color: #a9bcdd;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

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

.btn-primary {
  background: var(--gold);
  color: var(--deepnavy);
  box-shadow: 0 8px 20px rgba(201, 150, 43, 0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: #16294c;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}

.btn-ghost:hover {
  border-color: var(--navy);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Navigation ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(20, 33, 61, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.brand small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: #93a6cc;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #cfdaf3;
  font-size: 14.5px;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--deepnavy);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 16px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: block;
  }
  .nav-cta .btn span {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(1100px 500px at 85% -10%, #1f3864 0%, #14213d 55%), var(--deepnavy);
  color: var(--white);
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(46, 116, 181, 0.35);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  color: var(--white);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero .lead {
  font-size: 19px;
  color: #c3d2ee;
  max-width: 560px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin: 34px 0 38px;
  flex-wrap: wrap;
}

.hero-stat b {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  color: var(--gold);
}

.hero-stat span {
  font-size: 12.5px;
  color: #9fb2d6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(4px);
}

.hero-card h3 {
  color: var(--white);
  font-size: 18px;
}

.hero-card ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: #d3ddf2;
}

.check-badge {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--deepnavy);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ---------- Diagnostic / numbered rows ---------- */

.numbered-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

.numbered-list li {
  display: flex;
  gap: 18px;
}

.num-badge {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
}

.numbered-list h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--navy);
}

.numbered-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Mission pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px;
}

.pillar-card h3 {
  color: var(--gold);
  font-size: 19px;
}

.pillar-card p {
  color: #c3d2ee;
  font-size: 14.5px;
  margin: 0;
}

@media (max-width: 800px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* ---------- Publics cards ---------- */

.public-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.public-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.public-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.public-card .num {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  color: var(--gold);
  font-weight: 700;
}

.public-card h4 {
  font-size: 15.5px;
  color: var(--navy);
  margin: 10px 0 8px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.public-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1000px) {
  .public-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .public-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Stat boxes ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.stat-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
}

.stat-box b {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  color: var(--gold);
}

.stat-box span {
  font-size: 13px;
  color: #d3ddf2;
}

@media (max-width: 800px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Anatomie séance ---------- */

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 40px;
}

.flow-step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 22px;
  border: 1px solid var(--border);
}

.flow-step.active {
  background: var(--gold);
  border-color: var(--gold);
}

.flow-step.active h4, .flow-step.active .flow-time {
  color: var(--deepnavy);
}
.flow-step.active p {
  color: #4a3a12;
}

.flow-time {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--navy);
  font-weight: 700;
}

.flow-step h4 {
  font-size: 16.5px;
  margin: 6px 0 8px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--navy);
}

.flow-step p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.flow-arrow {
  align-self: center;
  font-size: 26px;
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 800px) {
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* ---------- Modules section ---------- */

.skill-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 32px;
}

.skill-panel h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.skill-panel .muted-note {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 20px;
  max-width: 640px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 600;
}

.skill-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: none;
}

.skill-badge {
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.skill-badge.alt {
  background: var(--gold);
  color: var(--deepnavy);
}

@media (max-width: 700px) {
  .skill-grid {
    grid-template-columns: 1fr;
  }
  .skill-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

.modules-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 32px;
}

.modules-toolbar .count {
  font-weight: 700;
  color: var(--navy);
}

.modules-toolbar .count span {
  color: var(--gold);
}

.module-list {
  display: grid;
  gap: 20px;
}

.module-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.module-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 150, 43, 0.18), var(--shadow);
}

.module-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  cursor: pointer;
}

.module-code {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.module-info h3 {
  font-size: 20px;
  margin: 0 0 4px;
}

.module-meta {
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.module-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.module-select {
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-select label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.module-select input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  cursor: pointer;
}

.gap-tag {
  font-size: 11px;
  font-weight: 700;
  background: #fdeee9;
  color: var(--danger);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.module-toggle-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 18px;
  transition: transform 0.2s ease;
  flex: none;
}

.module-card.open .module-toggle-icon {
  transform: rotate(45deg);
}

.module-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.module-card.open .module-body {
  max-height: 3000px;
}

.module-body-inner {
  padding: 26px;
}

.session-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}

.session-row:last-child {
  border-bottom: none;
}

.session-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 13px;
}

.session-row h5 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.session-row .theory {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 8px;
}

.practice-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  background: #fff3de;
  border: 1px solid #f0dcae;
  padding: 5px 11px;
  border-radius: 999px;
}

.practice-tag::before {
  content: "▸";
  color: var(--gold);
}

/* ---------- Quiz modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 40, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.modal h3 {
  font-size: 22px;
}

.modal .modal-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.quiz-question {
  margin-bottom: 22px;
}

.quiz-question p.q-text {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 15px;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
}

.quiz-option:hover {
  border-color: var(--blue);
}

.quiz-option input {
  accent-color: var(--navy);
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.quiz-result {
  text-align: center;
  padding: 10px 0 4px;
}

.quiz-result .result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 30px;
  font-weight: 800;
}

.quiz-result.pass .result-icon {
  background: #e5f6ec;
  color: var(--success);
}

.quiz-result.fail .result-icon {
  background: #fdeee9;
  color: var(--danger);
}

.quiz-result p {
  color: var(--muted);
  font-size: 14.5px;
}

.quiz-result .result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- Compte entreprise (dark, list) ---------- */

.feature-rows {
  display: grid;
  gap: 16px;
}

.feature-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.feature-row .fn {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
}

.feature-row h4 {
  color: var(--white);
  margin: 0 0 4px;
  font-size: 15.5px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.feature-row p {
  margin: 0;
  color: #a9bcdd;
  font-size: 13.5px;
}

/* ---------- Évaluation ---------- */

.eval-list {
  display: grid;
  gap: 20px;
}

.eval-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.eval-row .badge {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.eval-row:nth-child(even) .badge {
  background: var(--navy);
}

.eval-row h4 {
  margin: 0 0 4px;
  font-size: 16.5px;
  color: var(--navy);
}

.eval-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- KPI cards ---------- */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.kpi-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 22px 18px;
}

.kpi-card h4 {
  color: var(--gold);
  font-size: 15px;
  margin: 0 0 8px;
}

.kpi-card p {
  color: #c3d2ee;
  font-size: 12.5px;
  margin: 0;
}

@media (max-width: 1000px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Inscription form ---------- */

.inscription-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

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

.selected-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 96px;
  align-self: start;
}

.selected-summary h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.selected-summary .muted {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 18px;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.selected-tag {
  background: var(--navy);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.selected-tag.gap {
  background: var(--danger);
}

.empty-note {
  font-size: 13.5px;
  color: var(--muted);
  font-style: italic;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 116, 181, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
  display: none;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
}

.field.invalid .field-error {
  display: block;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0;
}

.consent input {
  margin-top: 3px;
  accent-color: var(--navy);
}

.form-msg {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}

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

.form-msg.success {
  background: #e5f6ec;
  color: var(--success);
  border: 1px solid #bfe6cd;
}

.form-msg.error {
  background: #fdeee9;
  color: var(--danger);
  border: 1px solid #f3c9bb;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--deepnavy);
  color: #93a6cc;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer a {
  color: #93a6cc;
  font-size: 13.5px;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 22px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Misc ---------- */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  z-index: 1200;
  transform: translateY(120%);
  transition: transform 0.3s ease;
  max-width: 320px;
}

.toast.show {
  transform: translateY(0);
}

.toast.error {
  background: var(--danger);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

::selection {
  background: var(--gold);
  color: var(--deepnavy);
}
