/* ...existing code... */

/* ===========================
   Variables globales
   =========================== */
:root {
  /**COULEUR BASE DEBUT  */
  --Couleur-primaire-Rouge-Cnam: #c1002a;
  --Boutons-Primaire-Rouge-Hover: #d32d3d;
  --Couleur-Primaire-Rouge-Fond: #ffe6e5;

  --Couleur-Primaire-Bleu-Cnam: #11304c;
  --Couleur-Primaire-Bleu-Fonce: #091826;
  --Couleur-Primaire-Bleu-Hover: #a4c9ee;
  --Couleur-Primaire-Bleu-Fond: #dfecf9;
  --Couleur-Primaire-Bleu-Medium: #3472b0;

  --Couleurs-Neutre-Gris-Cnam: #405a68;
  --Couleurs-Neutre-Gris-Cnam-Hover: #5a728b;
  --Couleurs-Neutre-Gris-Clair: #e6ebef;
  --Couleurs-Neutre-Gris-Inactif: #bbc7cf;
  --Couleurs-Neutre-Blanc-Cnam: #fff;
  --Couleurs-Neutre-Noir-Cnam: #141719;

  --Succes-Succes-Principal: #006c3b;
  --Succes-Succes-Fond: #dcffef;
  --Alerte-Alerte-Principal: #c13d00;
  --Alerte-Alerte-Fond: #ffe7dc;
  --Erreur-Erreur-Principal: #c10000;
  --Erreur-Erreur-Fond: #f9dfdf;
  --Info-Info-Principal: #3472b0;
  --Info-Info--Fond: #dfecf9;

  --Texte-Noir: var(--Couleur-Primaire-Bleu-Cnam);
  --Texte-Gris: var(--Couleurs-Neutre-Gris-Cnam);
  --Texte-Rouge: var(--Couleur-primaire-Rouge-Cnam);
  --Texte-Blanc: var(--Couleurs-Neutre-Blanc-Cnam);
  --Texte-Bleu: var(--Couleur-Primaire-Bleu-Medium);

  --Boutons-Primaire-Bleu-Background: #11304c;
  --Boutons-Primaire-Bleu-Hover: #5a728b;
  --Couleurs-Neutre-Gris-Inactif: #bbc7cf;
  --Boutons-Secondaire-Hover: #a4c9ee;
  --Boutons-Primaire-Rouge-Background: #c1002a;
  --Boutons-Primaire-Rouge-Hover: #d32d3d;

  /**COULEUR BASE FIN  */

  /* Typographie */
  --font-sans: 'Raleway', Arial, Helvetica, sans-serif;
  --font-serif: 'Crimson Pro', 'Times New Roman', serif;
  --base-size: 1rem;
  --font-texte: 1rem;

  --font-titre1: 2.5rem;
  --font-titre2: 2rem;
  --font-titre3: 1.3125rem;
  --font-petit: 0.875rem;
  --font-bouton: var(--font-texte);
  --font-tag: 1rem;

  --font-form-label: var(--font-texte);
  --font-form-titre: 1.125rem;

  --font-dossier-titre: 1.5rem;

  --font-cours-titre: 1.3125rem;

  /* Espacements / tailles */
  --Border-radius-Lvl-3: 0.125rem;
  --Border-radius-Lvl-2: 0.25rem;
  --Border-radius-Lvl-1: 0.5rem;
  --btn-height: 2.6875rem;
  --btn-icon-size: 1.1875rem;
  --shadow-bleu-level-0: 0 0 0 rgba(17, 48, 76, 0.1);
  --shadow-bleu-level-2: 0 0.5px 8px 2px rgba(17, 48, 76, 0.1);
  --shadow-bleu-level-1: 0 0 2px 1px rgba(17, 48, 76, 0.1);
  --shadow-bleu-level-3: 0 1px 11px 2px rgba(17, 48, 76, 0.1);

  --shadow-rouge-level-0: 0 0 0 rgba(193, 0, 42, 0.1);
  --shadow-rouge-level-1: 0 0 2px 1px rgba(193, 0, 42, 0.1);
  --shadow-rouge-level-2: 0 0.5px 8px 2px rgba(193, 0, 42, 0.1);

  /* Mise en page */
  --page-max-width: 40.625rem;
  --gutter: 1rem;
}

@media (max-width: 768px) {
  :root {
    --font-titre1: 2rem;
    --font-titre2: 1.5rem;
    --font-petit: 0.875rem;
    --font-dossier-titre: 1.5rem;
    --page-max-width: 25rem;
  }
}

@media (max-width: 480px) {
  :root {
    --font-titre1: 2rem;
    --font-titre2: 1.5rem;
    --font-petit: 0.875rem;
    --font-dossier-titre: 1.25rem;
  }
}

/* ===========================
   Media queries pour animations
   =========================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.titre1 {
  font-family: var(--font-serif);
  font-size: var(--font-titre1);
  font-weight: 500;
  line-height: 1.3;
  color: var(--Texte-Noir);
  margin: 0;
  padding-bottom: 1rem;
}

.titre2 {
  font-family: var(--font-serif);
  font-size: var(--font-titre2);
  font-weight: 500;
  line-height: 1.3;
  color: var(--Texte-Noir);
  margin: 0;
  padding-bottom: 1rem;
}

.titre3 {
  font-family: var(--font-serif);
  font-size: var(--font-titre3);
  font-weight: 500;
  line-height: 1.3;
  color: var(--Texte-Noir);
  margin: 0;
}

/* Texte */
.texte {
  font-family: var(--font-sans);
  font-size: var(--font-texte);
  font-weight: 400;
  line-height: 1.5;
  color: var(--Texte-Noir);
  margin: 0;
}

.texte--petit {
  font-size: var(--font-petit);
  line-height: 1.5;
}

