/*--------------------------------------------------------------
# Charte YouthConnekt Burkina — couche moderne, chargée après main.css
#
# Vert du logo = couleur de marque et des actions principales ; orange = accent (liens actifs, badges).
# Tout passe par les variables ci-dessous : changer une valeur ici change tout le site.
--------------------------------------------------------------*/
:root {
  --ycb-vert: #1b6d1e;
  --ycb-vert-fonce: #025e4c;
  --ycb-vert-clair: #e6f2e7;
  --ycb-orange: #f1592a;
  --ycb-orange-clair: #fdece6;
  --ycb-encre: #1f2d3d;
  --ycb-texte: #364d59;
  --ycb-texte-doux: #6b7a86;
  --ycb-bord: #e4e9ee;
  --ycb-fond: #f6f8fa;
  --ycb-blanc: #ffffff;
  --ycb-rayon: 16px;
  --ycb-rayon-petit: 10px;
  --ycb-ombre: 0 1px 2px rgba(31, 45, 61, 0.04), 0 8px 24px rgba(31, 45, 61, 0.06);
  --ycb-ombre-survol: 0 2px 4px rgba(31, 45, 61, 0.06), 0 16px 40px rgba(31, 45, 61, 0.12);
  --ycb-anneau: 0 0 0 4px rgba(27, 109, 30, 0.18);

  /* Dégradés de la charte, réservés aux éléments forts (voir « Dégradés » en fin de fichier). */
  --ycb-degrade-marque: linear-gradient(120deg, #025e4c 0%, #1b6d1e 60%, #2a8a2e 100%);
  --ycb-degrade-accent: linear-gradient(120deg, #e4481c 0%, #f1592a 60%, #f4692f 100%);
  --ycb-degrade-progression: linear-gradient(90deg, #1b6d1e 0%, #6f8f22 55%, #f1592a 100%);
  --ycb-degrade-doux: linear-gradient(120deg, #e6f2e7 0%, #f3f8f1 100%);

  /* Le thème d'origine lit ces deux variables : elles suivent la charte. */
  --color-primary: var(--ycb-orange);
  --color-default: var(--ycb-texte);
}

body {
  color: var(--ycb-texte);
  background: var(--ycb-blanc);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ycb-encre);
  letter-spacing: -0.01em;
}

a {
  color: var(--ycb-vert);
}

a:hover {
  color: var(--ycb-vert-fonce);
}

/*--------------------------------------------------------------
# Sections et bandeaux de page
--------------------------------------------------------------*/
section {
  padding: 56px 0;
}

.section-header {
  padding-bottom: 32px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
}

.breadcrumbs {
  padding: 120px 0 48px 0;
  min-height: 0;
}

.breadcrumbs::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.breadcrumbs h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.breadcrumbs ol a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs ol li + li::before {
  color: rgba(255, 255, 255, 0.6);
}

/* Bandeau de recherche + bouton « Publier ». */
.section-header .conteneur {
  background: var(--ycb-vert-fonce);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
  padding: 14px 18px;
  margin: 0;
}

.section-header .conteneur .nav-item {
  gap: 10px;
}

.section-header .conteneur .form-control {
  color: #fff;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: none;
}

.section-header .conteneur .form-control::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.section-header .conteneur .form-control:focus {
  border-bottom-color: #fff !important;
  box-shadow: none;
}

/*--------------------------------------------------------------
# Boutons : une seule forme (pilule), deux niveaux (plein, contour)
--------------------------------------------------------------*/
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn:focus-visible {
  box-shadow: var(--ycb-anneau);
}

.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.875rem;
}

.btn-success,
.btn-primary {
  --bs-btn-bg: var(--ycb-vert);
  --bs-btn-border-color: var(--ycb-vert);
  --bs-btn-hover-bg: var(--ycb-vert-fonce);
  --bs-btn-hover-border-color: var(--ycb-vert-fonce);
  --bs-btn-active-bg: var(--ycb-vert-fonce);
  --bs-btn-active-border-color: var(--ycb-vert-fonce);
  --bs-btn-disabled-bg: #9cc39e;
  --bs-btn-disabled-border-color: #9cc39e;
}

.btn-outline-success,
.btn-outline-primary {
  --bs-btn-color: var(--ycb-vert);
  --bs-btn-border-color: var(--ycb-vert);
  --bs-btn-hover-bg: var(--ycb-vert);
  --bs-btn-hover-border-color: var(--ycb-vert);
  --bs-btn-active-bg: var(--ycb-vert-fonce);
  --bs-btn-active-border-color: var(--ycb-vert-fonce);
}

.btn-light {
  --bs-btn-bg: var(--ycb-fond);
  --bs-btn-border-color: var(--ycb-fond);
  --bs-btn-color: var(--ycb-encre);
  --bs-btn-hover-bg: var(--ycb-vert-clair);
  --bs-btn-hover-border-color: var(--ycb-vert-clair);
  --bs-btn-hover-color: var(--ycb-vert-fonce);
}

.btn-outline-light {
  border-width: 1.5px;
}

.btn-link {
  font-weight: 600;
  text-decoration: none;
  padding: 0;
}

/* Bouton « Me connecter » de l'en-tête. */
.header .btn-outline-success {
  padding: 0.4rem 1rem;
}

/*--------------------------------------------------------------
# Formulaires
--------------------------------------------------------------*/
.form-control,
.form-select {
  border-radius: var(--ycb-rayon-petit);
  border: 1px solid var(--ycb-bord);
  padding: 0.6rem 0.9rem;
  color: var(--ycb-encre);
  background-color: var(--ycb-blanc);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ycb-vert);
  box-shadow: var(--ycb-anneau);
}

.form-control::placeholder {
  color: #9aa6b1;
}

.form-label,
label.small {
  font-weight: 600;
  color: var(--ycb-encre);
}

.form-check-input:checked {
  background-color: var(--ycb-vert);
  border-color: var(--ycb-vert);
}

.form-check-input:focus {
  border-color: var(--ycb-vert);
  box-shadow: var(--ycb-anneau);
}

.input-group-text {
  border-radius: var(--ycb-rayon-petit);
  border-color: var(--ycb-bord);
  background: var(--ycb-fond);
}

textarea.form-control {
  min-height: 120px;
}

/*--------------------------------------------------------------
# Cartes et fenêtres modales
--------------------------------------------------------------*/
.card {
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
  overflow: hidden;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--ycb-bord);
  font-weight: 600;
  color: var(--ycb-encre);
  padding: 0.9rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

.modal-content {
  border: 0;
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre-survol);
}

.modal-header {
  border-bottom: 1px solid var(--ycb-bord);
}

.dropdown-menu {
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  box-shadow: var(--ycb-ombre);
  padding: 0.4rem;
}

.dropdown-item {
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
}

.alert {
  border: 0;
  border-radius: var(--ycb-rayon-petit);
}

/*--------------------------------------------------------------
# Filtres par catégorie (colonne de gauche des listes)
--------------------------------------------------------------*/
.filtres {
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
  padding: 1rem;
  position: sticky;
  top: 110px;
}

.filtres__titre {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ycb-texte-doux);
  margin: 0 0 0.5rem 0.5rem;
}

.projects .filtres .portfolio-flters {
  padding: 0;
  margin: 0;
}

.projects .filtres .portfolio-flters li {
  display: block;
  margin: 2px 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ycb-texte);
  border-radius: var(--ycb-rayon-petit);
  transition: background-color 0.15s, color 0.15s;
}

.projects .filtres .portfolio-flters li:hover {
  background: var(--ycb-fond);
  color: var(--ycb-encre);
}

.projects .filtres .portfolio-flters li.filter-active {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
  font-weight: 600;
}

/*--------------------------------------------------------------
# Carte de publication (actualités)
--------------------------------------------------------------*/
.publication {
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.publication:hover {
  box-shadow: var(--ycb-ombre-survol);
}

.publication__entete {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0.5rem;
}

.publication__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ycb-fond);
}

.publication__auteur {
  flex: 1;
  min-width: 0;
}

.publication__nom {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ycb-encre);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.publication__meta {
  font-size: 0.8rem;
  color: var(--ycb-texte-doux);
  margin: 0;
}

.publication__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--ycb-orange-clair);
  color: #c4451c;
  white-space: nowrap;
}

.publication__menu {
  color: var(--ycb-texte-doux);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.publication__menu:hover {
  background: var(--ycb-fond);
  color: var(--ycb-encre);
}

.publication__corps {
  padding: 0.25rem 1.25rem 0.5rem;
}

.publication__titre {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.4rem;
}

.publication__texte {
  color: var(--ycb-texte);
  line-height: 1.6;
  margin: 0;
}

/* « Voir plus » : un simple lien dans le texte, comme dans l'application. */
.publication__texte .voir-plus {
  color: var(--ycb-vert);
  font-weight: 700;
  margin-left: 0.25rem;
  text-decoration: none;
  white-space: nowrap;
}

.publication__texte .voir-plus:hover,
.publication__texte .voir-plus:focus-visible {
  text-decoration: underline;
}

.publication__image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-top: 0.75rem;
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-fond);
}

.publication__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem 0.75rem;
  border-top: 1px solid var(--ycb-bord);
  margin-top: 0.75rem;
}

.publication__compteur {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ycb-texte-doux);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s, color 0.15s;
}

.publication__compteur i {
  font-size: 1.05rem;
}

.publication__compteur:hover {
  background: var(--ycb-fond);
  color: var(--ycb-encre);
}

.publication__compteur.text-danger {
  color: var(--ycb-orange) !important;
}

.publication__compteur.text-dark {
  color: var(--ycb-texte-doux) !important;
}

.publication__compteur--simple {
  cursor: inherit;
}

.publication__compteur--simple:hover {
  background: none;
  color: var(--ycb-texte-doux);
}

.publication__actions-droite {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 575px) {
  .publication__entete,
  .publication__corps {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .publication__badge {
    display: none;
  }
}

/*--------------------------------------------------------------
# État vide d'une liste
--------------------------------------------------------------*/
.etat-vide {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ycb-texte-doux);
  background: var(--ycb-fond);
  border: 1px dashed var(--ycb-bord);
  border-radius: var(--ycb-rayon);
}

.etat-vide i {
  font-size: 2.5rem;
  color: var(--ycb-vert);
  margin-bottom: 0.75rem;
}

/*--------------------------------------------------------------
# Compléments : alignement des cartes, filtres sur mobile, onglets
--------------------------------------------------------------*/
.publication,
.publication__entete,
.publication__corps {
  text-align: left;
}

@media (max-width: 991px) {
  .filtres {
    position: static;
    padding: 0.75rem;
  }

  .filtres__titre {
    display: none;
  }

  .projects .filtres .portfolio-flters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .projects .filtres .portfolio-flters::-webkit-scrollbar {
    display: none;
  }

  .projects .filtres .portfolio-flters li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    border: 1px solid var(--ycb-bord);
    border-radius: 999px;
    white-space: nowrap;
  }

  .projects .filtres .portfolio-flters li.filter-active {
    border-color: var(--ycb-vert);
  }
}

.nav-pills {
  --bs-nav-pills-link-active-bg: var(--ycb-vert);
  --bs-nav-link-color: var(--ycb-vert);
  --bs-nav-link-hover-color: var(--ycb-vert-fonce);
  --bs-nav-pills-border-radius: 999px;
  gap: 0.25rem;
}

.nav-tabs .nav-link.active {
  color: var(--ycb-vert-fonce);
  border-bottom-color: var(--ycb-vert);
}

.nav-tabs {
  --bs-nav-tabs-link-active-border-color: var(--ycb-bord) var(--ycb-bord) #fff;
}

/* Le thème d'origine réduit et centre les paragraphes des cartes de la section « projects »
   (largeur en pourcentage + marges automatiques) : les textes des publications restent pleine largeur. */
.publication p,
.publication h3 {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/*--------------------------------------------------------------
# Carte générique en grille (opportunités, blog, ressources, projets)
--------------------------------------------------------------*/
.carte {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
  overflow: hidden;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
}

.carte:hover {
  box-shadow: var(--ycb-ombre-survol);
  transform: translateY(-2px);
}

.carte__visuel {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ycb-fond);
  overflow: hidden;
}

.carte__visuel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.carte:hover .carte__visuel img {
  transform: scale(1.04);
}

.carte__visuel--logo {
  aspect-ratio: auto;
  padding: 1.25rem 1.25rem 0;
  background: transparent;
}

.carte__visuel--logo img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--ycb-ombre);
}

.carte:hover .carte__visuel--logo img {
  transform: none;
}

.carte__etiquette {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ycb-vert-fonce);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
}

.carte__etiquette--droite {
  left: auto;
  right: 12px;
}

.carte__corps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
}

.carte__titre {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carte__titre a {
  color: inherit;
  text-decoration: none;
}

.carte__texte {
  margin: 0;
  color: var(--ycb-texte);
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carte__auteur {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ycb-texte-doux);
  margin: 0;
}

.carte__auteur img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.carte__auteur strong {
  color: var(--ycb-encre);
  font-weight: 600;
}

.carte__pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--ycb-bord);
  margin-top: auto;
}

.carte__compteurs {
  display: flex;
  gap: 0.9rem;
  font-size: 0.85rem;
  color: var(--ycb-texte-doux);
  white-space: nowrap;
}

.carte__compteurs i {
  margin-right: 0.25rem;
}

.carte__prix {
  font-weight: 700;
  color: var(--ycb-vert-fonce);
  margin: 0;
}

.carte__etoiles {
  color: #f5b301;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.carte__etoiles .far {
  color: #d9dee3;
}

.carte .progress {
  height: 8px;
  border-radius: 999px;
  background: var(--ycb-fond);
}

.carte .progress-bar {
  background: var(--ycb-vert);
  border-radius: 999px;
}

.carte__pied .btn {
  white-space: nowrap;
}

/* Filtres en ligne (puces) au-dessus d'une grille. */
.projects .portfolio-flters.puces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.projects .portfolio-flters.puces li {
  margin: 0;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ycb-texte);
  border: 1px solid var(--ycb-bord);
  border-radius: 999px;
  background: var(--ycb-blanc);
  line-height: 1.2;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.projects .portfolio-flters.puces li:hover {
  background: var(--ycb-fond);
  color: var(--ycb-encre);
}

.projects .portfolio-flters.puces li.filter-active {
  background: var(--ycb-vert-clair);
  border-color: var(--ycb-vert);
  color: var(--ycb-vert-fonce);
  font-weight: 600;
}

