
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap') ;
:root {
  --navy: #173f72;
  --blue: #2768bd;
  --sky: #eaf3ff;
  --ink: #172b45;
  --muted: #718096;
  --line: #e5ebf2;
  --bg: #fff;
  --green: #16a085;
  --shadow: 0 18px 55px rgba(24,55,91,.10);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: 'DM Sans',sans-serif;
  background: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
button,input,select,textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.topbar {
  height: 82px;
  padding: 0 max(calc((100vw - 1180px)/2),5%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Manrope,sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.8px;
  white-space: nowrap;
}
.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-size: 23px;
  box-shadow: 0 6px 14px #173f7230;
}
.accent {
  color: var(--blue);
}
.brand small {
  display: block;
  font-family: 'DM Sans';
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #8390a1;
  font-weight: 700;
  margin-top: 1px;
}
.topbar nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
  font-weight: 600;
  color: #5e6d80;
}
.topbar nav a:hover {
  color: var(--blue);
}
.nav-actions {
  display: flex;
  gap: 9px;
}
.btn {
  border: 0;
  border-radius: 9px;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: .2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 7px 17px #2768bd25;
}
.btn-light {
  background: #f2f6fb;
  color: #304760;
}
.btn-outline {
  border: 1px solid #d5e0ee;
  color: var(--ink);
  background: white;
}
.btn-white {
  background: #fff;
  color: var(--navy);
}
.btn-lg {
  padding: 15px 20px;
  font-size: 13px;
}
.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
}
.hero {
  max-width: 1180px;
  margin: auto;
  min-height: 520px;
  padding: 70px 10px 62px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 55px;
  align-items: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.65px;
  font-weight: 800;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 7px;
  height: 7px;
  background: #2ebf9f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #dff8f0;
}
.hero h1,.section h2,.benefits h2,.cta h2 {
  font-family: Manrope,sans-serif;
  font-size: 48px;
  line-height: 1.14;
  letter-spacing: -2.2px;
  margin: 20px 0 18px;
  font-weight: 800;
}
.hero h1 span,.section h2 span,.benefits h2 span {
  color: var(--blue);
}
.hero-copy>p,.section-heading p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 475px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 27px;
  flex-wrap: wrap;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 35px;
}
.avatar-stack {
  display: flex;
  padding-left: 2px;
}
.avatar-stack i {
  font-style: normal;
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3efff;
  color: #285e9b;
  font-size: 10px;
  font-weight: 800;
  margin-left: -4px;
}
.avatar-stack i:nth-child(2) {
  background: #eee6ff;
  color: #7854b3;
}
.avatar-stack i:nth-child(3) {
  background: #ddf5ee;
  color: #19876e;
}
.hero-proof b,.hero-proof small {
  display: block;
  font-size: 11px;
}
.hero-proof small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.hero-art {
  height: 365px;
  position: relative;
  background: radial-gradient(ellipse at 48% 48%,#e8f2ff 0%,#f5f9ff 43%,#fff 70%);
  border-radius: 38px;
  overflow: hidden;
}
.art-orbit {
  position: absolute;
  border: 1px solid #cfe0f5;
  border-radius: 50%;
  width: 360px;
  height: 360px;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
.orbit-two {
  width: 275px;
  height: 275px;
  border-style: dashed;
  border-color: #c1d6f1;
}
.art-card {
  position: absolute;
  border: 1px solid #edf1f7;
  background: #fff;
  border-radius: 17px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.card-back {
  width: 190px;
  left: 30px;
  top: 57px;
  transform: rotate(-7deg);
  opacity: .95;
}
.card-front {
  width: 255px;
  right: 25px;
  top: 77px;
  transform: rotate(3deg);
}
.mini-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 18px;
}
.purple {
  background: #f0eaff;
  color: #8661d6;
}
.blue {
  background: #e7f1ff;
  color: var(--blue);
}
.card-back>b {
  display: block;
  font-size: 13px;
  margin-top: 14px;
}
.card-back small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.fake-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 60px;
  margin-top: 17px;
}
.fake-bars i {
  display: block;
  width: 17px;
  background: #a9c9f2;
  border-radius: 5px 5px 2px 2px;
  height: 45%;
}
.fake-bars i:nth-child(2) {
  height: 72%;
  background: #83b2ed;
}
.fake-bars i:nth-child(3) {
  height: 57%;
}
.fake-bars i:nth-child(4) {
  height: 92%;
  background: #3679cc;
}
.fake-bars i:nth-child(5) {
  height: 66%;
}
.art-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pill {
  font-size: 8px;
  letter-spacing: 1px;
  color: #2c71c4;
  background: #edf5ff;
  border-radius: 20px;
  padding: 6px 9px;
  font-weight: 800;
}
.card-front h3 {
  font-family: Manrope;
  font-size: 20px;
  letter-spacing: -.7px;
  line-height: 1.35;
  margin: 18px 0 9px;
}
.card-front p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  margin-top: 22px;
}
.progress-label b {
  color: var(--blue);
}
.progress {
  height: 6px;
  border-radius: 6px;
  background: #eaf0f7;
  margin-top: 8px;
  overflow: hidden;
}
.progress i {
  display: block;
  width: 82%;
  height: 100%;
  background: linear-gradient(90deg,#5a9be7,#2768bd);
  border-radius: 6px;
}
.floating-badge {
  position: absolute;
  bottom: 38px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.floating-badge>span {
  background: #e1f8f0;
  color: #169878;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.floating-badge b,.floating-badge small {
  display: block;
  font-size: 10px;
}
.floating-badge small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.stats-strip {
  background: #f7faff;
  border-block: 1px solid #edf3fa;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  padding: 24px max(calc((100vw - 1180px)/2),5%);
  gap: 15px;
}
.stats-strip div {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  color: #61728a;
}
.stats-strip b {
  font-family: Manrope;
  font-size: 18px;
  color: #a2bfe3;
}
.section {
  max-width: 1180px;
  margin: auto;
  padding: 86px 10px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 32px;
}
.section h2,.benefits h2 {
  font-size: 34px;
  letter-spacing: -1.4px;
  margin: 13px 0 10px;
}
.section-heading p {
  margin: 0;
  font-size: 12px;
}
.search-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 43px;
  width: 260px;
  color: #8ca0b8;
}
.search-wrap input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 11px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.course-card {
  border: 1px solid #e8eef6;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  transition: .2s;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.course-visual {
  height: 145px;
  padding: 20px;
  position: relative;
  display: flex;
  align-items: end;
  background: linear-gradient(135deg,#e9f3ff,#f7faff);
}
.course-visual.green {
  background: linear-gradient(135deg,#e1f7f0,#f6fffb);
}
.course-visual.purple-bg {
  background: linear-gradient(135deg,#eee8ff,#faf8ff);
}
.course-symbol {
  font-size: 42px;
  color: #3c78bb;
  opacity: .8;
}
.course-visual.green .course-symbol {
  color: #199878;
}
.course-visual.purple-bg .course-symbol {
  color: #8d70d4;
}
.course-category {
  position: absolute;
  top: 15px;
  left: 16px;
  background: #ffffffcf;
  border-radius: 30px;
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 700;
  color: #476581;
}
.course-content {
  padding: 20px;
}
.course-content h3 {
  font-family: Manrope;
  font-size: 16px;
  letter-spacing: -.4px;
  margin: 0 0 9px;
}
.course-content p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
  min-height: 57px;
  margin: 0;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf1f6;
  padding-top: 15px;
  margin-top: 17px;
}
.course-meta b {
  font-size: 13px;
  color: var(--navy);
}
.course-meta small {
  font-size: 10px;
  color: var(--muted);
}
.course-meta button {
  border: 0;
  background: #edf5ff;
  color: var(--blue);
  width: 31px;
  height: 31px;
  border-radius: 9px;
  font-size: 17px;
}
.benefits {
  background: #f7faff;
  padding: 70px max(calc((100vw - 1180px)/2),5%);
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 35px;
  margin-top: 35px;
}
.benefit-grid article {
  background: #fff;
  border: 1px solid #edf2f8;
  border-radius: 15px;
  padding: 25px;
}
.benefit-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #edf5ff;
  color: var(--blue);
  border-radius: 12px;
  font-size: 23px;
}
.benefit-grid h3 {
  font-family: Manrope;
  font-size: 15px;
  margin: 19px 0 9px;
}
.benefit-grid p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.workspace {
  padding-top: 80px;
  padding-bottom: 80px;
}
.user-badge {
  padding: 9px 14px;
  background: #edf5ff;
  border-radius: 9px;
  font-size: 11px;
  color: var(--navy);
}
.workspace-panel {
  border: 1px solid #e6edf6;
  border-radius: 16px;
  min-height: 120px;
  overflow: hidden;
}
.workspace-welcome {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 25px;
}
.welcome-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #eaf3ff;
  color: var(--blue);
  font-size: 23px;
  border-radius: 14px;
}
.workspace-welcome div:nth-child(2) {
  flex: 1;
}
.workspace-welcome h3 {
  font-family: Manrope;
  font-size: 15px;
  margin: 0 0 6px;
}
.workspace-welcome p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.cta {
  max-width: 1180px;
  margin: 0 auto 65px;
  border-radius: 20px;
  background: linear-gradient(115deg,#173f72,#2768bd);
  padding: 42px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  gap: 25px;
}
.cta .eyebrow {
  color: #b8d8ff;
}
.cta h2 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 12px 0 8px;
}
.cta p {
  font-size: 12px;
  color: #d1e3f8;
  margin: 0;
}
footer {
  border-top: 1px solid #edf1f6;
  padding: 25px max(calc((100vw - 1180px)/2),5%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #7b899b;
  font-size: 10px;
}
footer .brand {
  color: var(--ink);
  font-size: 16px;
}
footer .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 19px;
}
footer a:last-child {
  color: var(--blue);
  font-weight: 700;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #12253c80;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal {
  background: #fff;
  width: min(470px,100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  padding: 32px;
  position: relative;
  box-shadow: 0 30px 90px #0c234c50;
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: #f1f5fa;
  color: #66788d;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 21px;
}
.modal h2 {
  font-family: Manrope;
  font-size: 25px;
  letter-spacing: -.8px;
  margin: 8px 0;
}
.modal p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.form-stack {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #50647b;
  margin-bottom: 7px;
}
.field input,.field select,.field textarea {
  width: 100%;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  padding: 11px 12px;
  outline: 0;
  font-size: 12px;
  background: #fff;
  color: var(--ink);
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field input:focus,.field select:focus,.field textarea:focus {
  border-color: #6ba0e0;
  box-shadow: 0 0 0 3px #e9f2ff;
}
.form-stack .btn {
  width: 100%;
  margin-top: 3px;
}
.form-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 700;
}
.hidden {
  display: none !important;
}
.loading,.empty-state {
  padding: 35px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  grid-column: 1/-1;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  padding: 20px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
}
.metric span {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.metric b {
  font-family: Manrope;
  font-size: 24px;
  display: block;
  margin-top: 10px;
  color: var(--navy);
}
.workspace-tabs {
  display: flex;
  gap: 5px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.tab-btn {
  border: 0;
  background: #f4f7fb;
  color: #607188;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.tab-btn.active {
  background: #e8f2ff;
  color: var(--blue);
}
.tab-content {
  padding: 18px;
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 600px;
}
.data-table th {
  text-align: left;
  color: #7b8ca1;
  font-weight: 700;
  background: #f8faff;
}
.data-table th,.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf1f6;
}
.status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 30px;
  background: #fff3d8;
  color: #9b6b0c;
  font-size: 9px;
  white-space: nowrap;
}
.status.valide,.status.confirmee {
  background: #e0f8ef;
  color: #128461;
}
.status.rejete,.status.a_refaire {
  background: #ffebeb;
  color: #c34d4d;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.inline-form input,.inline-form select {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  max-width: 180px;
}
.inline-form .btn {
  padding: 9px 12px;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%,20px);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  background: #172b45;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: var(--shadow);
  transition: .25s;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}
.small-btn {
  border: 0;
  border-radius: 6px;
  background: #edf5ff;
  color: var(--blue);
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 700;
}
.danger-btn {
  background: #fff0f0;
  color: #bb4545;
}
.inline-message {
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0;
}
@media(max-width:900px) {
  .topbar {
    padding: 0 5%;
    height: 72px;
  }
  .topbar nav {
    gap: 15px;
  }
  .hero {
    padding: 55px 5%;
    gap: 25px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-art {
    height: 330px;
  }
  .card-back {
    left: 10px;
  }
  .card-front {
    right: 10px;
  }
  .section {
    padding: 65px 5%;
  }
  .benefits {
    padding: 60px 5%;
  }
  .cta {
    margin: 0 5% 45px;
    padding: 32px;
  }
  .stats-strip {
    padding: 20px 5%;
  }
  .course-grid {
    gap: 13px;
  }
  .course-content {
    padding: 15px;
  }
  .dashboard-grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media(max-width:650px) {
  .topbar {
    height: 66px;
  }
  .topbar nav {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 5%;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
  }
  .topbar nav.open {
    display: flex;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-actions .btn {
    padding: 9px 10px;
    font-size: 10px;
  }
  .nav-actions #registerNav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .brand {
    font-size: 17px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 45px;
    gap: 30px;
  }
  .hero h1 {
    font-size: 39px;
    letter-spacing: -1.7px;
  }
  .hero-art {
    height: 310px;
    max-width: 470px;
    width: 100%;
    margin: auto;
  }
  .card-back {
    left: 8%;
    top: 40px;
  }
  .card-front {
    right: 7%;
    top: 60px;
  }
  .floating-badge {
    bottom: 20px;
    right: 5%;
  }
  .stats-strip {
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
  }
  .section-heading {
    display: block;
  }
  .search-wrap {
    margin-top: 20px;
    width: 100%;
  }
  .section h2,.benefits h2 {
    font-size: 29px;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .course-visual {
    height: 125px;
  }
  .course-content p {
    min-height: auto;
  }
  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .benefits {
    padding: 50px 5%;
  }
  .workspace-welcome {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px;
  }
  .workspace-welcome div:nth-child(2) {
    min-width: 65%;
  }
  .workspace-welcome .btn {
    margin-left: 65px;
  }
  .cta {
    display: block;
    padding: 30px 25px;
  }
  .cta .btn {
    margin-top: 22px;
  }
  .cta h2 {
    font-size: 25px;
  }
  footer {
    padding: 22px 5%;
    flex-wrap: wrap;
  }
  footer>span {
    order: 3;
    width: 100%;
  }
  .modal {
    padding: 28px 22px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    padding: 12px;
    gap: 8px;
  }
  .metric {
    padding: 12px;
  }
  .metric b {
    font-size: 20px;
  }
}
/* Administration des comptes et des autorisations */
.user-create-form {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e3e8ef);
  border-radius: 14px;
  padding: 18px;
  margin: 12px 0 24px;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap: 8px;
  margin: 10px 0;
}
.permission-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line, #e3e8ef);
  border-radius: 8px;
  padding: 9px;
  font-size: 13px;
  cursor: pointer;
}
.permission-option input {
  accent-color: #1769aa;
}
.permission-option span {
  line-height: 1.35;
}
.danger-btn {
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #fecdca;
}
.data-table small {
  color: var(--muted, #667085);
}
.inline-message {
  overflow-wrap: anywhere;
}
/* Outils d'export des listes administratives */
.table-export-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.export-count {
  font-size: 12px;
  color: var(--muted,#64748b);
  margin-left: auto;
}
.empty-table-cell {
  text-align: center !important;
  padding: 24px !important;
  color: #64748b;
}
/* Sections publiques À propos, Services et Contact */
.about-section,.services-section,.contact-section {
  scroll-margin-top: 90px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line,#e2e8f0);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(15,35,70,.04);
}
.service-card h3 {
  margin: 14px 0 8px;
}
.service-card p {
  color: var(--muted,#64748b);
  line-height: 1.65;
  font-size: 14px;
}
.service-card .text-button {
  display: inline-block;
  margin-top: 8px;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px,.8fr) minmax(320px,1.2fr);
  gap: 24px;
  align-items: start;
}
.contact-details,.contact-form {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line,#e2e8f0);
  border-radius: 18px;
}
.contact-details h3 {
  margin-top: 0;
}
.contact-details p {
  color: var(--muted,#64748b);
  line-height: 1.6;
}
.social-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line,#e2e8f0);
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--line,#e2e8f0);
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 700;
}
.social-links a span {
  font-size: 12px;
  font-weight: 500;
}
.contact-form textarea {
  width: 100%;
  resize: vertical;
}
.service-card .text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
@media(max-width:900px) {
  .service-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
@media(max-width:600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .contact-details,.contact-form,.service-card {
    padding: 18px;
  }
}
/* Visuels photographiques réels pour renforcer la confiance et l'authenticité */
.hero-photo {
  background: #e8f0f8;
  isolation: isolate;
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(23,63,114,.16);
}
.hero-real-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: -2;
}
.hero-photo:after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg,transparent,rgba(10,28,49,.82));
  z-index: -1;
}
.hero-photo .art-orbit,.hero-photo .art-card,.hero-photo .floating-badge {
  display: none;
}
.hero-photo-caption {
  position: absolute;
  left: 28px;
  right: 25px;
  bottom: 28px;
  color: #fff;
  display: grid;
  gap: 8px;
  max-width: 360px;
  text-shadow: 0 2px 8px #0008;
}
.hero-photo-caption span {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: #d8e9ff;
}
.hero-photo-caption strong {
  font-size: clamp(21px,2.4vw,30px);
  line-height: 1.2;
  letter-spacing: -.6px;
}
.service-card {
  padding: 0 0 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-photo {
  width: 100%;
  height: 165px;
  object-fit: cover;
  display: block;
  background: #edf3fa;
}
.service-card .benefit-icon,.service-card h3,.service-card p,.service-card .text-button {
  margin-left: 22px;
  margin-right: 22px;
}
.service-card .benefit-icon {
  margin-top: 18px;
}
.service-card p {
  flex: 1;
}
.about-photo-grid article {
  padding: 0 0 24px;
  overflow: hidden;
}
.about-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}
.about-photo-grid .benefit-icon,.about-photo-grid h3,.about-photo-grid p {
  margin-left: 24px;
  margin-right: 24px;
}
@media(max-width:650px) {
  .hero-photo {
    height: 300px;
  }
  .service-photo {
    height: 180px;
  }
  .about-photo {
    height: 175px;
  }
}
/* Identité visuelle TECHNOCOM MS */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  display: block;
  width: 150px;
  max-width: 30vw;
  height: auto;
  object-fit: contain;
}
.brand-tagline {
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .7px;
  font-weight: 800;
  color: #126fb5;
  border-left: 2px solid #c91527;
  padding-left: 10px;
  max-width: 145px;
}
.topbar .brand {
  gap: 14px;
}
footer .brand-logo {
  width: 150px;
}
@media(max-width:650px) {
  .brand-logo {
    width: 135px;
    max-width: 40vw;
  }
  .brand-tagline {
    display: none;
  }
  footer .brand-logo {
    width: 130px;
  }
}
/* Logo indépendant des autres éléments, en en-tête comme en pied de page */
.topbar .brand,footer .brand {
  flex: 0 0 auto;
  min-width: 185px;
  max-width: 260px;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.topbar .brand-logo,footer .brand-logo {
  display: block;
  width: clamp(155px,17vw,225px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.topbar {
  gap: 18px;
  flex-wrap: wrap;
}
.topbar nav {
  min-width: 0;
  flex: 1 1 auto;
}
footer {
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
@media(max-width:650px) {
  .topbar .brand,footer .brand {
    min-width: 145px;
    max-width: 190px;
  }
  .topbar .brand-logo,footer .brand-logo {
    width: 165px;
  }
}
.hero[data-site-media-container] {
  background-size: cover;
  background-position: center;
}
.media-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 16px;
}
.media-admin-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
}
.media-admin-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}
.media-admin-card input {
  max-width: 100%;
}
/* Images de formations et outils de publication */
.course-card-image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.admin-course-thumb {
  width: 76px;
  height: 52px;
  object-fit: cover;
  border-radius: 7px;
}
.content-publish-form {
  padding: 18px;
  margin: 14px 0;
  border: 1px solid var(--line,#dbe3ed);
  border-radius: 14px;
  background: var(--surface,#fff);
}
.content-publish-group {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line,#dbe3ed);
  border-radius: 14px;
  background: #f8fafc;
}
.content-publish-group > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink,#1d2a3b);
  padding: 5px 2px;
}
.content-publish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 14px;
  margin-top: 12px;
}
.content-publish-grid .content-publish-form {
  margin: 0;
}
.content-publish-form h4 {
  margin: 0 0 12px;
}
.paid-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line,#dbe3ed);
  border-radius: 12px;
}
.paid-fields label {
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.paid-fields input {
  width: auto;
}
/* Menu mobile : panneau encadré placé à côté du bouton burger */
@media(max-width:650px) {
  .topbar {
    position: sticky;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-left: 8px;
    padding: 9px 12px;
    border: 1px solid #dbe5f0;
    border-radius: 11px;
    background: #f7faff;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(23,63,114,.07);
    min-width: 88px;
    transition: background .18s,border-color .18s,color .18s;
  }
  .menu-btn .menu-icon {
    font-size: 23px;
    line-height: 1;
    font-weight: 700;
  }
  .menu-btn .menu-label {
    font-size: 11px;
  }
  .menu-btn.is-open {
    background: #edf5fb;
    border-color: #cfe0f1;
    color: #176fae;
  }
  .topbar nav,.topbar nav.open {
    position: absolute;
    top: calc(100% + 9px);
    right: 5%;
    left: auto;
    width: min(285px,90vw);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 3px;
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(20,45,78,.18);
    z-index: 50;
  }
  .topbar nav.open {
    display: flex;
  }
  .topbar nav a {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #304760;
    transition: background .15s,color .15s;
  }
  .topbar nav a:hover,.topbar nav a:focus {
    background: #edf5ff;
    color: #1769b2;
    outline: none;
  }
}
/* Bouton de retour à l’accueil sur la page À propos */
.about-home-action {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
}
.about-home-action .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
@media(max-width:650px) {
  .about-home-action {
    margin-top: 12px;
    padding: 0 5%;
  }
  .menu-btn {
    min-width: 44px;
  }
  .menu-btn .menu-label:empty {
    display: none;
  }
  .menu-btn.is-open {
    min-width: 92px;
  }
}
/* Adaptation mobile universelle : petits et grands smartphones */
@media (max-width: 650px) {
  .topbar {
    width: 100%;
    height: 62px;
    min-height: 62px;
    padding: 0 12px;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow: visible;
  }
  .topbar .brand {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 58px);
    width: auto;
    gap: 0;
    overflow: hidden;
  }
  .topbar .brand-logo {
    width: clamp(104px, 34vw, 132px);
    max-width: 100%;
    max-height: 42px;
    height: auto;
    object-fit: contain;
  }
  .topbar .nav-actions {
    display: none !important;
  }
  .topbar .menu-btn {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    min-width: 44px;
    max-width: 104px;
    margin: 0 0 0 auto;
    padding: 8px 10px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 13px;
  }
  .topbar .menu-btn .menu-icon {
    font-size: 22px;
  }
  .topbar .menu-btn .menu-label {
    font-size: 11px;
  }
  .topbar nav, .topbar nav.open {
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    min-width: 0;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    padding: 9px;
    gap: 2px;
    border-radius: 14px;
  }
  .topbar nav a {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 12px;
    overflow-wrap: anywhere;
  }
  footer {
    padding: 18px 14px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  footer .brand {
    min-width: 0;
    max-width: 100%;
    width: auto;
  }
  footer .brand-logo {
    width: 116px;
    max-width: 42vw;
    max-height: 40px;
  }
  footer > span {
    order: initial;
    width: 100%;
    line-height: 1.6;
  }
  footer a:last-child {
    align-self: flex-end;
  }
  .about-home-action {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 360px) {
  .topbar {
    padding-inline: 9px;
    gap: 5px;
  }
  .topbar .brand-logo {
    width: 100px;
    max-height: 38px;
  }
  .topbar .menu-btn {
    padding: 7px 8px;
  }
  .topbar .menu-btn.is-open {
    min-width: 82px;
  }
  .topbar nav, .topbar nav.open {
    left: 9px;
    right: 9px;
  }
  footer .brand-logo {
    width: 105px;
  }
}
@media (min-width: 651px) and (max-width: 900px) {
  .topbar {
    padding-inline: 3%;
    gap: 12px;
  }
  .topbar .brand {
    min-width: 0;
    max-width: 150px;
  }
  .topbar .brand-logo {
    width: 145px;
  }
  .topbar nav {
    gap: 11px;
    font-size: 11px;
  }
  .nav-actions .btn {
    padding: 8px 9px;
  }
}
/* Navigation des espaces connectés — comportement harmonisé LaGouvernance */
.user-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf3ff;
  color: #173f72;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #d5e5f8;
}
#workspaceNav {
  white-space: nowrap;
}
body.workspace-mode main>section:not(#espace),body.workspace-mode footer {
  display: none !important;
}
body.workspace-mode #espace {
  display: block !important;
  min-height: calc(100vh - 82px);
  padding-top: 42px;
  padding-bottom: 60px;
}
body.workspace-mode #espace>.section-heading {
  margin-bottom: 25px;
}
body.workspace-home-mode #espace {
  display: none !important;
}
body.workspace-home-mode main>section:not(#espace) {
  display: block;
}
body.workspace-home-mode footer {
  display: flex;
}
body.workspace-mode .topbar nav a.workspace-link {
  font-weight: 800;
  color: var(--blue);
}
@media(max-width:650px) {
  .topbar .nav-actions {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }
  .topbar .nav-actions #loginNav,.topbar .nav-actions #registerNav,.topbar .nav-actions #logoutBtn {
    display: none !important;
  }
  .topbar .nav-actions #workspaceNav {
    display: inline-flex !important;
    padding: 8px 10px;
    font-size: 11px;
    min-height: 36px;
  }
  .topbar .nav-actions #workspaceNav.hidden {
    display: none !important;
  }
  .topbar .user-badge {
    display: none !important;
  }
  .topbar .menu-btn {
    margin-left: 0;
  }
  body.workspace-mode #espace {
    min-height: calc(100vh - 62px);
    padding-top: 30px;
  }
}
@media(min-width:651px) {
  body.workspace-mode .topbar nav {
    visibility: visible;
  }
}
.menu-logout {
  display: block;
  border: 0;
  background: #fff3f3;
  color: #b83d3d;
  text-align: left;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}
