/* CSS du template myelome — mobile first */
:root {
  --violet: #3c2a74;
  --violet-light: #b1b0d8;
  --background-header: #fff;
  --red: #dd6252;
  --lightblue: #91c4eb;
  --orange: #eca319;
  --orange-link: #f5a51a;
  --bg-violet-ligth: #e9e9f3;
  --body-font-family: "Nunito", sans-serif;
}

body {
  color: var(--violet);
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
span,
p,
a,
div,
button,
input,
textarea,
select,
form {
  font-family: var(--body-font-family);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--violet);
  font-weight: bold;
  text-transform: uppercase;
}

select {
  background: #fff
    url("../../../../../media/system/images/select-bg-violet.svg") 100% / 116rem
    no-repeat !important;
  color: var(--violet);
  border-color: var(--violet);
  padding-right: 5rem;
}

/* ================================================
   BOUTONS
   ================================================ */
.btn.btn-primary {
  background-color: var(--red);
  border: none;
  color: #fff;
  padding: 2px 15px;
  text-decoration: none !important;
  display: inline-block;
  font-size: 16px;
  font-weight: 300;
  border-radius: 1000px;
  align-content: center;
  border: 1px solid var(--red);
}

.btn.btn-primary:hover {
  border-radius: 1000px;
  color: var(--red);
  background-color: #fff;
}

.btn.btn-outline-primary {
  border-radius: 1000px;
  color: var(--red);
  border-color: var(--red);
  padding: 2px 15px;
}

.btn.btn-outline-primary:hover {
  background-color: var(--red);
  color: #fff;
}

/* Fil d'ariane */
.breadcrumb {
  background: none !important;
  color: var(--violet);
  font-size: 13px;
}

.breadcrumb .mod-breadcrumbs__divider {
  display: none;
}

.breadcrumb a {
  color: var(--violet);
  text-decoration: none;
}

.breadcrumb-item + .breadcrumb-item:before {
  content: ">";
}

/* ================================================
   TOP HEADER
   ================================================ */
