/* Projets FranceCoag : liste et fiche.
   À ajouter dans le CSS du thème ou dans Apparence > Personnaliser > CSS additionnel.
   Ajuster --fcg-bleu sur le bleu exact de la charte. */
.projets, .fiche-projet {
  --fcg-bleu: #4a7bff; --fcg-bleu-fonce: #23409a; --fcg-bleu-pale: #eef3ff;
  --fcg-texte: #1d2433; --fcg-gris: #5b6475; --fcg-trait: #dfe4ee; --fcg-fond: #f7f9fd;
}

/* ----- Colonne centrée commune (liste + fiche) ----- */
.wrapper__grid.projets, .fiche-projet { max-width: 60rem; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
.projets .projets__ariane, .fiche-projet .projets__ariane { margin: 0 0 1.5rem; padding: 0; }
.projets > h1.like-h2 { margin-left: 0; padding-left: 0; }

/* ----- Liste ----- */
.projets__filtres { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1.25rem; padding: 0; }
.projets__filtres li { margin: 0; padding: 0; }
.projets__filtres li::before { content: none; }
.projets__filtre { font: inherit; font-size: .85rem; font-style: normal; line-height: 1.4; padding: .35rem .8rem; border: 1px solid var(--fcg-trait); border-radius: 2rem; background: #fff; color: var(--fcg-texte); cursor: pointer; }
.projets__filtre:hover { border-color: var(--fcg-bleu); }
.projets__filtre[aria-pressed="true"] { background: var(--fcg-bleu); border-color: var(--fcg-bleu); color: #fff; }
.projets__filtre:focus-visible { outline: 2px solid var(--fcg-bleu); outline-offset: 2px; }

.projets__compte { color: var(--fcg-gris); margin: 0 0 1rem; }
.projets__liste { list-style: none; margin: 0 0 3rem; padding: 0; border-top: 1px solid var(--fcg-trait); }
.projet { border-bottom: 1px solid var(--fcg-trait); }
.projet[hidden] { display: none; }
.projet__lien { display: block; padding: 1.25rem 1rem; color: var(--fcg-texte); text-decoration: none; border-left: 3px solid transparent; }
.projet__lien:hover { background: var(--fcg-fond); border-left-color: var(--fcg-bleu); }
.projet__lien:focus-visible { outline: 2px solid var(--fcg-bleu); outline-offset: 2px; }
.projet__entete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.projet__titre { font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--fcg-texte); }
.projet__lien:hover .projet__titre { color: var(--fcg-bleu); }
.projet__resume { margin: .4rem 0 .75rem; line-height: 1.55; max-width: 70ch; }
.projet__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .8rem; }
.projets .projet__meta p { margin: 0; font-size: .85rem; line-height: 1.4; }
.projet__porteur { color: var(--fcg-gris); }

/* Étiquettes et statut (partagés liste + fiche) */
.projet__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.projet__tags li { margin: 0; background: var(--fcg-bleu-pale); color: var(--fcg-bleu-fonce); padding: .15rem .55rem; border-radius: 3px; font-size: .8rem; line-height: 1.4; }
.projet__tags li::before { content: none; }
.projets .projet__statut, .fiche-projet .projet__statut { display: inline-flex; align-items: center; margin: 0; font-size: .8rem; font-style: normal; line-height: 1.4; color: var(--fcg-gris); white-space: nowrap; }
.projet__statut::before { content: ""; flex: none; width: .5rem; height: .5rem; margin-right: .4rem; border-radius: 50%; background: #9aa3b5; }
.projet__statut--inclusions_en_cours::before, .projet__statut--analyses_en_cours::before, .projet__statut--plan_analyse::before, .projet__statut--enquete_annuelle::before { background: var(--fcg-bleu); }
.projet__statut--resultats_rendus::before, .projet__statut--publication_en_cours::before, .projet__statut--resultats_publies::before { background: #2e9e6b; }
.projet__statut--en_attente_inclusions::before { background: #d99a1e; }

/* ----- Fiche ----- */
.fiche-projet { margin-bottom: 3rem; color: var(--fcg-texte); font-family: inherit; }
.fiche-projet__entete { padding-bottom: 1.5rem; border-bottom: 1px solid var(--fcg-trait); margin-bottom: 1.5rem; }
.fiche-projet__etat { font-size: .85rem; color: var(--fcg-bleu); text-decoration: none; }
.fiche-projet__titre { font-size: 2rem; margin: .25rem 0 .5rem; }
.fiche-projet__chapo { font-size: 1.15rem; line-height: 1.5; margin: 0 0 1rem; max-width: 65ch; }
.fiche-projet__badges { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.fiche-projet__badges > * { margin: 0; }
.fiche-projet__precision { color: var(--fcg-gris); font-size: .9rem; margin: .5rem 0 0; }
.fiche-projet__bloc { margin: 0 0 2rem; }
.fiche-projet__bloc h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.fiche-projet__bloc p { line-height: 1.6; max-width: 70ch; text-align: left; }
.fiche-projet__notes { background: var(--fcg-bleu-pale); padding: 1.25rem 1.5rem; border-radius: 4px; }
.fiche-projet__notes ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.fiche-projet__notes li { margin: .3rem 0; }
.fiche-projet__fichier { font-size: .75rem; color: var(--fcg-gris); margin-left: .35rem; }
.fiche-projet__infos { margin: 0; }
.fiche-projet__ligne { display: grid; grid-template-columns: minmax(12rem, 17rem) 1fr; gap: 1.5rem; padding: .55rem 0; border-bottom: 1px solid var(--fcg-trait); }
.fiche-projet__ligne:last-child { border-bottom: 0; }
.fiche-projet .fiche-projet__ligne p { margin: 0; text-align: left; line-height: 1.5; }
.fiche-projet .fiche-projet__libelle { color: var(--fcg-gris); }

@media (max-width: 600px) {
  .projet__lien { padding: 1rem .5rem; }
  .projets .projet__statut, .fiche-projet .projet__statut { white-space: normal; }
  .fiche-projet__titre { font-size: 1.6rem; }
  .fiche-projet__ligne { grid-template-columns: 1fr; gap: .1rem; }
}

/* ----- Centres partenaires ----- */
.centres__intro { margin-bottom: 1.25rem; }
.centres__outils { margin-bottom: 1.5rem; }
.centres .centres__recherche { margin: 0 0 1rem; max-width: 32rem; }
.centres__recherche label { display: block; margin-bottom: .35rem; color: var(--fcg-gris); font-size: .9rem; }
.centres__recherche input { width: 100%; box-sizing: border-box; font: inherit; padding: .6rem .8rem; border: 1px solid var(--fcg-trait); border-radius: 4px; background: #fff; color: var(--fcg-texte); }
.centres__recherche input:focus { outline: 2px solid var(--fcg-bleu); outline-offset: 1px; border-color: var(--fcg-bleu); }

.centres__ville { margin: 0 0 2rem; }
.centres__ville[hidden], .centre[hidden], .centres__aucun[hidden] { display: none; }
.centres .centres__ville-titre { font-size: 1.3rem; margin: 0 0 .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--fcg-bleu); }
.centres__liste { list-style: none; margin: 0; padding: 0; }
.centres__liste > .centre { margin: 0; padding: 1.1rem 0; border-bottom: 1px solid var(--fcg-trait); }
.centres__liste > .centre::before { content: none; }
.centre__entete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; }
.centres .centre__nom { font-size: 1.1rem; margin: 0; }
.centres .centre__type { margin: 0; font-size: .8rem; line-height: 1.4; padding: .15rem .55rem; border-radius: 3px; background: var(--fcg-bleu-pale); color: var(--fcg-bleu-fonce); white-space: nowrap; }
.centres .centre__type--cth { background: #eef7f2; color: #1f6b49; }
.centres .centre__labels { margin: .35rem 0 0; font-size: .9rem; color: var(--fcg-bleu-fonce); }
.centre__adresse { margin: .5rem 0 0; color: var(--fcg-texte); }
.centres .centre__adresse p { margin: 0; line-height: 1.5; text-align: left; }
.centres .centre__medecin { margin: .4rem 0 0; color: var(--fcg-gris); font-size: .95rem; }

.centre__actions { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; padding: 0; }
.centre__actions li { margin: 0; }
.centre__actions li::before { content: none; }
.centre__bouton { display: inline-block; font-size: .9rem; padding: .45rem .9rem; border: 1px solid var(--fcg-bleu); border-radius: 2rem; color: var(--fcg-bleu); text-decoration: none; line-height: 1.3; }
.centre__bouton:hover { background: var(--fcg-bleu-pale); }
.centre__bouton--principal { background: var(--fcg-bleu); color: #fff; }
.centre__bouton--principal:hover { background: var(--fcg-bleu-fonce); border-color: var(--fcg-bleu-fonce); }
.centre__bouton:focus-visible { outline: 2px solid var(--fcg-bleu); outline-offset: 2px; }

.centre__effectifs { margin-top: .75rem; font-size: .9rem; }
.centre__effectifs summary { cursor: pointer; color: var(--fcg-gris); }
.centre__effectifs ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .35rem 1.25rem; max-width: 40rem; }
.centre__effectifs li { margin: 0; display: flex; justify-content: space-between; border-bottom: 1px dotted var(--fcg-trait); padding: .15rem 0; }
.centre__effectifs li::before { content: none; }

@media (max-width: 600px) {
  .centre__actions { flex-direction: column; align-items: stretch; }
  .centre__bouton { display: block; text-align: center; padding: .65rem 1rem; }
  .centres .centre__type { white-space: normal; }
}
.projets .projets__langue { margin: -.25rem 0 1rem; padding: .6rem .9rem; background: var(--fcg-bleu-pale); border-radius: 4px; font-size: .95rem; color: var(--fcg-bleu-fonce); }