@media (max-width: 767px) {
  .projects .portfolio-flters.puces {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .projects .portfolio-flters.puces::-webkit-scrollbar {
    display: none;
  }

  .projects .portfolio-flters.puces li {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Même correction que pour les publications : le thème rétrécit et centre les paragraphes sous .section-header. */
.carte p,
.carte h3,
.carte h4 {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Les grilles ne doivent pas être centrées verticalement : les cartes d'une même ligne gardent la même hauteur. */
.row.align-items-center > .portfolio-item,
.row.align-items-center > [class*="col-"]:has(> .carte) {
  align-self: stretch;
}

/*--------------------------------------------------------------
# Fenêtres de connexion, d'inscription et de vérification
--------------------------------------------------------------*/
.modal-logo {
  width: auto;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.modal-body {
  padding: 1.5rem;
}

@media (min-width: 576px) {
  .modal-body {
    padding: 1.75rem 2rem 2rem;
  }
}

.separateur {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--ycb-texte-doux);
  font-size: 0.85rem;
}

.separateur::before,
.separateur::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ycb-bord);
}

.btn-fournisseur {
  --bs-btn-color: var(--ycb-encre);
  --bs-btn-border-color: var(--ycb-bord);
  --bs-btn-hover-bg: var(--ycb-fond);
  --bs-btn-hover-border-color: var(--ycb-bord);
  --bs-btn-hover-color: var(--ycb-encre);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-fournisseur .fa-google {
  color: #ea4335;
}

.input-group-merge .form-control {
  border-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-merge .input-group-text {
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  color: var(--ycb-texte-doux);
  background: var(--ycb-blanc);
}

.input-group-merge .form-control:focus + .input-group-text,
.input-group-merge .form-control:focus ~ .input-group-text {
  border-color: var(--ycb-vert);
}

.form-text {
  color: var(--ycb-texte-doux);
}

.form-label .text-danger {
  font-weight: 400;
}

/*--------------------------------------------------------------
# Détail d'une publication (fenêtre) et commentaires
--------------------------------------------------------------*/
.detail__entete {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.detail__entete .modal-title {
  font-size: 0.95rem;
}

.detail__outils {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.detail__corps {
  padding: 0;
}

.detail__article {
  padding: 1.25rem 1.5rem 0.5rem;
}

.detail__titre {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.detail__image {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--ycb-rayon-petit);
  margin-bottom: 1rem;
  background: var(--ycb-fond);
}

.detail__contenu {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ycb-texte);
  overflow-wrap: anywhere;
}

.detail__contenu img,
.detail__contenu iframe {
  max-width: 100%;
  border-radius: var(--ycb-rayon-petit);
}

.detail__actions {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

.detail__bloc {
  margin: 0 1.5rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--ycb-fond);
  border-radius: var(--ycb-rayon-petit);
}

.detail__sous-titre {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sondage__resultat + .sondage__resultat {
  margin-top: 0.75rem;
}

.detail__bloc .progress {
  height: 8px;
  border-radius: 999px;
  background: #e2e8ec;
}

.detail__bloc .progress-bar {
  background: var(--ycb-vert);
  border-radius: 999px;
}

.commentaires {
  border-top: 1px solid var(--ycb-bord);
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--ycb-blanc);
}

.commentaires__titre {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.commentaires__nombre {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.1em 0.5em;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
  font-size: 0.8rem;
  text-align: center;
}

.commentaires__vide {
  color: var(--ycb-texte-doux);
  font-size: 0.95rem;
}

.commentaire {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.commentaire--reponse {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.commentaire__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ycb-fond);
}

.commentaire--reponse .commentaire__avatar {
  width: 28px;
  height: 28px;
}

.commentaire__corps {
  flex: 1;
  min-width: 0;
}

.commentaire__bulle {
  display: inline-block;
  max-width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  border-top-left-radius: 4px;
  background: var(--ycb-fond);
}

.commentaire__nom {
  display: block;
  font-size: 0.85rem;
  color: var(--ycb-encre);
  margin-bottom: 0.15rem;
}

.commentaire__texte {
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.commentaire__texte p:last-child {
  margin-bottom: 0;
}

.commentaire__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 0.25rem 0.5rem 0;
  font-size: 0.8rem;
  color: var(--ycb-texte-doux);
}

.commentaire__actions [role="button"] {
  cursor: pointer;
  font-weight: 600;
}

.commentaire__actions [role="button"]:hover {
  color: var(--ycb-vert-fonce);
}

.commentaires__formulaire {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ycb-bord);
}

.commentaires__formulaire .form-control {
  border-radius: 999px;
  padding-left: 1rem;
  resize: none;
}

.commentaires__envoyer {
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-xl .modal-content {
  overflow: hidden;
}

.commentaires__formulaire textarea.form-control {
  min-height: 44px;
}

/*--------------------------------------------------------------
# Premier écran de l'accueil
--------------------------------------------------------------*/
/* Premier écran de l'accueil : version d'origine (diapositives plein écran, texte centré, bouton blanc). */
.hero-origine .swiper-slide {
  background-size: cover;
  background-position: center;
}

.hero-origine__texte {
  height: 100vh;
  font-size: 1.2em;
  text-shadow: 1px 2px 5px black;
}

.hero-origine__titre {
  font-size: 2.2em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-origine .swiper-button-prev,
.hero-origine .swiper-button-next {
  padding: 20px;
  margin: 10px;
  width: 70px;
  height: 70px;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
  color: white;
}

.hero-origine .swiper-button-prev:hover,
.hero-origine .swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Bandeau d'informations défilantes sous le premier écran. */
.flash-info {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  background: var(--ycb-vert-fonce);
  color: #fff;
  font-size: 1rem;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.flash-icon {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--ycb-orange);
  color: #fff;
  z-index: 3;
}

.flash-message {
  padding-left: 60px;
  animation: scrollText 30s linear infinite;
}

.flash-message:empty {
  animation: none;
}

.flash-message:hover {
  animation-play-state: paused;
}

@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/*--------------------------------------------------------------
# Notifications discrètes (afficherNotification, assets/js/ycb.js)
--------------------------------------------------------------*/
.notifications {
  position: fixed;
  right: 16px;
  bottom: 84px; /* au-dessus du bouton flottant « + » */
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-left: 4px solid var(--ycb-vert);
  box-shadow: var(--ycb-ombre-survol);
  color: var(--ycb-encre);
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: auto;
}

.notification--visible {
  opacity: 1;
  transform: none;
}

.notification--sortie {
  opacity: 0;
  transform: translateY(12px);
}

.notification__icone {
  font-size: 1.15rem;
  margin-top: 0.1rem;
  color: var(--ycb-vert);
}

.notification--danger { border-left-color: #d23c2a; }
.notification--danger .notification__icone { color: #d23c2a; }
.notification--warning { border-left-color: #e8a317; }
.notification--warning .notification__icone { color: #e8a317; }
.notification--info, .notification--secondary { border-left-color: #2f7fd6; }
.notification--info .notification__icone, .notification--secondary .notification__icone { color: #2f7fd6; }

.notification__corps {
  flex: 1;
  min-width: 0;
}

.notification__corps p:last-child {
  margin-bottom: 0;
}

.notification__fermer {
  border: 0;
  background: transparent;
  color: var(--ycb-texte-doux);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 0.1rem;
  cursor: pointer;
}

.notification__fermer:hover {
  color: var(--ycb-encre);
}

/*--------------------------------------------------------------
# Formulaires de publication (actualité, opportunité, ressource, projet, article)
--------------------------------------------------------------*/
.formulaire-publication .form-label {
  margin-bottom: 0.35rem;
}

.icone-categorie {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
  font-size: 1.1rem;
}

.icone-categorie label {
  cursor: pointer;
}

.icone-categorie i.alert {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
  border: 0;
  color: inherit;
}

.pieces-jointes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.piece-jointe {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-fond);
  color: var(--ycb-texte);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  margin: 0;
}

.piece-jointe:hover {
  border-color: var(--ycb-vert);
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
}

.piece-jointe i {
  font-size: 1.2rem;
  color: var(--ycb-vert);
}

.piece-jointe small {
  margin-left: auto;
  max-width: 45%;
  color: var(--ycb-texte-doux);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.piece-jointe small:not(:empty)::before {
  content: "✓ ";
  color: var(--ycb-vert);
}

.apercu-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--ycb-rayon-petit);
  margin-top: 0.75rem;
  background: var(--ycb-fond);
}

.apercu-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.apercu-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-fond);
}

.apercu-photos .apercu-photos__principale {
  grid-column: span 2;
  grid-row: span 2;
  outline: 2px solid var(--ycb-vert);
  outline-offset: -2px;
}

.apercu-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--ycb-fond);
  box-shadow: var(--ycb-ombre);
}

.modal-footer {
  border-top: 1px solid var(--ycb-bord);
  gap: 0.5rem;
}

.apercu-logo--vide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ycb-texte-doux);
  font-size: 1.6rem;
  border: 1px dashed var(--ycb-bord);
  box-shadow: none;
}

/*--------------------------------------------------------------
# Barre de progression pendant un changement de page (assets/js/ycb.js)
--------------------------------------------------------------*/
.barre-navigation {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--ycb-vert), var(--ycb-orange));
  box-shadow: 0 0 8px rgba(27, 109, 30, 0.6);
  z-index: 20000;
  opacity: 0;
  pointer-events: none;
}

.barre-navigation--active {
  opacity: 1;
  animation: barre-navigation-progression 8s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}

@keyframes barre-navigation-progression {
  0% { width: 0; }
  20% { width: 45%; }
  60% { width: 80%; }
  100% { width: 94%; }
}

/*--------------------------------------------------------------
# Partage d'une publication (partials/partage, partager() dans ycb.js)
--------------------------------------------------------------*/
.bouton-partage {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ycb-texte-doux);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.bouton-partage i {
  font-size: 1.05rem;
}

.bouton-partage:hover,
.bouton-partage:focus-visible {
  background: var(--ycb-fond);
  color: var(--ycb-vert-fonce);
  outline: none;
}

.bouton-partage--contour {
  border: 1px solid var(--ycb-bord);
  background: var(--ycb-blanc);
  color: var(--ycb-texte);
}

.bouton-partage--contour:hover {
  border-color: var(--ycb-vert);
}

.modal-content {
  position: relative;
}

.partage-menu {
  position: absolute;
  z-index: 1080;
  min-width: 220px;
  padding: 0.4rem;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  box-shadow: var(--ycb-ombre-survol);
}

.partage-menu a,
.partage-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ycb-encre);
  font-size: 0.92rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.partage-menu a:hover,
.partage-menu button:hover {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
}

.partage-menu i {
  width: 1.2rem;
  text-align: center;
  font-size: 1.05rem;
}

.partage-menu .fa-whatsapp { color: #25d366; }
.partage-menu .fa-facebook { color: #1877f2; }

/*--------------------------------------------------------------
# Page Actualités : fil de lecture de 900 px, catégories collantes
--------------------------------------------------------------*/
.page-actualites {
  /* Le thème masque le débordement des sections, ce qui empêche position: sticky de fonctionner. */
  overflow: visible;
}

.page-actualites > .container {
  max-width: 900px;
}

.page-actualites .filtres {
  top: 100px;
}

/*--------------------------------------------------------------
# Autres listes (opportunités, ressources, projets, blog) : même gabarit de 900 px, grilles à deux colonnes
--------------------------------------------------------------*/
.page-liste {
  overflow: visible;
}

.page-liste > .container {
  max-width: 900px;
}

/* Puces de catégories des opportunités : collées sous l'en-tête pendant le défilement. */
.page-liste .portfolio-flters.puces {
  position: sticky;
  top: 88px;
  z-index: 5;
  padding: 0.5rem 0;
  background: var(--ycb-blanc);
}

@media (max-width: 767px) {
  .page-liste .portfolio-flters.puces {
    top: 70px;
  }
}

/*--------------------------------------------------------------
# Accessibilité : un seul <h1> par page (titre du bandeau), même style qu'avant
--------------------------------------------------------------*/
.breadcrumbs h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

/* Le thème dessinait deux disques (orange et vert) de 350 px en ::before/::after de chaque projet (.mon_projet), censés
   apparaître au survol. Sans position relative sur le conteneur, ils débordaient sur la bannière et le pied de page,
   et « .mon_projet * { overflow: hidden } » coupait le menu de partage : la décoration est retirée. */
.mon_projet::before,
.mon_projet::after {
  content: none;
}
.mon_projet,
.mon_projet * {
  overflow: visible;
  z-index: auto;
}

/* =========================================================================
   Messagerie (page Discussion) : colonne des conversations + conversation ouverte
   ========================================================================= */
.messagerie {
  background: var(--ycb-fond);
  padding: 1rem 0 1.5rem;
}

.messagerie__cadre {
  --messagerie-hauteur: calc(100dvh - 140px);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  width: min(1100px, calc(100% - 2rem));
  height: var(--messagerie-hauteur);
  min-height: 520px;
  margin: 0 auto;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
  overflow: hidden;
}

/* ----- Colonne des conversations ----- */
.messagerie__panneau {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--ycb-bord);
  background: var(--ycb-blanc);
}

.messagerie__panneau-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.5rem;
}

.messagerie__titre {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ycb-encre);
  margin: 0;
}

.messagerie__outils {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.messagerie__icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ycb-texte-doux);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.messagerie__icone:hover,
.messagerie__icone:focus-visible {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert);
  outline: none;
}

.messagerie__recherche {
  position: relative;
  padding: 0.25rem 1rem 0.75rem;
}

.messagerie__recherche i {
  position: absolute;
  left: 1.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ycb-texte-doux);
  pointer-events: none;
}

.messagerie__recherche input {
  width: 100%;
  padding: 0.55rem 0.9rem 0.55rem 2.4rem;
  border: 1px solid var(--ycb-bord);
  border-radius: 999px;
  background: var(--ycb-fond);
  font-size: 0.93rem;
  color: var(--ycb-encre);
}

.messagerie__recherche input:focus {
  outline: none;
  border-color: var(--ycb-vert);
  box-shadow: var(--ycb-anneau);
  background: var(--ycb-blanc);
}

.modal-body .messagerie__recherche {
  padding: 0;
}

.modal-body .messagerie__recherche i {
  left: 0.85rem;
}

.messagerie__liste {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0.5rem 0.75rem;
}

.messagerie__section {
  padding: 0.85rem 0.75rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ycb-texte-doux);
}

.messagerie__chargement {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ycb-texte-doux);
  font-size: 0.9rem;
}

/* ----- Élément de liste : contact ou groupe ----- */
.contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: var(--ycb-rayon-petit);
  background: transparent;
  text-align: left;
  color: var(--ycb-encre);
  cursor: pointer;
  transition: background 0.15s;
}