.top-header {
  background-color: var(--violet);
  color: var(--violet);
  text-align: end;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.top-header ul {
  flex-direction: row;
  justify-content: flex-end;
  gap: 16px;
}

.top-header ul li a {
  color: #fff;
  text-decoration: none !important;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.top-header ul li.active a {
  color: var(--orange);
}

.top-header ul li a span {
  order: 2;
  padding: 0 !important;
  margin-left: 5px;
}

/* MENU TOP LOGGED */
.top-header .menu-top-logged {
  gap: 0;
}

.top-header .menu-top-logged li {
  background-color: #fff;
  border-bottom: 1px solid var(--violet);
}

.top-header .menu-top-logged li a {
  color: var(--violet);
  padding: 0 10px;
}

/* ================================================
   STICKY HEADER — hide on scroll down, show on scroll up
   ================================================ */
.sticky-top.z-index-sticky {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-top.z-index-sticky.header--hidden {
  transform: translateY(-100%);
}

/* ================================================
   HEADER
   ================================================ */
.header {
  background-color: var(--background-header);
  border-bottom: 1px solid var(--violet);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  padding: 0 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.brand-logo .logo-text {
  font-size: 22px;
  font-weight: bold;
  color: var(--violet);
  text-align: left;
  line-height: 120%;
}

.brand-logo img {
  max-width: 150px;
}

.header .nav {
  display: flex;
  gap: 12px;
  flex-direction: row;
  flex-wrap: wrap;
}

.header .nav a {
  color: var(--violet);
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none !important;
  font-size: 15px;
}

.header .nav li img {
  max-height: 20px;
  width: auto;
}

.header .nav > li.active > a::after {
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background-color: var(--orange-link);
  margin-top: 5px;
  border-radius: 1000px;
}

.header .nav > li > a::after {
  content: "";
  display: block;
  width: 100%;
  background-color: var(--orange-link);
  margin-top: 5px;
  border-radius: 1000px;
  transition: all 0.1s ease-in-out;
  opacity: 0;
  height: 0;
}

.header .nav > li:hover > a::after,
.header .nav > li.active > a::after {
  content: "";
  display: block;
  height: 5px;
  opacity: 1;
  transition: all 0.1s ease-in-out;
}

/* ================================================
   BANNER
   ================================================ */
.banner {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner img {
  height: 180px;
  width: auto;
}

.banner-title h1 {
  margin-bottom: 2rem;
  font-weight: bold;
}

.banner-title h1 > span {
  font-weight: bold;
}

.banner-title h1 > span:not(.highlight) {
  font-size: 20px;
  color: var(--violet);
  text-align: left;
  display: block;
  border: 2px solid var(--violet);
  border-radius: 1000px;
  padding: 12px 18px;
  margin-bottom: -2px;
  text-transform: uppercase;
  width: 100%;
  box-sizing: border-box;
  line-height: 120%;
}

.banner-title h1 .highlight {
  color: var(--violet-light) !important;
}

/* ================================================
   CHIFFRES
   ================================================ */
.module-chiffres {
  margin: 2rem 0;
}

.chiffres {
  background-color: var(--violet);
  padding: 50px 0;
  position: relative;
}

.chiffres > .container {
  position: relative;
  z-index: 1;
}

.chiffres::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../../../../../images/illustrations/rond.webp");
  background-size: 30%;
  background-repeat: no-repeat;
  background-position-y: 20px;
  background-position-x: 90%;
  opacity: 0.1;
}

.chiffres h2 {
  color: #fff;
  margin-bottom: 30px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.chiffres h2::before {
  content: "";
  display: inline-block;
  background-color: var(--red);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
}

.chiffres .chiffres__item-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.chiffres .chiffres__item-chiffre {
  mask-image: url("../../../../../images/mask_ovale.svg");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  width: 70%;
  aspect-ratio: 232 / 237;
  background-color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.chiffres .chiffres__item-chiffre .chiffre--icon {
  font-size: 40px;
  color: var(--red);
  line-height: normal;
}

.chiffres .chiffres__item-chiffre .chiffre--icon img {
  max-height: 70px;
  width: auto;
}

.chiffres .chiffres__item-chiffre .chiffre--value {
  font-size: 42px;
  color: var(--red);
  font-weight: 900;
  line-height: 60px;
}

.chiffres .chiffres__item-chiffre .chiffre--label {
  color: var(--red);
  line-height: normal;
}

.chiffres .chiffres__item-chiffre .chiffres__item-chiffre--inner {
  margin-left: -10px;
}

/* ================================================
   MENU CARDS
   ================================================ */
.menu-cards {
  padding: 40px 0;
}

.menu-cards ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.menu-cards ul li {
  border-radius: 16px;
  min-height: 140px;
  background: #3d2473;
  position: relative;
}

.menu-cards ul li a {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding: 1.2rem 1.4rem;
  text-decoration: none !important;
  color: #fff;
  box-sizing: border-box;
}

.menu-cards ul li a img {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  opacity: 1;
  color: #d4614a;
  padding: 0;
  margin: 0;
  height: 90px;
  width: auto;
}

.menu-cards ul li:nth-child(5) {
  background: #d9624a;
}
.menu-cards ul li:nth-child(6) {
  background: #4bacd6;
}
.menu-cards ul li:nth-child(7) {
  background: #f0a500;
}

.menu-cards ul li:nth-child(2) a img {
  height: 120px;
  width: auto;
}

.menu-cards ul li:nth-child(4) a img {
  height: 110px;
  width: auto;
}

.menu-cards ul li:nth-child(5) a img,
.menu-cards ul li:nth-child(6) a img,
.menu-cards ul li:nth-child(7) a img {
  opacity: 0.5;
  height: 60px;
  width: auto;
}

.menu-cards ul li a .card-subtitle {
  display: block;
  font-size: 22px;
  font-weight: 200;
  opacity: 1;
  margin-bottom: 0;
  order: unset;
  line-height: 100%;
}

.menu-cards ul li a .card-title {
  display: block;
  font-size: 40px;
  font-weight: 200;
  order: unset;
  line-height: 100%;
}

/* ================================================
   MENU CARDS — animation d'apparition séquentielle
   ================================================ */
.menu-cards .nav-item.menu-card--hidden {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s ease-out;
}

.menu-cards .nav-item.menu-card--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   FADE-UP générique (éléments sans accès HTML)
   ================================================ */
#userForm {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

#userForm.fade-up--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   NOS CENTRES
   ================================================ */
.module-nos-centres {
  margin: 3rem 0;
}

.card-centre {
  background-color: var(--violet);
  border-radius: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: visible;
  position: relative;
  height: auto;
  padding: 1.5rem;
  align-items: center;
  width: 100%;
  min-width: unset;
  text-align: center;
  margin: 0 auto;
}

.card-centre--img {
  flex-shrink: 0;
  margin-left: 0;
}

.card-centre--img img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.card-centre--content {
  padding-right: 0;
}

.card-centre h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 100;
  line-height: 1;
  margin-bottom: 1rem;
  text-transform: none;
}

.card-centre h2 span {
  display: block;
  font-size: 44px;
  font-weight: 100;
}

/* ================================================
   ACTUALITÉS
   ================================================ */
.module-actualites {
  padding: 40px 16px;
}

.module-actualites h2 {
  color: var(--violet);
  margin-bottom: 30px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.module-actualites h2::before {
  content: "";
  display: inline-block;
  background-color: var(--red);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
}

/* ── Filtres actualités ── */
.actualites-filter-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
}

.actu-filter-btn {
  border: 1.5px solid #d5cff0;
  background: #fff;
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 1000px;
  padding: 4px 14px;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.actu-filter-btn:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: #f0edf9;
}

.actu-filter-btn--active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff !important;
}

.actu-filter-btn--active:hover {
  background: #2e1f5c;
  border-color: #2e1f5c;
  color: #fff;
}

.actualites-filters .form-select {
  border-color: #d5cff0 !important;
  border-radius: 8px;
  color: var(--violet);
  font-size: 0.85rem;
  padding-right: 5rem !important;
}

.actualites-filters .form-select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 0.2rem rgba(60, 42, 116, 0.15);
}

.actu-filter-reset {
  color: #999;
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
  padding: 2px 4px;
}

.actu-filter-reset:hover {
  color: var(--violet);
}

.actualites .card-actu {
  border: 12px solid var(--lightblue);
  border-radius: 2rem;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.actualites .card-actu .card-actu--content {
  padding: 20px;
}

.actualites .card-actu .card-actu--content h3 {
  color: var(--violet);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.actualites .card-actu .card-actu--content .btn {
  margin: 30px 0;
}

.actualites .card-actu .card-actu--content .publish-up {
  color: var(--violet);
  font-weight: 300;
}

.actualites .card-actu .card-actu--img {
  position: relative;
  bottom: 0;
}

.actualites .card-actu .card-actu--img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0 0 1.2rem 1.2rem;
}

/* ================================================
   ADHÉREZ À L'IFM
   ================================================ */
.module-adherez-ifm {
  padding: 40px 16px;
}

.card-adherez-ifm {
  padding: 2rem 1.5rem;
  background-color: var(--bg-violet-ligth);
  border: 0;
  border-radius: 1.5rem;
  color: var(--violet);
}

.card-adherez-ifm h2 {
  color: var(--red);
  font-weight: bold;
  line-height: 1;
  margin-bottom: 1rem;
}

.module-adherez-candidature {
  padding: 20px 16px;
  background-color: var(--bg-violet-ligth);
  border-radius: 40px;
  color: var(--violet);
}

.module-adherez-candidature h1 {
  color: var(--red);
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
}

/* ================================================
   PARTENAIRES
   ================================================ */
.module-partenaires {
  padding: 40px 16px;
}

.module-partenaires h2 {
  color: #afaed8;
  text-transform: uppercase;
  border: 2px solid #afaed8;
  text-align: center;
  padding: 14px 28px;
  border-radius: 10000px;
  width: max-content;
  margin: 0 auto;
  font-weight: 100;
  font-size: 1.1rem;
}

.module-partenaires .logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 40px;
}

.module-partenaires .logos img {
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
  background-color: var(--violet);
  color: #fff;
  padding: 3rem 16px;
  margin-top: 4rem;
}

footer .footer--inner {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 2rem;
}

footer .footer--inner > div {
  display: flex;
  align-items: start;
}

/* Séparateurs masqués sur mobile, rétablis en desktop via min-width */
footer .footer--inner > div::before {
  display: none;
}

footer .footer-logo p > span {
  font-weight: bold;
}

footer .footer-logo p > span:not(.highlight) {
  font-size: 16px;
  color: var(--violet);
  text-align: left;
  display: block;
  border: 2px solid #fff;
  background-color: #fff;
  border-radius: 1000px;
  padding: 10px 20px;
  margin-bottom: -2px;
  text-transform: uppercase;
  width: max-content;
  line-height: 120%;
}

footer .footer-logo p .highlight {
  color: var(--violet-light) !important;
}

footer .footer--inner a {
  color: #fff;
  text-decoration: none !important;
  font-weight: 300;
  display: flex;
  align-items: center;
}

footer .footer--inner a span {
  padding: 0 !important;
  order: 2;
  margin-left: 10px;
}

.footer-copyright {
  text-align: end;
  padding: 0.5rem;
  background: var(--red);
  color: #fff;
  font-size: 14px;
}

footer .brand-logo {
  margin-bottom: 40px;
  background-color: #fff;
  padding: 10px 40px;
  border-radius: 1000px;
}

footer .brand-logo img {
  max-width: 100px;
}

/* ================================================
   FORMULAIRES — STYLE GÉNÉRIQUE
   ================================================ */
form h1,
form h2,
form h3 {
  margin-bottom: 3rem;
}

.form-control {
  border: 1px solid var(--violet);
  border-radius: 50px;
  padding: 0.75rem 1.2rem;
  box-shadow: none;
  color: var(--violet);
}

.form-control:focus {
  border-color: var(--violet);
  box-shadow: none;
  outline: none;
}

.form-control::placeholder {
  color: var(--violet);
  opacity: 1;
  font-weight: 100;
}

#jform_captcha {
  border: none;
  padding: 0;
  margin-top: 0.5rem;
}

#jform_captcha .altcha {
  border: 1px solid var(--violet);
  border-radius: 1000px;
}

textarea.form-control {
  border-radius: 20px;
  resize: vertical;
}

.input-group .input-password-toggle {
  border-top-right-radius: 50px !important;
  border-bottom-right-radius: 50px !important;
  border: 1px solid var(--violet);
  border-left: none;
}

.form-check .form-check-input {
  border-radius: 50%;
  border-color: var(--violet);
}

form .control-label,
form label.col-form-label,
form .col-form-label,
form .form-label {
  display: none;
}

.rsform-type-fileupload .control-label,
.rsform-type-fileupload label.col-form-label,
.rsform-type-fileupload .col-form-label,
.rsform-upload-box label {
  display: revert;
}

select {
  border-radius: 1000px !important;
  border-color: var(--violet) !important;
  color: var(--violet) !important;
}

/* ================================================
   FORMULAIRE CANDIDATURE
   ================================================ */
.candidature-page {
  padding: 0 60px 3rem;
}

.cand-title {
  margin-bottom: 0.75rem;
}

.cand-intro {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* ── Form layout ─────────────────────────────────────── */
.cand-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cand-form .control-group {
  margin-bottom: 0;
}

.cand-form .control-label label,
.cand-form .control-label .hasTooltip {
  color: var(--violet);
  font-weight: 200;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  display: inline-block;
}

/* ── Inputs texte — pill shape ───────────────────────── */
.cand-form .controls input.form-control[type="text"],
.cand-form .controls input.form-control[type="email"] {
  width: 100%;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid var(--violet);
  border-radius: 1000px;
  background: transparent;
  color: var(--violet);
  font-size: 0.98rem;
  outline: none;
  box-shadow: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.cand-form .controls input.form-control[type="text"]::placeholder,
.cand-form .controls input.form-control[type="email"]::placeholder {
  opacity: 0.6;
}

.cand-form .controls input.form-control[type="text"]:focus,
.cand-form .controls input.form-control[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(60, 42, 116, 0.12);
}

.candidature-merci-section {
  background: var(--bg-violet-ligth, #f0eefa);
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.candidature-merci-card {
  background: #fff;
  border-radius: 1rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 24px rgba(60, 42, 116, 0.1);
}
.candidature-merci-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet, #3c2a74), #5a3ea8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.candidature-merci-title {
  color: var(--violet, #3c2a74);
  font-size: 2rem;
  font-weight: 800;
}
.candidature-merci-text {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}
.candidature-merci-btn {
  border-radius: 1000px;
  padding: 0.7rem 2rem;
  background: var(--violet, #3c2a74);
  border-color: var(--violet, #3c2a74);
  font-weight: 600;
}

/* ── Textarea ────────────────────────────────────────── */
.cand-form .controls textarea.form-control {
  width: 100%;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid var(--violet);
  border-radius: 1rem;
  background: transparent;
  color: var(--violet);
  font-size: 0.98rem;
  outline: none;
  resize: vertical;
  font-family: inherit;
  box-shadow: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.cand-form .controls textarea.form-control::placeholder {
  color: var(--violet);
  opacity: 0.6;
}

.cand-form .controls textarea.form-control:focus {
  border-color: #3c2a74;
  box-shadow: 0 0 0 3px rgba(60, 42, 116, 0.12);
}

.files-upload .control-label,
.files-upload .control-label label {
  display: inline-block;
}

.files-upload .control-group {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.candidature-merci-section {
  background: var(--bg-violet-ligth);
  min-height: 60vh;
  display: flex;
  align-items: center;
  border-radius: 3rem;
  height: 100%;
}
.candidature-merci-card {
  background: #fff;
  border-radius: 1rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 24px rgba(60, 42, 116, 0.1);
}
.candidature-merci-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet, #3c2a74), #5a3ea8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.candidature-merci-title {
  color: var(--violet, #3c2a74);
  font-size: 2rem;
  font-weight: 800;
}
.candidature-merci-text {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}
.candidature-merci-btn {
  border-radius: 1000px;
  padding: 0.7rem 2rem;
  background: var(--violet, #3c2a74);
  border-color: var(--violet, #3c2a74);
  font-weight: 600;
}

.com_myelome.view-candidature.layout-merci .container.mt-5 {
  margin-top: 1rem !important;
  height: 100%;
}

/* ── Captcha ─────────────────────────────────────────── */
.cand-form .cand-captcha .control-label {
  display: none;
}

.cand-form .cand-captcha .controls {
  margin-left: 0 !important;
}

/* ── Bouton submit ───────────────────────────────────── */
.cand-file-error {
  display: none;
  background: #fdecea;
  border: 1.5px solid #f5c6c0;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  color: #c0392b;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.cand-file-error.cand-file-error--visible {
  display: block;
}

.cand-submit-row {
  margin-top: 0.5rem;
}

.cand-form input[type="file"] {
  width: initial !important;
  font-weight: 100;
  color: var(--violet);
  border: none;
}

.cand-form input[type="file"]::file-selector-button {
  border: 1px solid var(--violet);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  box-shadow: none;
  color: var(--violet);
  background-color: transparent;
  font-weight: 100;
}

/* ================================================
   LOGIN
   ================================================ */
.com-users-login {
  max-width: 800px;
  margin: 0 auto;
  color: var(--violet);
  padding: 0 8px;
}

.com-users-login h1 {
  color: var(--violet);
  margin-bottom: 40px;
}

.com-users-login .form-control {
  border: 1px solid var(--violet);
  border-radius: 50px;
  padding: 0.75rem 1.2rem;
  box-shadow: none;
  color: var(--violet);
}

.com-users-login .form-check .form-check-input {
  border-radius: 50%;
  border-color: var(--violet);
}

.com-users-login .form-control::placeholder {
  color: var(--violet);
}

.com-users-login .input-password-toggle {
  border-top-right-radius: 50px !important;
  border-bottom-right-radius: 50px !important;
  border: 1px solid var(--violet);
}

.com-users-login .control-label {
  display: none;
}

.com-users-login a {
  color: var(--violet);
}

.com-users-login .list-group-item {
  border: 0;
  padding: 0;
}

/* ================================================
   MENU RESPONSIVE
   ================================================ */

/* Masquer le bouton toggle-sous-menu Joomla (hover utilisé à la place) */
.mod-menu__toggle-sub {
  display: none !important;
}

/* ── Checkbox toggle (masqué, rôle fonctionnel uniquement) ── */
.menu-toggle-input {
  display: none;
}

/* ── Hamburger (label CSS pur) ── */
.menu-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  order: 1;
}

.menu-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--violet);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

/* Animation croix quand le menu est ouvert */
.menu-toggle-input:checked ~ .menu-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle-input:checked ~ .menu-hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle-input:checked ~ .menu-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile : menu caché, dropdown absolu sous le header ── */
.header {
  position: relative;
}

.container-nav .mod-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid var(--violet);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 9998;
  padding: 8px 16px 16px;
}

/* Afficher le menu quand la checkbox est cochée */
.menu-toggle-input:checked ~ .container-nav .mod-menu {
  display: flex;
  flex-direction: column;
}

/* Items niveau 1 — mobile */
.container-nav .mod-menu > li > a {
  padding: 10px 0;
}

/* Sous-menus toujours dépliés sur mobile (toggle-sub caché) */
.container-nav .mod-menu .mod-menu__sub {
  display: block;
  position: static;
  padding: 0 0 4px 14px;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border-left: 2px solid #e5e1f5;
}

.container-nav .mod-menu .mod-menu__sub li a {
  padding: 6px 0;
  display: block;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
}

/* Niveau 3 mobile : indentation supplémentaire + bordure distincte */
.container-nav .mod-menu .mod-menu__sub .mod-menu__sub {
  padding-left: 12px;
  border-left: 2px solid #c8bfed;
  margin-top: 2px;
}

.container-nav .mod-menu .mod-menu__sub .mod-menu__sub li a {
  font-size: 12px;
  font-weight: 400;
  color: #666;
  padding: 4px 0;
}

.form-control-label {
  display: none;
}

/* OSM Formulaire adhésion */
#osm-signup-page {
  max-width: 1000px;
  margin: 0 auto;
}

#osm-signup-page .form-group.form-row {
  display: block;
  width: 100%;
}

#osm-signup-page .form-group.form-row .col-md-3,
#osm-signup-page .form-group.form-row .col-md-9 {
  width: initial;
}

/* Espace membre */
.espace-membre-tuiles ul.nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.espace-membre-tuiles ul.nav li {
  background-color: var(--violet);
  color: #fff;
  position: relative;
  border-radius: 2rem;
}

.espace-membre-tuiles ul.nav li a {
  display: block;
  padding: 90px 70px 150px 70px;
  text-decoration: none !important;
  color: #fff;
  font-weight: bold;
  font-size: 30px;
}

.espace-membre-tuiles ul.nav li a span {
  position: absolute;
  bottom: 20px;
  right: 40px;
  font-size: 100px;
  opacity: 0.2;
}

/* ── ≥ 768px : hamburger masqué, menu horizontal + hover ── */

/* ================================================
   TABLEAU DES ÉTUDES — colonnes visibles par breakpoint
   1=Statut 2=Acronyme 3=Titre 4=N°IFM 5=Logo
   6=Promoteur 7=Accrual 8=Phase 9=Publication 10=→

   Mobile  : Statut, Acronyme, →
   ≥576px  : + Titre, Phase
   ≥768px  : + N°IFM, Logo, Accrual
   ≥992px  : + Promoteur, Publication (tout visible)
   ================================================ */
.table-responsive table thead tr th:nth-child(3),
.table-responsive table thead tr th:nth-child(4),
.table-responsive table thead tr th:nth-child(5),
.table-responsive table thead tr th:nth-child(6),
.table-responsive table thead tr th:nth-child(7),
.table-responsive table thead tr th:nth-child(8),
.table-responsive table thead tr th:nth-child(9),
.table-responsive table tbody tr td:nth-child(3),
.table-responsive table tbody tr td:nth-child(4),
.table-responsive table tbody tr td:nth-child(5),
.table-responsive table tbody tr td:nth-child(6),
.table-responsive table tbody tr td:nth-child(7),
.table-responsive table tbody tr td:nth-child(8),
.table-responsive table tbody tr td:nth-child(9) {
  display: none;
}

/* ================================================
   ≥ 576px — petite tablette / grand mobile
   ================================================ */

/* ================================================
   ≥ 768px — tablette
   ================================================ */

/* ================================================
   ≥ 992px — desktop (styles d'origine)
   ================================================ */

/* ── Label section partagé (profil + adhésion) ──────────── */
.adhesion-label,
.com-users-profile .profile-label {
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.75rem;
  margin-left: 1rem;
}

/* ================================================
   PROFIL UTILISATEUR
   ================================================ */

.com-users-profile {
  max-width: 680px;
  margin-top: 2rem;
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 1.4rem;
  margin-left: 1rem;
}

.profile-rows {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--violet);
  border-radius: 100px;
  overflow: hidden;
  border-bottom: 0;
}

.profile-row:last-child {
  border-bottom: 1px solid var(--violet);
}

.profile-row__label {
  width: 200px;
  flex-shrink: 0;
  padding: 13px 22px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--violet);
  white-space: nowrap;
}

.profile-row__value {
  padding: 13px 22px;
}

.profile-edit {
  margin-top: 1.5rem;
}

/* Journal d'actions → masqué */
#users-profile-custom-actionlogs {
  display: none !important;
}

/** Adhésion **/
/* ── Wrapper carte + panneau ── */
.com_users.view-profile {
  background-image:
    url("../../../../../images/illustrations/points.webp"),
    url("../../../../../images/illustrations/points-triangle.webp");
  background-size: 300px, 300px;
  background-repeat: no-repeat, no-repeat;
  background-position:
    left 300px bottom calc(var(--footer-height, 450px) + -300px),
    right -115px top calc(var(--header-height, 220px) + 25%);
}

.com_users.view-profile .site-grid {
  padding-bottom: 3rem;
}

.adhesion-current {
  margin-bottom: 50px;
  border-radius: 20px;
  overflow: hidden;
  max-width: 1200px;
}

.adhesion-current > [class*="col"] {
  display: flex;
  flex-direction: column;
}

/* ── Carte membre ── */
.adhesion-card {
  position: relative;
  background: #695c94;
  border-radius: 20px;
  min-height: 220px;
  padding: 1rem 1.75rem;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.adhesion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.adhesion-card--expired {
  background: linear-gradient(135deg, #6a6a82 0%, #8888a0 100%);
}

.adhesion-card__label {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.adhesion-card__title {
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1.15;
  margin: 0;
}

.adhesion-card__amount {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.adhesion-card__dates {
  font-size: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.adhesion-card__icon {
  position: absolute;
  right: 2rem;
  bottom: 1.5rem;
  opacity: 0.4;
  pointer-events: none;
  color: #fff;
}

.adhesion-card__icon img {
  height: 110px;
}

/* ── Panneau statut ── */
.adhesion-status-panel {
  background: #fff;
  border-radius: 0 20px 20px 0;
  border: 1px solid #695c94;
  border-left: none;
  padding: 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  margin-left: -20px;
}

.adhesion-status-badge {
  color: var(--red);
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.adhesion-status-badge img {
  height: 25px;
}

.adhesion-status-badge--success {
  color: var(--red);
}
.adhesion-status-badge--warning {
  color: var(--orange);
}
.adhesion-status-badge--secondary {
  color: #8888a0;
}
.adhesion-status-badge--danger {
  color: #b03a2e;
}

.adhesion-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  align-content: start;
}

.adhesion-status-grid__label {
  font-size: 0.9rem;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--violet);
  white-space: nowrap;
  align-self: center;
}

.adhesion-status-grid__label::after,
.adhesion-status-grid__value::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--lightblue);
  margin: 10px 0;
}

.adhesion-status-grid span:nth-child(5)::after,
.adhesion-status-grid__value:last-child::after {
  display: none !important;
}

.adhesion-status-grid__value {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--violet);
  align-self: center;
}

.adhesion-status-cta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f0eef9;
}

/* ── Historique ── */
.adhesion-history-wrap {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--violet);
  overflow: hidden;
  max-width: 680px;
}

.adhesion-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--lightblue);
  max-width: 95%;
  margin: 0 auto;
}