@media(max-width:650px) {
  .topbar .nav-actions #workspaceNav.hidden {
    display: inline-flex !important;
  }
}
/* Déconnexion dans le menu mobile : l’action dédiée de l’en-tête reste utilisée sur PC. */
.menu-logout {
  display: none !important;
}
@media(max-width:650px) {
  .topbar nav .menu-logout:not(.hidden) {
    display: block !important;
  }
}
@media(max-width:650px) {
  .brand-logo {
    width: 128px;
    max-width: 34vw;
  }
}
/* Actions explicites dans les tableaux d'administration */
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 190px;
}
.table-actions .small-btn {
  white-space: nowrap;
}
.media-admin-card>img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 9px;
  background: #eef2f7;
}
.media-admin-card small {
  color: #64748b;
  font-size: 11px;
}
@media(max-width:650px) {
  .table-actions {
    min-width: 150px;
  }
  .media-admin-grid {
    grid-template-columns: 1fr;
  }
}
/* Contact WhatsApp flottant : indépendant du contenu et accessible sur mobile. */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: 999px;
  background: #20b866;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(12,90,52,.28);
  transition: transform .2s ease,box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(12,90,52,.34);
}
.whatsapp-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
}
.whatsapp-label {
  font-size: 14px;
}
@media(max-width:600px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 12px;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
  }
  .whatsapp-label {
    display: none;
  }
}
/* ==========================================================
   RESPONSIVE DESIGN SYSTEM — smartphone, tablette et desktop
   Couche d'harmonisation : dimensions, lisibilité et accessibilité
   ========================================================== */