.contact:hover,
.contact:focus-visible {
  background: var(--ycb-fond);
  outline: none;
}

.contact--actif,
.contact--actif:hover {
  background: var(--ycb-vert-clair);
}

.contact--statique {
  cursor: default;
}

.contact--statique:hover {
  background: transparent;
}

.contact__avatar {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
}

.contact__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ycb-fond);
}

.contact__avatar--groupe img {
  border-radius: 14px;
}

.contact__avatar--en-ligne::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid var(--ycb-blanc);
}

.contact__corps {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact__ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.contact__ligne strong {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact__ligne time {
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: var(--ycb-texte-doux);
}

.contact__apercu {
  font-size: 0.82rem;
  color: var(--ycb-texte-doux);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact__badge {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--ycb-vert);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.contact__action {
  flex: 0 0 auto;
  color: var(--ycb-vert);
  font-size: 1.2rem;
}

/* ----- Conversation ouverte ----- */
.messagerie__conversation {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--ycb-fond);
}

.messagerie__entete {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--ycb-blanc);
  border-bottom: 1px solid var(--ycb-bord);
}

.messagerie__retour {
  display: none;
}

.messagerie__contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: var(--ycb-rayon-petit);
  background: transparent;
  text-align: left;
  color: var(--ycb-encre);
  cursor: pointer;
}

.messagerie__contact:hover {
  background: var(--ycb-fond);
}

.messagerie__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ycb-fond);
}

.messagerie__identite {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.messagerie__identite strong {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messagerie__identite small {
  color: var(--ycb-texte-doux);
  font-size: 0.78rem;
}

.messagerie__messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  scroll-behavior: smooth;
}

.messagerie__vide {
  margin: auto;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ycb-texte-doux);
  max-width: 320px;
}

.messagerie__vide i {
  display: block;
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  color: var(--ycb-vert);
  opacity: 0.6;
}

.messagerie__vide p {
  margin: 0;
  font-size: 0.95rem;
}

.messagerie__vide--liste {
  margin: 1rem auto;
  padding: 1.5rem 0.5rem;
}

/* ----- Messages ----- */
.message {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 78%;
}

.message--moi {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  cursor: pointer;
}

.message__corps {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.message--moi .message__corps {
  align-items: flex-end;
}

.message__auteur {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ycb-vert);
  margin: 0 0 0.15rem 0.75rem;
}

.message__bulle {
  padding: 0.55rem 0.85rem;
  border-radius: 18px 18px 18px 4px;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  color: var(--ycb-encre);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.message--moi .message__bulle {
  background: var(--ycb-vert);
  border-color: var(--ycb-vert);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
}

.message__texte p {
  margin: 0;
}

.message__image {
  display: block;
  max-width: min(320px, 100%);
  max-height: 320px;
  border-radius: 12px;
  margin-bottom: 0.35rem;
}

.message__media {
  display: block;
  max-width: min(320px, 100%);
  border-radius: 12px;
  margin-bottom: 0.35rem;
}

.message__document {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: underline;
  margin-bottom: 0.25rem;
}

.message__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0.5rem 0;
  font-size: 0.7rem;
  color: var(--ycb-texte-doux);
}

.message__etat {
  color: var(--ycb-texte-doux);
}

.message__etat--lu {
  color: var(--ycb-vert);
}

/* ----- Zone de saisie ----- */
.messagerie__composer {
  background: var(--ycb-blanc);
  border-top: 1px solid var(--ycb-bord);
  padding: 0.6rem 0.75rem;
}

.messagerie__apercu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 2.5rem 0.5rem 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-fond);
}

.messagerie__apercu img,
.messagerie__apercu video {
  max-height: 140px;
  max-width: 220px;
  border-radius: 8px;
}

.messagerie__apercu-nom {
  font-size: 0.9rem;
  color: var(--ycb-encre);
}

.messagerie__apercu-fermer {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--ycb-blanc);
  color: var(--ycb-texte-doux);
  cursor: pointer;
}

.messagerie__saisie {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
}

.messagerie__saisie label.messagerie__icone {
  margin: 0;
}

.messagerie__saisie textarea {
  flex: 1;
  min-height: 42px;
  max-height: 160px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--ycb-bord);
  border-radius: 21px;
  background: var(--ycb-fond);
  font-size: 0.95rem;
  line-height: 1.4;
  resize: none;
  color: var(--ycb-encre);
}

.messagerie__saisie textarea:focus {
  outline: none;
  border-color: var(--ycb-vert);
  box-shadow: var(--ycb-anneau);
  background: var(--ycb-blanc);
}

.messagerie__envoyer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ycb-vert);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.messagerie__envoyer:hover:not(:disabled) {
  background: var(--ycb-vert-fonce);
  transform: translateY(-1px);
}

.messagerie__envoyer:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ----- Fiche d'un groupe ----- */
.groupe-fiche__tete {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.groupe-fiche__photo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--ycb-fond);
}

.groupe-fiche__nom {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.groupe-fiche__description {
  color: var(--ycb-texte);
  white-space: pre-line;
}

/* ----- Mobile : une colonne à la fois ----- */
@media (max-width: 991.98px) {
  .messagerie {
    padding: 0;
  }

  .messagerie__cadre {
    --messagerie-hauteur: calc(100dvh - 92px);
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .messagerie__panneau {
    border-right: 0;
  }

  .messagerie__panneau--replie {
    display: none;
  }

  .messagerie__conversation {
    display: none;
  }

  .messagerie__conversation--ouverte {
    display: flex;
  }

  .messagerie__retour {
    display: inline-flex;
  }

  #bouton-infos {
    display: none;
  }

  .message {
    max-width: 88%;
  }
}

/* =========================================================================
   Page Notifications
   ========================================================================= */
.page-notifications .container {
  max-width: 820px;
}

.notifs__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.notifs__compteur {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ycb-encre);
}

.notifs__pastille {
  min-width: 26px;
  height: 26px;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--ycb-vert);
  color: #fff;
  font-size: 0.8rem;
  line-height: 26px;
  text-align: center;
}

.notifs__outils {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.notifs__filtres {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--ycb-fond);
  border: 1px solid var(--ycb-bord);
}

.notifs__filtre {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: transparent;
  color: var(--ycb-texte-doux);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.notifs__filtre--actif {
  background: var(--ycb-blanc);
  color: var(--ycb-vert);
  box-shadow: var(--ycb-ombre);
}

.notifs__liste {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.notif {
  position: relative;
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  transition: box-shadow 0.15s, transform 0.3s, opacity 0.3s;
}

.notif:hover {
  box-shadow: var(--ycb-ombre);
}

.notif--non-lue {
  border-left: 4px solid var(--ycb-vert);
  background: linear-gradient(90deg, var(--ycb-vert-clair) 0, var(--ycb-blanc) 55%);
  cursor: pointer;
}

.notif--non-lue .notif__titre::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 0.45rem;
  border-radius: 50%;
  background: var(--ycb-orange);
  vertical-align: middle;
}

.notif--nouvelle {
  opacity: 0;
  transform: translateY(-8px);
}

.notif__visuel {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}

.notif__visuel img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: var(--ycb-fond);
}

.notif__corps {
  flex: 1;
  min-width: 0;
}

.notif__ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.notif__titre {
  font-weight: 700;
  color: var(--ycb-encre);
  font-size: 0.98rem;
}

.notif__ligne time {
  flex: 0 0 auto;
  font-size: 0.75rem;
  color: var(--ycb-texte-doux);
}

.notif__texte {
  margin: 0.2rem 0 0;
  color: var(--ycb-texte);
  font-size: 0.92rem;
  line-height: 1.45;
}

.notif__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.notif__actions:empty {
  display: none;
}

.notif__etiquette {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--ycb-fond);
  color: var(--ycb-texte-doux);
}

.notif__lire {
  color: var(--ycb-texte-doux);
  text-decoration: none;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.notif__lire:hover {
  color: var(--ycb-vert);
}

@media (max-width: 575.98px) {
  .notif {
    padding: 0.75rem;
  }

  .notif__visuel {
    width: 38px;
    height: 38px;
  }
}

/* =========================================================================
   Page Profil
   ========================================================================= */
.page-profil .container {
  max-width: 1100px;
}

.profil__entete {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
}

.profil__avatar {
  position: relative;
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
}

.profil__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ycb-fond);
  border: 4px solid var(--ycb-blanc);
  box-shadow: var(--ycb-ombre);
}

.profil__avatar-modifier {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ycb-blanc);
  border-radius: 50%;
  background: var(--ycb-vert);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profil__avatar-modifier:hover {
  background: var(--ycb-vert-fonce);
}

.profil__identite {
  flex: 1;
  min-width: 0;
}

.profil__nom {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.15rem;
}

.profil__profession {
  margin: 0 0 0.25rem;
  color: var(--ycb-vert);
  font-weight: 600;
}

.profil__lieu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 0.6rem;
  color: var(--ycb-texte-doux);
  font-size: 0.9rem;
}

.profil__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profil__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--ycb-fond);
  color: var(--ycb-texte);
  text-decoration: none;
}

.profil__badge--ok {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
}

.profil__badge--attente {
  background: var(--ycb-orange-clair);
  color: #b3410f;
}

.profil__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  flex: 0 0 auto;
}

/* ----- Onglets ----- */
.profil__onglets {
  display: flex;
  gap: 0.25rem;
  padding: 4px;
  margin-bottom: 1.5rem;
  background: var(--ycb-fond);
  border: 1px solid var(--ycb-bord);
  border-radius: 999px;
}

.profil__onglet {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ycb-texte-doux);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.profil__onglet:hover {
  color: var(--ycb-vert);
}

.profil__onglet.active {
  background: var(--ycb-blanc);
  color: var(--ycb-vert);
  box-shadow: var(--ycb-ombre);
}

/* ----- Statistiques ----- */
.profil__stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.profil__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.9rem 0.5rem;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  color: var(--ycb-texte-doux);
  font-size: 0.8rem;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}

.profil__stat i {
  font-size: 1.3rem;
  color: var(--ycb-vert);
}

.profil__stat strong {
  font-size: 1.25rem;
  color: var(--ycb-encre);
}

a.profil__stat:hover {
  box-shadow: var(--ycb-ombre);
  transform: translateY(-2px);
  color: var(--ycb-vert);
}

/* ----- Informations ----- */
.profil__infos {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.25rem;
  margin: 0;
}

.profil__infos dt {
  color: var(--ycb-texte-doux);
  font-weight: 600;
  font-size: 0.88rem;
}

.profil__infos dd {
  margin: 0;
  color: var(--ycb-encre);
  overflow-wrap: anywhere;
}

.profil__reseaux {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profil__reseaux a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-fond);
  color: var(--ycb-encre);
  text-decoration: none;
  transition: background 0.15s;
}

.profil__reseaux a:hover {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
}

.profil__reseaux a > i:first-child {
  width: 1.4rem;
  text-align: center;
  color: var(--ycb-vert);
}

.profil__demarches .list-group-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  border-color: var(--ycb-bord);
}

.profil__demarches .list-group-item > i {
  font-size: 1.25rem;
  color: var(--ycb-vert);
}

.profil__demarches .list-group-item > span:not(.badge) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profil__demarches small {
  color: var(--ycb-texte-doux);
}

.profil__demarches .list-group-item:last-child {
  border-bottom-left-radius: var(--ycb-rayon);
  border-bottom-right-radius: var(--ycb-rayon);
}

/* ----- Paramètres ----- */
.profil__section-titre {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.profil__section-titre i {
  color: var(--ycb-vert);
}

.profil__ligne-champ {
  display: flex;
  gap: 0.5rem;
}

.profil__ligne-champ .form-control,
.profil__ligne-champ .form-select {
  flex: 1;
  min-width: 0;
}

.profil__voix {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
}

.profil__voix table {
  font-size: 0.88rem;
}

.card.border-danger-subtle .card-header {
  border-bottom-color: #f5c6c6;
}

/* ----- Fenêtres modales ----- */
.profil__photo-champ {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profil__photo-champ img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ycb-fond);
  box-shadow: var(--ycb-ombre);
}

.profil__puces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 2rem;
}

.puce-suppr {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.4rem 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
  font-size: 0.85rem;
  font-weight: 600;
}

.puce-suppr small {
  font-weight: 500;
  opacity: 0.8;
}

.puce-suppr button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}

.puce-suppr button:hover {
  background: rgba(0, 0, 0, 0.14);
}

.puce-suppr--attente {
  background: var(--ycb-fond);
  color: var(--ycb-texte);
}

.puce-suppr--suspendue {
  background: var(--ycb-orange-clair);
  color: #b3410f;
}

.puce-suppr--rejetee {
  background: #fde8e8;
  color: #b02a37;
}

.profil__etoiles {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.15rem;
}

.profil__etoiles input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.profil__etoiles label {
  font-size: 1.8rem;
  color: var(--ycb-bord);
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
}

.profil__etoiles label:hover {
  transform: scale(1.1);
}

.profil__etoiles input:checked ~ label,
.profil__etoiles label:hover,
.profil__etoiles label:hover ~ label {
  color: #f5b301;
}

.profil__etoiles input:focus-visible + label {
  outline: 2px solid var(--ycb-vert);
  border-radius: 4px;
}

/* ----- CV ----- */
.cv-ligne {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ycb-bord);
  transition: opacity 0.2s;
}

.cv-ligne:first-child {
  padding-top: 0;
}

.cv-ligne:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cv-ligne__icone {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert);
}

.cv-ligne__corps {
  flex: 1;
  min-width: 0;
}

.cv-ligne__corps strong {
  display: block;
  color: var(--ycb-encre);
}

.cv-ligne__corps p {
  margin: 0.1rem 0 0;
  color: var(--ycb-texte);
  font-size: 0.92rem;
}

.cv-ligne__corps small {
  color: var(--ycb-texte-doux);
}

.cv-ligne__corps small a {
  color: var(--ycb-vert);
}

.cv-ligne__supprimer {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ycb-texte-doux);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cv-ligne__supprimer:hover {
  background: #fde8e8;
  color: #b02a37;
}

.cv-vide {
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  color: var(--ycb-texte-doux);
  font-size: 0.92rem;
  text-align: center;
}

.cv-vide i {
  display: block;
  font-size: 1.6rem;
  color: var(--ycb-vert);
  opacity: 0.6;
  margin-bottom: 0.35rem;
}

.cv-cours + .cv-cours {
  margin-top: 0.9rem;
}

.cv-cours__titre {
  font-weight: 600;
  color: var(--ycb-encre);
  text-decoration: none;
}