.adhesion-history-item:last-child {
  border-bottom: none;
}

.adhesion-history-item__info {
  min-width: 0;
}

.adhesion-history-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: #3c2a74;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adhesion-history-item__dates {
  font-size: 0.9rem;
  color: var(--violet);
  margin-top: 0.2rem;
  font-weight: 100;
}

.adhesion-history-item__meta {
  display: flex;
  align-items: center;
  gap: 0rem;
  flex-shrink: 0;
}

.adhesion-history-item__amount {
  font-size: 1rem;
  font-weight: 600;
  color: var(--violet);
}

.adhesion-history-badge img {
  height: 20px;
  margin-left: 5px;
  margin-bottom: 3px;
}

.adhesion-invoice-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--violet);
  text-decoration: none;
  background: #f0eef9;
  border: 1px solid #dddaf0;
  border-radius: 1000px;
  padding: 2px 10px 2px 7px;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
  margin-left: 30px;
}

.adhesion-invoice-link:hover {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

/* ── Bienvenue nouvel adhérent (maquette 2) ── */
.adhesion-welcome {
  background: #695c94;
  border-radius: 16px;
  padding: 1rem 2rem;
  color: #fff;
}

.adhesion-welcome__title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  line-height: 1.1;
}

.adhesion-welcome__subtitle {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  opacity: 0.9;
  margin-top: 15px;
}

.adhesion-welcome__text {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.85;
}

/* ── Cotisation non réglée (maquette 1) ── */
.adhesion-alert {
  background: #e9e9f3;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  max-width: 680px;
  margin-bottom: 3rem;
}

.adhesion-alert .adhesion-alert--inner {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 30px;
}

.adhesion-alert__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  filter: brightness(0) saturate(100%) invert(44%) sepia(60%) saturate(550%)
    hue-rotate(320deg) brightness(108%);
}

.adhesion-alert__title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--violet);
  margin: 0 0 0.5rem;
}

.adhesion-alert__text {
  font-size: 1rem;
  color: #5a4f7a;
  margin: 0;
  line-height: 1.6;
}

/* ── CTA sous les blocs ── */
.adhesion-cta {
  margin-top: 0;
  max-width: 680px;
  text-align: end;
}

.adhesion-cta .btn.btn-outline-primary {
  border-color: var(--violet);
  color: var(--violet);
}

.adhesion-cta .btn.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--violet);
}

.adhesion-welcome {
  max-width: 680px;
}

/* Newsletter form */
.newsletter-form {
  padding: 40px 20px;
  background: var(--bg-violet-ligth);
  border-top: 1px solid var(--violet);
}

.newsletter-form #field_1 {
  display: none;
}

.container-newsletter {
  display: block;
}

.newsletter-form .moduletable .acym_module {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.newsletter-form .acym_fulldiv {
  width: 100%;
}

.newsletter-form .acym_module_form label {
  width: 100%;
}

.newsletter-form h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--violet);
  margin: 0;
  white-space: nowrap;
  margin-bottom: 15px;
}

.acym_module_form {
  display: block;
}

.acym_form {
  flex: 1;
}

.onefield {
  width: 100%;
}

.onefield label span {
  display: none;
}

.onefield input[type="email"] {
  width: 100%;
  padding: 0.75rem 1.2rem;
  border-radius: 1000px;
  border: 1px solid var(--violet);
  background: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
  max-width: 100%;
  color: var(--violet);
}

.onefield input[type="email"]:focus {
  outline: none;
  border-color: var(--violet-light);
  background: #fff;
  box-shadow: 0 0 0 2px var(--violet-light);
}

.acysubbuttons {
  margin: 0;
  text-align: end;
}

/* ================================================
   FICHE ÉTUDE
   ================================================ */
.fiche-etude {
  color: var(--violet);
}

.fiche-etude h2 {
  font-size: 1.2em;
}

.result-pdf,
.result-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-pdf i,
.result-link i {
  font-size: 2em;
  color: var(--red);
}

.result-pdf a,
.result-link a {
  color: var(--violet);
  text-decoration: none !important;
  font-weight: 100;
}

.etude-divider {
  height: 15px;
  background: #318ec9;
  border: none;
  margin: 20px 0;
}

.etude-statut-badge {
  color: var(--red);
  font-weight: 600;
  font-size: 15px;
}

.etude-meta-band {
  background: #fff;
}

.etude-meta-table {
  border-collapse: collapse;
}
.etude-meta-table tr {
  border-bottom: 1px solid #e5e5e5;
}
.etude-meta-label {
  font-size: 13px;
  color: var(--violet);
  padding: 10px 16px 10px 0;
  width: 45%;
  vertical-align: top;
}
.etude-meta-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  padding: 10px 0;
  vertical-align: top;
}

.etudes-donut--lg {
  width: 100px;
  height: 100px;
}

.etude-content-band {
  background: #fff;
}

.etude-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 10px;
}

.etude-section-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 4px;
  margin-top: 12px;
}

.etude-section-body {
  font-size: 14px;
  color: var(--violet);
  line-height: 1.6;
}

.etude-section-body p {
  margin-bottom: 6px;
}

.etude-pub-link {
  color: var(--violet);
  font-size: 13px;
  word-break: break-all;
}
.etude-pub-link:hover {
  color: var(--red);
}

.etude-centre-card {
  border: 1px solid #afd0ef;
  border-radius: 1.5rem;
  padding: 20px;
  padding-bottom: 10px;
  height: 100%;
  background: #fff;
  transition:
    border-color 0.15s,
    background 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.etude-centre-card .centre-name {
  font-weight: bold;
}

.etude-centre-card.has-coords {
  cursor: pointer;
}
.etude-centre-card.has-coords:hover,
.etude-centre-card.has-coords.active {
  border-color: #e5f1fd;
  background: #e5f1fd;
}

.etude-centre-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 1000px;
  letter-spacing: 0.05em;
  position: absolute;
  right: 5px;
  bottom: 15px;
}

.etude-centre-badge--public {
  color: #3390cb;
}

.etude-centre-badge--prive {
  color: var(--red);
}

.etude-reutilisation-row {
  display: flex;
  align-items: flex-start;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
}

/* ================================================
   RÉUTILISATION DES DONNÉES – fiche détail
   ================================================ */

/* Bouton retour */
.rd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px 6px 14px;
  border: 1px solid #c5bedd;
  border-radius: 1000px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.rd-back-btn:hover {
  background: var(--bg-violet-ligth);
  color: var(--violet);
}

/* Carte en-tête */
.rd-header {
  background: #695c94;
  border-radius: 14px;
  padding: 20px 3rem 20px 3rem;
  margin-bottom: 4rem;
}
.rd-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.rd-header__left {
  flex: 1;
}
.rd-header__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 8px;
}
.rd-header__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0;
  margin-top: 10px;
  line-height: 1.1;
}
.rd-header__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 680px;
}
.rd-header__dates {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rd-header__date-item {
  display: flex;
  flex-direction: column;
}
.rd-header__date-label {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rd-header__date-value {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Sections de contenu */
.rd-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 20px;
}
.rd-section-body {
  font-size: 14px;
  color: var(--violet);
  line-height: 1.7;
  margin-bottom: 3rem;
}
.rd-section-body p {
  margin-bottom: 8px;
}

/* Sous-titres réglementation */
.rd-regl-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--violet);
  margin-bottom: 6px;
  margin-top: 0;
}

/* Responsive mobile */

/* ================================================
   FILTRE ÉTUDES
   ================================================ */
#filter_greffe {
  margin-bottom: 0 !important;
}

.etudes-filter--title {
  color: #fff;
  background-color: #695c94;
  font-size: 1rem;
  border-radius: 8px;
  padding: 0.3rem 1.5rem;
  font-weight: bold;
}

.etudes-filter {
  background: #f4f5fa;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.btn.btn-danger {
  background-color: var(--red);
  padding: 2px 15px;
  border-radius: 1000px;
  border: 1px solid var(--red);
}

.btn.btn-danger:hover {
  background-color: #fff;
  color: var(--red);
}

.etudes-filter .btn-primary {
  padding: 2px 50px;
  font-weight: 200;
}

.etudes-filter .btn-outline-secondary {
  padding: 2px 30px;
  border-color: var(--lightblue);
  color: var(--violet);
  background-color: #fff;
  border-radius: 1000px;
  font-weight: 200;
}

.etudes-filter .btn-outline-secondary:hover {
  background-color: var(--violet);
  color: #fff;
}

.filter-label {
  display: block !important;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0;
}

.etudes-filter input:not(.choices__input) {
  border-radius: 10px !important;
  padding: 0.4rem 1rem !important;
}

.etudes-filter .choices__input {
  font-size: 14px !important;
}

.etudes-filter input::placeholder {
  color: var(--violet);
}

.etudes-filter .choices {
  border-color: var(--lightblue);
  border-radius: 10px !important;
}

.etudes-filter .choices__inner {
  background: #fff
    url("../../../../../media/system/images/select-bg-violet.svg") 100% / 116rem
    no-repeat !important;
  color: var(--violet);
}

.filter-search {
  border-radius: 1000px !important;
  border: 1px solid var(--violet-light) !important;
  padding: 8px 20px !important;
  background: #fff !important;
  font-size: 14px;
}

.filter-search:focus {
  border-color: var(--violet) !important;
  box-shadow: 0 0 0 3px rgba(177, 176, 216, 0.35) !important;
}

.filter-select {
  border: 1px solid var(--violet-light);
  border-radius: 12px;
  background: #fff;
  color: var(--violet);
  font-size: 13px;
  padding: 4px 2px;
  width: 100%;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.filter-select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(177, 176, 216, 0.35);
  outline: none;
}

.filter-select option {
  padding: 5px 10px;
  border-radius: 6px;
}

.filter-select option:checked {
  background: var(--violet)
    linear-gradient(0deg, var(--violet) 0%, var(--violet) 100%);
  color: #fff;
}

.filter-greffe .btn-check + label {
  color: var(--violet);
  border-color: var(--lightblue);
  font-size: 13px;
  padding: 0.4rem 1rem;
  border-radius: 5px !important;
}

