/* ==========================================================================
   Fenêtre « Vous êtes… » — une seule pour tout le portail (17/10/2026)
   Ouverte par « Cliquez ici » et « Publier mon cours » (accueil) et par
   « Publier mon cours » (démo). Balisage et comportement : choix-profil.js.
   Sortie de portail/index.html, où elle vivait depuis le 28/09/2026 : la démo
   en avait une autre, et le même bouton ouvrait deux fenêtres différentes.
   Deux cartes côte à côte, y compris sur téléphone.
   ========================================================================== */
.modal-choix-profil {
  padding: 0; border: none; background: transparent; margin: auto;
  max-width: 46rem; width: calc(100% - 1.5rem); overflow: visible; box-shadow: none;
}
.modal-choix-profil::backdrop { background: rgba(7, 17, 31, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body:has(.modal-choix-profil[open]) { overflow: hidden; }
.choix-profil-boite {
  background: var(--carte); border: 1px solid var(--trait); border-radius: calc(var(--r) * 1.3);
  padding: 1.3rem 1.4rem 1.5rem; color: var(--encre); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .45);
}
:root[data-theme="dark"] .choix-profil-boite { background: #0E1A2D; border-color: rgba(255, 255, 255, .14); }
.choix-profil-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.choix-profil-tete h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.02em; }
.choix-profil-boite .choix-profil-intro { margin: 0 0 1.8rem; color: var(--encre-2); font-size: .95rem; line-height: 1.55; }
.choix-profil-fermer {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 1px solid var(--trait); background: color-mix(in srgb, var(--encre) 5%, var(--carte)); color: var(--encre-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--t), color var(--t), transform var(--t);
}
.choix-profil-fermer:hover { background: color-mix(in srgb, var(--encre) 12%, var(--carte)); color: var(--encre); transform: scale(1.08); }
.choix-profil-fermer:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
:root[data-theme="dark"] .choix-profil-fermer { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }
:root[data-theme="dark"] .choix-profil-fermer:hover { background: rgba(255, 255, 255, .18); }
.choix-profil-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.choix-profil-carte {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  padding: 1.3rem .9rem 1rem; border-radius: var(--r); text-decoration: none; color: var(--encre);
  border: 2px solid var(--a); background: color-mix(in srgb, var(--a) 6%, transparent);
}
.choix-profil-pillule {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%);
  padding: .3rem .8rem; border-radius: 999px; background: var(--a); color: #fff;
  font-size: .8rem; font-weight: 750; white-space: nowrap; box-shadow: 0 0 0 3px var(--carte);
}
:root[data-theme="dark"] .choix-profil-pillule { box-shadow: 0 0 0 3px #0E1A2D; }
.choix-profil-carte img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--r) * .7); }
.choix-profil-titre { font-size: 1.05rem; font-weight: 750; line-height: 1.3; }
/* Deux chemins par carte : découvrir, ou aller droit au formulaire. */
.choix-profil-actions { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: .35rem; }
.choix-profil-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 42px; padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--a);
  font-size: .9rem; font-weight: 750; text-decoration: none; text-align: center;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.choix-profil-btn.second { background: var(--carte); color: var(--accent-texte, var(--a)); }
:root[data-theme="dark"] .choix-profil-btn.second { background: transparent; color: var(--a); }
.choix-profil-btn.principal { background: var(--a); color: var(--a-encre, #fff); box-shadow: 0 10px 22px -12px var(--a); }
.choix-profil-btn:hover { transform: translateY(-2px); }
.choix-profil-btn.second:hover { background: color-mix(in srgb, var(--a) 12%, var(--carte)); }
.choix-profil-btn:focus-visible { outline: 3px solid var(--a); outline-offset: 3px; }
.choix-profil-ou { text-align: center; font-size: .82rem; font-weight: 600; color: var(--encre-2); }
.modal-choix-profil[open] .choix-profil-boite { animation: choixProfilEntree .28s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes choixProfilEntree { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal-choix-profil[open] .choix-profil-boite { animation: none; } .choix-profil-btn:hover, .choix-profil-fermer:hover { transform: none; } }
@media (max-width: 620px) {
  .choix-profil-boite { padding: 1rem .8rem 1.1rem; }
  .choix-profil-tete h2 { font-size: 1.2rem; }
  .choix-profil-boite .choix-profil-intro { font-size: .86rem; margin-bottom: 2rem; }
  .choix-profil-grille { gap: .6rem; }
  .choix-profil-carte { padding: 1.35rem .55rem .75rem; gap: .5rem; }
  .choix-profil-pillule { font-size: .66rem; padding: .25rem .5rem; white-space: normal; text-align: center; width: max-content; max-width: 92%; line-height: 1.15; }
  .choix-profil-titre { font-size: .82rem; }
  .choix-profil-actions { gap: .3rem; }
  .choix-profil-btn { min-height: 40px; padding: .4rem .5rem; font-size: .76rem; }
  .choix-profil-ou { font-size: .72rem; }
}
