/* team/modales.css — LES CARTES-BOUTONS ET LES FENÊTRES DES PAGES EMPLOI
   (15/11/2026, sorti de team/index.html pour servir aussi aux fiches
   /team/offre/). Cartes : .team-actions > .team-action (.ta-profil turquoise,
   .ta-publier orange, .ta-alerte violet). Fenêtres : .ws-modale (+ .m-profil,
   .m-publier, .m-alerte), ouvertes et fermées par /team/modales.js.
   Les règles « .js » ne valent que si le script tourne : sans lui, le contenu
   d'une fenêtre reste affiché dans la page. */
/* LES DEUX BOUTONS SOUS LES OFFRES (15/11/2026, demande d'Erwan : les
   anciens liens en capitales étaient à refaire, et chacun ouvre SA
   fenêtre) : deux grandes cartes-boutons blanches, chacune avec sa
   pastille de couleur (turquoise : profil ; orange : offre), un titre, une
   ligne d'explication et une flèche. */
.team-actions{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:26px 0 0;}
.team-action{display:flex; align-items:center; gap:14px; min-height:76px; padding:14px 18px 14px 14px;
  background:#fff; border:1px solid #DCE8F4; border-radius:18px; text-decoration:none; color:#10304F;
  box-shadow:0 2px 4px rgba(16,42,67,.04), 0 12px 28px rgba(16,42,67,.08); transition:transform .2s, box-shadow .2s, border-color .2s;}
.team-action .ta-ico{flex:none; width:48px; height:48px; border-radius:50%;}
.team-action.ta-profil{--teinte:46,143,166;}
.team-action.ta-publier{--teinte:255,138,31;}
/* La troisième carte, l'alerte emploi (15/11/2026) : pleine largeur, sous
   les deux autres ; pastille violette, cloche. */
.team-action.ta-alerte{--teinte:123,97,217; grid-column:1 / -1;}
.team-action.ta-alerte .ta-ico{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center/22px 22px no-repeat, linear-gradient(135deg,#A796F7 0%,#7B61D9 100%); box-shadow:0 6px 14px rgba(123,97,217,.35);}
.team-action.ta-profil .ta-ico{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center/22px 22px no-repeat, linear-gradient(135deg,#40CFE0 0%,#2E8FA6 100%); box-shadow:0 6px 14px rgba(46,143,166,.35);}
.team-action.ta-publier .ta-ico{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M12 11v6M9 14h6'/%3E%3C/svg%3E") center/22px 22px no-repeat, linear-gradient(135deg,#FFB766 0%,#FF8A1F 100%); box-shadow:0 6px 14px rgba(255,138,31,.35);}
.team-action .ta-txt{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px;}
.team-action b{font-family:'Inter',sans-serif; font-size:17px; font-weight:700; letter-spacing:-.01em;}
.team-action small{font-family:'Inter',sans-serif; font-size:13px; color:#5B7389;}
.team-action .ta-fl{flex:none; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:rgba(var(--teinte),.12); color:rgb(var(--teinte)); font-size:17px; font-weight:700; transition:transform .2s, background .2s, color .2s;}
.team-action:focus-visible{outline:3px solid rgb(var(--teinte)); outline-offset:3px;}
@media (hover:hover){
  .team-action:hover{transform:translateY(-3px); border-color:rgba(var(--teinte),.55);
    box-shadow:0 0 0 1px rgba(var(--teinte),.35), 0 16px 32px rgba(var(--teinte),.18);}
  .team-action:hover .ta-fl{background:rgb(var(--teinte)); color:#fff; transform:translateX(3px);}
}
@media (max-width:640px){ .team-actions{grid-template-columns:minmax(0,1fr);} }

/* LES FENÊTRES « DÉPOSER MON PROFIL » ET « PUBLIER UNE OFFRE » (15/11/2026).
   Seulement si le script tourne (classe « js ») : sans script, le
   formulaire du profil reste affiché dans la page, et « Publier une
   offre » mène à sa page. */
.js .ws-modale{position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center; padding:24px;}
.js .ws-modale:not(.ouverte){display:none;}
.ws-modale-fond{display:none;}
.js .ws-modale-fond{display:block; position:absolute; inset:0; background:rgba(11,39,51,.55); backdrop-filter:blur(3px);}
.js .ws-modale-boite{position:relative; width:100%; max-width:760px; max-height:calc(100vh - 48px); display:flex; flex-direction:column;
  background:#fff; border-radius:20px; overflow:hidden; box-shadow:0 30px 80px rgba(11,39,51,.35);}
.ws-modale-tete{display:flex; align-items:center; gap:12px; padding:16px 18px 14px 22px; border-bottom:1px solid #E3EDF7;}
.ws-modale-tete .ta-ico{flex:none; width:38px; height:38px; border-radius:50%;}
.ws-modale-tete h2{flex:1; margin:0; font-size:26px; color:#10304F;}
.ws-modale-x{flex:none; width:40px; height:40px; border-radius:50%; border:0; background:#EEF4FA; color:#10304F; font-size:24px; line-height:1; cursor:pointer;}
.ws-modale-x:hover{background:#DDE9F5;}
.ws-modale-x:focus-visible{outline:2px solid var(--or-fonce); outline-offset:2px;}
html:not(.js) .ws-modale-x{display:none;}
.ws-modale-corps{padding:20px 24px 26px;}
.js .ws-modale-corps{overflow:auto; -webkit-overflow-scrolling:touch;}
.ws-modale-cadre{display:block; width:100%; height:min(78vh,900px); border:0; background:#F3F7FB;}
.js .ws-modale.m-publier .ws-modale-corps{padding:0; overflow:hidden;}
.ws-modale.m-profil .ws-modale-tete .ta-ico{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center/18px 18px no-repeat, linear-gradient(135deg,#40CFE0 0%,#2E8FA6 100%);}
.ws-modale.m-alerte .ws-modale-tete .ta-ico{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center/18px 18px no-repeat, linear-gradient(135deg,#A796F7 0%,#7B61D9 100%);}
/* Dans la fenêtre, l'encart de l'alerte perd son cadre et son titre (la
   fenêtre a le sien) ; il garde sa phrase et son formulaire. */
.ws-modale.m-alerte .wsa{border:0; box-shadow:none; padding:0; border-radius:0;}
.ws-modale.m-alerte .wsa-titre{display:none;}
.ws-modale.m-alerte .wsa-sous{margin:0; font-size:15px;}
.ws-modale.m-publier .ws-modale-tete .ta-ico{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M12 11v6M9 14h6'/%3E%3C/svg%3E") center/18px 18px no-repeat, linear-gradient(135deg,#FFB766 0%,#FF8A1F 100%);}
@media (max-width:560px){
  .js .ws-modale{padding:0; align-items:stretch;}
  .js .ws-modale-boite{max-height:none; height:100%; border-radius:0;}
  .ws-modale-tete h2{font-size:22px;}
  .ws-modale-corps{padding:16px 16px 22px;}
  .ws-modale-cadre{height:100%;}
  .js .ws-modale.m-publier .ws-modale-corps{flex:1;}
}