.filter-greffe .btn-check:checked + label {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.filter-divider {
  border: none;
  height: 2px;
  opacity: 0.4;
  margin: 1.5rem 0;
}

/* ================================================
   ÉTUDES IFM
   ================================================ */
.com_myelome.view-etudes,
.com_myelome.view-etude,
.com_myelome.view-reutilisationdonnee,
.com_myelome.view-reutilisationdonnees {
  background-image: url("../../../../../images/illustrations/points.webp");
  background-size: 300px;
  background-repeat: no-repeat;
  background-position: left 25% bottom calc(var(--footer-height, 450px) + 4%);
}

.com_myelome.view-etude {
  background-position: right 25% bottom calc(var(--footer-height, 450px) + -4%);
}

.com_myelome.view-etudes .container-component,
.com_myelome.view-etude .container-component,
.com_myelome.view-reutilisationdonnees .container-component,
.com_myelome.view-reutilisationdonnee .container-component {
  padding-bottom: 25rem;
}

.etudes-wrapper {
  overflow-x: auto;
}

.etudes-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  min-width: 900px;
}

/* Header */
.etudes-table thead th {
  background: #695c94;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  padding: 20px 10px;
  white-space: nowrap;
}
.etudes-table thead th a,
.etudes-table thead th a:hover {
  color: #fff;
  text-decoration: none;
}

.etudes-table thead th:first-child {
  border-radius: 12px 0 0 12px;
  padding-left: 20px;
}
.etudes-table thead th:last-child {
  border-radius: 0 12px 12px 0;
  padding-right: 16px;
}

/* Rows */
.etudes-table tbody tr {
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.etudes-table tbody tr:nth-child(even) {
  background: #f4f5fa;
}

/* Cells */
.etudes-table tbody td {
  padding: 14px 10px;
  vertical-align: middle;
}

.etudes-table tbody td:first-child {
  border-radius: 12px 0 0 12px;
  padding-left: 20px;
}
.etudes-table tbody td:last-child {
  border-radius: 0 12px 12px 0;
  padding-right: 16px;
}

/* Column styles */
.col-statut {
  color: var(--violet);
}
.col-titre {
  color: var(--violet);
  font-weight: 300;
  line-height: 1.4;
}
.col-promoteur {
  color: var(--violet);
  font-size: 14px;
  line-height: 1.4;
}
.col-arrow {
  text-align: right;
  width: 50px;
}

.etudes-acronyme {
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}
.etudes-nifm {
  color: var(--red);
  font-weight: 700;
}

.etudes-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* Accrual donut */
.etudes-donut {
  width: 60px;
  height: 60px;
}
.donut-track {
  stroke: var(--violet-light);
  stroke-width: 5;
}
.donut-fill {
  stroke: var(--violet);
  stroke-width: 5;
  stroke-linecap: round;
}
.donut-text {
  fill: var(--violet);
  font-size: 7px;
  font-weight: 700;
  font-family: var(--body-font-family);
}

/* Phase badge */
.etudes-phase-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--violet-light);
  border-radius: 1000px;
  color: var(--violet);
  font-size: 12px;
  white-space: nowrap;
}

/* Publication */
.etudes-pub-ok {
  color: #3aaa5e;
  font-size: 22px;
}
.etudes-pub-pending {
  color: var(--violet-light);
  font-size: 20px;
}

/* Arrow link */
.etudes-arrow {
  color: var(--violet-light);
  text-decoration: none !important;
}

/* ================================================
   ÉTUDES IFM — MOBILE
   ================================================ */

/* Décoration des pages */
.com_users.view-login,
.com_rsform.view-rsform {
  background-image:
    url("../../../../../images/illustrations/points-triangle.webp"),
    url("../../../../../images/illustrations/points.webp");
  background-size: 300px, 300px;
  background-repeat: no-repeat, no-repeat;
  background-position:
    left -55px bottom calc(var(--footer-height, 450px) + 6%),
    right -115px top calc(var(--header-height, 220px) + 20%);
}

.com_users.view-login .bottom-component {
  margin: 10rem 0;
}

.com_content.itemid-101 {
  background-image:
    url("../../../../../images/illustrations/points-triangle.webp"),
    url("../../../../../images/illustrations/points.webp");
  background-size: 300px, 300px;
  background-repeat: no-repeat, no-repeat;
  background-position:
    left 0 bottom calc(var(--footer-height, 450px) + 4%),
    right -115px top calc(var(--header-height, 220px) + 30%);
}

/* CONTACT */
#userForm {
  max-width: 800px;
  margin: 0 auto;
}

/* Vincent 24/04/26 Page adhésion */
.ifm-adhesion-process {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: inherit;
  color: #2f275f;
}

.ifm-adhesion-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 35px auto;
  font-size: 17px;
  line-height: 1.6;
  color: #2b2b2b;
}

.ifm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  margin-top: 60px;
}

.ifm-step {
  background: #ffffff;
  border: 1px solid rgba(64, 47, 123, 0.18);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(64, 47, 123, 0.08);
  position: relative;
}

.ifm-step-number {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  background: #402f7b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.ifm-step-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.ifm-step h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: #402f7b;
}

.ifm-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333333;
}

.ifm-actions {
  margin-top: 34px;
  text-align: center;
}

.ifm-button {
  display: inline-block;
  margin: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}

.ifm-button-primary {
  background: #ea6857;
  color: #ffffff;
  border: 1px solid #ea6857;
}

.ifm-button-secondary {
  background: #ffffff;
  color: #ea6857;
  border: 1px solid #ea6857;
}

.ifm-button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* ================================================
   TROMBINOSCOPE
   ================================================ */
.trombi {
  padding-bottom: 3rem;
}

/* ── Titre de la catégorie ── */
.trombi__category-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 2rem;
}

.trombi__title-highlight {
  color: var(--red);
  font-weight: inherit;
  font-size: 24px;
  margin-left: 20px;
  text-transform: lowercase;
}

/* ── En-tête de section ── */
.trombi-section__title {
  background-color: #695c94;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 400;
  padding: 5px 20px;
  border-radius: 1000px;
  margin-bottom: 1.75rem;
  text-transform: none;
}

.trombi-section__prefix {
  font-size: 0.8em;
  font-weight: 200;
  opacity: 0.75;
  margin-right: 2px;
  text-transform: lowercase;
}

/* ── Texte commun ── */
.trombi-card__name {
  color: var(--violet);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.trombi-card__text {
  font-size: 15px;
  font-weight: 200;
  color: var(--violet);
}

/* ================================================
   CARTE AVEC IMAGE
   ================================================ */
/* Mobile : photo et texte centrés */
.trombi-card--photo {
  text-align: center;
}

/* ≥ 576px : texte à gauche */

.trombi-card--photo .trombi-card__photo {
  margin-bottom: 0.875rem;
}

.trombi-card--photo .trombi-card__photo img {
  display: block;
  margin: 0 auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

/* ================================================
   CARTE SANS IMAGE (grille avec séparateurs)
   ================================================ */

/* Base : 1 colonne — pas de border-right, juste la séparation horizontale */
.trombi-card--no-photo {
  padding: 1rem 1.5rem;
  border-right: none;
  border-top: 1px solid var(--lightblue);
  height: 100%;
  text-align: start;
}

/* 1ère rangée (1 col) : pas de bordure en haut */
.trombi-grid--no-photo > div:first-child .trombi-card--no-photo {
  border-top: none;
}

/* ── sm ≥ 576px — 2 colonnes ── */

/* ── md ≥ 768px — 3 colonnes ── */

/* ── lg ≥ 992px — 4 colonnes ── */

/* ================================================
   ARCHIVE NEWSLETTERS (AcyMailing)
   ================================================ */
#acym_wrapper {
  font-family: var(--body-font-family);
  color: var(--violet);
}

#acym_wrapper .acym__front__archive .acym__front__archive__title {
  color: var(--violet);
  margin-bottom: 30px;
  font-size: 2rem !important;
  font-family: var(--body-font-family);
}

#acym__front__archive__search {
  margin-bottom: 2rem !important;
  flex-direction: column !important;
  align-items: flex-end;
}

#acym__front__archive__search input {
  border-radius: 1000px !important;
  border: 1px solid var(--violet) !important;
  padding: 0.75rem 1.2rem !important;
  font-size: 14px !important;
  color: var(--violet) !important;
  min-height: initial !important;
  height: initial !important;
  margin-right: 0 !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}

#acym__front__archive__search .btn-primary {
  background-color: var(--red) !important;
  border: none !important;
  color: #fff !important;
  padding: 2px 15px !important;
  text-decoration: none !important;
  display: inline-block !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  border-radius: 1000px !important;
  align-content: center !important;
  border: 1px solid var(--red) !important;
  min-height: 30px !important;
  margin-bottom: 0 !important;
  width: initial !important;
  min-width: initial !important;
  font-family: var(--body-font-family) !important;
}

#acym__front__archive__search .btn-primary:hover {
  background-color: #fff !important;
  color: var(--red) !important;
}

.acym__front__archive__items {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px;
}

.acym__front__archive__item {
  padding: 20px !important;
  background-color: var(--violet) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease-in-out !important;
  text-decoration: none !important;
  color: #fff !important;
}

.acym__front__archive__item h3 {
  font-size: 16px !important;
}

.acym__front__archive__item h3,
.acym__front__archive__item p {
  color: #fff !important;
}

/* ================================================
   RECHERCHE (Joomla Finder)
   ================================================ */

/* Zone de recherche */
.com-finder__form {
  padding: 2rem 0 2.5rem;
}

.com-finder__form .input-group {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.com-finder__form input.form-control {
  flex: 1;
  height: 40px;
  padding: 0 1rem;
  font-size: 1.05rem;
  color: var(--violet);
  border: 1px solid var(--violet);
  border-right: none;
  border-radius: 1000px 0 0 1000px;
  background: #fff;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-shadow: none;
}

.com-finder__form input.form-control:focus {
  border-color: var(--violet);
  box-shadow: none;
}

.com-finder__form .btn.btn-primary {
  height: 40px;
  padding: 0 1rem;
  border-radius: 0 1000px 1000px 0 !important;
  background-color: var(--red) !important;
  border: 2px solid var(--red) !important;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.com-finder__form .btn.btn-primary:hover {
  background-color: #c4503f !important;
  border-color: #c4503f !important;
  color: #fff !important;
}

/* Résumé de la recherche */
.com-finder__explained {
  margin-bottom: 1.5rem;
}

.com-finder__explained p {
  font-size: 1rem;
  color: var(--violet);
  margin: 0;
}

.com-finder__explained .query-required {
  color: var(--violet);
  font-weight: 600;
}

.com-finder__explained .term {
  color: var(--red);
}

/* Liste des résultats */
.com-finder__results-list {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
}

/* Card résultat */
li.result__item {
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid var(--violet);
  padding: 1.25rem 1.5rem;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  max-width: 70%;
}

li.result__item:hover {
  box-shadow: 0 6px 20px rgba(60, 42, 116, 0.12);
  border-color: var(--violet);
}

/* Titre du résultat */
p.result__title {
  margin: 0 0 0.4rem;
}

a.result__title-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
}

.result__title-text {
  font-size: 1.2rem;
  margin-top: 20px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--violet);
  transition: color 0.15s;
}

a.result__title-link:hover .result__title-text {
  color: var(--red);
}

cite.result__title-url {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--violet);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

/* Description */
p.result__description {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--violet);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

/* Date */
time.result__date {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.6rem;
}

/* Mot surligné */
mark[data-markjs],
.com-finder mark {
  background: var(--bg-violet-ligth);
  color: var(--violet);
  font-weight: 700;
  border-radius: 3px;
  padding: 0 2px;
}

/* Compteur et pagination */
.com-finder__navigation {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--violet);
  max-width: 70%;
}

.com-finder__counter {
  font-size: 0.82rem;
  color: var(--violet);
  font-weight: 600;
}

.com-finder__counter strong {
  color: var(--violet);
}

.awesomplete {
  min-width: 365px;
}

.com-users-reset__form legend {
  display: none !important;
}

/* COMPOSANT - CENTRES IFM */
.view-centres .container {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.view-centres .site-grid {
  display: block;
  margin: 0 !important;
}

.view-centres footer {
  margin-top: 0 !important;
}

/* Layout */
#centres-app {
  height: calc(100vh - 130px);
  min-height: 520px;
}

#centres-sidebar {
  width: 360px;
}

.centre-type {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 1000px;
  letter-spacing: 0.05em;
  position: absolute;
  right: 5px;
  bottom: 15px;
  border: 1px solid;
  line-height: normal;
}

.centre-type--public {
  color: #3390cb;
}

.centre-type--prive {
  color: var(--red);
}

#centres-sidebar .btn-outline-secondary.active {
  background-color: var(--red);
  border-color: var(--red);
}

#centres-sidebar .btn-outline-warning.active {
  background-color: var(--orange-link);
  border-color: var(--orange-link);
}

#centres-sidebar .btn-outline-info.active {
  background-color: #224faa;
  border-color: #224faa;
}

