/* Ton Freelancer · composants interactifs : menus, notifications, tiroir, fenêtres, paiement, messages éphémères. */

.btn-rond { width: 42px; height: 42px; border-radius: 8px; border: 0; background: var(--papier-2); color: var(--bleu); display: grid; place-items: center; cursor: pointer; flex: none; }
.btn-rond:hover { background: var(--bordure-douce); }
button.compte { border: 0; background: none; padding: 0; cursor: pointer; color: var(--encre); }

/* Menus déroulants */
.ancre { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; width: min(340px, calc(100vw - 24px)); padding: 10px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px var(--bordure-douce), 0 24px 50px -18px rgb(0 23 107 / .35); animation: pop .22s var(--sortie); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.pop-titre { padding: 6px 10px 8px; font: 800 11.5px var(--serif); letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.notif { display: grid; gap: 2px; padding: 11px 10px; border-radius: 10px; text-decoration: none; font-size: 14.5px; }
.notif small { color: var(--gris); font-size: 12.5px; }
.notif:hover { background: var(--papier-2); }
.pop-compte a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; font: 600 14.5px var(--sans); color: var(--encre); }
.pop-compte a svg { color: var(--bleu); }
.pop-compte a:hover { background: var(--papier-2); }
.pop-compte .deco { margin-top: 6px; border-top: 1px solid var(--trait); border-radius: 0 0 10px 10px; color: #B42318; }
.pop-compte .deco svg { color: #B42318; }
.qui-pop { display: flex; gap: 12px; align-items: center; padding: 8px 10px 14px; border-bottom: 1px solid var(--trait); margin-bottom: 6px; }
.qui-pop img, .qui-pop > span:first-child { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bleu); color: #fff; display: grid; place-items: center; font: 800 14px var(--serif); flex: none; }
.qui-pop strong { display: block; font: 800 15px var(--serif); }
.qui-pop small { color: var(--gris); font-size: 13px; }

/* Tiroir mobile */
dialog { color: var(--encre); }
.tiroir { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(360px, 88vw); border: 0; padding: 18px 20px; background: #fff; display: none; flex-direction: column; gap: 18px; }
.tiroir[open] { display: flex; animation: tiroir .3s var(--sortie); }
@keyframes tiroir { from { transform: translateX(40px); opacity: 0; } }
.tiroir::backdrop, .fenetre::backdrop { background: rgb(0 23 107 / .35); backdrop-filter: blur(3px); }
.tiroir-tete { display: flex; justify-content: space-between; align-items: center; }
.tiroir nav { display: grid; }
.tiroir nav a { padding: 15px 4px; border-bottom: 1px solid var(--trait); text-decoration: none; font: 800 1.3rem var(--serif); letter-spacing: -.01em; }
.tiroir nav a:hover { color: var(--bleu); }
.tiroir-bas { margin-top: auto; display: grid; gap: 10px; }

/* Fenêtres */
.fenetre { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); border: 0; padding: 0; border-radius: 18px; background: #fff; box-shadow: 0 40px 90px -30px rgb(0 23 107 / .55); overflow: auto; }
.fenetre.large-f { width: min(760px, calc(100vw - 24px)); }
.fenetre[open] { animation: fen .3s var(--sortie); }
@keyframes fen { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.f-tete { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; background: #fff; border-bottom: 1px solid var(--trait); }
.f-tete h2 { font: 800 1.3rem/1.2 var(--serif); letter-spacing: -.015em; }
.f-corps { padding: 20px; display: grid; gap: 16px; }
.f-actions { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; background: #fff; border-top: 1px solid var(--trait); }
@media (max-width: 560px) { .f-actions .btn { flex: 1; } }
.champ-f { display: grid; gap: 7px; font: 700 14.5px var(--serif); }
.champ-f input, .champ-f textarea, .champ-f select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--bordure-douce); background: #fff; font: 500 15.5px var(--sans); color: var(--encre); }
.champ-f textarea { resize: vertical; min-height: 96px; }
.champ-f input:focus, .champ-f textarea:focus, .champ-f select:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px var(--papier-2); }
.champ-f small { font: 500 13px var(--sans); color: var(--gris); }
.deux-champs { display: grid; gap: 14px; }
@media (min-width: 560px) { .deux-champs { grid-template-columns: 1fr 1fr; } }

/* Paiement */
.f-objet { color: var(--encre-2); font-size: 14.5px; }
.f-montant { font: 900 2.6rem/1 var(--serif); color: var(--bleu); letter-spacing: -.03em; }
.operateurs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.op { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--bordure-douce); cursor: pointer; font: 700 14px var(--serif); }
.op::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.op-mtn::before { background: #FFCC00; box-shadow: inset 0 0 0 1px #0B0A07; }
.op-moov::before { background: #0066B3; }
.op-celtiis::before { background: #E30613; }
.op-carte::before { background: var(--encre); border-radius: 3px; }
.op-paypal::before { background: #003087; box-shadow: inset 0 0 0 3px #009CDE; }
.op input { position: absolute; opacity: 0; }
.op:has(input:checked) { box-shadow: inset 0 0 0 2px var(--bleu); background: var(--papier-2); }
.f-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--encre-2); }
.f-note svg { color: var(--bleu); flex: none; margin-top: 2px; }
.attente { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: var(--jaune-pale); font-size: 14.5px; }
.rond-attente { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--jaune); border-top-color: var(--bleu); animation: tourne .8s linear infinite; flex: none; }
@keyframes tourne { to { transform: rotate(360deg); } }
.succes-pay { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 14px 0; }
.succes-pay > span { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: #E3F3DA; color: var(--vert); animation: tampon .5s cubic-bezier(.3,1.6,.5,1); }
.succes-pay strong { font: 800 1.5rem var(--serif); }
.succes-pay p { color: var(--encre-2); max-width: 28em; }

/* Notation */
.choix-etoiles { display: flex; gap: 6px; }
.choix-etoiles button { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--bordure-douce); transition: transform .15s; }
.choix-etoiles button.on { color: var(--jaune); }
.choix-etoiles button:hover { transform: scale(1.12); }
.choix-etoiles svg { stroke: var(--encre); stroke-width: 1; }

/* Messages éphémères */
#toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
@media (max-width: 1019px) { #toasts { bottom: 92px; } }
.toast { display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: 12px; background: var(--encre); color: #fff; font: 600 14.5px var(--sans); box-shadow: 0 18px 40px -14px rgb(0 0 0 / .5); animation: toast .35s var(--sortie); pointer-events: auto; }
.toast svg { color: var(--jaune); flex: none; }
.toast.erreur svg { color: #FF8A73; }
.toast.part { opacity: 0; transform: translateY(8px); transition: .35s; }
@keyframes toast { from { opacity: 0; transform: translateY(12px); } }

/* Visionneuse */
.visionneuse img { width: 100%; border-radius: 12px; }

/* Onglets génériques */
.onglets-l { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: var(--papier-2); width: fit-content; max-width: 100%; overflow-x: auto; }
.onglets-l button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; font: 700 14.5px var(--serif); color: var(--encre-2); cursor: pointer; white-space: nowrap; }
.onglets-l button[aria-selected="true"] { background: #fff; color: var(--bleu); box-shadow: 0 1px 3px rgb(0 23 107 / .15); }

/* Dépôt de fichier */
.depot { display: grid; justify-items: center; gap: 10px; padding: 32px 20px; border-radius: 16px; border: 2px dashed var(--bordure-douce); background: #fff; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.depot:hover, .depot.survol { border-color: var(--bleu); background: var(--papier-2); }
.depot svg { color: var(--bleu); }
.depot strong { font: 800 1.05rem var(--serif); }
.depot small { color: var(--gris); }
.fichiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fichiers li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--papier-2); font-size: 14.5px; }
.fichiers li svg { color: var(--bleu); }
.fichiers li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fichiers li button { border: 0; background: none; color: var(--gris); cursor: pointer; }

/* Code à usage unique */
.code { display: flex; gap: 10px; }
.code input { width: 56px; height: 62px; text-align: center; border-radius: 10px; border: 1.5px solid var(--bordure-douce); font: 900 1.6rem var(--serif); color: var(--bleu); }
.code input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px var(--papier-2); }

/* FAQ */
.faq { border-top: 1.5px solid var(--encre); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 2px; cursor: pointer; font: 800 1.1rem var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.8rem/1 var(--sans); color: var(--bleu); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 20px; color: var(--encre-2); max-width: 46em; }

.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
[data-lien]:hover { background: var(--papier-2); }

/* Photo de promo (accueil) */
.photo-promo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--papier-2); }
.photo-promo img { width: 100%; height: 100%; object-fit: cover; }
.photo-promo::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(0 23 107 / .85)); }
.photo-promo figcaption { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: grid; gap: 10px; color: #fff; }
.photo-promo strong { font: 800 clamp(1.4rem, 3.6vw, 2.8rem)/1.08 var(--serif); letter-spacing: -.02em; max-width: 18em; }
.photo-promo strong em { color: var(--jaune); }
@media (max-width: 600px) { .photo-promo { aspect-ratio: 4 / 5; } .photo-promo img { object-position: 30% center; } }
.citation .auteur .initiales { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bleu); color: #fff; font: 800 16px var(--serif); }

/* Portraits des étudiants : garder le visage dans le cadre */
.talent .cadre img { object-position: center 18%; }
.collage .ph img, .identite .photo, .choix-talent img, .devis .qui img { object-position: center 20%; }

/* Portraits détourés : fonds aux couleurs IMDF */
.talent .cadre { background: var(--papier-2); }
.talent:nth-child(4n+2) .cadre { background: var(--jaune); }
.talent:nth-child(4n+3) .cadre { background: var(--bleu); }
.talent:nth-child(4n+4) .cadre { background: var(--bordure-douce); }
.talent .cadre img { object-position: center top; }
.talent .cadre::after { inset: 55% 0 0; background: linear-gradient(transparent, rgb(0 23 107 / .78)); }
.collage .a { background: var(--papier-2); }
.collage .c { background: var(--bleu); }
.collage .ph img { object-position: center top; }
img[src*="etudiants/"][src$=".webp"] { background-color: var(--papier-2); }
.identite .photo { object-position: center 8%; background: var(--jaune); }
.choix-talent img, .devis .qui img, .lignes img.av, .tableau .p img, .compte img, .qui-pop img, .offre .qui img, .fiche img, .conv img, .fil-tete img { object-position: center 6%; }
.talent .cadre img, .collage .ph img { background-color: transparent !important; }

.maquette-info { margin: 0; padding: 7px max(16px, env(safe-area-inset-left, 0px)); text-align: center; background: var(--encre); color: #fff; font: 600 12.5px var(--sans); letter-spacing: .02em; }
.tete { top: env(safe-area-inset-top, 0px); }

/* ---------- International (façon Upwork) ---------- */
.choix-devise, .choix-filtre { min-height: 38px; padding: 0 28px 0 10px; border-radius: 8px; border: 1.5px solid var(--bordure-douce); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230037CA' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; font: 700 13.5px var(--serif); color: var(--bleu); cursor: pointer; }
.pastille-statut.externe i { background: var(--vert); }
.talent .ligne-jss { margin-top: -6px; font-size: 13.5px; color: var(--encre-2); }
.talent .ligne-jss b { color: var(--encre); }
.badge-up { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; background: var(--papier-2); color: var(--bleu-nuit); font: 700 12px var(--serif); white-space: nowrap; }
.talent-externe .cadre img { object-position: center 20%; }
.drapeau-pays { font: 700 12px var(--serif); padding: 3px 8px; border-radius: 6px; background: var(--papier-2); color: var(--bleu-nuit); }
.mission { display: grid; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--trait); }
.mission:first-child { border-top: 1.5px solid var(--encre); }
.mission .haut { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.mission h3 { font: 800 1.15rem/1.3 var(--serif); letter-spacing: -.01em; }
.mission h3 a { text-decoration: none; }
.mission h3 a:hover { color: var(--bleu); text-decoration: underline; }
.mission .meta-m { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--encre-2); }
.mission .meta-m b { color: var(--encre); }
.mission p { color: var(--encre-2); font-size: 15px; }
.mission .comp { display: flex; flex-wrap: wrap; gap: 6px; }
.mission .comp span { padding: 5px 11px; border-radius: 999px; background: var(--papier-2); font-size: 13px; font-weight: 600; }
.mission .client-m { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--gris); }
.mission .verifie { color: var(--vert); font-weight: 700; }
.coeur { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--papier-2); color: var(--bleu); display: grid; place-items: center; cursor: pointer; flex: none; }
.coeur[aria-pressed="true"] { background: var(--bleu); color: #fff; }
.filtres-l { display: grid; gap: 18px; align-content: start; }
.filtres-l fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.filtres-l legend { font: 800 14.5px var(--serif); margin-bottom: 6px; }
.filtres-l label { display: flex; gap: 10px; align-items: center; font-size: 14.5px; cursor: pointer; }
.filtres-l input[type=checkbox], .filtres-l input[type=radio] { width: 18px; height: 18px; accent-color: var(--bleu); }
.credits { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--jaune); font: 800 14px var(--serif); }
.decompte { display: grid; gap: 8px; padding: 16px; border-radius: 12px; background: var(--papier-2); font-size: 14.5px; }
.decompte div { display: flex; justify-content: space-between; gap: 12px; }
.decompte .total { padding-top: 8px; border-top: 1.5px solid var(--encre); font: 800 1.05rem var(--serif); }
.jalons-saisie { display: grid; gap: 10px; }
.jalon-l { display: grid; grid-template-columns: 1fr 140px 42px; gap: 8px; align-items: end; }
@media (max-width: 560px) { .jalon-l { grid-template-columns: 1fr 110px 42px; } }
.semaine { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.semaine th, .semaine td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--trait); }
.semaine th { font: 800 12px var(--serif); text-transform: uppercase; letter-spacing: .1em; color: var(--gris); }
.semaine td:first-child, .semaine th:first-child { text-align: left; }
.semaine tfoot td { font: 800 15px var(--serif); border-bottom: 0; border-top: 1.5px solid var(--encre); }
.journal { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.journal figure { margin: 0; display: grid; gap: 6px; }
.journal img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.journal figcaption { font-size: 12.5px; color: var(--gris); }
.jauge-h { height: 10px; border-radius: 999px; background: var(--papier-2); overflow: hidden; }
.jauge-h i { display: block; height: 100%; width: var(--v); background: var(--bleu); border-radius: inherit; }
.quiz { display: grid; gap: 14px; }
.quiz fieldset { border: 0; padding: 16px; margin: 0; border-radius: 12px; background: var(--papier-2); display: grid; gap: 8px; }
.quiz legend { font: 800 15px var(--serif); padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.quiz label { display: flex; gap: 10px; align-items: center; font-size: 14.5px; cursor: pointer; }
.quiz input { width: 18px; height: 18px; accent-color: var(--bleu); }
.retrait-m { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 1019px) { .tete .choix-devise { display: none; } }
.tiroir .choix-devise { width: 100%; min-height: 46px; }
.tete .menu a { white-space: nowrap; }
@media (max-width: 1320px) { .tete .menu a[href="index.html#comment"] { display: none; } }
.puces { min-width: 0; }
.filtres-plus { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; flex: none; max-width: 100%; }
.filtres-plus::-webkit-scrollbar { display: none; }
.filtres-plus .choix-filtre { flex: none; }
@media (max-width: 1100px) { .filtres .large { flex-wrap: wrap; } .puces, .filtres-plus { flex: 1 1 100%; } }
@media (min-width: 980px) { .preuve .large:has(> :only-child) { grid-template-columns: 1fr; } }
.score-b ul.lignes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.score-b ul.lignes li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--trait); font-size: 14px; }
.score-b ul.lignes small { font-size: 14px; color: var(--encre-2); }