:root {
  --content-width: 1180px;
  --control-height: 44px;
  --control-radius: 10px;
}
img,svg,video,canvas {
  max-width: 100%;
}
input,select,textarea {
  max-width: 100%;
}
button,.btn,.small-btn,.tab-btn {
  touch-action: manipulation;
}
.btn,.small-btn,.tab-btn {
  min-height: var(--control-height);
  line-height: 1.25;
  border-radius: var(--control-radius);
}
.btn {
  padding: 11px 18px;
  font-size: 13px;
}
.small-btn {
  padding: 9px 12px;
  font-size: 12px;
}
:focus-visible {
  outline: 3px solid rgba(39,104,189,.32);
  outline-offset: 2px;
}
.section,.hero {
  width: min(calc(100% - 40px),var(--content-width));
}
.section {
  padding-top: clamp(42px,6vw,86px);
  padding-bottom: clamp(42px,6vw,86px);
}
.cta {
  width: min(calc(100% - 40px),var(--content-width));
}
.dashboard-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.course-grid,.benefit-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.data-table {
  min-width: 760px;
}
.tab-content {
  min-width: 0;
  max-width: 100%;
  overscroll-behavior-x: contain;
}
.tab-content:has(.data-table) {
  overflow-x: auto;
}
.workspace-panel,.workspace-panel * {
  min-width: 0;
}
.field input,.field select,.field textarea {
  min-height: 44px;
  font-size: 14px;
}
.form-stack .btn {
  min-height: 48px;
}
.modal {
  overscroll-behavior: contain;
}
.table-actions {
  align-items: center;
}
.table-actions .small-btn {
  min-height: 38px;
}
.course-meta button {
  min-width: 40px;
  min-height: 40px;
}
.search-wrap {
  min-height: 44px;
}
footer {
  line-height: 1.6;
}
/* Tablettes et petits ordinateurs */
@media (min-width:651px) and (max-width:1024px) {
  .hero {
    grid-template-columns: minmax(0,1fr) minmax(0,.85fr);
    gap: 28px;
    padding-top: 48px;
  }
  .hero h1 {
    font-size: clamp(35px,4.4vw,46px);
  }
  .hero-art {
    height: 320px;
  }
  .section {
    padding-inline: 22px;
  }
  .course-grid,.benefit-grid {
    gap: 14px;
  }
  .dashboard-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .cta {
    padding: 34px;
  }
  .topbar {
    padding-inline: 22px;
  }
}
/* Smartphones */
@media (max-width:650px) {
  html {
    scroll-padding-top: 72px;
  }
  body {
    font-size: 15px;
    overflow-x: hidden;
  }
  .topbar {
    height: 64px;
    min-height: 64px;
    padding: 0 12px;
    gap: 7px;
  }
  .topbar .brand-logo {
    width: clamp(104px,34vw,132px);
    max-height: 42px;
  }
  .topbar .nav-actions {
    gap: 5px;
  }
  .topbar .nav-actions #workspaceNav {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .menu-btn {
    min-height: 42px;
  }
  .hero,.section,.cta {
    width: 100%;
    max-width: none;
  }
  .hero {
    min-height: 0;
    padding: 42px 18px 34px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(31px,8.2vw,42px);
    line-height: 1.13;
    letter-spacing: -1.5px;
    margin: 14px 0;
  }
  .hero-copy>p,.section-heading p {
    font-size: 14px;
    line-height: 1.7;
  }
  .hero-art {
    width: 100%;
    height: 275px;
    border-radius: 22px;
  }
  .art-orbit {
    width: 260px;
    height: 260px;
  }
  .orbit-two {
    width: 205px;
    height: 205px;
  }
  .card-back {
    width: 150px;
    left: 10px;
    top: 42px;
    padding: 15px;
  }
  .card-front {
    width: 195px;
    right: 8px;
    top: 58px;
    padding: 15px;
  }
  .card-front h3 {
    font-size: 16px;
    margin: 12px 0 6px;
  }
  .floating-badge {
    right: 8px;
    bottom: 10px;
    padding: 9px 11px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  .hero-proof {
    margin-top: 22px;
  }
  .stats-strip {
    grid-template-columns: repeat(2,minmax(0,1fr));
    padding: 18px 16px;
    gap: 16px 10px;
  }
  .stats-strip div {
    font-size: 10px;
    gap: 8px;
  }
  .stats-strip b {
    font-size: 16px;
  }
  .section {
    padding: 48px 16px;
  }
  .section-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 22px;
  }
  .section h2,.benefits h2 {
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -.8px;
  }
  .search-wrap {
    width: 100%;
    height: 46px;
  }
  .course-grid,.benefit-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .course-card {
    width: 100%;
  }
  .course-visual {
    height: 155px;
  }
  .course-content {
    padding: 17px;
  }
  .course-content p {
    font-size: 13px;
    min-height: 0;
  }
  .course-content h3 {
    font-size: 17px;
  }
  .course-meta {
    gap: 10px;
  }
  .benefits {
    padding: 46px 16px;
  }
  .benefit-grid {
    gap: 12px;
    margin-top: 24px;
  }
  .benefit-grid article {
    padding: 20px;
  }
  .benefit-grid p {
    font-size: 13px;
  }
  .workspace {
    padding-top: 42px;
    padding-bottom: 48px;
  }
  .workspace-welcome {
    padding: 17px;
    align-items: flex-start;
    gap: 12px;
  }
  .workspace-welcome h3 {
    font-size: 15px;
  }
  .workspace-welcome p {
    font-size: 12px;
  }
  .dashboard-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
    padding: 12px;
  }
  .metric {
    padding: 13px;
  }
  .metric span {
    font-size: 11px;
    line-height: 1.4;
  }
  .metric b {
    font-size: 21px;
    overflow-wrap: anywhere;
  }
  .workspace-tabs {
    padding: 10px;
    gap: 7px;
    scrollbar-width: thin;
  }
  .tab-btn {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 13px;
    font-size: 12px;
  }
  .tab-content {
    padding: 12px;
  }
  .data-table {
    min-width: 720px;
    font-size: 12px;
  }
  .data-table th,.data-table td {
    padding: 10px 9px;
    vertical-align: top;
  }
  .table-actions {
    min-width: 0;
    gap: 6px;
  }
  .table-actions .small-btn {
    min-height: 40px;
    padding: 8px 10px;
  }
  .cta {
    margin: 0 0 42px;
    border-radius: 0;
    padding: 30px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cta h2 {
    font-size: 25px;
    line-height: 1.2;
  }
  .cta p {
    font-size: 13px;
    line-height: 1.6;
  }
  .cta .btn {
    width: 100%;
    min-height: 48px;
  }
  footer {
    padding: 22px 16px;
    gap: 12px;
    align-items: flex-start;
  }
  footer .brand-logo {
    width: 125px;
  }
  footer>span {
    font-size: 11px;
  }
  .modal-backdrop {
    padding: 0;
    align-items: end;
  }
  .modal {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    padding: 26px 18px calc(22px + env(safe-area-inset-bottom));
  }
  .modal h2 {
    font-size: 23px;
    padding-right: 28px;
  }
  .modal p {
    font-size: 13px;
  }
  .form-stack {
    gap: 14px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .field label {
    font-size: 12px;
  }
  .field input,.field select,.field textarea {
    min-height: 48px;
    padding: 12px;
    font-size: 16px;
  }
  .field textarea {
    min-height: 105px;
  }
  .form-stack .btn {
    min-height: 50px;
    font-size: 14px;
  }
  .modal-close {
    width: 38px;
    height: 38px;
    right: 12px;
    top: 10px;
  }
  .content-publish-form {
    padding: 13px;
  }
  .paid-fields {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .media-admin-grid {
    grid-template-columns: 1fr;
  }
  .media-admin-card {
    padding: 13px;
  }
  .about-home-action {
    padding-inline: 16px;
  }
  .whatsapp-float {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
  }
}
/* Très petits smartphones */
@media (max-width:380px) {
  .hero {
    padding-inline: 14px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .section {
    padding-inline: 13px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 10px;
  }
  .metric b {
    font-size: 19px;
  }
  .workspace-welcome {
    flex-wrap: wrap;
  }
  .workspace-welcome .btn {
    width: 100%;
  }
  .card-back {
    width: 132px;
    left: 5px;
  }
  .card-front {
    width: 178px;
    right: 5px;
  }
  .whatsapp-float {
    right: 11px;
    bottom: calc(11px + env(safe-area-inset-bottom));
  }
}
/* Grands écrans : contenu centré, sans étirement excessif */
@media (min-width:1400px) {
  .hero,.section,.cta {
    max-width: 1240px;
  }
  .hero {
    padding-top: 82px;
    padding-bottom: 75px;
  }
  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .topbar {
    padding-inline: max(calc((100vw - 1240px)/2),5%);
  }
}
/* Préférence d'accessibilité : limiter les animations */
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Présentation sobre : suppression des pictogrammes décoratifs */
.eyebrow .dot {
  display: none !important;
}
.benefit-icon,.mini-icon,.welcome-icon,.floating-badge>span,.course-symbol {
  display: none !important;
}
.menu-btn .menu-icon {
  display: inline-block;
  width: 19px;
  height: 14px;
  font-size: 0 !important;
  line-height: 0;
  position: relative;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.menu-btn .menu-icon:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  border-top: 2px solid currentColor;
}
.whatsapp-float {
  gap: 0;
}
.whatsapp-float .whatsapp-label {
  display: inline;
}
@media(max-width:600px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    border-radius: 50%;
    padding: 0;
  }
  .whatsapp-float .whatsapp-label {
    font-size: 12px;
    font-weight: 800;
  }
}
/* Ajustements demandés : WhatsApp toujours visible et menu mobile encadré */
@media (max-width:650px) {
  /* Menu compact, encadré et aligné sous le bouton burger */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
  }
  .topbar .menu-btn {
    position: relative;
    z-index: 102;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin-left: 6px;
    border: 1px solid #cfdbea;
    border-radius: 10px;
    background: #f7faff;
    color: #173f72;
    box-shadow: 0 2px 7px rgba(23,63,114,.08);
  }
  .topbar .menu-btn.is-open {
    background: #eaf3ff;
    border-color: #8fb4df;
    color: #173f72;
  }
  .topbar nav,.topbar nav.open {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: auto;
    width: min(255px,calc(100vw - 24px));
    max-width: 255px;
    max-height: min(72dvh,520px);
    overflow-y: auto;
    display: none;
    flex-direction: column;
    gap: 3px;
    padding: 9px;
    border: 1px solid #d6e1ee;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(20,45,78,.18);
    z-index: 101;
  }
  .topbar nav.open {
    display: flex;
  }
  .topbar nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #304760;
    font-size: 13px;
    font-weight: 600;
  }
  .topbar nav a:active,.topbar nav a:focus-visible {
    background: #edf5ff;
  }
  /* Le bouton WhatsApp reste visible avec son libellé sur smartphone */
  .whatsapp-float {
    position: fixed;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 1500;
    width: auto !important;
    min-width: 112px;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    gap: 0;
    background: #20b866;
    color: #fff;
    box-shadow: 0 7px 22px rgba(12,90,52,.3);
  }
  .whatsapp-float .whatsapp-label {
    display: inline !important;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
  }
}
@media(max-width:380px) {
  .whatsapp-float {
    right: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    min-width: 104px;
    height: 46px !important;
    min-height: 46px !important;
    padding-inline: 13px !important;
  }
}
/* Administration : tableau de bord, recherche et navigation des listes */
.admin-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.admin-dashboard-head h3 {
  font-family: Manrope,sans-serif;
  font-size: 25px;
  letter-spacing: -.7px;
  margin: 7px 0;
}
.admin-dashboard-head p,.dashboard-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.admin-metrics {
  padding: 0 0 22px;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 13px;
}
.admin-metrics .metric {
  background: #fff;
  border-radius: 13px;
  padding: 18px;
  min-height: 104px;
  box-shadow: 0 4px 18px rgba(23,63,114,.035);
}
.admin-metrics .metric span {
  font-size: 11px;
  line-height: 1.45;
  min-height: 30px;
}
.admin-metrics .metric b {
  font-size: 25px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.dashboard-shortcuts {
  padding: 20px 0 10px;
  border-top: 1px solid var(--line);
}
.dashboard-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.dashboard-section-heading h3 {
  font-family: Manrope,sans-serif;
  font-size: 17px;
  margin: 0;
}
.dashboard-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.dashboard-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 13px 15px;
  text-align: left;
  border: 1px solid #dfe8f2;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s,background .18s,transform .18s;
}
.dashboard-shortcut:hover {
  border-color: #9dbce0;
  background: #f8fbff;
  transform: translateY(-1px);
}
.shortcut-arrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.dashboard-note {
  margin: 15px 0 0;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f6f9fd;
  color: #62758d;
  font-size: 12px;
  line-height: 1.6;
}
.learner-dashboard-welcome {
  padding: 20px;
}
.learner-dashboard-welcome h3 {
  font-family: Manrope,sans-serif;
  margin: 0 0 8px;
}
.learner-dashboard-welcome p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.table-tools-row {
  display: grid;
  grid-template-columns: minmax(210px,1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin: 0 0 12px;
}
.table-search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.table-search span {
  font-size: 11px;
  font-weight: 700;
  color: #607188;
}
.table-search input {
  width: 100%;
  height: 42px;
  padding: 9px 12px;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  outline: none;
}
.table-search input:focus {
  border-color: #75a3d7;
  box-shadow: 0 0 0 3px #eaf3ff;
}
.table-export-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid #edf1f6;
  border-radius: 10px;
}
.table-scroll .data-table {
  margin: 0;
}
.table-filter-hidden {
  display: none !important;
}
.export-count {
  align-self: center;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.workspace-error {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
  border: 1px solid #f0d5d5;
  border-radius: 12px;
  background: #fffafa;
}
.workspace-error p {
  margin: 0;
  color: #9b3d3d;
  font-size: 13px;
  line-height: 1.6;
}
.dashboard-shortcut:focus-visible,.table-search input:focus-visible {
  outline: 3px solid rgba(39,104,189,.25);
  outline-offset: 2px;
}
@media(max-width:900px) {
  .admin-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .dashboard-shortcut-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media(max-width:650px) {
  .admin-dashboard-head {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 16px;
  }
  .admin-dashboard-head h3 {
    font-size: 22px;
  }
  .admin-dashboard-head .small-btn {
    width: 100%;
    min-height: 46px;
  }
  .admin-metrics {
    padding: 0 0 16px;
    gap: 9px;
  }
  .admin-metrics .metric {
    min-height: 94px;
    padding: 13px;
  }
  .admin-metrics .metric b {
    font-size: 21px;
  }
  .dashboard-shortcuts {
    padding-top: 17px;
  }
  .dashboard-section-heading {
    display: block;
  }
  .dashboard-section-heading p {
    margin-top: 5px;
    font-size: 12px;
  }
  .dashboard-shortcut-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .dashboard-shortcut {
    min-height: 50px;
    padding: 12px;
    font-size: 12px;
  }
  .table-tools-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .table-export-tools .small-btn {
    flex: 1;
    min-height: 42px;
  }
  .export-count {
    justify-self: end;
  }
  .table-scroll {
    border-radius: 8px;
  }
}
/* TECHNOCOM MS — identité visuelle équilibrée : bleu du logo + rouge réservé aux actions */
:root {
  --navy: #126eaa;
  --blue: #1479b8;
  --sky: #eaf4fb;
  --ink: #172b45;
  --muted: #718096;
  --line: #e5ebf2;
  --shadow: 0 18px 55px rgba(24,55,91,.10);
}
/* Le bleu porte l'identité générale du site. Le rouge est réservé aux boutons d'action. */
.accent,.topbar nav a:hover,.section h2 span,.hero h1 span,.benefits h2 span,footer a:last-child,.eyebrow {
  color: var(--blue);
}
.brand-mark {
  background: var(--navy);
}
.btn-primary {
  background: #c51f32;
  color: #fff;
  box-shadow: 0 6px 15px rgba(197,31,50,.16);
}
.btn-primary:hover {
  background: #a81728;
}
.btn-outline {
  border-color: #d5e0ee;
  color: var(--ink);
}
.btn-light {
  background: #edf5fb;
  color: var(--navy);
}
.hero-art {
  background: radial-gradient(ellipse at 48% 48%,#e8f2fb 0%,#f5f9fd 43%,#fff 70%);
}
.art-orbit {
  border-color: #cfe0f5;
}
.orbit-two {
  border-color: #c1d6f1;
}
.pill {
  color: #216da9;
  background: #edf5fb;
}
.progress i {
  background: linear-gradient(90deg,#5a9be7,#2768bd);
}
.course-visual {
  background: linear-gradient(135deg,#e9f3fb,#f7faff);
}
.course-symbol {
  color: var(--blue);
}
.course-meta b {
  color: var(--navy);
}
.course-meta .course-details-btn {
  border: 1px solid #d5e5f2;
  background: #edf5fb;
  color: var(--blue);
  padding: 8px 12px;
  width: auto;
  height: auto;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}
.course-register-btn {
  width: 100%;
  margin-top: 13px;
  min-height: 42px;
}
.welcome-icon,.user-badge {
  background: #eaf3ff;
  color: var(--navy);
}
.cta {
  background: linear-gradient(115deg,#173f72,#2768bd);
}
.stats-strip {
  background: #f7faff;
}
.stats-strip b {
  color: #8fb5dc;
}
.topbar nav a:hover,.topbar nav a:focus {
  color: #176fae;
}
.topbar nav a:active,.topbar nav a:focus-visible {
  background: #edf5fb;
}
.brand-logo {
  width: clamp(112px,12vw,155px) !important;
  max-width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}
footer .brand-logo {
  width: clamp(112px,12vw,155px) !important;
}
.page-back-wrap {
  margin: 0 0 24px;
}
.about-home-action {
  max-width: 1180px;
  margin: 22px auto 0;
  padding: 0 10px;
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #d5e5f2;
  border-radius: 9px;
  background: #f4f9fd;
  color: #176fae;
  font-size: 12px;
  font-weight: 800;
  transition: .2s;
}
.page-back:hover {
  background: #176fae;
  color: #fff;
  border-color: #176fae;
}
.standalone-page main>section {
  display: block !important;
}
.standalone-page main>section:not(.services-section):not(.contact-section) {
  display: none !important;
}
.standalone-page footer {
  display: flex !important;
}
.mobile-register-link {
  display: none;
}
@media(max-width:650px) {
  .brand-logo {
    width: clamp(100px,30vw,125px) !important;
    max-height: 40px;
  }
  .topbar .brand-logo {
    width: clamp(100px,30vw,125px) !important;
  }
  .topbar nav .mobile-register-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    background: #c51f32;
    color: #fff !important;
    border-radius: 9px;
    font-weight: 800;
  }
  .topbar nav .mobile-register-link:hover,.topbar nav .mobile-register-link:focus {
    background: #a81728;
    color: #fff !important;
  }
}



/* ==========================================================
   GESTION DES UTILISATEURS — cases à cocher des autorisations
   Dimensions normalisées et alignement homogène.
   Ces règles neutralisent les styles génériques des champs .field.
   ========================================================== */
.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  align-items: stretch;
  gap: 10px;
  margin: 12px 0 14px;
}

.permission-option,
.field .permission-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line, #e5ebf2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #172b45);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.permission-option:hover,
.field .permission-option:hover {
  border-color: var(--blue, #2768bd);
  background: var(--sky, #eaf3ff);
}

.permission-option input[type="checkbox"],
.field .permission-option input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  accent-color: var(--blue, #2768bd);
  cursor: pointer;
}

.permission-option span,
.field .permission-option span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.permission-option:has(input:checked),
.field .permission-option:has(input:checked) {
  border-color: var(--blue, #2768bd);
  background: var(--sky, #eaf3ff);
}

.permission-option:focus-within,
.field .permission-option:focus-within {
  outline: 3px solid rgba(39, 104, 189, .2);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .permission-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .permission-option,
  .field .permission-option {
    min-height: 46px;
    padding: 10px 11px;
  }
}