/* Cartes liste */
.centre-card {
  cursor: pointer;
  border-left: 3px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
  color: var(--violet);
  position: relative;
  padding-bottom: 3rem !important;
}

.centre-card:hover {
  background: #f5f4fb;
}

.centre-card.active {
  border-left-color: var(--violet);
  background: #eceaf6;
}

.centre-card .centre-name {
  color: var(--violet);
}

.centre-card .centre-address {
  font-size: 0.78rem;
  color: var(--violet);
}

.centre-card .centre-type {
  font-size: 0.68rem;
  padding: 1px 7px;
}

.centres-title {
  color: var(--violet);
  font-size: 1.8rem;
  text-align: center;
  text-transform: uppercase;
}

/* ── Card centre ── */
#centre-card {
  position: absolute;
  z-index: 1000;
  width: 300px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#centre-card.visible {
  opacity: 1;
  pointer-events: auto;
}

#centre-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 14px 12px 18px;
  border-bottom: 1px solid #eee;
}

#centre-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--violet);
  line-height: 1.35;
}

#centre-card-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
  padding: 0 0 0 12px;
  flex-shrink: 0;
  transition: color 0.15s;
}

#centre-card-close:hover {
  color: #333;
}

#centre-card-body {
  padding: 14px 18px 18px;
}

#centre-card-address {
  color: #555;
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 14px;
  white-space: pre-line;
}

/* ── Liste des études dans la card ── */
.centre-card-etudes-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin: 0 0 6px;
}

.centre-card-etudes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.centre-card-etude-badge {
  display: inline-block;
  background: #f0eef9;
  color: var(--violet);
  border: 1px solid #d4cff0;
  border-radius: 1000px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  white-space: nowrap;
  text-decoration: none !important;
  transition:
    background 0.15s,
    color 0.15s;
}

.centre-card-etude-badge:hover {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

/* ── Bouton retour métropole ── */
#return-metro-btn {
  background: var(--violet);
  color: #fff;
  border: none;
  border-radius: 1000px;
  padding: 9px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 14px rgba(60, 42, 116, 0.45);
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
  text-align: center;
  pointer-events: auto;
  letter-spacing: 0.01em;
}

#return-metro-btn:hover {
  background: #2d1f58;
  box-shadow: 0 6px 18px rgba(60, 42, 116, 0.55);
  transform: translateY(-1px);
}

/* ── Encarts outre-mer ── */
.inset-box {
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.inset-box:hover {
  box-shadow: 0 4px 14px rgba(60, 42, 116, 0.35) !important;
}

.inset-box.active .inset-label {
  background: var(--violet) !important;
  color: #fff !important;
}

/* Mobile */
@media (max-width: 767.98px) {
  #centres-app {
    height: 100svh;
  }

  #map {
    height: 55%;
    order: 1;
  }

  #centres-sidebar {
    width: 100%;
    height: 45%;
    border-right: none !important;
    border-top: 1px solid #dee2e6;
    order: 2;
  }

  #inset-wrap {
    display: none;
  }

  #overseas-badge {
    font-size: 0.65rem;
  }
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (min-width: 576px) {
  /* Formulaire upload */
  #candidatureForm .rsform-block.rsform-type-fileupload .col-sm-3 {
    flex: none;
    width: 33.3333%;
  }

  #candidatureForm .rsform-block.rsform-type-fileupload .col-sm-9 {
    flex: none;
    width: 66.6667%;
  }

  /* Banner */
  .banner img {
    height: 240px;
  }

  .banner-title h1 > span:not(.highlight) {
    font-size: 26px;
    padding: 14px 24px;
  }

  /* Chiffres */
  .chiffres .chiffres__item-chiffre {
    width: 42%;
  }

  .chiffres .chiffres__item-chiffre .chiffre--value {
    font-size: 50px;
  }

  /* Menu cards — 2 colonnes */
  .menu-cards ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-cards ul li {
    min-height: 170px;
  }

  /* Tableau études : afficher Titre (3) et Phase (8) */
  .table-responsive table thead tr th:nth-child(3),
  .table-responsive table thead tr th:nth-child(8),
  .table-responsive table tbody tr td:nth-child(3),
  .table-responsive table tbody tr td:nth-child(8) {
    display: table-cell;
  }

  .trombi-card--photo {
    text-align: start;
  }

  .trombi-card--no-photo {
    border-right: 1px solid var(--lightblue);
  }

  /* 1ère rangée (2 cols) */
  .trombi-grid--no-photo > div:nth-child(-n + 2) .trombi-card--no-photo {
    border-top: none;
  }

  /* 2e colonne : pas de border-right */
  .trombi-grid--no-photo > div:nth-child(2n) .trombi-card--no-photo {
    border-right: none;
  }

  .trombi-card--photo .trombi-card__photo img {
    margin: initial;
  }
}

@media (min-width: 768px) {
  /* Top header */
  .top-header {
    padding: 0 40px;
  }

  .top-header ul {
    gap: 20px;
  }

  .top-header ul li a {
    font-size: 14px;
  }

  /* Header */
  .header {
    padding: 0 40px;
    flex-wrap: nowrap;
  }

  .header .nav {
    gap: 16px;
    flex-wrap: nowrap;
  }

  .header .nav a {
    font-size: 16px;
  }

  /* Banner */
  .banner {
    flex-direction: row;
    padding: 30px 0;
    text-align: left;
  }

  .banner img {
    height: 380px;
  }

  .banner-title h1 > span:not(.highlight) {
    font-size: 32px;
    padding: 16px 30px;
    width: max-content;
  }

  /* Chiffres */
  .chiffres .chiffres__item-chiffre {
    width: 28%;
  }

  /* Centres */
  .module-nos-centres {
    margin: 5rem 0;
  }

  .card-centre {
    flex-direction: row;
    border-radius: 80px 20px 20px 80px;
    height: 280px;
    padding: 30px 0;
    gap: 3rem;
    text-align: left;
    width: max-content;
    min-width: 550px;
  }

  .card-centre--img {
    margin-left: -60px;
  }

  .card-centre--img img {
    width: 280px;
    height: 280px;
  }

  .card-centre--content {
    padding-right: 2rem;
  }

  /* Modules */
  .module-actualites {
    padding: 60px 40px;
  }
  .module-adherez-ifm {
    padding: 60px 40px;
  }
  .module-adherez-candidature {
    padding: 30px;
  }
  .module-partenaires {
    padding: 60px 40px;
  }

  .card-adherez-ifm {
    padding: 3rem 2rem 3rem 3rem;
  }

  .module-partenaires h2 {
    font-size: 1.3rem;
    padding: 18px 50px;
  }

  .module-partenaires .logos {
    gap: 3rem;
    margin-top: 60px;
  }

  /* Footer */
  footer {
    padding: 4rem 40px;
    margin-top: 7rem;
  }

  footer .footer--inner {
    flex-direction: row;
    gap: 4rem;
  }

  footer .footer--inner > div:not(:first-child)::before {
    content: "";
    display: flex;
    width: 1px;
    height: 100%;
    background-color: var(--red);
    margin-top: 0;
    margin-right: 40px;
  }

  /* Formulaire */
  #candidatureForm {
    padding: 0 40px;
  }

  /* Login */
  .com-users-login {
    padding: 0;
  }

  /* Tableau études : afficher N°IFM (4), Logo (5), Accrual (7) */
  .table-responsive table thead tr th:nth-child(4),
  .table-responsive table thead tr th:nth-child(5),
  .table-responsive table thead tr th:nth-child(7),
  .table-responsive table tbody tr td:nth-child(4),
  .table-responsive table tbody tr td:nth-child(5),
  .table-responsive table tbody tr td:nth-child(7) {
    display: table-cell;
  }

  .awesomplete {
    min-width: 500px;
  }

  .trombi-card--photo .trombi-card__photo img {
    width: 180px;
    height: 180px;
  }

  /* Remet border-top sur la 2e colonne (reset sm) */
  .trombi-grid--no-photo > div:nth-child(2n) .trombi-card--no-photo {
    border-top: 1px solid var(--lightblue);
  }

  /* 1ère rangée (3 cols) */
  .trombi-grid--no-photo > div:nth-child(-n + 3) .trombi-card--no-photo {
    border-top: none;
  }

  /* Remet border-right sur la 2e colonne (reset sm) */
  .trombi-grid--no-photo > div:nth-child(2n) .trombi-card--no-photo {
    border-right: 1px solid var(--lightblue);
  }

  /* 3e colonne : pas de border-right */
  .trombi-grid--no-photo > div:nth-child(3n) .trombi-card--no-photo {
    border-right: none;
  }
}

@media (min-width: 992px) {
  .container-nav .mod-menu {
    gap: 20px;
  }

  /* Top header */
  .top-header {
    padding: 0 60px;
  }

  .top-header ul {
    gap: 25px;
  }

  /* Header */
  .header {
    padding: 0 60px;
  }

  .header .nav {
    gap: 20px;
  }

  .header .nav a {
    font-size: 18px;
  }

  /* Banner */
  .banner img {
    height: 500px;
  }

  .banner-title h1 > span:not(.highlight) {
    font-size: 40px;
    padding: 20px 40px;
  }

  /* Chiffres */
  .chiffres .chiffres__item-chiffre {
    width: 20%;
  }

  .chiffres .chiffres__item-chiffre .chiffre--value {
    font-size: 68px;
  }

  /* Menu cards — grille 9 colonnes */
  .menu-cards {
    padding: 80px 0;
  }

  .menu-cards ul {
    grid-template-columns: repeat(9, 1fr);
  }

  .menu-cards ul li {
    min-height: 200px;
  }

  /* Ligne 1 : 3 cartes égales */
  .menu-cards ul li:nth-child(1) {
    grid-column: 1 / 4;
  }
  .menu-cards ul li:nth-child(2) {
    grid-column: 4 / 7;
  }
  .menu-cards ul li:nth-child(3) {
    grid-column: 7 / 10;
  }

  /* Ligne 2 : 1 grande + 3 petites */
  .menu-cards ul li:nth-child(4) {
    grid-column: 1 / 4;
  }
  .menu-cards ul li:nth-child(5) {
    grid-column: 4 / 6;
  }
  .menu-cards ul li:nth-child(6) {
    grid-column: 6 / 8;
  }
  .menu-cards ul li:nth-child(7) {
    grid-column: 8 / 10;
  }

  /* Modules */
  .module-actualites {
    padding: 80px 120px;
  }
  .module-adherez-ifm {
    padding: 80px 120px;
  }
  .module-partenaires {
    padding: 80px 120px;
  }

  .card-adherez-ifm {
    padding: 4rem 2rem 4rem 4rem;
  }

  .card-adherez-ifm .card-content {
    font-size: 18px;
  }

  .card-adherez-ifm h2 {
    font-size: 2.2rem;
    margin-bottom: 0 !important;
  }

  .card-adherez-ifm img {
    min-height: 300px;
    width: auto;
    object-fit: cover;
  }

  .module-partenaires h2 {
    font-size: 1.4rem;
    padding: 20px 60px;
  }

  .module-partenaires .logos {
    gap: 4rem;
    margin-top: 80px;
  }

  /* Footer */
  footer {
    padding: 5rem 60px;
    margin-top: 10rem;
  }

  /* Formulaire */
  #candidatureForm {
    padding: 0 60px;
  }

  /* Tableau études : toutes colonnes visibles — Promoteur (6), Publication (9) */
  .table-responsive table thead tr th:nth-child(6),
  .table-responsive table thead tr th:nth-child(9),
  .table-responsive table tbody tr td:nth-child(6),
  .table-responsive table tbody tr td:nth-child(9) {
    display: table-cell;
  }

  .trombi-card--no-photo {
    padding: 1.5rem 4rem;
  }

  /* Remet border-top sur les 3 premières colonnes (reset md) */
  .trombi-grid--no-photo > div:nth-child(-n + 3) .trombi-card--no-photo {
    border-top: 1px solid var(--lightblue);
  }

  /* 1ère rangée (4 cols) */
  .trombi-grid--no-photo > div:nth-child(-n + 4) .trombi-card--no-photo {
    border-top: none;
  }

  /* Remet border-right sur la 3e colonne (reset md) */
  .trombi-grid--no-photo > div:nth-child(3n) .trombi-card--no-photo {
    border-right: 1px solid var(--lightblue);
  }

  /* 4e colonne : pas de border-right */
  .trombi-grid--no-photo > div:nth-child(4n) .trombi-card--no-photo {
    border-right: none;
  }

  body:not(.itemid-314, .itemid-315) .com-content-article__body {
    column-count: 2;
  }

  .adhesion-label,
  .com-users-profile .profile-label {
    font-size: 2rem;
  }

  .profile-heading {
    font-size: 2rem;
  }
}

