/* Sponso'ring : espaces membres (/compte/) */

/* Un élément masqué par le script reste masqué, même si c'est un bouton (.btn est en display: flex) */
.compte [hidden] { display: none !important; }

.compte__head { margin-bottom: 24px; }
.compte__form { max-width: 560px; }
.compte__form--mini { max-width: none; gap: 14px; }
.compte__alt { color: var(--text-2); font-size: 16px; }
.compte__alt a, .compte .f-hint a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Message de réussite (sous un bouton d'envoi) */
.f-ok { color: var(--green); font-size: 16px; line-height: 1.5; font-weight: 600; }
.f-ok:empty { display: none; }

/* Mot de passe avec bouton Afficher / Masquer */
.f-mdp { position: relative; }
.f-mdp .f-input { width: 100%; padding-right: 96px; }
.f-mdp__voir {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  min-height: 44px; padding: 0 12px; border: 0; background: transparent;
  color: var(--text-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.f-mdp__voir:hover, .f-mdp__voir:focus-visible { color: var(--text); }

/* Écran « presque fini » après l'inscription */
.compte__ok {
  max-width: 560px; padding: 24px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); display: grid; gap: 14px; font-size: 17px; line-height: 1.6; color: var(--text-body);
}
.compte__ok h2 { font-size: 32px; color: var(--text); }

/* Tableau de bord */
.compte__grille { display: grid; gap: 20px; }
@media (min-width: 900px) { .compte__grille { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.compte__carte {
  padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  display: grid; gap: 16px; align-content: start;
}
.compte__surtitre { color: var(--text-2); font-size: 13px; }
.compte__texte { color: var(--text-body); font-size: 17px; line-height: 1.6; }
.compte__texte b { color: var(--text); }
.compte__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pastilles d'état de la fiche */
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px;
  border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid currentColor;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--gris { color: var(--text-2); }
.pill--or { color: var(--gold); }
.pill--vert { color: var(--green); }
.pill--rouge { color: #FF6B74; }

/* Éditeur de fiche */
.compte__form--large { max-width: 860px; }
.compte .page__eyebrow a { color: inherit; text-decoration: none; }
.editeur__chargement { color: var(--text-2); font-size: 17px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo-slot { display: grid; gap: 10px; align-content: start; }
.photo-slot__cadre {
  position: relative; aspect-ratio: 4 / 3; border: 1px dashed var(--border-strong, var(--border)); border-radius: 12px;
  overflow: hidden; display: grid; place-items: center; background: var(--bg);
}
.photo-slot__cadre img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot__vide { color: var(--text-2); font-size: 15px; text-align: center; padding: 8px; line-height: 1.4; }
.photo-slot.is-envoi .photo-slot__cadre { opacity: .5; }
.photo-slot__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-slot__actions .btn { min-height: 44px; }
.photo-slot__choisir { position: relative; cursor: pointer; }
.photo-slot__choisir input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-slot__choisir:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }
.editeur__barre {
  position: sticky; bottom: 0; z-index: 5; max-width: 860px; margin-top: 24px; padding: 14px 16px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.editeur__statut { color: var(--text-2); font-size: 15px; }
.editeur__boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.editeur__statut.is-erreur { color: #FF6B74; font-weight: 600; }
.editeur__erreur { max-width: 860px; margin-top: 12px; }

/* Espace équipe */
.admin__filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.admin__filtres [aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.admin__filtres span { margin-left: 6px; opacity: .7; }
.admin__grille { display: grid; gap: 20px; }
@media (min-width: 980px) { .admin__grille { grid-template-columns: 340px 1fr; align-items: start; } }
.admin__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.admin__ligne {
  width: 100%; text-align: left; display: grid; gap: 6px; padding: 14px 16px; min-height: 44px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; font: inherit;
}
.admin__ligne:hover, .admin__ligne.is-active { border-color: var(--text-2); }
.admin__ligne .pill { justify-self: start; }
.admin__nom { font-weight: 700; font-size: 17px; }
.admin__meta { color: var(--text-2); font-size: 14px; }
.admin__vide { color: var(--text-2); padding: 12px 0; }
.admin__entete { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.admin__titre { font-size: 30px; }
.admin__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.admin__photo { margin: 0; display: grid; gap: 6px; }
.admin__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--bg); }
.admin__photo figcaption { color: var(--text-2); font-size: 13px; }
.admin__champs { margin: 0; display: grid; gap: 2px; }
.admin__champ { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; }
@media (min-width: 700px) { .admin__champ { grid-template-columns: 220px 1fr; } }
.admin__champ:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.admin__champ dt { color: var(--text-2); font-size: 14px; }
.admin__champ dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.admin__champ.is-change { outline: 1px solid var(--gold); }
.admin__champ.is-change dt { color: var(--gold); font-weight: 700; }
.admin__champ.is-prive dt::after { content: " (jamais publié)"; }
.admin__bloc { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.admin__bloc h3 { font-size: 22px; }
.admin__bloc .btn { justify-self: start; }
.admin__adresse { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin__adresse span { color: var(--text-2); }
.admin__adresse .f-input { flex: 1 1 200px; }
.admin__confirmer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--text-body); }

/* Aperçu d'une fiche, en plein écran par-dessus la page (js/compte.js) */
.apercu { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--bg); }
.apercu__barre {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 16px;
}
.apercu__barre .btn { min-height: 44px; }
.apercu__cadre { flex: 1; width: 100%; border: 0; background: var(--bg); }

/* Suppression du compte (tableau de bord) */
.compte__suppression { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.compte__suppression > .btn { justify-self: start; }
.compte__confirmer { display: grid; gap: 12px; }

/* Parties facultatives repliées de l'éditeur (offres de sponsoring, campagne) */
.f-details > summary { display: inline-flex; list-style: none; cursor: pointer; }
.f-details > summary::-webkit-details-marker { display: none; }
.f-details > summary::before { content: "+"; margin-right: 8px; font-weight: 800; }
.f-details[open] > summary::before { content: "–"; }
.f-details:not([open]) > :not(summary) { display: none; }
.f-details[open] { display: grid; gap: 16px; padding-bottom: 8px; }
.f-details + .f-details { margin-top: 12px; }
.f-details { scroll-margin-top: 96px; }