.cv-cours__titre:hover {
  color: var(--ycb-vert);
}

.cv-cours__pourcent {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ycb-vert);
}

.cv-cours .progress {
  height: 6px;
  margin-top: 0.3rem;
}

/* ----- Mobile ----- */
@media (max-width: 991.98px) {
  .profil__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .profil__entete {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }

  .profil__lieu,
  .profil__badges {
    justify-content: center;
  }

  .profil__actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .profil__onglet span {
    font-size: 0.85rem;
  }

  .profil__infos {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }

  .profil__infos dd {
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 575.98px) {
  .profil__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profil__onglet {
    padding: 0.55rem 0.5rem;
  }
}

/* =========================================================================
   Administration
   ========================================================================= */
.page-admin {
  padding-top: 2rem;
}

.admin {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
}

.admin__nav {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
  padding: 0.75rem;
}

.admin__moi {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.9rem;
  border-bottom: 1px solid var(--ycb-bord);
  margin-bottom: 0.5rem;
}

.admin__moi img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ycb-fond);
}

.admin__moi strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.admin__moi small {
  color: var(--ycb-vert);
  font-weight: 600;
}

.admin__onglets {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin__onglet {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: var(--ycb-rayon-petit);
  background: transparent;
  color: var(--ycb-texte);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.admin__onglet i {
  font-size: 1.1rem;
  color: var(--ycb-texte-doux);
}

.admin__onglet:hover {
  background: var(--ycb-fond);
  color: var(--ycb-vert);
}

.admin__onglet.active {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
}

.admin__onglet.active i {
  color: var(--ycb-vert);
}

.admin__contenu {
  min-width: 0;
}

.admin__titre {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin__titre h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.15rem;
}

.admin__titre p {
  margin: 0;
  color: var(--ycb-texte-doux);
}

.admin__titre-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin__sous-titre {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.admin__sous-titre i {
  color: var(--ycb-vert);
}

/* ----- Indicateurs ----- */
.admin__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin__kpi {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.9rem 1rem;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
}

.admin__kpi i {
  font-size: 1.2rem;
  color: var(--ycb-vert);
}

.admin__kpi strong {
  font-size: 1.5rem;
  color: var(--ycb-encre);
  line-height: 1.2;
}

.admin__kpi span {
  font-size: 0.8rem;
  color: var(--ycb-texte-doux);
}

.admin__graphe {
  min-height: 280px;
}

.admin__graphe--court {
  min-height: 240px;
}

.admin__repartition {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.admin__barre {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  font-size: 0.88rem;
}

.admin__barre-libelle {
  color: var(--ycb-texte);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin__barre-libelle i {
  width: 1.2rem;
  color: var(--ycb-vert);
}

.admin__barre strong {
  color: var(--ycb-encre);
}

.admin__barre-fond {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: var(--ycb-fond);
  overflow: hidden;
}

.admin__barre-fond span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ycb-vert);
}

.admin__legende {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.admin__legende i {
  width: 1.2rem;
  color: var(--ycb-vert);
}

.admin__legende strong {
  margin-left: 0.25rem;
}

.admin__carte {
  min-height: 360px;
  height: 100%;
  border-radius: 0 0 var(--ycb-rayon) var(--ycb-rayon);
}

/* ----- Tableaux ----- */
.admin__filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin__filtres .form-control,
.admin__filtres .form-select {
  flex: 1 1 160px;
  min-width: 0;
}

.admin__filtres input[type="search"] {
  flex: 2 1 220px;
}

.admin__tableau {
  font-size: 0.9rem;
}

.admin__tableau thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ycb-texte-doux);
  background: var(--ycb-fond);
  border-bottom: 1px solid var(--ycb-bord);
  white-space: nowrap;
}

.admin__tableau td,
.admin__tableau th {
  padding: 0.65rem 0.9rem;
  vertical-align: middle;
}

.admin__tableau tbody tr:hover {
  background: #fbfcfd;
}

.admin__tableau time {
  color: var(--ycb-texte-doux);
  white-space: nowrap;
}

.admin__cellule-large {
  min-width: 220px;
  max-width: 420px;
}

.admin__tableau-defilant {
  max-height: 360px;
  overflow-y: auto;
}

.admin__chargement,
.admin__vide {
  text-align: center;
  color: var(--ycb-texte-doux);
  padding: 2rem 1rem !important;
}

.admin__vide i {
  display: block;
  font-size: 1.6rem;
  color: var(--ycb-vert);
  opacity: 0.6;
}

.admin__structure {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin__structure img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--ycb-fond);
  flex: 0 0 auto;
}

.badge-statut {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--ycb-fond);
  color: var(--ycb-texte);
}

.badge-ok {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
}

.badge-attente {
  background: var(--ycb-fond);
  color: var(--ycb-texte-doux);
}

.badge-suspendu {
  background: var(--ycb-orange-clair);
  color: #b3410f;
}

.badge-supprime {
  background: #fde8e8;
  color: #b02a37;
}

.admin__actions {
  display: inline-flex;
  gap: 0.2rem;
}

.admin__action {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ycb-texte-doux);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.admin__action:hover {
  background: var(--ycb-fond);
  color: var(--ycb-vert);
}

.admin__action--ok:hover {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
}

.admin__action--attention:hover {
  background: var(--ycb-orange-clair);
  color: #b3410f;
}

.admin__action--danger:hover {
  background: #fde8e8;
  color: #b02a37;
}

/* ----- Fiches et fenêtres ----- */
.admin__fiche {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin__fiche img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ycb-fond);
  flex: 0 0 auto;
}

.admin__fiche img.admin__fiche-logo {
  border-radius: 14px;
}

.admin__infos {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0;
}

.admin__infos dt {
  color: var(--ycb-texte-doux);
  font-weight: 600;
  font-size: 0.88rem;
}

.admin__infos dd {
  margin: 0;
}

.admin__question {
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--ycb-vert);
  background: var(--ycb-fond);
  border-radius: 0 var(--ycb-rayon-petit) var(--ycb-rayon-petit) 0;
  margin-bottom: 1rem;
  white-space: pre-line;
}

.admin__signalements {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin__signalement {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
}

.admin__signalement-corps {
  flex: 1;
  min-width: 0;
}

.admin__signalement-corps p {
  margin: 0.2rem 0;
  font-size: 0.92rem;
}

.admin__flash {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin__flash-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
  font-size: 0.92rem;
}

.admin__flash-item > span {
  flex: 1;
  min-width: 0;
}

.admin__flash-item > i {
  color: var(--ycb-vert);
}

.admin__ligne-champ {
  display: flex;
  gap: 0.5rem;
}

.admin__ligne-champ .form-control {
  flex: 1;
}

/* ----- Règles ----- */
.admin__regle-titre {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ycb-texte-doux);
  margin: 1rem 0 0.5rem;
}

.admin__regles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
}

.admin__regles .form-check-label {
  font-size: 0.9rem;
}

.admin__regles--seuils {
  grid-template-columns: 1fr;
}

.admin__seuil {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin: 0;
}

.admin__seuil .form-control {
  width: 80px;
  flex: 0 0 auto;
  text-align: center;
}

/* ----- Écrans étroits ----- */
@media (max-width: 991.98px) {
  .admin {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin__nav {
    position: static;
    padding: 0.5rem;
    min-width: 0;
  }

  .admin__moi {
    display: none;
  }

  .admin__onglets {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.25rem;
    scrollbar-width: none;
  }

  .admin__onglets::-webkit-scrollbar {
    display: none;
  }

  .admin__onglet {
    flex: 0 0 auto;
    width: auto;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
  }

  .admin__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin__regles {
    grid-template-columns: 1fr;
  }
}

/* Logos de l'en-tête : hauteur fixe, largeur selon les proportions de l'image (192 × 100 et 106 × 123). */
.logo-entete {
  width: auto;
  height: 79px;
  object-fit: contain;
}

.logo-entete--ministere {
  margin-right: 0.25rem;
}

.logo-entete--mobile {
  height: 50px;
}

/* Membre dans le tableau des utilisateurs : photo, nom, profession et contact dans la même colonne. */
.admin__membre {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 240px;
}

.admin__membre img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ycb-fond);
  flex: 0 0 auto;
}

.admin__membre-texte {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.admin__membre-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.9rem;
  margin-top: 0.15rem;
}

.admin__membre-contact a {
  color: var(--ycb-texte-doux);
  text-decoration: none;
  white-space: nowrap;
}

.admin__membre-contact a:hover {
  color: var(--ycb-vert);
}

/* Marqueur de la carte des localisations : photo du membre, petite et ronde. */
.marqueur-photo {
  position: absolute;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ycb-fond);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.marqueur-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marqueur-photo:hover,
.marqueur-photo:focus-visible {
  z-index: 10;
  transform: translate(-50%, -50%) scale(1.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  outline: none;
}

/* Carte des statistiques par région ou province. */
.carte-stats__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.carte-stats__outils {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.carte-stats__outils .form-select {
  width: auto;
  min-width: 220px;
}

.carte-stats__niveaux {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--ycb-fond);
  border: 1px solid var(--ycb-bord);
}

.carte-stats__niveau {
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  background: transparent;
  color: var(--ycb-texte-doux);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.carte-stats__niveau.active {
  background: var(--ycb-blanc);
  color: var(--ycb-vert);
  box-shadow: var(--ycb-ombre);
}

.carte-stats__corps {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.carte-stats__carte {
  position: relative;
}

.carte-stats__carte svg {
  display: block;
  width: 100%;
  height: auto;
}

.carte-stats__zone {
  stroke: #fff;
  stroke-width: 1.5;
  cursor: pointer;
  transition: opacity 0.15s;
}

.carte-stats__zone:hover,
.carte-stats__zone:focus {
  opacity: 0.8;
  stroke: var(--ycb-encre);
  stroke-width: 2;
  outline: none;
}

.carte-stats__bulle {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, calc(-100% - 12px));
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-encre);
  color: #fff;
  font-size: 0.82rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--ycb-ombre-survol);
}

.carte-stats__bulle small {
  opacity: 0.75;
}

.carte-stats__legende {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--ycb-texte-doux);
}

.carte-stats__case {
  display: inline-block;
  width: 22px;
  height: 12px;
  border-radius: 3px;
}

.carte-stats__classement h6 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.carte-stats__liste {
  list-style: none;
  counter-reset: rang;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.carte-stats__liste li {
  counter-increment: rang;
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: 0.1rem 0.5rem;
  font-size: 0.9rem;
}

.carte-stats__liste li::before {
  content: counter(rang);
  color: var(--ycb-texte-doux);
  font-weight: 700;
}

.carte-stats__liste li.text-muted::before,
.carte-stats__liste li.text-danger::before {
  content: none;
}

.carte-stats__barre {
  grid-column: 2 / -1;
  height: 5px;
  border-radius: 999px;
  background: var(--ycb-fond);
  overflow: hidden;
}

.carte-stats__barre span {
  display: block;
  height: 100%;
  background: var(--ycb-vert);
  border-radius: 999px;
}

.carte-stats__note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--ycb-texte-doux);
}

.carte-stats__source {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  color: var(--ycb-texte-doux);
}

@media (max-width: 991.98px) {
  .carte-stats__corps {
    grid-template-columns: 1fr;
  }

  .carte-stats__outils .form-select {
    min-width: 0;
    flex: 1 1 180px;
  }
}

.carte-stats__legende-note {
  flex-basis: 100%;
  font-style: italic;
}

/* Icônes auparavant noires : gris doux, plus foncé au survol (choix de l'équipe). */
.entete-icone {
  font-size: 20px;
  color: var(--ycb-texte-doux);
  transition: color 0.15s, transform 0.15s;
}

.navbar-profile .nav-link:hover .entete-icone,
.navbar-profile .nav-link:focus-visible .entete-icone {
  color: var(--ycb-encre);
  transform: scale(1.08);
}

.dropdown-item > i:first-child {
  color: var(--ycb-texte-doux);
  width: 1.2rem;
  text-align: center;
}

#navbar .bi-chevron-down {
  color: var(--ycb-texte-doux);
}

/* Pièces jointes des e-services et bouton de recherche des projets. */
label > .alert.alert-secondary[class*="fa-"] {
  color: var(--ycb-texte-doux);
  background: var(--ycb-fond);
  border-color: var(--ycb-bord);
  cursor: pointer;
}

label > .alert.alert-secondary[class*="fa-"]:hover {
  color: var(--ycb-encre);
}

.btn-light > .fa-search {
  color: var(--ycb-texte-doux);
}

/* Carte « Complétez votre profil » : centrée en bas de l'écran, sur toute la largeur disponible (560 px au plus),
   au-dessus de la barre de navigation du téléphone ; masquée quand une fenêtre est ouverte. */
.completer-profil {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 1041;
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 1rem 1rem 0.5rem;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre-survol);
  animation: completer-profil-entree 0.35s ease-out;
}

@keyframes completer-profil-entree {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translateX(-50%); }
}

body.modal-open .completer-profil {
  display: none;
}

@media (max-width: 767.98px) {
  .completer-profil {
    bottom: calc(var(--nav-mobile-hauteur) + env(safe-area-inset-bottom, 0px) + 12px);
  }
}

.completer-profil__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ycb-encre);
}

.completer-profil__fermer {
  border: 0;
  background: transparent;
  color: var(--ycb-texte-doux);
  padding: 0.15rem 0.3rem;
  cursor: pointer;
}

.completer-profil__barre,
.profil__completion-barre {
  display: block;
  height: 6px;
  margin: 0.45rem 0 0.8rem;
  border-radius: 999px;
  background: var(--ycb-fond);
  overflow: hidden;
}

.completer-profil__barre span,
.profil__completion-barre span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ycb-vert);
  transition: width 0.4s;
}

.completer-profil__question {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.completer-profil__question label,
.completer-profil__libelle {
  font-weight: 600;
  color: var(--ycb-encre);
  font-size: 0.95rem;
}

.completer-profil__question small,
.completer-profil__texte {
  color: var(--ycb-texte-doux);
  font-size: 0.8rem;
  margin: 0;
}

.completer-profil__texte {
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

.completer-profil__choix {
  display: flex;
  gap: 0.4rem;
}

.completer-profil__choix--liste {
  flex-wrap: wrap;
}

.completer-profil__choix .btn {
  flex: 1 1 auto;
}

.completer-profil__valider {
  align-self: flex-start;
}

.completer-profil__erreur {
  margin: 0;
  color: #b02a37;
  font-size: 0.82rem;
}

.completer-profil__plus-tard {
  display: block;
  margin: 0.4rem auto 0;
  color: var(--ycb-texte-doux);
  font-size: 0.82rem;
}

.completer-profil__merci {
  margin: 0.25rem 0 0.75rem;
  color: var(--ycb-vert-fonce);
  font-weight: 600;
}

/* Avancement du profil sur la page Profil. */
.profil__completion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--ycb-texte-doux);
}