@media (min-width: 1280px) {
  .menu-hamburger {
    display: none;
  }

  .container-nav .mod-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    position: static;
    background: transparent;
    border-top: none;
    box-shadow: none;
    padding: 0;
    gap: 16px;
  }

  /* Sous-menus positionnés en absolu par rapport au parent */
  .container-nav .mod-menu .parent {
    position: relative;
  }

  .container-nav .mod-menu .mod-menu__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
    border-radius: 0 0 10px 10px;
    border-left: none;
    min-width: 220px;
    padding: 8px 0 8px;
    padding-top: 12px; /* zone de survol continue entre le lien et le sous-menu */
    z-index: 9999;
    white-space: nowrap;
  }

  /* Afficher le sous-menu au survol */
  .container-nav .mod-menu .parent:hover > .mod-menu__sub {
    display: block;
  }

  .container-nav .mod-menu .mod-menu__sub li a {
    padding: 9px 18px;
    font-size: 14px;
    display: block;
    text-transform: none;
    font-weight: 500;
  }

  .container-nav .mod-menu .mod-menu__sub li a:hover {
    color: var(--red);
  }

  /* Sous-menu : pas de barre active, texte orange uniquement */
  .container-nav .mod-menu .mod-menu__sub li.active > a,
  .container-nav .mod-menu .mod-menu__sub li.current > a {
    color: var(--orange-link);
  }

  /* ── Niveau 3 desktop : apparaît à droite du niveau 2 ── */
  .container-nav .mod-menu .mod-menu__sub .parent {
    position: relative;
  }

  /* Indicateur visuel flèche sur les items L2 ayant un L3 */
  .container-nav .mod-menu .mod-menu__sub .parent > a::after {
    content: "›";
    float: right;
    margin-left: 10px;
    opacity: 0.5;
    font-size: 1rem;
    line-height: 1;
  }

  .container-nav .mod-menu .mod-menu__sub .mod-menu__sub {
    display: none;
    position: absolute;
    top: -8px; /* compense le padding-top du L2 */
    left: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
    border-radius: 0 10px 10px 10px;
    border-left: none;
    min-width: 210px;
    padding: 8px 0;
    z-index: 10000;
    white-space: nowrap;
  }

  /* Afficher L3 au survol d'un item L2 parent */
  .container-nav .mod-menu .mod-menu__sub .parent:hover > .mod-menu__sub {
    display: block;
  }

  .container-nav .mod-menu .mod-menu__sub .mod-menu__sub li a {
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 500;
    text-transform: none;
  }

  .container-nav .mod-menu .mod-menu__sub .mod-menu__sub li a:hover {
    color: var(--red);
  }
}

@media screen and (min-width: 1440px) {
  footer .footer--inner {
    gap: 8rem;
  }
}

@media (max-width: 575.98px) {
  .rd-header {
    padding: 22px 20px;
  }
  .rd-header__inner {
    flex-direction: column;
  }
  .rd-header__dates {
    flex-direction: row;
    gap: 20px;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .etudes-table,
  .etudes-table tbody,
  .etudes-table tr,
  .etudes-table td {
    display: block;
    width: 100%;
  }

  .etudes-table thead {
    display: none;
  }

  .etudes-table tbody {
    border-spacing: 0;
  }

  .etudes-table tbody tr {
    border-radius: 12px;
    margin-bottom: 8px;
    padding: 4px 16px;
    filter: none;
  }

  .etudes-table tbody tr:nth-child(even) {
    background: #f4f5fa;
  }

  .etudes-table tbody td {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0eef8;
    border-radius: 0 !important;
    text-align: left !important;
  }

  .etudes-table tbody td:last-child {
    border-bottom: none;
    justify-content: flex-end;
  }

  .etudes-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 11px;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 120px;
    flex-shrink: 0;
  }

  .etudes-table tbody td:last-child::before {
    display: none;
  }
  .etudes-table tbody td.col-arrow {
    padding-top: 4px;
  }

  /* ── Top header : style "app mobile" ── */
  .top-header {
    padding: 6px 0;
    justify-content: stretch;
    gap: 0;
  }

  .top-header .moduletable {
    flex: 1;
  }

  .top-header ul {
    width: 100%;
    justify-content: space-around;
    gap: 0;
  }

  .top-header .nav-item {
    flex: 1;
  }

  .top-header .nav-item a {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.58rem;
    letter-spacing: 0.01em;
    padding: 8px 4px 6px;
    gap: 5px;
    line-height: 1.2;
  }

  .top-header .nav-item a span {
    order: 0;
    font-size: 1.5rem;
    margin-left: 0;
    line-height: 1;
  }

  .top-header .menu-top-logged li {
    background-color: transparent;
    border-bottom: none;
  }

  .top-header .menu-top-logged li a {
    color: #fff;
    padding: 0;
  }
}

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

  .ifm-step {
    padding: 24px 20px;
  }
}

/* ================================================
   CONFIRMATION D'ADHÉSION (OSMembership)
   ================================================ */

#osm-subscription-complete {
  max-width: 960px;
  margin: 2.5rem auto 5rem;
  padding: 0 1.5rem;
  font-family: var(--body-font-family);
}

/* ── Hero ── */
.osm-page-title {
  background: linear-gradient(
    135deg,
    #180d3a 0%,
    var(--violet) 50%,
    #6b44c4 100%
  );
  color: #fff !important;
  margin: 0 0 2.5rem;
  padding: 4rem 3rem 3.5rem !important;
  border-radius: 24px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.03em;
  position: relative;
  overflow: hidden;
}

/* Cercles décoratifs */
.osm-page-title::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* Second cercle gauche */
#osm-subscription-complete .osm-page-title {
  isolation: isolate;
}

/* Check au-dessus du titre */
.osm-page-title::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--red);
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 6px 28px rgba(221, 98, 82, 0.55);
  position: relative;
  z-index: 1;
}

/* ── Message d'intro (« Merci Steven… ») ── */
#osm-subscription-complete > p {
  color: var(--violet);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

#osm-subscription-complete > p strong {
  color: var(--red);
  font-weight: 700;
}

.osm-message {
  display: none; /* vide — on l'efface */
}

/* ── Tableau des détails ── */
table.os_table {
  width: 100% !important;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(60, 42, 116, 0.1);
  border: 1.5px solid rgba(60, 42, 116, 0.15);
  margin: 1.5rem 0 2rem;
}

table.os_table tr {
  border-bottom: 1px solid rgba(60, 42, 116, 0.07);
  transition: background 0.15s;
}

table.os_table tr:last-child {
  border-bottom: none;
}

table.os_table tr:hover {
  background: var(--bg-violet-ligth);
}

.title_cell {
  padding: 0.85rem 1.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet-light);
  background: transparent;
  vertical-align: middle;
  width: 38%;
}

.field_cell {
  padding: 0.85rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--violet);
  vertical-align: middle;
}

/* Mise en avant du tarif */
table.os_table tr:has(.field_cell) .title_cell[width],
table.os_table tr .field_cell {
  color: var(--violet);
}

/* Ligne Tarif : valeur en rouge */
table.os_table tr:nth-last-child(3) .field_cell,
table.os_table tr:has(.title_cell:last-of-type) + tr .field_cell {
  color: var(--red);
  font-weight: 800;
  font-size: 1rem;
}

/* ── Signatures finales ── */
#osm-subscription-complete > p:last-of-type,
#osm-subscription-complete > p:nth-last-of-type(2),
#osm-subscription-complete > p:nth-last-of-type(3) {
  color: var(--violet-light);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

#osm-subscription-complete > p:last-of-type strong,
#osm-subscription-complete > p:nth-last-of-type(2) strong,
#osm-subscription-complete > p:nth-last-of-type(3) strong {
  color: var(--violet);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  #osm-subscription-complete {
    margin: 1.5rem auto 3rem;
    padding: 0 1rem;
  }

  .osm-page-title {
    border-radius: 16px;
    padding: 2.5rem 1.5rem 2rem;
    font-size: 1.7rem;
  }

  .osm-page-title::before {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  table.os_table {
    border-radius: 12px;
  }

  .title_cell,
  .field_cell {
    display: block;
    width: 100% !important;
  }

  .title_cell {
    padding-bottom: 0.2rem;
    border-bottom: none;
  }

  .field_cell {
    padding-top: 0.2rem;
  }
}

/* ================================================
   MOD ADHESION — RESPONSIVE
   ================================================ */

/* ── Tablette (< 768px) : empilement carte + panneau ── */
@media (max-width: 767.98px) {
  .adhesion-current {
    box-shadow: 0 8px 32px rgba(60, 42, 116, 0.18);
  }

  .adhesion-card {
    border-radius: 20px 20px 0 0;
    min-height: 180px;
    padding: 1.5rem;
  }

  .adhesion-card__title {
    font-size: 1.45rem;
  }

  .adhesion-card__icon {
    opacity: 0.14;
    right: 1rem;
  }

  .adhesion-status-panel {
    border-radius: 0 0 20px 20px;
    border-left: 1px solid #ece9f8;
    border-top: none;
    padding: 1.25rem 1.5rem;
  }

  .adhesion-history-item {
    padding: 0.65rem 1rem;
    gap: 0.75rem;
  }

  .adhesion-alert {
    padding: 1.25rem 1.25rem;
  }
}

/* ── Mobile (< 480px) : ajustements texte ── */
@media (max-width: 479.98px) {
  .adhesion-card__title {
    font-size: 1.25rem;
  }

  .adhesion-card__icon {
    display: none;
  }

  .adhesion-status-grid {
    grid-template-columns: auto 1fr;
    gap: 0.4rem 0.75rem;
  }

  .adhesion-history-item__title {
    font-size: 0.8rem;
  }

  .adhesion-history-item__amount {
    font-size: 0.78rem;
  }

  .adhesion-history-badge {
    display: none;
  }

  .adhesion-alert {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ================================================
   PAGINATION
   ================================================ */

.com-content-category-blog__pagination {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.pagination__wrapper {
  display: flex;
  justify-content: center;
}

/* Reset Bootstrap et mise en forme custom */
.pagination__wrapper .pagination {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 0 !important;
}

.pagination__wrapper .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #e0daf0;
  background: #fff;
  color: var(--violet);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  box-shadow: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

/* Boutons précédent / suivant légèrement plus larges */
.pagination__wrapper .page-item:first-child .page-link,
.pagination__wrapper .page-item:nth-child(2) .page-link,
.pagination__wrapper .page-item:nth-last-child(2) .page-link,
.pagination__wrapper .page-item:last-child .page-link {
  width: 40px;
  color: #8a7faa;
  font-size: 0.7rem;
}

/* Page active */
.pagination__wrapper .page-item.active .page-link {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  cursor: default;
  box-shadow: 0 4px 14px rgba(60, 42, 116, 0.28);
}

/* Désactivé */
.pagination__wrapper .page-item.disabled .page-link {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* Hover */
.pagination__wrapper .page-item:not(.active):not(.disabled) .page-link:hover {
  background: var(--bg-violet-ligth);
  border-color: var(--violet);
  color: var(--violet);
}

/* ═══════════════════════════════════════════════════════
   Formulaire d'adhésion — section paiement
   ═══════════════════════════════════════════════════════ */

.adhesion-page {
  max-width: 720px;
  margin: 0 auto;
}

.adhesion-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--violet);
  margin-bottom: 1.5rem;
}

.adhesion-info-block {
  margin-bottom: 1.5rem;
}

.adhesion-info-card {
  background: var(--bg-violet-ligth);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
  height: 100%;
}

.adhesion-info-card--amount {
  background: var(--violet);
  color: #fff;
}

.adhesion-info-card--amount .adhesion-info-label {
  color: rgba(255, 255, 255, 0.75);
}
.adhesion-info-card--amount .adhesion-info-value {
  color: #fff;
}

.adhesion-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--violet);
  opacity: 0.65;
  margin-bottom: 0.2rem;
}

.adhesion-info-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--violet);
  line-height: 1.2;
}

/* ── Conteneur section paiement ── */
.adhesion-payment-mode {
  margin-top: 2rem;
  background: #fff;
  border: 1px solid #e4dff5;
  border-radius: 18px;
  padding: 1.5rem 1.75rem 1.75rem;
  box-shadow: 0 4px 20px rgba(60, 42, 116, 0.07);
}

.adhesion-section-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--violet);
  opacity: 0.45;
  margin-bottom: 1.1rem;
}

/* ── Grille des cartes ── */
.adhesion-mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 520px) {
  .adhesion-mode-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Carte individuelle ── */
.adhesion-mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.1rem;
  border: 2px solid #ddd8f0;
  border-radius: 14px;
  cursor: pointer;
  background: #fafafe;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  overflow: hidden;
}

/* Cercle indicateur haut-droite */
.adhesion-mode-card::after {
  content: "";
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c5bfe4;
  background: #fff;
  transition:
    background 0.18s,
    border-color 0.18s;
}

.adhesion-mode-card:hover {
  border-color: #9d91cc;
  background: #f5f3fc;
  box-shadow: 0 4px 14px rgba(60, 42, 116, 0.09);
}

