/* Ma présentation aux clients : donner envie de compléter sa fiche (Thomas, 05/11/2026 : « créé du fun, du dynamisme »). Trois gestes, une carte qui se remplit en direct. Toujours responsive. Charte Fluidpilot. */
.profil { margin: 0 0 24px; padding: 0; }

/* Le bandeau : où en est la fiche, et les étapes à portée de clic */
.profil-tete { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 22px; padding: 20px 24px; border-radius: 18px; color: #FFFFFF; background: radial-gradient(620px 260px at 100% 0, rgba(0, 210, 116, .3), rgba(0, 210, 116, 0) 70%), linear-gradient(135deg, #00345E 0%, #002746 100%); box-shadow: 0 18px 40px rgba(0, 52, 94, .22); }
.profil-tete::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 28px 28px; }
.profil-tete > * { position: relative; min-width: 0; }
.profil-tete h2 { margin: 0; color: #FFFFFF; font-size: 22px; font-weight: 800; line-height: 1.2; }
.profil-tete__message { margin: 3px 0 0; color: #7FE7B5; font-size: 16px; font-weight: 800; }
.profil-tete__sous { margin: 3px 0 0; max-width: none; color: rgba(255, 255, 255, .86); font-size: 13.5px; line-height: 1.5; }
.profil-anneau { display: block; width: 88px; height: 88px; }
.profil-anneau__fond { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 9; }
.profil-anneau__valeur { fill: none; stroke: #00D274; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1); }
.profil-anneau__nombre { fill: #FFFFFF; font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-size: 22px; font-weight: 800; }
.profil-etapes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.profil-etape { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 5px 14px 5px 6px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; color: #FFFFFF; font: inherit; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .1); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.profil-etape:hover { background: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.profil-etape:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.profil-etape__marque { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; background: rgba(255, 255, 255, .2); }
.profil-etape--faite .profil-etape__marque { color: #00345E; background: #00D274; }

/* Le bravo : une pluie brève, seulement quand la fiche vient d'être complétée */
.profil-confetti { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; animation: profil-confetti 2.2s ease-in forwards; }
@keyframes profil-confetti { to { transform: translateY(240px) rotate(540deg); opacity: 0; } }

/* Photo et mobile côte à côte, à la même hauteur ; l'accroche en dessous, sur toute la largeur : aucun trou (Thomas, 10/11/2026) */
.profil-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.profil-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.profil-carte { min-width: 0; container-type: inline-size; padding: 16px 18px 18px; border: 1px solid var(--ligne); border-top: 4px solid #C7D4E0; border-radius: 16px; background: var(--blanc); box-shadow: 0 6px 18px rgba(0, 52, 94, .06); scroll-margin-top: 130px; transition: border-color .25s ease, box-shadow .25s ease; }
.profil-carte--large { grid-column: 1 / -1; }
.profil-signature { display: grid; gap: 12px; }
@container (min-width: 560px) { .profil-signature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; } }
.profil-carte--faite { border-top-color: #00D274; }
.profil-carte--signal { animation: profil-signal 1.1s ease-out; }
@keyframes profil-signal { 0% { box-shadow: 0 0 0 0 rgba(0, 167, 255, .65); } 70% { box-shadow: 0 0 0 12px rgba(0, 167, 255, 0); } 100% { box-shadow: 0 6px 18px rgba(0, 52, 94, .06); } }
.profil-carte__titre { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--marine); font-size: 16px; font-weight: 800; }
.profil-carte__titre label { cursor: pointer; }
.profil-carte__num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #FFFFFF; font-size: 13.5px; font-weight: 800; background: #00345E; transition: background .25s ease; }
.profil-carte--faite .profil-carte__num { background: #00A85C; }

/* Étape 1 : la photo, qu'on clique ou sur laquelle on dépose un fichier */
.profil__photo { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 22px; }
.profil__avatar { position: relative; flex: none; }
.profil__avatar:has(.profil__cadre--actif)::after { content: "✎"; position: absolute; right: 2px; bottom: 2px; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #FFFFFF; border-radius: 50%; color: #00345E; background: #00D274; font-size: 14px; pointer-events: none; }
.profil__photo-textes { min-width: 0; }
.profil .profil__cadre { flex: none; width: 120px; height: 120px; margin: 0; box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px #00A7FF; transition: box-shadow .2s ease, transform .2s ease; }
.profil__cadre--actif { cursor: pointer; }
.profil__cadre--actif:hover, .profil__cadre--depot { transform: scale(1.04); box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px #00D274; }
.profil .profil__vide { width: 42px; height: 42px; }
.profil .profil__vide::after { top: 50px; width: 78px; height: 46px; }
.profil .profil__mot { margin: 0 0 12px; padding: 0; color: #4A5A6A; background: none; font-size: 14px; line-height: 1.5; }
#profil-etape-photo .profil-carte__titre { margin-bottom: 8px; }
.profil .profil__actions { margin-top: 0; }
#profil-etape-accroche .profil__actions { margin-top: 10px; }
.profil .profil__envoi { margin-top: 0; }

/* Étape 2 : le téléphone, sur une ligne quand la carte a la place */
.profil .profil__mobile { margin: 0; }
.profil .profil__ligne-mobile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin: 0; }
.profil .profil__ligne-mobile select, .profil .profil__ligne-mobile input { box-sizing: border-box; width: 100%; min-height: 42px; padding: 8px 10px; font-size: 14.5px; font-weight: 600; }
.profil .profil__ligne-mobile input, #profil-enregistrer-mobile { grid-column: 1 / -1; }
.profil .profil__ligne-mobile input:focus-visible, .profil .profil__ligne-mobile select:focus-visible, .profil .profil__texte:focus-visible { outline: 3px solid #00A7FF; outline-offset: 1px; }
#profil-enregistrer-mobile { justify-self: start; }
@container (min-width: 620px) {
  .profil .profil__ligne-mobile { grid-template-columns: auto minmax(150px, .9fr) minmax(140px, 1fr) auto; align-items: center; }
  .profil .profil__ligne-mobile input, #profil-enregistrer-mobile { grid-column: auto; }
}

/* Étape 3 : l'accroche */
.profil .profil__texte { font-size: 15px; }
.profil .profil__proposition { transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.profil .profil__proposition:hover:not(:disabled) { transform: translateY(-1px); }

/* L'action de chaque étape se voit au premier regard ; grisée dans la vue du cabinet */
.profil .bouton:not(.bouton--discret):not(.vue-grise) { border: 0; color: #FFFFFF; background: linear-gradient(120deg, #00345E, #0B6FB8); box-shadow: 0 4px 12px rgba(0, 52, 94, .25); transition: transform .15s ease, box-shadow .15s ease; }
.profil .bouton:not(.bouton--discret):not(.vue-grise):hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(0, 52, 94, .32); }
.profil .bouton:focus-visible { outline: 3px solid #00A7FF; outline-offset: 2px; }

/* Les messages : le rouge seulement pour une erreur */
.profil .message { margin: 8px 0 0; color: #B3261E; font-size: 13.5px; font-weight: 600; }
.profil .message:empty { display: none; }
.profil .message--ok { color: #00663A; }
.profil .message--info { color: #005A8F; }

@media (max-width: 1040px) {
  .profil-cartes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .profil-tete { gap: 10px 14px; padding: 16px; }
  .profil-tete h2 { font-size: 19px; }
  .profil-tete__message { font-size: 14.5px; }
  .profil-anneau { width: 70px; height: 70px; }
  .profil-carte { padding: 14px; }
  .profil__photo { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .profil .profil__actions { justify-content: center; }
  #profil-etape-accroche .profil__actions { justify-content: flex-start; }
  #profil-enregistrer-mobile { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .profil-anneau__valeur, .profil-etape, .profil-carte, .profil .profil__cadre { transition: none; }
  .profil-carte--signal { animation: none; }
  .profil-etape:hover, .profil__cadre--actif:hover { transform: none; }
}

/* Devant la page blanche : les formules arrivent l'une après l'autre, et l'enregistrement se fête */
.profil__page-blanche { margin: 10px 0 2px; color: var(--marine); font-size: 15.5px; font-weight: 800; line-height: 1.4; }
.profil__propositions li { animation: profil-formule .45s cubic-bezier(.2, .8, .2, 1) both; }
.profil__propositions li:nth-child(2) { animation-delay: 110ms; }
.profil__propositions li:nth-child(3) { animation-delay: 220ms; }
@keyframes profil-formule { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.profil__formule { display: block; margin-bottom: 3px; color: var(--marine); font-size: 12px; font-weight: 800; }
.profil-confettis { position: fixed; inset: 0; z-index: 2147482000; overflow: hidden; pointer-events: none; }
.profil-confetti { position: absolute; top: -14px; left: var(--x); width: 8px; height: 13px; border-radius: 2px; animation: profil-confetti var(--d) ease-in var(--t) both; }
.profil-confetti--0 { background: #00A7FF; }
.profil-confetti--1 { background: #00D274; }
.profil-confetti--2 { background: #FF6A6E; }
.profil-confetti--3 { background: #00345E; }
@keyframes profil-confetti { from { transform: translate3d(0, 0, 0) rotate(0); } to { transform: translate3d(var(--dx), 104vh, 0) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .profil__propositions li { animation: none; } }

/* Relancer Mistral sur un autre ton */
.profil__tons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.profil__tons-titre { margin-right: 4px; color: var(--marine); font-size: 13px; font-weight: 800; }

/* Les deux volets de la page Compte (Thomas, 09/11/2026) : ce que voient les clients, ce qui ne regarde que soi */
/* !important : certificats.css donne un affichage à #bloc-qualifs, qui l'emportait et laissait les qualifications visibles dans toutes les rubriques */
.compte-volet--masque { display: none !important; }
button.rubrique-onglet { border-width: 0 0 3px; border-style: solid; border-color: transparent; background: none; font-family: inherit; cursor: pointer; }
.reglages__grille { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; }
.reglages__grille > .profil-carte--large { grid-column: 1 / -1; }
.infos--reglages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.infos__ligne--large { grid-column: 1 / -1; }
.reglage-fuseau { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.reglage-fuseau .profil__fuseau-titre { margin-top: 0; }
.reglage-fuseau .profil__ligne-mobile { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
@media (max-width: 900px) { .reglages__grille { grid-template-columns: minmax(0, 1fr); } }

/* Mes langues : une carte par pays, chaque langue une fois, le pays de la nationalité en tête */
.lg-statut { margin: 0 0 12px; color: var(--marine); font-size: 14.5px; }
.lg-statut strong { font-weight: 800; }
.langues { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; gap: 12px; }
.lg-colonne { display: grid; gap: 12px; min-width: 0; }
.lg-pays { padding: 10px 8px 8px; border: 1px solid var(--ligne); border-radius: 14px; background: #F7FAFC; }
.lg-pays--chez { border-color: #9CD9FB; background: #EFF9FF; }
.lg-pays__tete { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; padding: 0 6px; color: var(--marine); font-size: 13px; font-weight: 800; }
.lg-pays__badge { margin-left: auto; padding: 2px 9px; border-radius: 999px; color: #00345E; background: #00D274; font-size: 11px; font-weight: 800; }
.lg-pays__liste { display: grid; gap: 2px; }
.lg-langue { position: relative; display: flex; align-items: center; border-radius: 10px; color: var(--marine); transition: background .15s ease, box-shadow .15s ease; }
.lg-langue:hover { background: #FFFFFF; box-shadow: 0 3px 10px rgba(0, 52, 94, .1); }
.lg-langue--active, .lg-langue--active:hover { color: #FFFFFF; background: #00345E; box-shadow: 0 5px 14px rgba(0, 52, 94, .28); }
.lg-langue__choix { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 4px 7px 8px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.lg-langue__choix input { position: absolute; width: 0; height: 0; margin: 0; opacity: 0; }
.lg-langue__point { flex: none; width: 16px; height: 16px; border: 2px solid #9CC9E6; border-radius: 50%; background: #FFFFFF; }
.lg-langue--active .lg-langue__point { border: 5px solid #00D274; }
.lg-langue__sans-drapeau { display: none; flex: none; width: 27px; }
.lg-pays__liste--drapeaux .lg-langue__sans-drapeau { display: block; }
.lg-langue__choix:has(input:focus-visible) { border-radius: 10px; outline: 3px solid #00A7FF; outline-offset: -2px; }
.lg-note { margin: 12px 0 0; color: #4A5A6A; font-size: 12.5px; line-height: 1.5; }
/* La bulle : de quoi il s'agit pour le non-averti, puis le clin d'œil à l'équipe */
.lg-bulle { position: absolute; z-index: 30; left: 0; bottom: calc(100% + 8px); display: grid; gap: 4px; width: max-content; max-width: min(300px, 76vw); padding: 11px 14px; border-radius: 12px; color: #FFFFFF; background: #00345E; font-size: 12.5px; font-weight: 500; line-height: 1.4; text-align: left; box-shadow: 0 10px 24px rgba(0, 52, 94, .3); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(var(--decale, 0), 4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.lg-bulle::after { content: ''; position: absolute; left: 22px; bottom: -5px; width: 10px; height: 10px; background: #00345E; transform: rotate(45deg); }
.lg-bulle strong { font-size: 14px; font-weight: 800; }
.lg-bulle__clin { color: #00D274; font-weight: 700; }
.lg-bulle__aide { color: rgba(255, 255, 255, .72); font-size: 11.5px; }
.lg-langue:hover .lg-bulle, .lg-langue:focus-within .lg-bulle { opacity: 1; visibility: visible; transform: translate(var(--decale, 0), 0); }
@media (prefers-reduced-motion: reduce) { .lg-bulle, .lg-langue, .lp-puce { transition: none; } }
@media (max-width: 560px) { #profil-etape-photo .profil-carte__titre { justify-content: center; } }

/* Mon profil : les domaines sous la présentation (Thomas, 11/11/2026) */
.dom-titre { margin: 30px 0 4px; }
.dom-intro { margin: 0 0 16px; color: #4A5A6A; font-size: 14px; }
.dom-compte { margin-left: auto; padding: 3px 11px; border-radius: 999px; color: var(--marine); background: var(--fond); font-size: 12px; font-weight: 800; white-space: nowrap; }
.dom-compte:empty { display: none; }
.carte--qse .dom-compte { color: #00703F; background: var(--vert-clair); }
.carte--rc .dom-compte { background: var(--saumon-clair); }

/* Langues et pays : le pays de la fiche, puis les langues pratiquées en pastilles, groupées par pays d'après la liste du CRM */
#carte-pays:not(:has(> :not(.profil-carte__titre):not(.cache))) { display: none; }
.pays-valeur { display: flex; align-items: center; gap: 9px; font-size: 16px; }
#carte-pays .infos { margin-bottom: 4px; }
#carte-pays .lg-note { margin-top: 8px; }
.lp-compte { margin-left: auto; padding: 3px 11px; border-radius: 999px; color: #00345E; background: #00D274; font-size: 12px; font-weight: 800; white-space: nowrap; }
.lp-groupes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; gap: 12px; margin-top: 14px; }
.lp-groupe { padding: 11px 12px 13px; border: 1px solid var(--ligne); border-radius: 14px; background: #F7FAFC; }
.lp-groupe--chez { border-color: #9CD9FB; background: #EFF9FF; }
.lp-groupe__tete { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: var(--marine); font-size: 13px; font-weight: 800; }
.lp-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-puce { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 9px; border: 1.5px solid #C7D4E0; border-radius: 999px; color: var(--marine); background: #FFFFFF; font-size: 13.5px; font-weight: 700; cursor: pointer; user-select: none; transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.lp-puce input { position: absolute; width: 0; height: 0; margin: 0; opacity: 0; }
.lp-puce:hover { border-color: #00A7FF; transform: translateY(-1px); }
.lp-puce__coche { flex: none; position: relative; width: 17px; height: 17px; border: 2px solid #9CC9E6; border-radius: 50%; background: #FFFFFF; transition: background .15s ease, border-color .15s ease; }
.lp-puce:has(input:checked) { border-color: #00345E; color: #FFFFFF; background: #00345E; box-shadow: 0 4px 12px rgba(0, 52, 94, .22); }
.lp-puce:has(input:checked) .lp-puce__coche { border-color: #00D274; background: #00D274; }
.lp-puce:has(input:checked) .lp-puce__coche::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #00345E; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lp-puce:has(input:focus-visible) { outline: 3px solid #00A7FF; outline-offset: 2px; }
#carte-pratiquees .texte-secondaire { margin: 0; font-size: 14px; line-height: 1.5; }