.profil__completion-barre {
  width: 140px;
  margin: 0;
}

@media (max-width: 767.98px) {
  .profil__completion {
    justify-content: center;
  }
}


/*--------------------------------------------------------------
# Vidéos intégrées (YouTube, Facebook) : format de la vidéo au lieu
# d'une hauteur fixe ; plus compactes dans les commentaires et messages
--------------------------------------------------------------*/
.video-container {
  margin: 12px 0;
  border-radius: var(--ycb-rayon-petit);
}

.video-container.youtube iframe,
.video-container.facebook iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--ycb-rayon-petit);
}

.video-container.youtube-shorts iframe,
.video-container.facebook-reel iframe {
  width: auto;
  max-width: 100%;
  height: min(80vh, 640px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  display: block;
  border-radius: var(--ycb-rayon-petit);
}

.commentaire__texte .video-container,
.message__texte .video-container,
.card-text .video-container {
  max-width: 420px;
  margin: 8px 0;
}

.message__texte .video-container.youtube-shorts iframe,
.commentaire__texte .video-container.youtube-shorts iframe {
  height: min(60vh, 420px);
}

/*--------------------------------------------------------------
# Comment postuler (offres relayées vers les structures qui les gèrent)
--------------------------------------------------------------*/
.postuler {
  margin: 14px 0 6px;
  padding: 14px 16px;
  background: var(--ycb-vert-clair);
  border-radius: var(--ycb-rayon-petit);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.postuler--compact {
  background: transparent;
  padding: 0;
  margin: 8px 0 0;
  gap: 4px 14px;
  font-size: 0.875rem;
}

.postuler__info {
  color: var(--ycb-texte);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.postuler__info i {
  color: var(--ycb-texte-doux);
}

.postuler__info--urgent,
.postuler__info--urgent i {
  color: var(--ycb-orange);
  font-weight: 600;
}

.postuler__info--cloturee {
  color: var(--ycb-texte-doux);
  text-decoration: line-through;
}

.postuler__bouton {
  flex-basis: 100%;
}

.postuler__aide {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--ycb-texte-doux);
}

/*--------------------------------------------------------------
# Offres pour vous (correspondance profil / offres relayées)
--------------------------------------------------------------*/
.pour-vous {
  margin: 8px 0 28px;
  padding: 18px;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
}

.pour-vous__entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 14px;
}

.pour-vous__entete h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.pour-vous__entete h3 i {
  color: var(--ycb-orange);
}

.pour-vous__aide,
.pour-vous__vide {
  color: var(--ycb-texte-doux);
  font-size: 0.9rem;
  margin: 0;
}

.pour-vous__liste {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.pour-vous__carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 12px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  color: var(--ycb-texte);
  scroll-snap-align: start;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.pour-vous__carte:hover {
  border-color: var(--ycb-vert);
  box-shadow: var(--ycb-ombre-survol);
  color: var(--ycb-texte);
}

.pour-vous__score {
  align-self: flex-start;
  background: var(--ycb-orange-clair);
  color: var(--ycb-orange);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 9px;
  border-radius: 999px;
}

.pour-vous__titre {
  color: var(--ycb-vert);
  font-size: 1.05rem;
  line-height: 1.25;
}

.pour-vous__raison {
  font-size: 0.875rem;
  color: var(--ycb-texte-doux);
}

.pour-vous__raison i {
  color: var(--ycb-vert);
}

/*--------------------------------------------------------------
# Vérification d'attestation
--------------------------------------------------------------*/
.verification {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: var(--ycb-rayon);
  border: 1px solid var(--ycb-bord);
  background: var(--ycb-blanc);
  box-shadow: var(--ycb-ombre);
}

.verification > i {
  font-size: 2.6rem;
  line-height: 1;
}

.verification h2 {
  font-size: 1.4rem;
  margin: 2px 0 4px;
}

.verification--valide > i { color: var(--ycb-vert); }
.verification--revoquee > i { color: var(--ycb-orange); }
.verification--inconnue > i { color: #b42318; }

.verification__details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 0;
}

.verification__details dt {
  color: var(--ycb-texte-doux);
  font-weight: 400;
}

.verification__details dd {
  margin: 0;
  color: var(--ycb-encre);
  font-weight: 600;
}

/*--------------------------------------------------------------
# Administration : onglet Impact
--------------------------------------------------------------*/
.impact__titre {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.impact__outils {
  display: flex;
  gap: 8px;
  align-items: center;
}

.impact__outils .form-select {
  width: auto;
}

.impact__groupes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.impact__groupe {
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
  padding: 16px 18px;
  min-width: 0;
}

.impact__groupe h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.impact__groupe h3 i {
  color: var(--ycb-vert);
  margin-right: 4px;
}

.impact__chiffres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.impact__chiffres strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ycb-encre);
}

.impact__chiffres span {
  font-size: 0.85rem;
  color: var(--ycb-texte-doux);
}

.impact__table td,
.impact__table th {
  padding: 10px 16px;
  vertical-align: middle;
}

/*--------------------------------------------------------------
# Mentorat
--------------------------------------------------------------*/
.mentorat__titre {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 14px;
}

.mentorat__titre i {
  color: var(--ycb-vert);
}

.mentorat__liste,
.mentorat__mentors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.mentorat__carte,
.mentorat__mentor,
.mentorat__candidature {
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
  padding: 18px;
  min-width: 0;
}

.mentorat__entete {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mentorat__entete img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.mentorat__entete > div {
  flex: 1;
  min-width: 0;
}

.mentorat__entete strong {
  display: block;
  color: var(--ycb-encre);
}

.mentorat__entete small {
  color: var(--ycb-texte-doux);
}

.mentorat__statut {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.mentorat__statut--attente { background: var(--ycb-orange-clair); color: var(--ycb-orange); }
.mentorat__statut--cours { background: var(--ycb-vert-clair); color: var(--ycb-vert); }
.mentorat__statut--fini { background: #f1f3f5; color: var(--ycb-texte-doux); }

.mentorat__objectif,
.mentorat__presentation {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.mentorat__message {
  font-style: italic;
  color: var(--ycb-texte-doux);
}

.mentorat__domaines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mentorat__domaines span {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.mentorat__seances h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 12px 0 8px;
}

.mentorat__seance {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--ycb-bord);
}

.mentorat__seance small {
  display: block;
  color: var(--ycb-texte-doux);
}

.mentorat__seance--annulee strong {
  text-decoration: line-through;
  color: var(--ycb-texte-doux);
}

.mentorat__formulaire {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mentorat details > summary {
  list-style: none;
}

.mentorat details > summary::-webkit-details-marker {
  display: none;
}

/*--------------------------------------------------------------
# Coach de candidature (règles simples, avant « Postuler »)
--------------------------------------------------------------*/
.coach {
  flex-basis: 100%;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  padding: 12px 14px;
}

.coach__resume {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.coach__resume::-webkit-details-marker {
  display: none;
}

.coach__resume::after {
  content: "\F282"; /* bi-chevron-down */
  font-family: "bootstrap-icons";
  margin-left: auto;
  color: var(--ycb-texte-doux);
  transition: transform 0.2s;
}

.coach[open] .coach__resume::after {
  transform: rotate(180deg);
}

.coach__jauge {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--ycb-vert) var(--pret), var(--ycb-bord) 0);
}

.coach__jauge span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ycb-blanc);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ycb-encre);
}

.coach__sous-titre {
  display: block;
  font-size: 0.85rem;
  color: var(--ycb-texte-doux);
}

.coach__points {
  list-style: none;
  padding: 0;
  margin: 14px 0 6px;
}

.coach__point {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--ycb-bord);
  font-size: 0.92rem;
}

.coach__point i {
  color: var(--ycb-texte-doux);
  font-size: 1.05rem;
  line-height: 1.3;
}

.coach__point span span {
  color: var(--ycb-texte-doux);
  font-size: 0.86rem;
}

.coach__point--important strong,
.coach__point--important i {
  color: var(--ycb-orange);
}

.coach__titre {
  margin: 12px 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ycb-encre);
}

.coach__liste {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
}

/*--------------------------------------------------------------
# Langues nationales : sélecteur et page « Traduire »
--------------------------------------------------------------*/
.choix-langue {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.choix-langue__titre {
  opacity: 0.8;
}

.choix-langue__lien {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.choix-langue__lien[aria-current] {
  font-weight: 700;
  text-decoration: none;
}

.traduire__langues {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.traduire__langue {
  flex: 1 1 180px;
  padding: 12px 14px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-blanc);
  color: var(--ycb-texte);
  text-decoration: none;
}

.traduire__langue--active {
  border-color: var(--ycb-vert);
  box-shadow: var(--ycb-anneau);
}

.traduire__langue .progress {
  height: 6px;
  margin-top: 8px;
}

.traduire__texte {
  padding: 14px 16px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-blanc);
  margin-bottom: 10px;
}

.traduire__source {
  font-weight: 600;
  color: var(--ycb-encre);
}

.traduire__origine {
  font-size: 0.75rem;
  color: var(--ycb-texte-doux);
}

.traduire__validee {
  margin: 6px 0;
  color: var(--ycb-texte);
}

.traduire__validee i,
.traduire__proposition i {
  color: var(--ycb-texte-doux);
}

.traduire__proposition {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.92rem;
  padding: 4px 0;
}

/*--------------------------------------------------------------
# Solde et recharge par mobile money (seulement si quelque chose est payant)
--------------------------------------------------------------*/
.solde {
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-blanc);
  text-align: left;
}

.solde__ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.solde__ligne i {
  color: var(--ycb-texte-doux);
}

.solde__etapes {
  margin: 12px 0 8px;
  padding-left: 18px;
}

.solde__numero {
  font-weight: 700;
  color: var(--ycb-encre);
  letter-spacing: 0.03em;
}

.solde__historique {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.solde__historique li {
  padding: 4px 0;
  border-top: 1px solid var(--ycb-bord);
}

.solde__statut {
  font-weight: 600;
  color: var(--ycb-texte-doux);
}

.solde__statut--ok {
  color: var(--ycb-vert);
}

.solde__statut--refuse {
  color: var(--ycb-orange);
}

/*--------------------------------------------------------------
# Assistant (chatbot)
--------------------------------------------------------------*/
.chatbot .modal-title i {
  color: var(--ycb-texte-doux);
}

.chatbot__fil {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ycb-fond);
  min-height: 280px;
}

.chatbot__ligne {
  display: flex;
}

.chatbot__ligne--moi {
  justify-content: flex-end;
}

.chatbot__bulle {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  color: var(--ycb-texte);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.chatbot__ligne--moi .chatbot__bulle {
  border-radius: 14px 14px 4px 14px;
  background: var(--ycb-vert-clair);
  border-color: transparent;
}

.chatbot__liens {
  margin: 8px 0 0;
  padding-left: 18px;
}

.chatbot__attente {
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--ycb-texte-doux);
}

.chatbot__saisie {
  flex-wrap: nowrap;
  gap: 8px;
}

.chatbot__saisie textarea {
  resize: none;
}

/*--------------------------------------------------------------
# Barre de navigation du bas (téléphone), comme dans l'application
--------------------------------------------------------------*/
:root {
  --nav-mobile-hauteur: 64px;
}

.nav-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040; /* Sous les fenêtres (1050+) et le menu déroulant de l'en-tête. */
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: calc(var(--nav-mobile-hauteur) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--ycb-blanc);
  border-top: 1px solid var(--ycb-bord);
  box-shadow: 0 -4px 16px rgba(31, 45, 61, 0.06);
}

.nav-mobile__onglet {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ycb-texte-doux);
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.1;
}

.nav-mobile__icone {
  display: grid;
  place-items: center;
  width: 52px;
  height: 28px;
  border-radius: 99px;
  font-size: 1.25rem;
  transition: background-color 0.2s;
}

.nav-mobile__libelle {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-mobile__onglet--actif {
  color: var(--ycb-encre);
  font-weight: 700;
}

.nav-mobile__onglet--actif .nav-mobile__icone {
  background: var(--ycb-vert-clair);
}

.nav-mobile__onglet:hover,
.nav-mobile__onglet:focus-visible {
  color: var(--ycb-encre);
}

.nav-mobile__onglet:focus-visible {
  outline: 2px solid var(--ycb-vert);
  outline-offset: -4px;
}

/* Sur téléphone : le bas de page et les boutons flottants (assistant, lecture, haut de page) restent au-dessus
   de la barre. */
@media (max-width: 767.98px) {
  body {
    padding-bottom: calc(var(--nav-mobile-hauteur) + env(safe-area-inset-bottom, 0px));
  }

  .scroll-top {
    margin-bottom: calc(var(--nav-mobile-hauteur) + env(safe-area-inset-bottom, 0px));
  }
}

/*--------------------------------------------------------------
# « J'y serai » : générateur de visuel et éditeur de maquette
--------------------------------------------------------------*/
.jys {
  padding-top: 8px;
}

.jys-intro {
  max-width: 760px;
  color: var(--ycb-texte-doux);
}

.jys-apercu {
  background: var(--ycb-fond);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  padding: 12px;
  box-shadow: var(--ycb-ombre);
}

.jys-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--ycb-rayon-petit);
  touch-action: none;
  cursor: grab;
}

.jys-canvas:active {
  cursor: grabbing;
}

.jys-formulaire {
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  padding: 20px;
  box-shadow: var(--ycb-ombre);
}

.jys-titre {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ycb-encre);
  margin-bottom: 4px;
}

.jys-date {
  color: var(--ycb-texte-doux);
  font-size: 0.95rem;
}

.jys-date .bi,
.jys-confidentialite .bi,
.jys-gestion .bi {
  color: var(--ycb-texte-doux);
}

.jys-etapes {
  counter-reset: etape;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.jys-etapes > li {
  counter-increment: etape;
  position: relative;
  padding: 0 0 18px 42px;
}

.jys-etapes > li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.jys-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.jys-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jys-confidentialite {
  font-size: 0.875rem;
  color: var(--ycb-texte-doux);
  background: var(--ycb-fond);
  border-radius: var(--ycb-rayon-petit);
  padding: 10px 12px;
}

.jys-gestion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--ycb-fond);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.jys-bloc {
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.jys-bloc legend {
  float: none;
  width: auto;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ycb-encre);
  margin-bottom: 6px;
}