.adhesion-mode-card--active {
  border-color: var(--violet);
  background: linear-gradient(145deg, #f0eeff 0%, #f9f8ff 100%);
  box-shadow: 0 6px 22px rgba(60, 42, 116, 0.14);
}

/* Coche sur carte active */
.adhesion-mode-card--active::after {
  border-color: var(--violet);
  background: var(--violet);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Radio totalement invisible */
.adhesion-mode-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* ── Icône + label ── */
.adhesion-mode-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  padding-right: 1.75rem;
}

.adhesion-mode-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(60, 42, 116, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--violet);
  flex-shrink: 0;
  transition:
    background 0.18s,
    color 0.18s;
}

.adhesion-mode-card--active .adhesion-mode-icon {
  background: var(--violet);
  color: #fff;
}

.adhesion-mode-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--violet);
  line-height: 1.25;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Badge "Recommandé" doré */
.adhesion-mode-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.22em 0.7em;
  border-radius: 99px;
  background: linear-gradient(90deg, #f0a500, #ffcc44);
  color: #5a3800;
  line-height: 1.5;
  flex-shrink: 0;
}

.adhesion-mode-desc {
  font-size: 0.78rem;
  color: #7a6ea8;
  line-height: 1.5;
  margin-top: 0.1rem;
}

/* ── Coordonnées virement ── */
.adhesion-virement-info {
  border-radius: 12px;
  border-left: 3px solid var(--violet);
  background: var(--bg-violet-ligth);
  padding: 1rem 1.25rem;
  font-size: 0.84rem;
  color: var(--violet);
}

.adhesion-virement-info__title {
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.adhesion-virement-info__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  align-items: baseline;
}

.adhesion-virement-info__key {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.55;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.adhesion-virement-info__val {
  font-family: "Courier New", monospace;
  font-size: 0.83rem;
  font-weight: 600;
  word-break: break-all;
}

.adhesion-virement-info__note {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(60, 42, 116, 0.12);
  font-size: 0.73rem;
  opacity: 0.6;
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  line-height: 1.5;
}

/* ── Bouton submit ── */
.adhesion-submit-row {
  margin-top: 1.75rem;
}

.adhesion-submit-row .btn {
  min-width: 260px;
  font-weight: 700;
  letter-spacing: 0.025em;
  padding: 0.85rem 2.25rem;
  font-size: 1rem;
  border-radius: 12px;
  background: var(--violet);
  border-color: var(--violet);
  box-shadow: 0 4px 14px rgba(60, 42, 116, 0.25);
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.12s;
}

.adhesion-submit-row .btn:hover,
.adhesion-submit-row .btn:focus {
  background: #2d1f59;
  border-color: #2d1f59;
  box-shadow: 0 6px 20px rgba(60, 42, 116, 0.35);
  transform: translateY(-1px);
}

.adhesion-submit-row .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(60, 42, 116, 0.2);
}

/* ================================================
   MON COMPTE — DASHBOARD
   ================================================ */

.compte-page {
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

/* ── Header ── */
.compte-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid #ece9f8;
}

.compte-header__hello {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet-light);
  margin-bottom: 0.15rem;
}

.compte-header__name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--violet);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
}

.compte-header__since {
  font-size: 0.8rem;
  color: var(--violet-light);
  margin: 0.3rem 0 0;
}

/* ── Buttons ── */
.compte-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.compte-btn--outline {
  border-color: var(--violet);
  color: var(--violet);
  background: transparent;
}
.compte-btn--outline:hover {
  background: var(--violet);
  color: #fff;
}

.compte-btn--white {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.compte-btn--white:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.compte-btn--light {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}
.compte-btn--light:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.compte-btn--primary {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}
.compte-btn--primary:hover {
  background: #2d1f59;
  border-color: #2d1f59;
  color: #fff;
  transform: translateY(-1px);
}

.compte-btn--cta {
  background: #fff;
  color: var(--violet);
  border-color: transparent;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(60, 42, 116, 0.2);
}
.compte-btn--cta:hover {
  background: #f0ecfc;
  color: var(--violet);
  transform: translateY(-1px);
}

/* ── Adhesion card ── */
.compte-adhesion-card {
  border-radius: 20px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Decorative circle */
.compte-adhesion-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.compte-adhesion-card--active {
  background: linear-gradient(
    135deg,
    #1a0a3e 0%,
    var(--violet) 50%,
    #5c35b0 100%
  );
  box-shadow: 0 12px 40px rgba(60, 42, 116, 0.35);
  color: #fff;
}

.compte-adhesion-card--pending {
  background: linear-gradient(135deg, #7c4500 0%, #b06200 50%, #cf7800 100%);
  box-shadow: 0 12px 40px rgba(130, 80, 0, 0.3);
  color: #fff;
}

.compte-adhesion-card--none {
  background: linear-gradient(135deg, #2a1f5a 0%, #3c2a74 100%);
  box-shadow: 0 8px 28px rgba(60, 42, 116, 0.25);
  color: rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.compte-adhesion-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3em 0.85em;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  align-self: flex-start;
}

.compte-adhesion-card__badge--pending {
  background: rgba(0, 0, 0, 0.2);
}

.compte-adhesion-card__year {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
}

.compte-adhesion-card__none-icon {
  font-size: 2.75rem;
  color: rgba(255, 255, 255, 0.25);
}

.compte-adhesion-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.compte-adhesion-card__validity,
.compte-adhesion-card__amount {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.compte-adhesion-card__validity strong {
  color: #fff;
  font-weight: 700;
}

.compte-adhesion-card__expiry-warning {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffd57e;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 180, 0, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(255, 180, 0, 0.25);
}

.compte-adhesion-card__pending-info {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  line-height: 1.5;
}

.compte-adhesion-card__none-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.5;
}

.compte-adhesion-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* ── Expired banner ── */
.compte-adhesion-expired {
  background: #fff5f5;
  border: 1.5px solid #f5c6c6;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c0392b;
}

.compte-adhesion-expired a {
  color: #c0392b;
}

/* ── Quick links ── */
.compte-quicklinks {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.compte-quicklink {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #ece9f8;
  text-decoration: none;
  color: var(--violet);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.compte-quicklink:hover {
  border-color: var(--violet);
  background: var(--bg-violet-ligth);
  color: var(--violet);
}

.compte-quicklink > i:first-child {
  width: 20px;
  text-align: center;
  color: var(--violet-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.compte-quicklink > span {
  flex: 1;
}

.compte-quicklink__arrow {
  font-size: 0.65rem;
  color: var(--violet-light);
}

/* ── Section cards (right column) ── */
.compte-section {
  background: #fff;
  border: 1.5px solid #ece9f8;
  border-radius: 16px;
  padding: 1.5rem;
}

.compte-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0edf8;
}

.compte-section__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
}

.compte-section__link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--violet-light);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.compte-section__link:hover {
  color: var(--violet);
}

/* ── Profile grid ── */
.compte-profile-grid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.compte-profile-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  transition: background 0.12s;
}

.compte-profile-row:hover {
  background: var(--bg-violet-ligth);
}

.compte-profile-row__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-violet-ligth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--violet);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.compte-profile-row__content {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.compte-profile-row__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--violet-light);
}

.compte-profile-row__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--violet);
  word-break: break-word;
}

/* ── History table ── */
.compte-history-table {
  margin: 0;
  font-size: 0.85rem;
}

.compte-history-table thead th {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--violet-light);
  border-bottom: 2px solid #ece9f8;
  padding: 0.5rem 0.75rem;
  background: transparent;
}

.compte-history-table tbody td {
  padding: 0.6rem 0.75rem;
  vertical-align: middle;
  border-color: #f5f3fc;
  color: var(--violet);
}

.compte-history-table tbody tr:hover td {
  background: var(--bg-violet-ligth);
}

/* ── Empty state ── */
.compte-empty {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.compte-empty__icon {
  font-size: 2.5rem;
  color: #d4cfe8;
}

.compte-empty p {
  color: var(--violet-light);
  margin: 0;
  font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .compte-page {
    margin-top: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .compte-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .compte-adhesion-card {
    min-height: 0;
  }

  .compte-adhesion-card__year {
    font-size: 2.5rem;
  }

  .compte-section {
    padding: 1.25rem;
  }
}

@media (max-width: 479.98px) {
  .compte-adhesion-card {
    padding: 1.25rem;
  }

  .compte-adhesion-card__year {
    font-size: 2rem;
  }
}

/* ================================================
   MODIFIER MON PROFIL (com_users profile/edit)
   ================================================ */

.profil-edit-page {
  max-width: 720px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

/* ── Header ── */
.profil-edit-header {
  margin-bottom: 2rem;
}

.profil-edit-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet-light);
  text-decoration: none;
  transition: color 0.15s;
  margin-bottom: 0.75rem;
}

.profil-edit-back:hover {
  color: var(--violet);
}

.profil-edit-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--violet);
  margin: 0;
  letter-spacing: -0.03em;
  text-transform: none;
  line-height: 1.15;
}

/* ── Section cards ── */
.profil-edit-section {
  background: #fff;
  border: 1.5px solid #ece9f8;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.profil-edit-section__header {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet);
  opacity: 0.55;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0edf8;
  display: flex;
  align-items: center;
}

.profil-edit-section__desc {
  font-size: 0.82rem;
  color: var(--violet-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.profil-edit-section__fields {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* ── Override Joomla Bootstrap form controls ── */
.profil-edit-form .mb-3 {
  margin-bottom: 1rem !important;
}

.profil-edit-form label.form-label,
.profil-edit-form .control-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--violet);
  opacity: 0.65;
  margin-bottom: 0.35rem;
}

.profil-edit-form .form-control,
.profil-edit-form .form-select {
  border: 1.5px solid #ddd8f0;
  border-radius: 10px;
  color: var(--violet);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.65rem 1rem;
  background-color: #fafafe;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}

.profil-edit-form .form-control:focus,
.profil-edit-form .form-select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(60, 42, 116, 0.12);
  background-color: #fff;
  outline: none;
}

.profil-edit-form .form-control::placeholder {
  color: #b1b0d8;
  opacity: 1;
}

.profil-edit-form .form-text {
  font-size: 0.75rem;
  color: var(--violet-light);
  margin-top: 0.3rem;
}

.profil-edit-form .invalid-feedback {
  font-size: 0.78rem;
  font-weight: 600;
}

/* Password toggle button */
.profil-edit-form .input-group .btn {
  border: 1.5px solid #ddd8f0;
  border-left: none;
  border-radius: 0 10px 10px 0;
  background: #fafafe;
  color: var(--violet-light);
}

.profil-edit-form .input-group .form-control {
  border-radius: 10px 0 0 10px;
}

/* Radio & checkbox */
.profil-edit-form .form-check-input:checked {
  background-color: var(--violet);
  border-color: var(--violet);
}

.profil-edit-form .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(60, 42, 116, 0.12);
  border-color: var(--violet);
}

/* ── Submit row ── */
.profil-edit-submit {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.5rem;
}

.profil-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.925rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.profil-edit-btn--save {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
  box-shadow: 0 4px 14px rgba(60, 42, 116, 0.25);
  min-width: 180px;
}

.profil-edit-btn--save:hover,
.profil-edit-btn--save:focus {
  background: #2d1f59;
  border-color: #2d1f59;
  box-shadow: 0 6px 20px rgba(60, 42, 116, 0.35);
  transform: translateY(-1px);
  color: #fff;
}

.profil-edit-btn--cancel {
  background: transparent;
  color: var(--violet-light);
  border-color: #ddd8f0;
}

.profil-edit-btn--cancel:hover {
  background: var(--bg-violet-ligth);
  border-color: var(--violet-light);
  color: var(--violet);
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
  .profil-edit-page {
    margin-top: 1.5rem;
  }

  .profil-edit-section {
    padding: 1.25rem;
  }

  .profil-edit-btn--save {
    min-width: 0;
    flex: 1;
  }
}

/* ================================================
   HISTORIQUE DES ADHÉSIONS
   ================================================ */

.histo-page {
  max-width: 860px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

/* ── Header ── */
.histo-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid #ece9f8;
}

.histo-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet-light);
  text-decoration: none;
  transition: color 0.15s;
  margin-bottom: 0.6rem;
}

.histo-back:hover {
  color: var(--violet);
}

.histo-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--violet);
  margin: 0;
  letter-spacing: -0.03em;
  text-transform: none;
  line-height: 1.1;
}

.histo-subtitle {
  font-size: 0.875rem;
  color: var(--violet-light);
  margin: 0.4rem 0 0;
}

.histo-subtitle strong {
  color: var(--violet);
}

/* ── Buttons ── */
.histo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.65rem 1.4rem;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: 2px solid transparent;
}

.histo-btn--primary {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
  box-shadow: 0 4px 14px rgba(60, 42, 116, 0.22);
}

.histo-btn--primary:hover {
  background: #2d1f59;
  border-color: #2d1f59;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(60, 42, 116, 0.32);
}