.texte--gras,
strong,
b {
  font-weight: 600;
  font-size: var(--font-texte);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.tag {
  display: inline-flex;
  max-width: var(--max-width, 20rem);
  padding: 0.125rem 0.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.125rem;

  color: var(--Texte-Gris, var(--Texte-Texte---Gris, #405a68));
  text-align: center;

  /* Tag/Badge sm */
  font-family: var(--Police-principale, Raleway);
  font-size: var(--Corps-Details-Details, 0.875rem);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;

  max-width: 30rem;
  padding: 0.125rem 0.5rem;

  border-radius: var(--Border-radius-Lvl-2, 0.25rem);
  background: #dfecf9;
}

.tag__icone {
  width: 0.8125rem;
  height: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;

  color: currentColor;
}

.tag__icone svg,
.tag__icone svg * {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  color: currentColor;
}

.tag--info {
  color: var(--Info-Info-Principal);
  background-color: var(--Info-Info--Fond);
}

.tag--erreur {
  color: var(--Erreur-Erreur-Principal);
  background-color: var(--Erreur-Erreur-Fond);
}

.tag--alerte {
  color: var(--Alerte-Alerte-Principal);
  background-color: var(--Alerte-Alerte-Fond);
}

.tag--valide {
  color: var(--Succes-Succes-Principal);
  background-color: var(--Succes-Succes-Fond);
}

.tag--accent {
  border-radius: var(--Border-radius-Lvl-3, 0.125rem);
}

.paragraphe {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  align-self: stretch;
}

/* ===========================
   Boutons (common + variants)
   =========================== */
.groupe-boutons {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 4rem;
}

.btn {
  display: inline-flex;
  min-width: 6.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: var(--btn-height);
  padding: 0.75rem 0.75rem;
  border-radius: var(--Border-radius-Lvl-3);
  border: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: var(--shadow-bleu-level-1);

  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--font-bouton);
  line-height: normal;
  text-align: center;
  color: var(--Texte-Blanc);
  background: var(--Boutons-Primaire-Bleu-Background);
}

.btn--remplissage {
  width: 100%;
}

/* Variants */
.btn--primaire {
  background: var(--Boutons-Primaire-Bleu-Background);
  color: var(--Texte-Blanc);
}

.btn--primaire:hover {
  background: var(--Boutons-Primaire-Bleu-Hover);
}

.btn--primaire:disabled {
  background: var(--Couleurs-Neutre-Gris-Inactif);
  color: var(--Couleurs-Neutre-Gris-Cnam-Hover);
}

.btn--rouge {
  background: var(--Boutons-Primaire-Rouge-Background);
  color: var(--Texte-Blanc);
}

.btn--rouge:hover {
  background: var(--Boutons-Primaire-Rouge-Hover);
}

.btn--secondaire {
  background: var(--Couleurs-Neutre-Blanc-Cnam);
  color: var(--Couleur-Primaire-Bleu-Fonce);
  border: 1px solid var(--Couleur-Primaire-Bleu-Fonce);
}

.btn--secondaire:hover {
  background: var(--Boutons-Secondaire-Hover);
}

.btn--secondaire:disabled {
  background: var(--Couleurs-Neutre-Gris-Inactif);
  color: var(--Bouton-Texte-desactive);
}

.btn--danger {
  background: var(--Couleurs-Neutre-Blanc-Cnam);
  color: var(--Texte-Rouge);
  border: 1px solid var(--Couleur-primaire-Rouge-Cnam);
}

.btn--danger:hover {
  background: var(--Couleur-Primaire-Rouge-Fond);
}

.btn--danger:disabled {
  color: #5a728b;
}

.btn--danger--plein {
  background: var(--Boutons-Primaire-Rouge-Background);
  color: var(--Texte-Blanc);
  border: 1px solid var(--Couleur-primaire-Rouge-Cnam);
}

.btn--danger--plein:hover {
  background: var(--Boutons-Primaire-Rouge-Hover);
}

.btn--danger:hover {
  background: var(--Couleur-Primaire-Rouge-Fond);
}

.btn--danger:disabled {
  color: #5a728b;
}

.btn--connexion {
  background: var(--Couleur-primaire-Rouge-Cnam);
  color: var(--Texte-Blanc);
  min-width: 20rem;
  width: 100%;
}

.btn--connexion:hover {
  background: var(--Boutons-Primaire-Rouge-Hover);
}

.btn--connexion:disabled {
  background: var(--Couleurs-Neutre-Gris-Inactif);
}

.btn--tertiaire {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--font-bouton);
  background: none;
  border: 0;
  color: var(--Texte-Noir);
  padding: 0.5rem 0;

  text-decoration: underline;
  text-decoration-thickness: 2px;
  box-shadow: none;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.btn--tertiaire:hover {
  text-decoration-thickness: 3px;
}

.btn--tertiaire:disabled {
  color: var(--Couleurs-Neutre-Gris-Cnam-Hover);
}

.btn--primaire[disabled] {
  background: var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
  color: var(--Couleurs-Neutre-Gris-Cnam-Hover);
}

.btn__icone,
.btn--icone,
.icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1875rem;
  height: 1.1875rem;
  aspect-ratio: 1 / 1;

  color: currentColor;
}

.btn__icone svg,
.btn__icone svg * {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  color: currentColor;
}

a {
  color: currentColor;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

a:hover {
  text-decoration-thickness: 3px;
}

.btn--continuer {
  grid-column: 2;
}

/* ===========================
   Layout: header, footer, page container
   =========================== */
html {
  font-size: var(--base-size);
  height: 100%;
}

body {
  margin: 0;
  min-height: 110vh;
  display: grid;
  grid-template-rows: auto 1fr auto;

  font-family: var(--font-sans);
  color: var(--Texte-Noir);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
  height: 100vh;
}

.conteneur-principal {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.conteneur-principal--overlay-open {
  height: 100vh;
  overflow: hidden;
}

.main,
main {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.main--small {
  max-width: 25rem;
}

.illustration {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.illustration svg {
  width: 100%;
}

/* Header*/
header {
  width: 100%;
  height: 4rem;
  background: var(--Couleur-primaire-Rouge-Cnam);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem var(--gutter);
  box-sizing: border-box;
  top: 0;
  left: 0;
  z-index: 100;
  color: var(--Couleurs-Neutre-Blanc-Cnam);
  flex-shrink: 0;
}

.acces-rapide {
  position: absolute;
  display: flex;
  gap: 1rem;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: var(--Couleurs-Neutre-Gris-Clair);
  color: var(--Texte-Noir);
}

.acces-rapide nav {
  position: relative;
  width: 100%;
}

.acces-rapide ul {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: row;
  position: absolute;
  width: 100%;
  background-color: var(--Couleurs-Neutre-Noir-Cnam);
  color: var(--Couleurs-Neutre-Blanc-Cnam);
  padding: 0 1rem;
  gap: 1rem;
  transform: translateX(0) translateY(-100%);
}

.acces-rapide ul:focus-within {
  transform: translateX(0) translateY(0);
}

.header__logo svg {
  width: 7.01rem;
  height: 1.29375rem;
  fill: var(--Couleurs-Neutre-Blanc-Cnam, #fff);
}

.header--connexion__titre {
  font-family: var(--font-sans);
  text-align: right;
  font-size: var(--font-texte);
  font-weight: 500;
  margin-left: 1rem;
}

.header__info-connexion {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  flex: 1 0 0;
}

.info-connexion__details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.connexion-info__utilisateur,
.connexion-info__code {
  color: var(--Texte-Blanc);
}

.btn--deconnexion {
  border: 0;
}

.btn--deconnexion p {
  color: var(--Texte-Rouge);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--font-bouton);
  line-height: normal;
  text-align: center;
}

@media (max-width: 480px) {
  .btn--deconnexion p {
    display: none;
  }

  .btn--deconnexion {
    min-width: 0;
    height: 2.5rem;
    width: 2.5rem;
  }
}

/* Footer */
footer {
  width: 100%;
  height: auto;
  min-height: 4rem;
  background: var(--Couleurs-Neutre-Noir-Cnam);
  color: var(--Texte-Blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  z-index: 100;
  font-size: var(--font-petit);
  text-align: center;
  flex-shrink: 0;

  color: var(--Texte-Blanc);
}

footer p,
footer a {
  color: var(--Texte-Blanc);
}

.conteneur-principal,
.conteneur-bouton-retour,
.zone-titre {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 0.5rem;
}

.zone-titre {
  margin-bottom: 2rem;
}

.zone-titre__titre {
  padding-bottom: 0;
}

.zone-titre__sous-titre {
  color: var(--Texte-Gris, var(--Couleurs-Neutre-Gris-Cnam, #405a68));
  padding-bottom: 0;
}

.conteneur-bouton-retour {
  gap: 0.5rem;
}

.conteneur-progression {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.conteneur-progression__conteneur-etape {
  display: flex;
  width: 100%;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.barre-progression {
  width: 100%;
  height: 0.375rem;
  border-radius: var(--Border-radius-Lvl-2);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--Couleurs-Neutre-Gris-Clair);
  border: none;
  overflow: hidden;
}

/* Chrome, Safari, Edge */
.barre-progression::-webkit-progress-bar {
  background-color: var(--Couleurs-Neutre-Gris-Clair);
  border-radius: var(--Border-radius-Lvl-2);
}

.barre-progression::-webkit-progress-value {
  background-color: var(--Couleur-Primaire-Bleu-Cnam);
  border-radius: var(--Border-radius-Lvl-2);
  transition: width 0.5s ease;
}

/* Firefox */
.barre-progression::-moz-progress-bar {
  background-color: var(--Couleur-Primaire-Bleu-Cnam);
  border-radius: var(--Border-radius-Lvl-2);
  transition: width 0.5s ease;
}

/* Overlay */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
}

.overlay--petit {
  justify-content: center;
}

.overlay[aria-hidden='false'] {
  opacity: 1;
  visibility: visible;
}

.overlay__fond {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 48, 76, 0);
  cursor: pointer;
  backdrop-filter: blur(0px);
  transition:
    background-color 0.4s ease,
    backdrop-filter 0.4s ease;
}

.overlay[aria-hidden='false'] .overlay__fond {
  background-color: rgba(17, 48, 76, 0.4);
  backdrop-filter: blur(4px);
}

.overlay[aria-hidden='false'] .modal {
  transform: translateX(0);
}

.modal {
  position: relative;
  z-index: 1;
  background: var(--Couleurs-Neutre-Blanc-Cnam);
  border-radius: var(--Border-radius-Lvl-1) 0 0 var(--Border-radius-Lvl-1);
  box-shadow: -10px 0 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 40rem;
  height: 100%;
  max-height: 100vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal--cours {
  max-width: 47rem;
}

.modal--petit {
  position: relative;
  z-index: 1;
  background: var(--Couleurs-Neutre-Blanc-Cnam);
  border-radius: var(--Border-radius-Lvl-1) var(--Border-radius-Lvl-1);
  box-shadow: -10px 0 60px rgba(0, 0, 0, 0.3);
  max-width: 22.5rem;
  height: fit-content;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal__body {
  padding: 0 2rem 2rem 2rem;
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal--petit__body {
  display: flex;
  padding: 1rem;
  flex-direction: column;
  justify-content: center;
}

.modal--petit__grp-bouton {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  gap: 1.5rem;
  align-self: stretch;
}

.modal__titre-conteneur {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

.modal__sous-titre {
  color: var(--Texte-Gris);
}

.btn--fermeture-modal {
  font-size: var(--font-texte);
  align-self: flex-end;
  margin-top: 1rem;
  margin-right: 2rem;
}

.overlay[aria-hidden='false'] .modal {
  animation: slideInFromRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.overlay.closing .modal {
  animation: slideOutToRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.overlay--petit[aria-hidden='false'] .modal {
  animation: apparaitre 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.overlay--petit.closing .modal {
  animation: disparaitre 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.overlay.closing .overlay__fond {
  background-color: rgba(17, 48, 76, 0);
  backdrop-filter: blur(0px);
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 1;
  }
}

@keyframes apparaitre {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes disparaitre {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* ===========================
   Messages (info / erreur)
   =========================== */
.groupe-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

.groupe-info:not(:has(*)) {
  margin: 0;
  gap: 0;
}

.message {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  align-items: flex-start;
  border-radius: var(--Border-radius-Lvl-1);
}

.message--long {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.message__entete {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.message__titre {
  font-size: var(--font-texte);
  font-weight: 600;
}

.message--info,
.message--info .message__titre {
  background: var(--Info-Info--Fond);
  color: var(--Texte-Noir);
}

.message--alerte,
.message--alerte .message__titre {
  background: var(--Alerte-Alerte-Fond);
  color: var(--Texte-Noir);
}

.message--erreur,
.message--erreur .message__titre {
  background: var(--Erreur-Erreur-Fond);
  color: var(--Texte-Noir);
}

.message--valide,
.message--valide .message__titre {
  background: var(--Succes-Succes-Fond);
  color: var(--Texte-Noir);
}

.message__icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1875rem;
  height: 1.1875rem;
  aspect-ratio: 1 / 1;

  color: currentColor;
}

.message__icone svg,
.message__icone svg * {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  color: currentColor;
}

/* ===========================
   Page erreurs, TimeOut
   =========================== */

.conteneur-erreur {
  display: flex;
  padding: 0 1rem;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  align-self: stretch;
}

.contenuer-erreur__contenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
  text-align: center;
}

/* ===========================
   Formulaires
   =========================== */
.form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2rem;
}

.form .groupe-boutons {
  margin-top: 2rem;
}

.form--grid {
  display: grid;
}

fieldset {
  border: 0;
}

.fieldset {
  border: 0;
  display: grid;
  grid-template-columns: 14rem 1fr 23rem;
  gap: 0.5rem;
}

.fieldset--radio {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

.fieldset__legend {
  color: var(--Texte-Noir);
  font-family: var(--font-sans);
  font-size: var(--font-form-titre);
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  grid-column: 1;
  margin-bottom: 0.5rem;
}

.fieldset__elements {
  display: grid;
  flex-direction: column;
  gap: 1rem;
  grid-column: 3;
  justify-self: right;
  margin-bottom: 1rem;
  width: 100%;
}

.input-groupe {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-self: right;
  width: 100%;
}

.input-groupe--fichier {
  width: 100%;
  max-width: none;
  padding-top: 1rem;

  border-top: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
}

.input-groupe--fichier__conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
}

.input__indice {
  display: flex;
  width: 100%;
  max-width: 23rem;
  color: var(--Texte-Gris);
}

.label,
.label label,
.barre-recherche label {
  font-size: var(--font-form-label);
  font-weight: 600;
}

.label--optionnel,
.label--optionnel * {
  color: var(--Texte-Gris);
}

.label__info {
  color: var(--Texte-Gris, var(--Couleurs-Neutre-Gris-Cnam, #405a68));

  font-family: var(--font-sans);
  font-size: var(--font-texte);
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.input-groupe__indice {
  font-size: var(--font-petit);
}

.fieldset__groupe-input {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.input-texte,
input[type='text'],
input[type='email'],
input[type='date'],
textarea,
select {
  border-radius: var(--Border-radius-Lvl-2);
  border: 1px solid var(--Couleur-Primaire-Bleu-Cnam);
  background: var(--Couleur-Primaire-Bleu-Fond);
  color: var(--Texte-Noir);
  font-family: var(--font-sans);
  font-size: var(--font-petit);
  padding: 0.5rem 0.75rem;
  line-height: 1.5;
  width: 100%;
  font-weight: 600;
}

input::placeholder {
  font-weight: 400;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border: 1px solid var(--Couleur-Primaire-Bleu-Medium);
  box-shadow: 0 0 0 1.5px var(--Couleur-Primaire-Bleu-Medium);
}

.input--date {
  max-width: 10rem;
}

.input--fichier,
input[type='file'] {
  padding: 0;
  flex-direction: row;
  width: 100%;
  max-width: 23rem;
  font-family: var(--font-sans);
  font-size: var(--font-petit);
  color: var(--Texte-Noir);

  background: var(--Chroma0-20, #e6ebef);
  border: 1px solid transparent;
  border-radius: 0.5rem var(--Border-radius-Lvl-2) var(--Border-radius-Lvl-2) 0.5rem;
}

.input-groupe--fichier span {
  max-width: none;
}

.input--fichier::file-selector-button {
  height: 2.1875rem;
  min-width: 6.5625rem;
  padding: 0.5rem 1rem;
  justify-content: center;
  align-items: center;
  margin-right: 0.5rem;

  font-size: var(--font-bouton);

  cursor: pointer;
  border: none;
  color: var(--Texte-Blanc);
  border-radius: 0 0 0 0;
  background: var(--Boutons-Primaire-Bleu-Background);
  box-shadow: var(--shadow-bleu-level-1);
}

.input--fichier::file-selector-button:hover {
  background: var(--Couleur-Primaire-Bleu-Hover);
}

.btn--ajout-fichier {
  height: 2.1875rem;

  border-radius: 0.125rem;
  border: 1px solid var(--Couleur-Primaire-Bleu-Fonce, #11304c);
  background: #fff;
  color: var(--Texte-Noir);
  box-shadow: var(--shadow-bleu-level-1);
}

.input-texte:valid,
input[type='text']:valid,
input[type='email']:valid,
textarea:valid,
select:valid {
  border-color: var(--Couleur-Primaire-Bleu-Medium);
}

/* ============================================================
   Radio animé — composant Cnam
   ============================================================ */

.conteneur-radio {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.conteneur-radio__conteneur-radio--colonne {
  position: relative;
  display: flex;
  padding: 1rem 1rem 0 1rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
  border-radius: var(--Border-radius-Lvl-2, 0.25rem);
  border: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
  transition:
    border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.conteneur-radio__conteneur-radio--colonne:has(> input[type='radio']:checked) {
  background: var(--Couleur-Primaire-Bleu-Fond, #dfecf9);
  border: 1px solid var(--Couleur-Primaire-Bleu-Medium);
}

.conteneur-radio__conteneur-radio--colonne:has(> input[type='radio']:checked) .icone--radio {
  transform: rotate(90deg);
}

.radio__message-texte {
  margin-bottom: 0.5rem;
}

/* --- Message animé --- */

.message--radio {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  align-self: stretch;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    padding-top 0s cubic-bezier(0.4, 0, 0.2, 1),
    border-top-width 0.4s ease;
}

.message--radio .texte {
  font-size: var(--font-petit);
  padding-bottom: 0.5rem;
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease 0.15s,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

/* État ouvert */

.conteneur-radio__conteneur-radio--colonne:has(> input:checked)>.message--radio {
  max-height: 120rem;
  border-top-width: 1px;
}

.conteneur-radio__conteneur-radio--colonne:has(> input:checked)>.message--radio .texte {
  opacity: 1;
  transform: translateY(0);
  padding-top: 0.5rem;
  border-top: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
}

/* --- Colonne --- */

.conteneur-radio--colonne {
  width: 100%;
  flex-direction: column;
  align-items: start;
  padding-bottom: 1rem;
}

/* --- Input natif masqué (accessible) --- */

.conteneur-radio input[type='radio'] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* --- Label --- */

.conteneur-radio label {
  display: grid;
  align-items: center;
  cursor: pointer;
  font-size: var(--font-texte);
  font-family: var(--font-sans);
  color: var(--Texte-Noir);
  grid-template-columns: 1.5rem auto;
  gap: 0.75rem;
  width: 100%;
}

/* --- Bouton radio custom --- */

.conteneur-radio .custom-radio {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  border: 2px solid var(--Couleurs-Neutre-Gris-Inactif);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.5s ease;
}

.conteneur-radio .custom-radio::after {
  content: '';
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: transparent;
  transform: scale(0);
  transition:
    background-color 0.5s ease,
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.conteneur-radio input[type='radio']:checked+label .custom-radio {
  border-color: var(--Couleur-Primaire-Bleu-Cnam);
}

.conteneur-radio input[type='radio']:checked+label .custom-radio::after {
  background-color: var(--Couleur-Primaire-Bleu-Cnam);
  transform: scale(1);
}

.conteneur-radio input[type='radio']:focus-visible+label .custom-radio {
  outline: 3px solid var(--Couleur-Primaire-Bleu-Cnam);
  outline-offset: 2px;
}

/* ============================================================
   Variante blanche des sous-boutons radio
   ============================================================ */

/* Conteneur parent blanc */
.conteneur-radio__conteneur-radio--colonne.conteneur-radio--blanc {
  background: var(--Couleurs-Neutre-Blanc-Cnam, #ffffff);
  border-color: var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
}

/* Pas de fond bleu au survol checked sur la variante blanche */
.conteneur-radio__conteneur-radio--colonne.conteneur-radio--blanc:has(input[type='radio']:checked) {
  background: #ffffff;
  border-color: var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
}

/* Sous-conteneur de sous-boutons radios blanc */
.conteneur-radio--sous-radio {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  background: #ffffff;
  border-radius: var(--Border-radius-Lvl-2, 0.25rem);
  border: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
}

/* Chaque ligne de sous-radio */
.conteneur-radio--sous-radio .conteneur-radio {
  margin-top: 0;
}

.conteneur-radio--sous-radio .conteneur-radio--colonne {
  padding-bottom: 0;
}

/* Fond blanc sur le conteneur colonne interne */
.conteneur-radio--sous-radio .conteneur-radio__conteneur-radio--colonne {
  background: #ffffff;
  border-color: var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
}

/* Checked state en blanc : fond légèrement grisé au lieu de bleu */
.conteneur-radio--sous-radio .conteneur-radio__conteneur-radio--colonne:has(input[type='radio']:checked) {
  background: var(--Couleurs-Neutre-Blanc-Cnam, #fff);
  border-color: var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
}

/* La pastille radio reste rouge Cnam */
.conteneur-radio--sous-radio input[type='radio']:checked+label .custom-radio {
  border-color: var(--Couleur-primaire-Rouge-Cnam);
}

.conteneur-radio--sous-radio input[type='radio']:checked+label .custom-radio::after {
  background-color: var(--Couleur-primaire-Rouge-Cnam);
}

.conteneur-checkbox {
  display: flex;
  gap: 0.5rem;
  cursor: pointer;
}

input[type='checkbox'] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  background: #f8f9fa;
  border: 2px solid var(--Couleurs-Neutre-Gris-Clair, #bbc7cf);
  border-radius: var(--Border-radius-Lvl-3, 0.25rem);
  cursor: pointer;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

input[type='checkbox']:checked {
  background: var(--Couleur-primaire-Rouge-Cnam);
  border-color: var(--Couleur-primaire-Rouge-Cnam);
  position: relative;
}

input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
  width: 0.35rem;
  height: 0.65rem;
  border: solid white;
  border-width: 0 2px 2px 0;
}

.form__messages-groupes {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form__message {
  font-size: var(--font-texte);
  color: var(--Couleur-Primaire-Bleu-Fonce);
  min-height: 1.5rem;
}

.form__message--erreur {
  color: var(--Texte-Rouge);
}

/* Formulaire connexion */
.conteneur-principal--connexion {
  margin-top: 2rem;
  gap: 1rem;
}

.form__actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
  max-width: 23rem;
  justify-self: right;
}

.input-groupe__conteneur-help {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.btn-connexion--help {
  background: none;
  border: 0;
  color: var(--Texte-Noir);
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  box-shadow: none;
  font-weight: 600;
}

.btn-connexion--help:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.form-actions__groupe span {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 0.25rem;
  align-self: stretch;
  flex-wrap: wrap;
}

.btn-mdp__conteneur {
  display: flex;
  position: relative;
  align-items: center;
}

.btn--afficher-cacher-mdp {
  display: flex;
  align-items: center;
  position: absolute;
  right: 0.5rem;
  background: none;
  border: 0;
  color: var(--Texte-Noir);
  background: var(--Form-Fond);
  padding: 0;
  font-size: var(--font-petit);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  box-shadow: none;
  cursor: pointer;
}

.contraintes-mdp {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.contraintes-mdp li {
  display: flex;
  margin-top: 0.25rem;
  margin-left: 0.5rem;
  gap: 0.5rem;
  list-style: none;
  color: var(--Texte-Gris);
  font-size: var(--font-petit);
}

.contraintes-mdp--valide {
  color: var(--Couleur-Primaire-Bleu-Medium);
}

.contrainte-mdp__icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1875rem;
  height: 1.1875rem;
  aspect-ratio: 1 / 1;

  color: currentColor;
}

.contrainte-mdp__icone svg,
.contrainte-mdp__icone svg * {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  color: currentColor;
}

.form-connexion__liens {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .fieldset {
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .fieldset__elements {
    width: 100%;
    justify-self: normal;
    min-width: 0;
    margin-bottom: 1rem;
  }

  .form__actions {
    justify-self: unset;
  }
}

/* ===========================
   Page creation de compte
   =========================== */

.conteneur-connexion-liens {
  border: 0;
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 0.5rem;
  width: 100%;
}

.conteneur-connexion-liens label {
  grid-column: 2;
  justify-self: right;
  max-width: 23rem;
}

@media (max-width: 768px) {
  .conteneur-connexion-liens {
    display: flex;
  }
}

/* ===========================
   Page confirmation courriel
   =========================== */
.conteneur-confirm-courriel {
  display: grid;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 1rem;
}

.confirm-courriel__fond {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110vh;
  background: #dfecf9;
  z-index: -1;
}

.confirm-courriel__conteneur-bouton {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 2rem 0;
}

/* ===========================
   Data list (composant de recherche avec suggestions)
   =========================== */

.datalist-wrapper {
  position: relative;
  width: 100%;
}

.datalist__selection {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.datalist__entete {
  padding: 0.5rem 1 0.3rem;
  font-size: var(--font-petit);
  color: var(--Texte-Gris);
  border-bottom: 1px solid var(--Couleurs-Neutre-Gris-Clair);
  text-transform: uppercase;
}

.datalist__selection ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;

  border-radius: var(--Border-radius-Lvl-2, 0.25rem);
  border: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
  background: var(--Chroma0-10, #f8f9fa);

  /* Shadow Blue/Level 2 */
  box-shadow: var(--Level-2-Offset-x, 0) var(--Level-2-Offset-y, 0.5px) var(--Level-2-Blur, 8px) var(--Level-2-Spread, 2px) rgba(17, 48, 76, 0.11);
}

.datalist__selection li {
  width: 100%;
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  border-left: 2px solid transparent;
}

.datalist__selection li:hover {
  background: var(--Chroma0-20, #e6ebef);
  border-left-color: var(--Couleur-Primaire-Bleu-Fonce);
}

/* ===========================
   Barre de recherche
   =========================== */

.barre-recherche {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.barre-recherche__conteneur-boutons {
  display: flex;
  width: 100%;
}

.barre-recherche input {
  width: 100%;
  display: flex;
  padding: 0.5rem 1rem;
  align-items: center;
  gap: 0.5rem;
  flex: 1 0 0;

  font-size: var(--font-petit);
  font-weight: 600;
  font-family: var(--font-sans);

  border-radius: var(--Border-radius-Lvl-2, 0.25rem) 0 0 var(--Border-radius-Lvl-2, 0.25rem);
  border-top: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bbc7cf);
  border-bottom: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bbc7cf);
  border-left: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bbc7cf);
  border-right: 0;
  background: var(--Form-Fond, #dfecf9);
}

.barre-recherche button {
  border-radius: 0 var(--Border-radius-Lvl-2, 0.25rem) var(--Border-radius-Lvl-2, 0.25rem) 0;
}

/* ── Wrapper ── */
.datalist-wrapper {
  position: relative;
  width: 100%;
}

.barre-recherche::placeholder {
  color: var(--Texte-Gris);
}

.datalist-input:focus-visible {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.35);
}

.datalist-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--Couleurs-Neutre-Blanc-Cnam);
  border-radius: var(--Border-radius-Lvl-2);
  box-shadow: var(--shadow-bleu-level-3);
  border: 1px solid var(--Couleurs-Neutre-Gris-Clair);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 100;
  max-height: 240px;
  display: flex;
  flex-direction: column;
}

.datalist-wrapper.open .datalist-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.datalist-entete {
  padding: 0.5rem 1.1rem 0.3rem;
  text-transform: uppercase;
  font-size: var(--font-petit);

  color: var(--Texte-Gris);
  border-bottom: 1px solid var(--Couleurs-Neutre-Gris-Clair);
}

.datalist-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--Couleur-Primaire-Bleu-Fonce) transparent;
}

.datalist-list::-webkit-scrollbar {
  width: 4px;
}

.datalist-list::-webkit-scrollbar-track {
  background: transparent;
}

.datalist-list::-webkit-scrollbar-thumb {
  background: var(--Couleur-Primaire-Bleu-Fonce);
  border-radius: 99px;
}

/* ── Option ── */
.datalist-option {
  display: flex;
  align-items: center;
  flex-direction: row;
  height: 2rem;
  padding: 0 1rem;
  font-size: var(--font-petit);
  cursor: pointer;
  animation: apparaitre 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition:
    background 0.12s,
    color 0.12s;
  color: var(--Texte-Noir);
  display: flex;
  align-items: center;
  user-select: none;
  border-left: 2px solid transparent;
}

.datalist-option[aria-selected='true'] {
  background: var(--Couleur-Primaire-Bleu-Fond);
  color: var(--Texte-Bleu);
  border-left-color: var(--Couleur-Primaire-Bleu-Medium);
}

.datalist-option:hover {
  background: var(--Couleur-Primaire-Bleu-Fond);
  color: var(--Texte-Bleu);
  border-left-color: var(--Couleur-Primaire-Bleu-Medium);
}

.datalist-libelle {
  flex: 1;
  align-self: stretch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--Texte-Gris);
  padding-left: 0.5rem;
  display: inline;
  align-content: center;
}

.datalist-option mark {
  background: none;
  color: var(--Texte-Bleu);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.datalist-empty {
  padding: 1.2rem 1.1rem;
  font-size: var(--font-petit);
  color: var(--Texte-Gris);
  text-align: center;
  align-content: center;
}

/* ===========================
   Page d'accueil
   =========================== */

.conteneur-accueil {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-self: stretch;
}

.conteneur-creation-dossier {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  margin-bottom: 1.5rem;

  border-radius: var(--Border-radius-Lvl-1, 0.5rem);
  border: 2px dashed var(--Couleur-Primaire-Bleu-Medium, #3472b0);
  background: var(--Info-Info--Fond, #dfecf9);
}

.conteneur-creation-dossier--desactive {
  border-radius: var(--Border-radius-Lvl-1, 0.5rem);
  border: 2px dashed var(--Couleurs-Neutre-Gris-Cnam, #405a68);
  background: var(--Couleurs-Neutre-Gris-Clair, #e8ebef);
}

.btn--creation-dossier {
  width: 100%;
  max-width: 22rem;
  justify-self: flex-end;
}

.dossier {
  display: flex;
  padding: 1.5rem 1rem;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  margin-bottom: 1.5rem;

  border-radius: var(--Border-radius-Lvl-1, 0.5rem);
  border: 2px solid var(--Couleurs-Neutre-Gris-Clair, #e8ebef);
  background: #fff;
  box-shadow: var(--shadow-bleu-level-1);
}

.creation-dossier_bouton-conteneur {
  display: flex;
  width: 100%;
  justify-content: flex-end;
}

.dossier__titre-conteneur {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
}

.dossier__entete-titres {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
}

.dossier__entete-titre {
  color: var(--Texte-Noir, var(--Couleur-Primaire-Bleu-Fonce, #11304c));

  font-family: var(--font-serif);
  font-size: var(--font-dossier-titre);
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

.modal-status-info__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  list-style-type: none;
}

.modal-status-info__image {
  display: inline-flex;
  align-items: flex-start;
  justify-content: left;

  color: currentColor;
}

.dossier__message {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  width: 100%;
}

.dossier__grp-boutons {
  padding-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dossier__date-creation {
  display: flex;
  flex-direction: row;
  align-items: center;

  color: var(--Texte-Gris);
}

.dossier_entite {
  color: var(--Texte-Gris);
}

@media (max-width: 780px) {
  .dossier__grp-boutons form {
    width: 100%;
  }

  .btn--dossier {
    width: 100%;
    justify-self: center;
  }
}

.conteneur-documents {
  display: flex;
  padding-top: 0.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  align-self: stretch;
  width: 100%;
}

.document-liste {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  list-style: none;
}

.document-liste__item {
  text-decoration: none;
  width: 100%;
}

.document-liste__button {
  display: flex;
  padding: 0.5rem;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
  width: 100%;
  justify-content: start;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;

  background: none;
  border: none;
  border-bottom: 1px solid #a1d6df;
}

.document-liste__button:hover {
  background: var(--Info-Info--Fond, #dfecf9);
}

.document-liste__titre {
  color: var(--Texte-Bleu);
}

.document-liste__contenu {
  text-align: left;
}

.creation-dossier__bouton-conteneur {
  display: flex;
  width: 100%;
  justify-content: flex-end;
}

.conteneur-documents-ajoutes {
  display: flex;
  padding-top: 0.5rem;
  flex-direction: row;
  align-items: flex-start;

  gap: 0.5rem;
  align-self: stretch;
  margin-bottom: 2rem;
}

.document-liste__date {
  padding-bottom: 0;
}

/* ===========================
   Page financement et exonération
   =========================== */

.zone-entite {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  flex-direction: row;
  align-self: stretch;
  gap: 0.5rem;
  margin-bottom: 1.5rem;

  border-bottom: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
}

.zone-entite__nom {
  white-space: nowrap;
  color: var(--Texte-Gris);
  display: inline;
  align-content: center;
  padding: 0.125rem 0.5rem;

  font-size: var(--font-texte);

  border-radius: var(--Border-radius-Lvl-2, 0.25rem);
  background: #dfecf9;
}

.zone-entite__nom p {
  align-self: stretch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--Texte-Gris);
  display: inline;
  align-content: center;

  max-width: 30rem;
  padding: 0.125rem 0.5rem;

  border-radius: var(--Border-radius-Lvl-2, 0.25rem);
  background: #dfecf9;
}

.exoneration__conteneur-piece {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  align-self: stretch;
  padding-top: 1rem;
}

.exoneration__conteneur-piece ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;

  border-radius: var(--Border-radius-Lvl-2, 0.25rem);
  border-top: 1px solid var(--Couleurs-Neutre-Gris-Clair);
  border-right: 1px solid var(--Couleurs-Neutre-Gris-Clair);
  border-left: 1px solid var(--Couleurs-Neutre-Gris-Clair);
  background: #f8f9fa;
  overflow: hidden;
}

.exoneration__conteneur-piece li {
  display: flex;
  padding: 0.5rem;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;

  border-radius: var(--Border-radius-Lvl-2, 0.25rem) var(--Border-radius-Lvl-2, 0.25rem) 0 0;
  border-bottom: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
  background: var(--Info-Info--Fond, #dfecf9);
}

.exoneration__titre {
  padding-bottom: 0.5rem;
}

.exoneration__piece {
  font-size: var(--font-petit);
}

.badge-financement-prise-en-charge {
  position: absolute;
  display: flex;
  padding: 0 0.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  left: 1rem;
  top: -0.5rem;
  border-radius: 6.25rem;
  background: var(--Couleurs-Neutre-Gris-Cnam);
  color: var(--Texte-Blanc);
  font-size: var(--font-petit);
  leading-trim: both;
  text-edge: cap;
}

/* ===========================
   Page Choix des cours
   =========================== */

.conteneur-choix-cours {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: stretch;
}

.conteneur-cours-select {
  margin-top: 1rem;
  display: flex;
  padding: 1rem;
  flex-direction: column;
  align-self: stretch;

  border-radius: var(--Border-radius-Lvl-1);
  background: var(--Couleur-Primaire-Bleu-Fond);
}

.conteneur-cours-select .liste-cours {
  display: flex;
}

.conteneur-cours-select .carte-cours__entete,
.conteneur-cours-verif .carte-cours__entete {
  flex-direction: row;
  gap: 1rem;
  justify-content: space-between;
}

.choix-de-cours__aide {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.liste-cours {
  display: grid;
  width: 100%;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  box-sizing: border-box;
}

@media (max-width: 780px) {
  .liste-cours {
    display: flex;
    flex-direction: column;
  }

  .conteneur-cours-select .carte-cours__entete,
  .conteneur-cours-verif .carte-cours__entete {
    flex-direction: column;
    gap: 0;
  }
}

.cours__code {
  align-self: stretch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--Texte-Gris);
  display: inline;
  align-content: center;
  padding: 0.125rem 0.5rem;

  font-size: 1.3125rem;

  border-radius: var(--Border-radius-Lvl-2, 0.25rem);
  background: #dfecf9;
}

.carte-cours {
  display: flex;
  padding: 1rem;
  flex-direction: column;
  align-self: stretch;
  gap: 0.5rem;

  border-radius: var(--Border-radius-Lvl-2, 0.25rem);
  border: var(--Border-Lv2, 1px) solid var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
  background: #fff;

  /* Shadow Blue/Level 1 */
  box-shadow: var(--shadow-bleu-level-1);
  border: var(--Border-radius-Lvl-2);
  border: 1px solid var(--Couleurs-Neutre-Gris-Clair);
  background: var(--Couleurs-Neutre-Blanc-Cnam);
}

@media (max-width: 780px) {
  .carte-cours {
    display: flex;
    justify-content: flex-end;
  }
}

.carte-cours__entete {
  display: flex;
  flex-direction: column;
}

@media (min-width: 780px) {
  .carte-cours__entete {
    flex-direction: column;
  }

  .cours_tags p,
  .cours_tags--visualise p,
  .cours_tags--visualise span,
  .cours_tags span {
    max-width: 30rem;
  }
}

.cours__conteneur-titre {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  margin-bottom: 0.5rem;
}

.carte-cours__titre {
  font-family: var(--font-serif);
  font-size: var(--font-cours-titre);
  font-weight: 500;
  line-height: 130%;
}

.cours__sous-titre {
  width: 100%;
}

.carte-cours__sous-titre {
  font-family: Raleway;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  padding-bottom: 0rem;

  color: var(--Texte-Gris);
}

.cours__prix {
  width: fit-content;
  font-family: Raleway;
  font-size: 1.3125rem;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  padding-bottom: 0.5rem;

  color: var(--Texte-Bleu, var(--Couleur-Primaire-Bleu-Medium, #3472b0));
}

.conteneur-cours-verif__prix {
  color: var(--Couleur-Primaire-Bleu-Medium);
  font-family: var(--font-sans);
  font-size: var(--font-cours-titre);
  font-weight: 500;
  line-height: 130%;
  margin-bottom: 0.5rem;
}

.cours__meta {
  display: grid;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.cours_tags,
.cours_tags--visualise {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
}

.cours_tags p,
.cours_tags--visualise p,
.cours_tags span,
.cours_tags--visualise span {
  align-self: stretch;
  /* overflow: hidden; */
  /* text-overflow: ellipsis; */
  /* white-space: nowrap; */
  color: var(--Texte-Gris);
  display: inline;
  align-content: center;

  padding: 0.125rem 0.5rem;

  border-radius: var(--Border-radius-Lvl-2, 0.25rem);
  background: #dfecf9;
}

.cours_tags--visualise p,
.cours_tags--visualise span {
  border: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
  background: none;
}

.btn--horaire,
.btn--catalogue {}

.btn--horaire {
  align-self: flex-end;
}

.conteneur-cours-ajout__prix {
  font-family: var(--font-sans);
  font-size: var(--font-texte);
  font-weight: 500;
  line-height: 130%;
  text-align: right;
}

.conteneur-cours-ajout__prix {
  min-width: 6rem;
}

@media (max-width: 780px) {

  .cours__prix,
  .conteneur-cours-ajout__prix {
    min-width: unset;
    width: 100%;
    text-align: left;
  }
}

.btn--cours {
  width: fit-content;
  align-self: flex-end;
  justify-self: end;
  justify-self: end;
  margin-top: 0.5rem;
}

/* Modale cours */

.modal-cours__meta,
.modal-horaires-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.modal-cours__pied-page {
  position: relative;
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--Couleurs-Neutre-Gris-Cnam);
}

.modal-cours__filtre {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem;
  background: var(--Couleurs-Neutre-Blanc-Cnam, #fff);
  box-shadow: var(--shadow-bleu-level-3);
  z-index: 1000;
  display: flex;
}

.modal-cours__filtre button {
  width: 100%;
  justify-self: center;
}

@media (max-width: 480px) {
  .modal-cours__filtre button {
    width: 100%;
    justify-self: center;
  }
}

.cours_titre-liste {
  padding-bottom: 0.5rem;
}

.modal-cours__details {
  padding-bottom: 0.5rem;
}

.modal-cours__exoneration {
  color: var(--Texte-Bleu);
}

details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

summary {
  display: flex;
  gap: 1rem;

  cursor: pointer;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  background: none;
  border: 0;
  color: var(--Texte-Noir);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  box-shadow: none;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

summary:hover {
  text-decoration-thickness: 3px;
}

/* Modal horaires */

.modal__horaires-liste {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.modal__horaires-liste-item {
  display: flex;
  width: 100%;
  padding: 0.25rem 0.5rem;
  justify-content: space-between;
  align-items: flex-start;

  border-radius: var(--Border-radius-Lvl-2, 0.25rem);
  background: var(--Info-Info--Fond, #dfecf9);
}

.horaire-item__date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.horaire-item__horaire {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===========================
   Page verification dossier
   =========================== */

.conteneur-dossier {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: stretch;
}

.conteneur-dossier__titres {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.conteneur-dossier__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  align-self: stretch;
}

.meta__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
}

.meta__item span {
  padding-bottom: 0;
}

.conteneur-cours-verif {
  display: flex;
  padding: 0.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  align-self: stretch;

  border-radius: 0.5rem;
  background: var(--Info-Info--Fond, #dfecf9);
  box-shadow: none;
}

.conteneur-cours-verif .liste-cours {
  display: flex;
}

.cours-est-verifie {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
  box-shadow: none;
  border-radius: 0;
}

.conteneur-cours-verif__prix {
  display: flex;
  padding: 0 1rem;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

/* ===========================
   Page chargement
   =========================== */

/* HTML: <div class="loader"></div> */
.loader {
  width: 8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid var(--Couleurs-Neutre-Gris-Clair);
  border-right-color: var(--Boutons-Primaire-Bleu-Background);
  animation: l2 2s forwards linear;
}

@keyframes l2 {
  to {
    transform: rotate(1turn);
  }
}

.contneur-chargement {
  display: flex;
  padding-top: 8rem;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  align-self: stretch;
}

.chagement__texte {
  display: flex;
  width: 30rem;
  flex-direction: column;
  align-items: anchor-center;
  gap: 0.25rem;
}

.chagement__texte h2,
.chagement__texte p {
  text-align: center;
}

.chagement__texte p {
  color: var(--Texte-Gris);
}

/* ===========================
   Page paiement
   =========================== */

.radio--paiement {
  position: relative;
  display: flex;
  padding: 1rem 1rem 0rem 1rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  align-self: stretch;
  border-radius: var(--Border-radius-Lvl-2, 0.25rem);
  border: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
}

.paiement__autre-paiement {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.paiement-en-ligne--badge {
  position: absolute;
  display: flex;
  padding: 0 0.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  left: 1rem;
  top: -0.5rem;
  border-radius: 6.25rem;
  background: var(--Couleur-Primaire-Bleu-Medium, #3472b0);
  color: var(--Texte-Blanc);
  font-size: var(--font-petit);
  leading-trim: both;
  text-edge: cap;
}

.paiement-en-ligne--bouton {
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}

.radio--paiement .paiement__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
}

.icone--paiement {
  color: var(--Couleurs-Neutre-Gris-Cnam);
  width: 1.1875rem;
  height: 1.1875rem;
}

.icone--paiement-en-ligne {
  color: var(--Couleur-Primaire-Bleu-Medium);
}

.radio__label--left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 0 0;
}

.radio__label--left div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
}

.radio__label {
  display: grid;
  grid-template-columns: 11rem 1fr;
  width: 100%;
}

/* La pastille radio reste rouge Cnam */
.sous-radio--paiement input[type='radio']:checked+label .custom-radio {
  border-color: var(--Couleur-Primaire-Bleu-Cnam);
}

.sous-radio--paiement input[type='radio']:checked+label .custom-radio::after {
  background-color: var(--Couleur-Primaire-Bleu-Cnam);
}

.radio__label>p {
  justify-self: end;
  align-self: center;
  text-align: right;
}

.radio__label>.texte--petit {
  color: var(--Texte-Gris);
}

.radio__label>.texte--gras {
  font-weight: 600;
}

.radio__label--left .texte--petit {
  color: var(--Texte-Gris);
}

.sous-radio--paiement {
  border: none;
  background: none;
  padding: 0;
  gap: 0.5rem;
}

.sous-radio--paiement .conteneur-radio,
.sous-radio--paiement .conteneur-radio--colonne {
  gap: 0.5rem;
}

.sous-radio--paiement label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
}

/* Debut paiement en ligne */
.radio--paiement-en-ligne {
  border: 1px solid var(--Couleur-Primaire-Bleu-Medium, #bcc7d1);
}

/* Fin paiement en ligne */

.fieldset--sous-section {
  display: flex;
  padding-left: 1rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  align-self: stretch;
}

.paiement-info {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
}

.tableau-paiementechelonne {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 0.5rem;
}

.tableau-paiementechelonne thead {
  border-bottom: 1px solid var(--Couleurs-Neutre-Gris-Cnam, #405a68);
}

.tableau-paiementechelonne thead th:nth-child(1) {
  width: 30%;
}

.tableau-paiementechelonne thead th:nth-child(2) {
  width: 20%;
}

.tableau-paiementechelonne thead th:nth-child(3) {
  width: 15%;
  text-align: end;
}

.tableau-paiementechelonne td:nth-child(3) {
  text-align: end;
}

.tableau-paiementechelonne__entete {
  text-align: left;
  color: var(--Texte-Gris);
  font-size: var(--font-petit);
  font-weight: 400;
  color: var(--Texte-Noir);
  font-family: var(--font-sans);
}

.tableau-paiementechelonne th,
.tableau-paiementechelonne td {
  padding: 0.2rem 0;
}

.tableau-paiementechelonne tr:nth-child(1) {
  font-weight: 600;
}

@media (max-width: 480px) {
  .tableau-paiementechelonne td {
    font-size: var(--font-petit);
  }
}

.paiement__sous-titre {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

.paiement__sous-titre .texte--petit {
  color: var(--Texte-Gris);
}

/* ===========================  
Page signature contrat
   =========================== */
.conteneur-pieceJustificatives {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 2rem;
  align-self: stretch;
}

.form--signature,
.conteneur-pieceJustificatives__description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
}

.iframe {
  display: flex;
  width: 100%;
  height: 40rem;
  margin: 1rem 0 2rem 0;
}

@media (max-width: 768px) {
  .iframe {
    height: 30rem;
  }
}

.contrat__bouton-telecharger {
  width: 100%;
  display: flex;
  justify-content: end;
}

/* ===========================
   Page pièces justificatives
   =========================== */

.sous-conteneur {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
}

/* ===========================
   Page information personnelles 
   =========================== */

.info-perso__identite {
  border-bottom: 1px solid var(--Couleurs-Neutre-Gris-Inactif, #bcc7d1);
  border-top: 0;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

/* ===========================
   Accessibilité & petites améliorations
   =========================== */

/* FOCUS CLAVIER (:focus-visible) */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border: 1px solid var(--Couleur-Primaire-Bleu-Medium);
  box-shadow: 0 0 0 3.5px rgba(223, 236, 249, 1);
  border-radius: var(--Border-radius-Lvl-2);
}

/* FOCUS SOURIS / CLIC (:focus sans :focus-visible) */
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
  border: 1px solid var(--Couleur-Primaire-Bleu-Medium);
  box-shadow: 0 0 0 2px rgba(223, 236, 249, 0.5);
  border-radius: var(--Border-radius-Lvl-2);
}

/* VALIDE (après interaction utilisateur) */
/* input:user-valid,
select:user-valid,
textarea:user-valid {
  outline: none;
  border: 1px solid var(--Succes-Succes-Principal);
  background-color: var(--Alerte-Succes-Fond, #f0faf6);
  box-shadow: none;
  border-radius: var(--Border-radius-Lvl-2);
} */

/* INVALIDE */

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  outline: none;
  border: 1px solid var(--Couleur-primaire-Rouge-Cnam);
  box-shadow: 0 0 0 3px var(--Couleurs-Neutre-Blanc-Cnam);
  border-radius: var(--Border-radius-Lvl-2);
}

/* INVALIDE + FOCUS CLAVIER */
input:user-invalid:focus-visible,
select:user-invalid:focus-visible,
textarea:user-invalid:focus-visible {
  outline: none;
  border: 1px solid var(--Couleur-primaire-Rouge-Cnam);
  box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.28);
  border-radius: var(--Border-radius-Lvl-2);
}

/* INVALIDE + FOCUS SOURIS */
input:user-invalid:focus:not(:focus-visible),
select:user-invalid:focus:not(:focus-visible),
textarea:user-invalid:focus:not(:focus-visible) {
  outline: none;
  border: 1px solid var(--Couleur-primaire-Rouge-Cnam);
  box-shadow: 0 0 0 2px rgba(226, 75, 74, 0.15);
  border-radius: var(--Border-radius-Lvl-2);
}

/* DÉSACTIVÉ  */
input:disabled,
select:disabled,
textarea:disabled,
button:disabled,
[disabled] {
  pointer-events: none;
  opacity: 0.4;
  cursor: default;
}

button:focus-visible {
  outline: 2px solid var(--Couleur-Primaire-Bleu-Medium);
  outline-offset: 3px;
  border-radius: var(--Border-radius-Lvl-2);
}

/* Styles pour l'overlay de chargement */
#global-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  flex-direction: column;
  padding: 0 2rem;
  align-items: center;
}

#global-loading-overlay.visible {
  display: flex;
}

#global-loading-overlay .loading-text {
  color: var(--Texte-Gris);
  text-align: center;

  /* Corps/Titre3 */
  font-size: var(--font-texte);
  font-style: normal;
  line-height: 130%;
  /* 1.70625rem */
  font-weight: 400;
}

#global-loading-overlay .spinner {
  border: 1rem solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 1rem solid var(--Couleur-Primaire-Bleu-Cnam);
  width: 8rem;
  height: 8rem;
  animation: spin 1.2s linear infinite;
  margin-bottom: 3rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ===========================
   Développement
   =========================== */
#barre_env {
  background-color: #f6d9df;
  position: fixed;
  text-align: center;
  text-decoration: none;
  top: 0;
  width: 100%;
  z-index: 3;
  color: var(--Texte-Noir);
}

.zindex {
  background: rgba(141, 154, 161, 0.95);
  border: 1px solid #000000;
  margin: 4em 13em 4em 13em;
  position: relative;
  width: 70%;
  z-index: 9999;
}

/* ===========================
   Fin fichier
   =========================== */

.conteneur-switch {
  display: flex;
  flex-direction: column;
}

/* Conteneur du switch */
.switch {
  position: relative;
  display: inline-block;
  width: 160px;
  height: 36px;
  cursor: pointer;
}

/* Cacher la checkbox native */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* La piste */
.track {
  position: absolute;
  inset: 0;
  border-radius: 0.25rem;
  background: var(--Couleurs-Neutre-Gris-Clair);
  border-top: 2px solid var(--Couleurs-Neutre-Gris-Inactif);
}

/* Le thumb (curseur glissant) */
.thumb {
  position: absolute;
  top: -2px;
  left: 0;
  width: 80px;
  height: 36px;
  border-radius: 0.25rem;
  background: #ffffff;
  border: 1px solid var(--Couleur-Primaire-Bleu-Fonce);
  box-shadow: 0 2px 0 0 rgba(17, 48, 76, 0.2);

  transition:
    left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s,
    border-color 0.3s;
  z-index: 1;
}

/* Les deux labels de texte */
.conteneur-switch .labels {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 2;
  pointer-events: none;
}

.conteneur-switch .label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.3s;
  color: var(--Texte-Noir);
}

/* État par défaut : NON sélectionné — texte noir sur fond blanc */
.conteneur-switch .label-non {}

.conteneur-switch .label-oui {
  color: var(--Couleurs-Neutre-Gris-Cnam);
}

/* inactif, sur fond blanc aussi */

/* État coché : OUI sélectionné */
.switch input:checked~.track .thumb {
  left: calc(100% - 80px);
  background: var(--Couleur-Primaire-Bleu-Cnam);
  border-color: var(--Couleur-Primaire-Bleu-Cnam);
  box-shadow: 0 2px 0 0 rgba(13, 49, 82, 0.5);
}

.switch input:checked~.track .label-non {
  color: var(--Couleurs-Neutre-Gris-Cnam);
  /* inactif, sur fond blanc → noir */
}

.switch input:checked~.track .label-oui {
  color: #ffffff;
  /* actif, sur fond noir → blanc */
}

/* Indicateur d'état */
.state-display {
  font-family: 'Georgia', serif;
  font-size: 14px;
  color: #888;
  letter-spacing: 0.05em;
}

.state-display span {
  color: #000;
  font-weight: 600;
}

.message--switch-texte {
  margin-bottom: 0.5rem;
}

/* --- Message animé --- */

.message--switch {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  padding: 0rem;
  align-items: flex-start;
  border-radius: var(--Border-radius-Lvl-1);
  max-height: 0;
  overflow: hidden;
  align-self: stretch;
  background: var(--Info-Info--Fond);
  color: var(--Texte-Noir);
  margin-top: 0.5rem;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    padding-top 0s cubic-bezier(0.4, 0, 0.2, 1),
    border-top-width 0.4s ease;
}

.message--switch .texte {
  font-size: var(--font-petit);
  padding-bottom: 0.5rem;
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease 0.15s,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
  margin: 1rem 1rem 1rem 0;
}

.message--switch .message__icone {
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease 0.15s,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
  margin: 1rem 0 0 1rem;
}

.message--switch a {
  font-size: var(--font-petit);
}

/* État ouvert */

.conteneur-switch:has(input:checked)>.message--switch {
  max-height: 120rem;
  border-top-width: 1px;
}

.conteneur-switch:has(input:checked)>.message--switch .texte {
  opacity: 1;
  transform: translateY(0);
}

.conteneur-switch:has(input:checked)>.message--switch .message__icone {
  opacity: 1;
  transform: translateY(0);
}

/* --- Colonne --- */

.conteneur-radio--colonne {
  width: 100%;
  flex-direction: column;
  align-items: start;
  padding-bottom: 1rem;
}