.jys-bloc--actif {
  border-color: var(--ycb-orange);
  box-shadow: 0 0 0 3px var(--ycb-orange-clair);
}

.jys-invitation {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 4px;
  padding: 12px;
  border-radius: var(--ycb-rayon);
  background: var(--ycb-vert-clair);
  color: var(--ycb-texte);
  text-decoration: none;
}

.jys-invitation:hover {
  color: var(--ycb-encre);
  box-shadow: var(--ycb-ombre-survol);
}

.jys-invitation img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--ycb-rayon-petit);
  flex-shrink: 0;
}

.jys-invitation strong {
  display: block;
  color: var(--ycb-encre);
  font-size: 1.05rem;
}

.jys-invitation > span:nth-child(2) {
  flex: 1;
  font-size: 0.9rem;
}

@media (max-width: 575.98px) {
  .jys-invitation {
    flex-wrap: wrap;
  }

  .jys-invitation .btn {
    width: 100%;
  }
}

/*--------------------------------------------------------------
# Galerie d'une publication (photos supplémentaires)
--------------------------------------------------------------*/
.galerie-actualite {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.galerie-actualite__photo {
  position: relative;
  margin: 0;
}

.galerie-actualite__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-fond);
  transition: opacity 0.15s;
}

.galerie-actualite__photo a:hover img {
  opacity: 0.85;
}

.galerie-actualite__retirer {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 45, 61, 0.7);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.galerie-actualite__ajout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
}

.galerie-actualite__ajout .bi {
  color: var(--ycb-texte-doux);
}

/*--------------------------------------------------------------
# Formulaires d'inscription et de candidature
--------------------------------------------------------------*/
.frm {
  padding-top: 8px;
}

.frm .bi {
  color: inherit;
}

.frm-intro-page {
  max-width: 760px;
  color: var(--ycb-texte-doux);
}

.frm-carte {
  max-width: 760px;
  margin: 0 auto;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  padding: 24px;
  box-shadow: var(--ycb-ombre);
}

.frm-entete {
  border-bottom: 1px solid var(--ycb-bord);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.frm-entete h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ycb-encre);
  margin-bottom: 4px;
}

.frm-publication {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.frm-publication a {
  color: var(--ycb-texte-doux);
}

.frm-infos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--ycb-texte-doux);
}

.frm-introduction {
  background: var(--ycb-fond);
  border-radius: var(--ycb-rayon-petit);
  padding: 12px 14px;
  font-size: 0.95rem;
}

.frm-section {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ycb-vert);
  margin: 28px 0 4px;
  padding-top: 16px;
  border-top: 1px solid var(--ycb-bord);
}

.frm-formulaire > .frm-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.frm-question {
  margin-bottom: 18px;
}

.frm-question .form-label,
.frm-question legend {
  font-weight: 600;
  color: var(--ycb-encre);
  font-size: 1rem;
  margin-bottom: 4px;
}

.frm-question legend {
  float: none;
}

.frm-aide {
  font-size: 0.85rem;
  color: var(--ycb-texte-doux);
  margin-bottom: 6px;
}

.frm-obligatoire {
  color: var(--ycb-orange);
  margin-left: 3px;
}

.frm-options--ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.frm-question--erreur .form-control,
.frm-question--erreur .form-select {
  border-color: #dc3545;
}

.frm-erreur {
  color: #b02a37;
  font-size: 0.85rem;
  margin-top: 4px;
}

.frm-connexion {
  text-align: center;
  background: var(--ycb-fond);
  border-radius: var(--ycb-rayon-petit);
  padding: 20px;
}

.frm-gestion {
  max-width: 760px;
  margin: 0 auto 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--ycb-fond);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  padding: 10px 14px;
}

.frm-gestion > span:first-child .bi {
  color: var(--ycb-texte-doux);
}

/* Encart sur la page de la publication */
.frm-invitation {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 4px;
  padding: 14px;
  border-radius: var(--ycb-rayon);
  border: 1px solid var(--ycb-bord);
  background: var(--ycb-fond);
}

.frm-invitation__icone {
  font-size: 1.8rem;
  color: var(--ycb-texte-doux);
  flex-shrink: 0;
}

.frm-invitation__texte {
  flex: 1;
  font-size: 0.9rem;
}

.frm-invitation__texte strong {
  display: block;
  color: var(--ycb-encre);
  font-size: 1.05rem;
}

/* Éditeur */
.frm-import {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  padding: 14px 16px;
  margin-bottom: 24px;
  background: var(--ycb-fond);
}

.frm-import > div:first-child {
  flex: 1 1 320px;
}

.frm-import .bi-table {
  color: var(--ycb-texte-doux);
}

.frm-import__resultat {
  flex-basis: 100%;
  margin: 0;
}

.frm-titre-bloc {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ycb-encre);
  margin-bottom: 12px;
}

.frm-parametres {
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  padding: 18px;
  box-shadow: var(--ycb-ombre);
}

@media (min-width: 992px) {
  .frm-parametres {
    position: sticky;
    top: 90px;
  }
}

.frm-q {
  display: flex;
  gap: 12px;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  padding: 12px;
  margin-bottom: 10px;
}

.frm-q:focus-within {
  border-color: var(--ycb-vert);
  box-shadow: var(--ycb-anneau);
}

.frm-q--section {
  background: var(--ycb-fond);
}

.frm-q__numero {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.frm-q--section .frm-q__numero {
  background: transparent;
  color: var(--ycb-texte-doux);
}

.frm-q__corps {
  flex: 1;
  min-width: 0;
}

.frm-q__ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.frm-q__ligne .form-control {
  flex: 1 1 240px;
  font-weight: 600;
}

.frm-q__type {
  flex: 0 1 200px;
}

.frm-q__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.frm-q__actions {
  display: flex;
  gap: 4px;
}

.frm-q__actions .bi {
  color: var(--ycb-texte-doux);
}

.frm-q__actions .text-danger .bi {
  color: inherit;
}

.frm-ajouter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* Réponses */
.frm-reponses-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.frm-reponses-entete h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ycb-encre);
  margin: 0;
}

.frm-filtres {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.frm-filtre {
  flex-shrink: 0;
  border: 1px solid var(--ycb-bord);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: var(--ycb-texte);
  background: var(--ycb-blanc);
}

.frm-filtre span {
  color: var(--ycb-texte-doux);
  margin-left: 4px;
}

.frm-filtre--actif {
  background: var(--ycb-vert);
  border-color: var(--ycb-vert);
  color: #fff;
}

.frm-filtre--actif span {
  color: rgba(255, 255, 255, 0.8);
}

.frm-reponse {
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  margin-bottom: 8px;
}

.frm-reponse summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.frm-reponse summary::-webkit-details-marker {
  display: none;
}

.frm-reponse[open] summary {
  border-bottom: 1px solid var(--ycb-bord);
}

.frm-reponse__nom {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.frm-reponse__nom img {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.frm-reponse__nom > .bi {
  font-size: 2rem;
  color: var(--ycb-texte-doux);
  line-height: 1;
}

.frm-reponse__nom strong {
  display: block;
  color: var(--ycb-encre);
}

.frm-reponse__nom small {
  display: block;
  color: var(--ycb-texte-doux);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frm-reponse__nom > span {
  min-width: 0;
}

.frm-statut {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--ycb-fond);
  color: var(--ycb-texte-doux);
}

.frm-statut--retenue {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert);
}

.frm-statut--attente {
  background: var(--ycb-orange-clair);
  color: #a63d16;
}

.frm-statut--refusee {
  background: #f1f3f5;
  color: #868e96;
}

.frm-reponse__detail {
  padding: 14px;
}

.frm-reponse__detail dl {
  display: grid;
  grid-template-columns: minmax(140px, 32%) 1fr;
  gap: 6px 16px;
  margin-bottom: 14px;
}

.frm-reponse__detail dt {
  font-weight: 500;
  color: var(--ycb-texte-doux);
}

.frm-reponse__detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.frm-reponse__statut {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
}

.frm-vide {
  text-align: center;
  color: var(--ycb-texte-doux);
  padding: 40px 0;
}

@media (max-width: 575.98px) {
  .frm-carte {
    padding: 16px;
  }

  .frm-invitation {
    flex-wrap: wrap;
  }

  .frm-invitation .btn {
    width: 100%;
  }

  .frm-reponse__detail dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .frm-reponse__detail dd {
    margin-bottom: 8px;
  }

  .frm-q {
    flex-direction: column;
    gap: 8px;
  }
}

/* « Je participe » d'un événement et liste des participants */
.participation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-radius: var(--ycb-rayon);
  border: 1px solid var(--ycb-bord);
  background: var(--ycb-fond);
}

.participation__nombre .bi {
  color: var(--ycb-texte-doux);
  margin-right: 4px;
}

.participation__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.participant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  background: var(--ycb-blanc);
}

.participant img {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.participant > .bi {
  font-size: 2rem;
  line-height: 1;
  color: var(--ycb-texte-doux);
}

.participant__identite {
  flex: 1;
  min-width: 0;
}

.participant__identite strong,
.participant__identite small {
  display: block;
}

.participant__identite small {
  color: var(--ycb-texte-doux);
}

.participant__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: .9rem;
  min-width: 0;
}

.participant__contact a {
  overflow-wrap: anywhere;
}

@media (max-width: 575px) {
  .participant {
    flex-wrap: wrap;
  }

  .participant__contact {
    align-items: flex-start;
    width: 100%;
    padding-left: 46px;
  }
}

.participant--present {
  border-color: var(--ycb-vert);
  background: var(--ycb-vert-clair);
}

.participant__presence {
  flex-shrink: 0;
}

.participants-aide {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: var(--ycb-rayon);
  background: var(--ycb-fond);
  font-size: .92rem;
}

.participants-aide > .bi {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ycb-texte-doux);
}

/* Date d'un événement : agenda, billet */
.evenement-date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 16px 0 4px;
  padding: 12px 14px;
  border-radius: var(--ycb-rayon);
  border: 1px solid var(--ycb-bord);
  background: var(--ycb-blanc);
}

.evenement-date__icone {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ycb-texte-doux);
}

.evenement-date__texte {
  flex: 1;
  min-width: 160px;
}

.evenement-date__texte .badge {
  margin-left: 6px;
}

.evenement-date__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Billet (QR code) et résultat du pointage */
.billet {
  max-width: 460px;
}

.billet__carte {
  text-align: center;
  padding: 24px 20px;
  border-radius: var(--ycb-rayon);
  border: 1px solid var(--ycb-bord);
  background: var(--ycb-blanc);
  box-shadow: var(--ycb-ombre);
}

.billet__evenement {
  font-weight: 700;
  color: var(--ycb-encre);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.billet__date {
  color: var(--ycb-texte-doux);
  margin-bottom: 12px;
}

.billet__nom {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ycb-vert);
  margin-bottom: 12px;
}

.billet__qr {
  width: 100%;
  max-width: 260px;
  height: auto;
  image-rendering: pixelated;
}

.billet__consigne {
  font-size: .92rem;
  color: var(--ycb-texte-doux);
  margin: 12px 0 0;
}

.billet__etat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ycb-fond);
}

.billet__etat--ok {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert);
  font-weight: 600;
}

.pointage {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--ycb-rayon);
  border: 2px solid var(--ycb-bord);
  background: var(--ycb-blanc);
}

.pointage--ok {
  border-color: var(--ycb-vert);
  background: var(--ycb-vert-clair);
}

.pointage--attention {
  border-color: #e0a100;
  background: #fff7e0;
}

.pointage--erreur {
  border-color: var(--ycb-orange);
  background: var(--ycb-orange-clair);
}

.pointage__icone {
  font-size: 4rem;
  line-height: 1;
}

.pointage--ok .pointage__icone { color: var(--ycb-vert); }
.pointage--attention .pointage__icone { color: #b07d00; }
.pointage--erreur .pointage__icone { color: var(--ycb-orange); }

.pointage__titre {
  font-size: 1.4rem;
  margin: 12px 0;
  color: var(--ycb-encre);
}

.pointage__membre {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 1.2rem;
}

.pointage__membre img {
  border-radius: 50%;
  object-fit: cover;
}

.pointage__membre small {
  display: block;
  font-size: .85rem;
  color: var(--ycb-texte-doux);
}

.pointage__evenement {
  margin: 12px 0 0;
  color: var(--ycb-texte-doux);
}

@media print {
  #header, #footer, .breadcrumbs, .nav-mobile, .billet .btn, .billet > p { display: none !important; }
  .billet__carte { box-shadow: none; }
}

/* Gestion d'un cours (parties, import PDF, évaluation) */
.cours-gestion__titre {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--ycb-encre);
}

.cours-partie,
.cours-pdf-partie {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-blanc);
}

.cours-partie__numero,
.cours-pdf-partie__numero,
.eval-question__numero {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ycb-fond);
  color: var(--ycb-texte-doux);
  font-weight: 600;
  font-size: .85rem;
}

.cours-partie__texte {
  flex: 1;
  min-width: 0;
}

.cours-partie__texte strong,
.cours-partie__texte small {
  display: block;
  overflow-wrap: anywhere;
}

.cours-partie__texte small {
  color: var(--ycb-texte-doux);
}

.cours-partie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cours-pdf-partie input[data-champ="titre"] {
  flex: 1;
  min-width: 0;
}

.cours-pdf-partie__pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .85rem;
  color: var(--ycb-texte-doux);
  white-space: nowrap;
}

.cours-pdf-partie__pages input {
  width: 70px;
}

.cours-pdf-decoupage {
  margin-top: 14px;
}

.cours-evaluation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  padding: 14px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  background: var(--ycb-fond);
}

.cours-evaluation__icone {
  font-size: 1.8rem;
  color: var(--ycb-texte-doux);
}

@media (max-width: 575px) {
  .cours-partie {
    flex-wrap: wrap;
  }

  .cours-partie__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .cours-pdf-partie {
    flex-wrap: wrap;
  }

  .cours-pdf-partie input[data-champ="titre"] {
    flex-basis: calc(100% - 40px);
  }
}

/* Pages d'un PDF dans le cours */
.cours-pdf__infos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .9rem;
  color: var(--ycb-texte-doux);
}