/* ── Expiry alert ── */
.histo-expiry-alert {
  background: #fff9ed;
  border: 1.5px solid #f5d68a;
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #8a5c00;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.histo-expiry-alert strong {
  color: #6b4400;
}

.histo-expiry-alert a {
  color: #6b4400;
  text-decoration: underline;
}

/* ── List of rows ── */
.histo-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Individual row card ── */
.histo-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 1.5px solid #ece9f8;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.histo-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: #ddd8f0;
}

.histo-row:hover {
  border-color: var(--violet-light);
  box-shadow: 0 4px 18px rgba(60, 42, 116, 0.08);
}

/* State accent colors */
.histo-row--paid::before {
  background: #22c55e;
}
.histo-row--pending::before {
  background: #f59e0b;
}
.histo-row--failed::before {
  background: #ef4444;
}
.histo-row--cancelled::before {
  background: #94a3b8;
}

/* Current year highlight */
.histo-row--current {
  border-color: rgba(60, 42, 116, 0.25);
  background: linear-gradient(to right, #f9f8ff, #fff);
}

/* ── Left: year + badges ── */
.histo-row__left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.histo-row__year {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--violet);
  letter-spacing: -0.04em;
  line-height: 1;
}

.histo-row__badge {
  align-self: flex-start;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.histo-row__active-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2em 0.7em;
  border-radius: 99px;
  background: rgba(60, 42, 116, 0.08);
  color: var(--violet);
  align-self: flex-start;
}

/* ── Center: details ── */
.histo-row__details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.histo-row__detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--violet);
  opacity: 0.7;
}

.histo-row__detail i {
  width: 14px;
  text-align: center;
  color: var(--violet-light);
  flex-shrink: 0;
  font-size: 0.8rem;
}

/* ── Right: amount + PDF ── */
.histo-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  min-width: 90px;
}

.histo-row__amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--violet);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.histo-row__pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--violet);
  background: var(--bg-violet-ligth);
  border: 1.5px solid #ddd8f0;
  border-radius: 8px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.histo-row__pdf:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

/* ── Empty state ── */
.histo-empty {
  text-align: center;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

.histo-empty__icon {
  font-size: 3rem;
  color: #d4cfe8;
}

.histo-empty p {
  color: var(--violet-light);
  margin: 0;
  font-size: 0.95rem;
  max-width: 360px;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
  .histo-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .histo-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .histo-row__left {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .histo-row__year {
    font-size: 1.6rem;
  }

  .histo-row__details {
    grid-column: 1 / -1;
  }

  .histo-row__right {
    align-items: flex-end;
    justify-content: flex-start;
  }
}

@media (max-width: 479.98px) {
  .histo-row {
    grid-template-columns: 1fr;
    padding: 1rem 1.1rem;
  }

  .histo-row__right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ── VÉRIFICATION QR ──────────────────────────────────────────────────────── */

.verif-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 4rem;
  min-height: 40vh;
}

.verif-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(60, 42, 116, 0.1);
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 5px solid #ddd8f0;
}

.verif-card--valid {
  border-top-color: #22c55e;
}
.verif-card--expired {
  border-top-color: #f59e0b;
}
.verif-card--invalid {
  border-top-color: #ef4444;
}
.verif-card--pending {
  border-top-color: #6366f1;
}

.verif-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.verif-card--valid .verif-icon {
  color: #22c55e;
}
.verif-card--expired .verif-icon {
  color: #f59e0b;
}
.verif-card--invalid .verif-icon {
  color: #ef4444;
}
.verif-card--pending .verif-icon {
  color: #6366f1;
}

.verif-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--violet, #3c2a74);
  margin-bottom: 1.5rem;
}

.verif-member {
  background: #f8f7fd;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.verif-member__name {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e1537;
}

.verif-member__org {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.verif-details {
  margin: 0 0 1.25rem;
  padding: 0;
  text-align: left;
}

.verif-detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #ece9f8;
}

.verif-detail:last-child {
  border-bottom: none;
}

.verif-detail dt {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.verif-detail dd {
  font-weight: 600;
  color: #1e1537;
  margin: 0;
  text-align: right;
}

.verif-detail__status--valid {
  color: #15803d;
}
.verif-detail__status--expired {
  color: #b45309;
}

.verif-timestamp {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-top: 1rem;
}

.verif-msg {
  color: #6b7280;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ── Bouton QR compte ─────────────────────────────────────────────────────── */

.compte-qr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--violet-light, #b1b0d8);
  color: var(--violet, #3c2a74);
  border-radius: 10px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.compte-qr-btn:hover {
  background: var(--bg-violet-ligth, #e9e9f3);
  border-color: var(--violet, #3c2a74);
}

/* ── Modal QR (dialog natif) ──────────────────────────────────────────────── */

.qr-modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(60, 42, 116, 0.25);
  max-width: 320px;
  width: calc(100% - 2rem);
}

.qr-modal::backdrop {
  background: rgba(10, 5, 30, 0.55);
  backdrop-filter: blur(3px);
}

.qr-modal__inner {
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
}

.qr-modal__x {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  background: none;
  border: none;
  font-size: 1.125rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.qr-modal__x:hover {
  color: #374151;
}

.qr-modal__year {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet-light, #b1b0d8);
  margin: 0 0 0.25rem;
}

.qr-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--violet, #3c2a74);
  margin: 0 0 1.25rem;
}

.qr-modal__svg {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.qr-modal__svg svg {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  border: 1px solid #ece9f8;
}

.qr-modal__hint {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.qr-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--violet, #3c2a74);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.qr-modal__close:hover {
  background: #2d1f58;
}

/* ── QR dans l'historique ─────────────────────────────────────────────────── */

.histo-row__qr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--violet-light, #b1b0d8);
  color: var(--violet, #3c2a74);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.histo-row__qr-btn:hover {
  background: var(--bg-violet-ligth, #e9e9f3);
  border-color: var(--violet, #3c2a74);
}

.histo-qr-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #f8f7fd;
  border: 1.5px solid #ece9f8;
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 1rem 1.5rem;
}

.histo-qr-panel svg {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  border: 1px solid #ddd8f0;
}

.histo-qr-panel__hint {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 575px) {
  .histo-qr-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
  }
}

/* ════════════════════════════════════════════════
   Le myélome — page longue avec sommaire ancré
   ════════════════════════════════════════════════ */

.myelome-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* ── TOC commun ── */
.myelome-toc__list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.myelome-toc__list li {
  margin-bottom: 0.2rem;
}

.myelome-toc__link {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 0.3rem 0.5rem 0.3rem 0.4rem;
  border-left: 2px solid transparent;
  border-radius: 0 0.25rem 0.25rem 0;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}

.myelome-toc__link:hover {
  color: var(--violet);
  background: rgba(60, 42, 116, 0.06);
  border-left-color: var(--violet-light);
}

.myelome-toc__link--active {
  color: var(--violet);
  font-weight: 600;
  border-left-color: var(--violet);
  background: rgba(60, 42, 116, 0.08);
}

.myelome-toc__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--violet-light);
  color: var(--violet);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  transition:
    background 0.15s,
    color 0.15s;
}

.myelome-toc__link--active .myelome-toc__num {
  background: var(--violet);
  color: #fff;
}

/* ── TOC mobile ── */
.myelome-toc--mobile {
  border: 1px solid var(--violet-light);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  background: var(--bg-violet-ligth);
}

.myelome-toc--mobile .myelome-toc__summary {
  font-weight: 600;
  color: var(--violet);
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.myelome-toc--mobile .myelome-toc__summary::-webkit-details-marker {
  display: none;
}

.myelome-toc__count {
  font-weight: 400;
  color: #6b7280;
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

.myelome-toc--desktop {
  display: none;
}

/* ── Layout ── */
.myelome-layout {
  display: block;
}

/* ── Sections ── */
.myelome-content {
  min-width: 0;
}

.myelome-section {
  padding-top: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid #e5e7eb;
  scroll-margin-top: 16px;
}

.myelome-section:last-child {
  border-bottom: none;
}

.myelome-section__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 1.25rem;
}

.myelome-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.myelome-section__body {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

.myelome-section__body h2,
.myelome-section__body h3,
.myelome-section__body h4 {
  color: var(--violet);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.myelome-section__body img {
  max-width: 100%;
  border-radius: 0.5rem;
  height: auto;
}

.myelome-section__body ul,
.myelome-section__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.myelome-section__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.925rem;
}

.myelome-section__body td,
.myelome-section__body th {
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

.myelome-section__body th {
  background: var(--bg-violet-ligth);
  color: var(--violet);
  font-weight: 600;
}

/* ── Desktop ── */
@media (min-width: 992px) {
  .myelome-toc--mobile {
    display: none;
  }
  .myelome-toc--desktop {
    display: block;
  }

  .myelome-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: stretch;
  }

  .myelome-toc__sticky {
    position: sticky;
    top: calc(var(--nav-h, 90px) + 16px);
    max-height: calc(100vh - var(--nav-h, 90px) - 40px);
    overflow-y: auto;
    padding: 1.25rem;
    background: var(--bg-violet-ligth);
    border-radius: 0.75rem;
    border: 1px solid var(--violet-light);
    scrollbar-width: thin;
    scrollbar-color: var(--violet-light) transparent;
    transition:
      top 0.3s ease,
      max-height 0.3s ease;
  }

  .myelome-toc__heading {
    font-weight: 700;
    color: var(--violet);
    font-size: 0.9375rem;
    margin: 0 0 0.5rem;
  }

  .myelome-toc__list {
    margin: 0;
  }

  .myelome-section {
    scroll-margin-top: 16px;
  }
}

/* ── Dashboard Espace Membre ──────────────────────────────────────── */
.dash-page {
  padding: 2rem 0 4rem;
}

/* Hero */
.dash-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  background: var(--violet);
  color: #fff;
  border-radius: 1.25rem;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
}

.dash-hero__greeting {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.dash-hero__name {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  line-height: 1.2;
  color: #fff !important;
}

.dash-hero__email {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.dash-hero__since {
  font-size: 0.8rem;
  opacity: 0.6;
  margin: 0 0 0.25rem;
}

.dash-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Adhesion compact card */
.dash-adhesion {
  min-width: 240px;
  max-width: 300px;
}

.dash-adhesion-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  color: #fff;
}

.dash-adhesion-card__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.dash-adhesion-card__year {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.dash-adhesion-card__meta {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.dash-adhesion-card__meta > * + * {
  margin-top: 0.25rem;
}

.dash-adhesion-card__warn {
  color: #ffc107;
  font-weight: 600;
}

.dash-adhesion-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-adhesion-expired {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.5);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #ffc107;
}

.dash-adhesion-expired a {
  color: #fff;
}

/* Buttons */
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.dash-btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.dash-btn--white {
  background: #fff;
  color: var(--violet);
}

.dash-btn--white:hover {
  color: var(--violet);
}

.dash-btn--outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dash-btn--outline-white:hover {
  color: #fff;
}

.dash-btn--violet {
  background: var(--violet);
  color: #fff;
}

.dash-btn--outline-violet {
  background: transparent;
  color: var(--violet);
  border: 1px solid var(--violet);
}

/* QR button */
.dash-qr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.75rem;
  width: 100%;
  transition: background 0.15s;
}

.dash-qr-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Sections */
.dash-section {
  margin-bottom: 3rem;
}

.dash-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.dash-section__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--violet);
  margin: 0;
}

.dash-section__more {
  font-size: 0.85rem;
  color: var(--violet);
  text-decoration: none;
}

.dash-section__more:hover {
  text-decoration: underline;
  color: var(--violet);
}

/* Actu cards */
.dash-actus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dash-actu-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(60, 42, 116, 0.08);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.dash-actu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(60, 42, 116, 0.15);
  text-decoration: none;
  color: inherit;
}

.dash-actu-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.dash-actu-card__img-placeholder {
  width: 100%;
  height: 160px;
  background: var(--bg-violet-ligth);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-light);
  font-size: 2rem;
}

.dash-actu-card__body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dash-actu-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--violet);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.dash-actu-card__intro {
  font-size: 0.85rem;
  color: #555;
  flex: 1;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-actu-card__read {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--violet);
  margin-top: auto;
}

/* Tiles */
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dash-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-violet-ligth);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--violet);
  font-weight: 600;
  text-align: center;
  transition:
    background 0.2s,
    transform 0.2s;
}

.dash-tile:hover {
  background: var(--violet-light);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--violet);
}

.dash-tile__icon {
  font-size: 2rem;
}

.dash-tile__label {
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 991.98px) {
  .dash-hero {
    grid-template-columns: 1fr;
  }

  .dash-adhesion {
    max-width: none;
  }

  .dash-actus,
  .dash-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .dash-hero {
    padding: 1.5rem;
  }

  .dash-actus,
  .dash-tiles {
    grid-template-columns: 1fr;
  }
}