.cours-pdf__page {
  min-height: 200px;
  margin-bottom: 12px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  overflow: hidden;
  background: var(--ycb-blanc);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cours-pdf__page canvas {
  display: block;
}

.cours-pdf__attente {
  color: var(--ycb-texte-doux);
  font-size: .9rem;
  padding: 40px 0;
}

/* Éditeur de l'évaluation */
.eval-question {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  background: var(--ycb-blanc);
}

.eval-question__entete {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.eval-question__outils {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.eval-choix,
.evaluation-choix {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.eval-choix .form-check-input {
  margin-top: 0;
  flex-shrink: 0;
}

.eval-choix__lettre,
.evaluation-choix__lettre {
  width: 18px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--ycb-texte-doux);
}

/* Passage de l'évaluation */
.evaluation {
  max-width: 820px;
}

.evaluation-question {
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  background: var(--ycb-blanc);
}

.evaluation-question__texte {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ycb-encre);
  margin-bottom: 10px;
  float: none;
  width: 100%;
}

.evaluation-question__texte small {
  display: block;
  font-weight: 400;
  color: var(--ycb-texte-doux);
}

.evaluation-choix {
  padding: 8px 10px;
  border-radius: var(--ycb-rayon-petit);
  cursor: pointer;
}

.evaluation-choix:hover {
  background: var(--ycb-fond);
}

.evaluation-choix input {
  flex-shrink: 0;
}

.evaluation-question--juste {
  border-color: var(--ycb-vert);
}

.evaluation-question--fausse {
  border-color: var(--ycb-orange);
}

.evaluation-correction {
  list-style: none;
  padding: 0;
  margin: 0;
}

.evaluation-correction li {
  padding: 4px 0;
  color: var(--ycb-texte-doux);
}

.evaluation-correction li.bonne {
  color: var(--ycb-vert);
  font-weight: 600;
}

.evaluation-correction li.choisie:not(.bonne) {
  color: var(--ycb-orange);
  text-decoration: line-through;
}

.evaluation-question__explication {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-fond);
  font-size: .9rem;
}

.evaluation-resultat {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--ycb-rayon);
  border: 1px solid var(--ycb-orange);
  background: var(--ycb-orange-clair);
}

.evaluation-resultat--reussie {
  border-color: var(--ycb-vert);
  background: var(--ycb-vert-clair);
}

.evaluation-resultat__note {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ycb-encre);
}

.evaluation-resultat__note small {
  font-size: 1rem;
  color: var(--ycb-texte-doux);
}

.evaluation-score {
  text-align: right;
  flex-shrink: 0;
}

.evaluation-score small {
  display: block;
  color: var(--ycb-texte-doux);
}

.evaluation-stat {
  display: grid;
  grid-template-columns: 1fr 140px 48px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ycb-bord);
  font-size: .9rem;
}

.evaluation-stat__barre {
  height: 8px;
  border-radius: 4px;
  background: var(--ycb-fond);
  overflow: hidden;
}

.evaluation-stat__barre span {
  display: block;
  height: 100%;
  background: var(--ycb-vert);
}

.evaluation-stat__taux {
  text-align: right;
  color: var(--ycb-texte-doux);
}

@media (max-width: 575px) {
  .evaluation-stat {
    grid-template-columns: 1fr 48px;
  }

  .evaluation-stat__barre {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Billet dans une fenêtre sur la page de l'événement */
.modal-content.billet__carte {
  position: relative;
  padding: 28px 20px 20px;
  border: 0;
}

.billet__fermer {
  position: absolute;
  top: 12px;
  right: 12px;
}

.modal-content.billet__carte .billet__qr {
  max-width: 240px;
  margin: 0 auto;
}

/* Champ « Écrire un commentaire » (comme dans l'application) */
.champ-envoi {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 6px 6px 8px;
  border: 1px solid var(--ycb-bord);
  border-radius: 24px;
  background: var(--ycb-fond);
}

.champ-envoi:focus-within {
  border-color: var(--ycb-vert);
  background: var(--ycb-blanc);
}

.champ-envoi__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.champ-envoi__texte {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  max-height: 128px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  resize: none;
  font-size: .98rem;
  line-height: 1.4;
  color: var(--ycb-encre);
}

.champ-envoi__texte:focus {
  outline: none;
}

.champ-envoi__bouton {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ycb-vert);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}

.champ-envoi__bouton:disabled {
  background: var(--ycb-bord);
  color: var(--ycb-texte-doux);
}

/* Envoi en cours : le bouton reste vert, avec son spinner. */
.champ-envoi__bouton[aria-busy="true"] {
  background: var(--ycb-vert);
  color: #fff;
}

/* Illustration d'une publication : une photo en hauteur (capture d'écran de téléphone) n'occupe plus tout l'écran ;
   elle reste entière (le clic l'ouvre en grand). */
.galerie-actualite__principale {
  display: block;
  margin-bottom: 1rem;
  cursor: zoom-in;
}

.galerie-actualite__principale img {
  display: block;
  width: 100%;
  max-height: min(60vh, 520px);
  object-fit: contain;
  background: var(--ycb-fond);
  border-radius: var(--ycb-rayon-petit);
}

/* Pendant que la carte « Complétez votre profil » est affichée, les boutons flottants passent dessous. */
body:has(.completer-profil:not([hidden])) .scroll-top {
  z-index: 1030;
}

/* Liste de présence : scanner toujours actif, résultat à côté, recherche */
.pointage-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.scanner {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  background: var(--ycb-blanc);
}

.scanner__video {
  position: relative;
  border-radius: var(--ycb-rayon-petit);
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
}

.scanner__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scanner__viseur {
  position: absolute;
  inset: 16%;
  border: 3px solid #fff;
  border-radius: 12px;
  opacity: .8;
}

.scan-resultats {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.scan-carte {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 18px 14px;
  text-align: center;
  border: 2px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  background: var(--ycb-blanc);
}

.scan-carte i {
  font-size: 2.2rem;
  line-height: 1.1;
  color: var(--ycb-texte-doux);
}

.scan-carte strong {
  font-size: 1.15rem;
  color: var(--ycb-encre);
}

.scan-carte span {
  color: var(--ycb-texte-doux);
  font-size: .92rem;
}

.scan-carte--ok { border-color: var(--ycb-vert); background: var(--ycb-vert-clair); }
.scan-carte--ok i { color: var(--ycb-vert); }
.scan-carte--attention { border-color: #e0a100; background: #fff7e0; }
.scan-carte--attention i { color: #b07d00; }
.scan-carte--erreur { border-color: var(--ycb-orange); background: var(--ycb-orange-clair); }
.scan-carte--erreur i { color: var(--ycb-orange); }

.scan-historique {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .88rem;
  color: var(--ycb-texte-doux);
}

.scan-historique li {
  padding: 3px 0 3px 10px;
  border-left: 3px solid var(--ycb-bord);
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}

.scan-historique__ok { border-left-color: var(--ycb-vert) !important; }
.scan-historique__attention { border-left-color: #e0a100 !important; }
.scan-historique__erreur { border-left-color: var(--ycb-orange) !important; }

.participants-outils {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.participants-recherche {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.participants-recherche i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ycb-texte-doux);
}

.participants-recherche input {
  padding-left: 38px;
  border-radius: 999px;
}

.participants-total {
  font-size: .88rem;
  color: var(--ycb-texte-doux);
  margin: 0 0 8px;
}

.participants-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: .9rem;
  color: var(--ycb-texte-doux);
}

@media (max-width: 767.98px) {
  .pointage-zone {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Statistiques d'une publication */
.stat-tuiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-tuile {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  background: var(--ycb-blanc);
}

.stat-tuile b {
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--ycb-encre);
  font-variant-numeric: tabular-nums;
}

.stat-tuile span {
  color: var(--ycb-texte-doux);
  font-size: .9rem;
}

.stat-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.stat-bloc {
  padding: 14px 16px;
  margin-bottom: 12px;
  min-width: 0;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  background: var(--ycb-blanc);
}

.stat-grille .stat-bloc {
  margin-bottom: 0;
}

.stat-bloc h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--ycb-encre);
}

.stat-barres {
  display: grid;
  gap: 8px;
}

.stat-barre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  font-size: .9rem;
}

.stat-barre__libelle {
  overflow-wrap: anywhere;
}

.stat-barre__valeur {
  grid-column: 2;
  grid-row: 1;
  color: var(--ycb-encre);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-barre__valeur small {
  font-weight: 400;
  color: var(--ycb-texte-doux);
}

.stat-barre__piste {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 4px;
  background: var(--ycb-fond);
  overflow: hidden;
}

.stat-barre__piste span {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--ycb-vert);
}

.stat-jours {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 2px;
  align-items: end;
  height: 110px;
  border-bottom: 1px solid var(--ycb-bord);
}

.stat-jour {
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.stat-jour span {
  display: block;
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--ycb-vert);
}

.stat-jours__axe {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: .8rem;
  color: var(--ycb-texte-doux);
}

/* Évaluation question par question (le script masque les autres questions et affiche le minuteur) */
.evaluation-etapes__entete {
  position: sticky;
  top: 70px;
  z-index: 5;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  background: var(--ycb-blanc);
}

.evaluation-etapes__temps {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ycb-vert);
}

.evaluation-etapes__temps--urgent {
  color: var(--ycb-orange);
}

.evaluation-etapes__piste {
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--ycb-fond);
  overflow: hidden;
}

.evaluation-etapes__piste span {
  display: block;
  height: 100%;
  background: var(--ycb-vert);
}

.evaluation-question[hidden] {
  display: none;
}

/*--------------------------------------------------------------
# Barre de recherche et d'ajout des listes
--------------------------------------------------------------*/
.section-header:has(> .barre-outils) {
  padding-bottom: 1.25rem;
}

.barre-outils {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.75rem;
  background: var(--ycb-vert-fonce);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
}

.barre-outils__recherche {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0 1rem;
  height: 44px;
  background: var(--ycb-blanc);
  border-radius: 999px;
  color: var(--ycb-texte-doux);
  cursor: text;
}

.barre-outils__recherche input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ycb-encre);
  font-size: 1rem;
}

.barre-outils__recherche:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.barre-outils__filtre {
  flex: 0 1 240px;
  min-width: 0;
  height: 44px;
  padding-left: 1rem;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ycb-encre);
}

.barre-outils__action {
  flex: 0 0 auto;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.15rem;
  background: var(--ycb-orange);
  border: 0;
  color: #fff;
}

.barre-outils__action:hover,
.barre-outils__action:focus-visible {
  background: #d84c21;
  color: #fff;
}

.barre-outils__action:disabled {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  opacity: 1;
}

@media (max-width: 575px) {
  .barre-outils__filtre {
    flex: 1 1 100%;
    order: 3;
  }
}

/*--------------------------------------------------------------
# Carte de publication : photo et réactions (mêmes repères que l'application)
--------------------------------------------------------------*/
.publication {
  cursor: pointer;
}

.publication__corps {
  padding-bottom: 0.25rem;
}

.publication__titre a {
  color: var(--ycb-vert);
}

.publication__photo {
  position: relative;
  margin: 0.6rem 0;
}

.publication__photo .publication__image {
  margin-top: 0;
  aspect-ratio: 16 / 9;
  max-height: none;
  cursor: zoom-in;
}

.publication__nb-photos {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.8rem;
  pointer-events: none;
}

.publication__actions {
  margin-top: 0.5rem;
}

.publication__compteur.text-secondary {
  color: var(--ycb-texte-doux) !important;
}

/* Grille des opportunités : mêmes repères, même couleur pour un « J'aime » actif. */
.carte[data-publication] {
  cursor: pointer;
}

.carte__visuel img[data-visionneuse] {
  cursor: zoom-in;
}

.carte__compteurs .text-danger {
  color: var(--ycb-orange) !important;
}

.carte__compteurs [data-aimer] {
  cursor: pointer;
}

/*--------------------------------------------------------------
# Visionneuse de photos
--------------------------------------------------------------*/
.visionneuse-ouverte,
.visionneuse-ouverte body {
  overflow: hidden;
}

.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.94);
}

.visionneuse[hidden] {
  display: none;
}

.visionneuse__barre {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem 0.6rem 1.1rem;
  color: #fff;
  pointer-events: none;
}

.visionneuse__compteur {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.visionneuse__bouton {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.15rem;
  pointer-events: auto;
}

.visionneuse__bouton:hover,
.visionneuse__bouton:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.visionneuse__bouton[hidden] {
  display: none;
}

.visionneuse__piste {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: 0;
  -webkit-overflow-scrolling: touch;
}

.visionneuse__piste::-webkit-scrollbar {
  display: none;
}

.visionneuse__page {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.75rem 0.5rem 1rem;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.visionneuse__page img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.visionneuse__fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.visionneuse__fleche--gauche {
  left: 0.75rem;
}

.visionneuse__fleche--droite {
  right: 0.75rem;
}

/* Au doigt, on fait glisser : les flèches ne gênent pas la photo. */
@media (pointer: coarse) {
  .visionneuse__fleche {
    display: none;
  }
}

/*--------------------------------------------------------------
# Menu du compte : toujours entier à l'écran, déconnexion bien visible
--------------------------------------------------------------*/
.menu-compte {
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
}

.menu-compte__deconnexion {
  color: #c62828;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-compte__deconnexion:hover,
.menu-compte__deconnexion:focus-visible {
  background: #fdecea;
  color: #b71c1c;
}

@media (max-width: 767.98px) {
  .menu-compte {
    max-height: calc(100dvh - 84px - var(--nav-mobile-hauteur) - env(safe-area-inset-bottom, 0px));
  }

  .menu-compte img.rounded-circle {
    width: 64px !important;
    height: 64px !important;
  }

  .menu-compte .card-body {
    padding: 0.5rem;
  }
}

/*--------------------------------------------------------------
# Compléments de la barre d'outils et des listes
--------------------------------------------------------------*/
.barre-outils__recherche #recherche::placeholder {
  color: var(--ycb-texte-doux);
  opacity: 1;
}

.barre-outils__recherche input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.barre-outils__note {
  width: auto;
  max-width: none;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  text-align: left;
  color: var(--ycb-texte-doux);
}

@media (max-width: 991px) {
  .page-actualites .filtres {
    margin-bottom: 0.75rem;
  }
}

.carte__titre a {
  color: inherit;
}

.carte__titre a:hover {
  color: var(--ycb-vert);
}

/* Types de ressources : pastilles défilantes, comme dans l'application. */
.onglets-ressources {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.onglets-ressources::-webkit-scrollbar {
  display: none;
}

.onglets-ressources a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--ycb-bord);
  border-radius: 999px;
  background: var(--ycb-blanc);
  color: var(--ycb-texte);
  font-size: 0.92rem;
  font-weight: 600;
}

.onglets-ressources a i {
  color: var(--ycb-texte-doux);
}

.onglets-ressources a:hover {
  border-color: var(--ycb-vert);
  color: var(--ycb-vert-fonce);
}

.onglets-ressources a.actif {
  border-color: var(--ycb-vert);
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
}

/*--------------------------------------------------------------
# Détail d'une ressource
--------------------------------------------------------------*/
.ressource-detail > .container:first-child {
  max-width: 1040px;
}

.ressource-detail__entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.ressource-detail__titre {
  flex: 1 1 320px;
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ycb-encre);
}

.ressource-detail__image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: var(--ycb-rayon);
  background: var(--ycb-fond);
  cursor: zoom-in;
}

.ressource-detail__description {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ycb-texte);
  overflow-wrap: anywhere;
}

.ressource-detail__auteur {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ycb-bord);
  color: var(--ycb-encre);
}

.ressource-detail__infos {
  position: sticky;
  top: 96px;
  padding: 1.25rem;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
}

@media (max-width: 991px) {
  .ressource-detail__infos {
    position: static;
  }
}

/*--------------------------------------------------------------
# Fenêtre de publication
--------------------------------------------------------------*/
.composeur__auteur {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.composeur__rubrique {
  flex: 1;
  min-width: 0;
}

.composeur__nom {
  display: block;
  color: var(--ycb-encre);
  font-size: 0.95rem;
  line-height: 1.3;
}

.composeur__choix {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  margin-top: 0.2rem;
  padding: 0.15rem 0.5rem 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--ycb-fond);
  color: var(--ycb-texte-doux);
}

.composeur__icone,
.composeur__icone label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.composeur__icone i.alert {
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  background: transparent;
  color: inherit;
}

.composeur__select {
  min-width: 0;
  max-width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ycb-encre);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.composeur__aide {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--ycb-texte-doux);
}

.composeur__titre,
.composeur__texte {
  display: block;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ycb-encre);
}

.composeur__titre {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--ycb-bord);
  font-size: 1.3rem;
  font-weight: 700;
}

.composeur__titre:focus {
  border-bottom-color: var(--ycb-vert);
}

.composeur__texte {
  min-height: 9rem;
  padding: 0.7rem 0;
  font-size: 1.02rem;
  line-height: 1.55;
  resize: none;
  field-sizing: content;
}

.composeur__bloc {
  margin-bottom: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-fond);
}

.composeur__pieces {
  margin-top: 0.5rem;
}

.composeur__pieces .piece-jointe {
  flex: 1 1 140px;
  padding: 0.6rem 0.8rem;
}

.composeur__pieces .piece-jointe i {
  color: var(--ycb-texte-doux);
}

.modal-publication .modal-footer {
  justify-content: space-between;
}

.composeur__envoi {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
}

.section-header p.barre-outils__note {
  margin-left: 0.25rem;
  text-align: left;
}

.barre-outils__action.disabled {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  opacity: 1;
}

/* Carte sans image disponible : un fond de la charte plutôt qu'un rectangle gris. */
.carte__visuel:not(:has(img)) {
  background: linear-gradient(135deg, var(--ycb-vert-clair), var(--ycb-fond));
}

/* Le menu du compte s'ouvre sous l'avatar, sans recouvrir l'en-tête. */
.navbar-profile .menu-compte {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
}

.menu-compte .dropdown-item.menu-compte__deconnexion,
.menu-compte .dropdown-item.menu-compte__deconnexion i {
  color: #c62828;
}

.menu-compte .dropdown-item.menu-compte__deconnexion:hover,
.menu-compte .dropdown-item.menu-compte__deconnexion:focus-visible {
  background: #fdecea;
  color: #b71c1c;
}

/* Messagerie sur téléphone : le titre passe sous l'en-tête fixe. */
@media (max-width: 767.98px) {
  .messagerie {
    padding-top: 42px;
    padding-bottom: 0.5rem;
  }

  /* Le cadre s'arrête au-dessus du menu mobile : le champ de saisie reste visible. */
  .messagerie__cadre {
    --messagerie-hauteur: calc(100dvh - 134px - env(safe-area-inset-bottom, 0px));
    min-height: 420px;
  }
}

.navbar-profile .dropdown {
  position: relative;
}

[data-zone-galerie][aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s;
}

/*--------------------------------------------------------------
# Publier, à la manière de Facebook : entrée du fil et fenêtre
--------------------------------------------------------------*/
.composeur-entree {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem 0.35rem;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
}

.composeur-entree__haut {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ycb-bord);
}

.composeur-entree__anonyme {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ycb-fond);
  color: var(--ycb-texte-doux);
  font-size: 1.3rem;
}

.composeur-entree__champ {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 1.1rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  border: 0;
  border-radius: 999px;
  background: var(--ycb-fond);
  color: var(--ycb-texte-doux);
  font-size: 1rem;
  cursor: pointer;
}

.composeur-entree__champ:hover {
  background: var(--ycb-bord);
}

.composeur-entree__actions {
  display: flex;
  padding-top: 0.25rem;
}

.composeur-entree__actions button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 42px;
  border: 0;
  border-radius: var(--ycb-rayon-petit);
  background: transparent;
  color: var(--ycb-texte-doux);
  font-weight: 600;
  cursor: pointer;
}

.composeur-entree__actions button:hover {
  background: var(--ycb-fond);
}

.modal-publication .modal-dialog:not(.modal-fullscreen-sm-down) {
  max-width: 560px;
}

@media (min-width: 576px) {
  .modal-publication .modal-dialog {
    max-width: 560px;
  }
}

.modal-publication .modal-header {
  position: relative;
  justify-content: center;
  border-bottom: 1px solid var(--ycb-bord);
}

.modal-publication .modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ycb-encre);
}

.modal-publication .modal-header .btn-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  margin: 0;
  padding: 0.6rem;
  border-radius: 50%;
  background-color: var(--ycb-fond);
  background-size: 0.75rem;
  transform: translateY(-50%);
  opacity: 1;
}

.modal-publication .modal-footer {
  justify-content: stretch;
  border-top: 0;
  padding-top: 0;
}

.modal-publication .modal-footer .composeur__envoi {
  flex: 1;
  justify-content: center;
}

.composeur__titre {
  border-bottom: 0;
  font-size: 1.15rem;
}

.composeur__texte {
  min-height: 6rem;
  font-size: 1.15rem;
}

.composeur--survol {
  outline: 3px dashed var(--ycb-vert);
  outline-offset: -8px;
}

.composeur__medias {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 0.75rem;
  padding: 4px;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
}

.composeur__medias[hidden],
.composeur__fichiers[hidden] {
  display: none;
}

.composeur__medias[data-nombre="1"] {
  grid-template-columns: 1fr;
}

.composeur__media {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ycb-fond);
}

.composeur__medias[data-nombre="1"] .composeur__media {
  aspect-ratio: 16 / 10;
}

.composeur__media img,
.composeur__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composeur__media--video {
  background: #000;
}

.composeur__marque {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--ycb-vert);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}

.composeur__retirer {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ycb-encre);
  font-size: 0.8rem;
  cursor: pointer;
}

.composeur__progression {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 28px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.composeur__progression[hidden] {
  display: none;
}

.composeur__progression span {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
  transition: width 0.2s;
}

.composeur__progression--erreur span {
  background: var(--ycb-orange);
}

.composeur__etat-video {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 0.78rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.composeur__fichiers {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.composeur__fichiers li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-radius: var(--ycb-rayon-petit);
  background: var(--ycb-fond);
  color: var(--ycb-texte-doux);
}

.composeur__fichiers li span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ycb-encre);
  font-size: 0.92rem;
}

.composeur__retirer-fichier {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ycb-texte-doux);
  cursor: pointer;
}

.composeur__retirer-fichier:hover {
  background: var(--ycb-bord);
}

.composeur__ajout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  padding: 0.4rem 0.5rem 0.4rem 0.9rem;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
}

.composeur__ajout-texte {
  color: var(--ycb-encre);
  font-size: 0.92rem;
  font-weight: 600;
}

.composeur__ajout-boutons {
  display: inline-flex;
  gap: 0.15rem;
}

.composeur__ajout-boutons label {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 50%;
  color: var(--ycb-texte-doux);
  font-size: 1.15rem;
  cursor: pointer;
}

.composeur__ajout-boutons label:hover {
  background: var(--ycb-fond);
  color: var(--ycb-encre);
}

/* Publication : vidéo en attente de YouTube et fichiers joints */
.video-attente {
  margin: 1rem 0;
}

.video-attente video {
  display: block;
  width: 100%;
  max-height: 480px;
  border-radius: var(--ycb-rayon-petit);
  background: #000;
}

.video-attente figcaption {
  margin-top: 0.35rem;
  color: var(--ycb-texte-doux);
  font-size: 0.85rem;
}

.fichiers-joints {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.fichiers-joints a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon-petit);
  color: var(--ycb-texte-doux);
}

.fichiers-joints a:hover {
  background: var(--ycb-fond);
}

.fichiers-joints__nom {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ycb-encre);
  font-weight: 500;
}

.publication__lecture {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 2rem;
  transform: translate(-50%, -50%);
}

.publication__photo--video .publication__image {
  cursor: pointer;
}

/* Une fenêtre ouverte passe devant les boutons flottants. */
body.modal-open .scroll-top {
  display: none !important;
}

/*--------------------------------------------------------------
# Dégradés : bandeaux, boutons principaux et progression.
# Jamais derrière un texte à lire, ni sur les cartes. Pour revenir aux aplats, retirer ce bloc.
--------------------------------------------------------------*/
.barre-outils,
.section-header .conteneur {
  background: var(--ycb-degrade-marque);
}

.btn-success:not(:disabled):not(.disabled),
.btn-primary:not(:disabled):not(.disabled) {
  background-image: var(--ycb-degrade-marque);
  border-color: transparent;
}

.btn-success:not(:disabled):not(.disabled):hover,
.btn-primary:not(:disabled):not(.disabled):hover {
  filter: brightness(1.08);
}

.barre-outils__action:not(:disabled):not(.disabled),
.scroll-top {
  background: var(--ycb-degrade-accent);
}

.barre-outils__action:not(:disabled):not(.disabled):hover {
  background: var(--ycb-degrade-accent);
  filter: brightness(1.06);
}

.champ-envoi__bouton:not(:disabled),
.champ-envoi__bouton[aria-busy="true"] {
  background: var(--ycb-degrade-marque);
}

.composeur__marque {
  background: var(--ycb-degrade-marque);
}

.completer-profil__barre span,
.profil__completion-barre span,
.carte .progress-bar,
.detail__bloc .progress-bar {
  background: var(--ycb-degrade-progression);
}

.onglets-ressources a.actif,
.projects .filtres .portfolio-flters li.filter-active,
.projects .portfolio-flters.puces li.filter-active {
  background: var(--ycb-degrade-doux);
}

/* Bandeau du haut des pages : la photo reste visible, teintée aux couleurs de la charte. */
.breadcrumbs::before {
  background: linear-gradient(120deg, rgba(2, 94, 76, 0.82) 0%, rgba(27, 109, 30, 0.55) 55%, rgba(241, 89, 42, 0.5) 100%);
}

/* Sur ce fond, l'orange du dernier élément du fil d'Ariane ne se lit pas. */
.breadcrumbs ol li:last-child,
.breadcrumbs ol li:last-child a {
  color: #fff;
  font-weight: 600;
}

/*--------------------------------------------------------------
# Infobulles des actions en icône seule (commentaires)
# Sans JavaScript : la liste de commentaires est remplacée à chaque action, aucune bulle ne peut rester orpheline.
--------------------------------------------------------------*/
[data-infobulle] {
  position: relative;
}

[data-infobulle]:hover::after,
[data-infobulle]:focus-visible::after {
  content: attr(data-infobulle);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 20;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--ycb-encre);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

/* Sur ordinateur, le libellé reste écrit à côté de l'icône de la fenêtre de détail : pas de bulle en double. */
@media (min-width: 768px) {
  .commentaire__actions [data-infobulle]::after {
    content: none !important;
  }
}

@media (max-width: 767.98px) {
  .commentaire__libelle {
    display: none;
  }

  .commentaire__actions {
    align-items: center;
    gap: 0.35rem;
  }

  /* Cible assez grande pour le doigt ; un appui long montre la bulle sans sélectionner le texte. */
  .commentaire__actions [role="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    font-size: 0.95rem;
    user-select: none;
    -webkit-touch-callout: none;
  }
}

/* Lecture à voix haute : un seul bouton (Écouter, Pause, Reprendre). */
.bouton-lecture {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ycb-texte-doux);
  cursor: pointer;
}

.bouton-lecture:hover {
  background: var(--ycb-fond);
  color: var(--ycb-encre);
}

.bouton-lecture[data-etat="lecture"],
.bouton-lecture[data-etat="pause"] {
  background: var(--ycb-vert-clair);
  color: var(--ycb-vert-fonce);
}

.sans-lecture .bouton-lecture {
  display: none;
}

/* En haut de la fenêtre, la bulle s'ouvre vers le bas pour ne pas être coupée. */
.bouton-lecture[data-infobulle]:hover::after,
.bouton-lecture[data-infobulle]:focus-visible::after {
  top: calc(100% + 6px);
  bottom: auto;
}

/* Site de test : on ne le confond pas avec le vrai site. */
.bandeau-test {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100001;
  padding: 0.1rem 0.8rem;
  border-radius: 0 0 8px 8px;
  background: var(--ycb-encre);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

/*--------------------------------------------------------------
# Page de téléchargement de l'application
--------------------------------------------------------------*/
.application .container {
  max-width: 900px;
}

.application__carte {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  background: var(--ycb-blanc);
  border: 1px solid var(--ycb-bord);
  border-radius: var(--ycb-rayon);
  box-shadow: var(--ycb-ombre);
}

.application__principal {
  flex: 1;
  min-width: 0;
}

.application__logo {
  height: 64px;
  margin-bottom: 1rem;
}

.application__principal h2 {
  font-size: 1.6rem;
}

.application__bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  padding: 0.75rem 1.75rem;
  font-size: 1.05rem;
}

.application__details {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--ycb-texte-doux);
}

.application__qr {
  flex-shrink: 0;
  width: 200px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ycb-texte-doux);
}

.application__qr p {
  margin: 0.5rem 0 0;
}

.application__etapes {
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--ycb-fond);
  border-radius: var(--ycb-rayon);
}

.application__etapes h3 {
  font-size: 1.15rem;
}

.application__etapes ol {
  padding-left: 1.2rem;
  line-height: 1.7;
}

/* Sur téléphone, le QR code n'a pas d'utilité : on télécharge directement. */
@media (max-width: 767.98px) {
  .application__carte,
  .application__etapes {
    padding: 1.25rem;
  }

  .application__qr {
    display: none;
  }

  .application__bouton {
    width: 100%;
    justify-content: center;
  }
}
