/*
  ============================================================
  THÈME LOCAL — CITÉ ÉDUCATIVE DE BRUAY-LA-BUISSIÈRE
  ============================================================

  Ce fichier ne contient que les choix propres au territoire.

  Le layout, les composants, l'annuaire, les projets, les documents,
  les contacts et le responsive sont gérés par :
  ../css/global.css

  Pour créer une nouvelle Cité :
  1. Dupliquer ce fichier dans le dossier de la nouvelle ville.
  2. Modifier uniquement les variables ci-dessous.
  3. Ajouter ensuite, si nécessaire, de rares exceptions locales.

  Exemple : une Cité souhaitant une dominante orange peut changer
  --city-primary, --city-secondary et le dégradé de contact ici,
  sans modifier le Hub ni les autres territoires.
*/


/* ============================================================
   PALETTE LOCALE
   ============================================================ */

:root{
  --city-primary:#4b2587;
  --city-primary-rgb:75,37,135;
  --city-secondary:#b51f6f;
  --city-accent:#1ba8b8;
  --city-highlight:#e34335;

  --city-contact-start:#24165f;
  --city-contact-mid:#6c2a9a;
  --city-contact-end:#b51f6f;
}


/* ============================================================
   EXCEPTIONS PROPRES À BRUAY-LA-BUISSIÈRE
   Laisser cette zone vide tant qu'aucune exception n'est nécessaire.
   ============================================================ */

/* Aucune exception spécifique pour le moment. */

/* ============================================================
   NAVBAR MOBILE — IDENTITÉ LOCALE
   Le menu lui-même est géré par le global.css.
   Ici, on ajuste seulement l'identité de Bruay pour qu'elle
   reste lisible à côté du bouton burger.
   ============================================================ */

@media(max-width:620px){
  .city-brand-name{max-width:175px;font-size:.72rem;line-height:1.15;}
  .city-navbar-logo{height:24px;max-width:58px;}
}

/* ============================================================
   DOCUMENT INDISPONIBLE
   État visuel utilisé pour le Guide pratique à venir.
   ============================================================ */

.doc-link-disabled{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  border-radius:12px;
  background:#f5f1f8;
  color:var(--muted);
  font-weight:900;
  cursor:default;
  opacity:.65;
}

/* Newsletters : même famille de cartes que les projets. */
.newsletters-grid{align-items:stretch;}
.newsletter-card{display:flex;flex-direction:column;min-width:0;}
.newsletter-card p{flex:1;}
.newsletter-card footer{gap:12px;flex-wrap:wrap;}
.newsletter-card footer a{padding:4px 0;}
.newsletter-card a:focus-visible{outline:3px solid var(--city-accent);outline-offset:5px;border-radius:3px;}

/* Réseau compact et catégories déroulantes. */
.network-tools{margin-bottom:18px;}
.network-tools label{display:block;font-size:.85rem;font-weight:800;margin-bottom:8px;}
.network-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.network-controls select{min-width:280px;max-width:100%;}
.network-tools p{font-size:.8rem;color:var(--muted);margin:10px 0 0;}
.network-controls button:disabled{opacity:.45;cursor:default;}
.network-groups{display:grid;gap:10px;}
.network-group{border:1px solid var(--line);border-left:5px solid var(--network-color);border-radius:14px;background:#fff;overflow:hidden;}
.network-group[hidden]{display:none;}
.network-group h3{margin:0;font-size:1rem;}
.network-toggle{width:100%;border:0;background:transparent;color:var(--ink);padding:17px 20px;display:flex;align-items:center;gap:14px;text-align:left;cursor:pointer;font-weight:800;}
.network-toggle>span:first-child{flex:1;}
.network-toggle:hover{background:#faf7fc;}
.network-toggle:focus-visible{outline:3px solid var(--city-accent);outline-offset:-4px;}
.network-count{font-size:.75rem;color:var(--muted);font-weight:600;white-space:nowrap;}
.network-chevron{font-size:1.3rem;transition:transform .28s ease;}
.is-open .network-chevron{transform:rotate(180deg);}
.network-collapse{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .3s ease,visibility .3s;}
.is-open .network-collapse{grid-template-rows:1fr;visibility:visible;}
.network-inner{min-height:0;overflow:hidden;}
.network-actors{margin:0 20px;padding:0 0 18px;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;}
.network-actors li{font-size:.88rem;line-height:1.5;padding:9px 0;border-top:1px solid var(--line);overflow-wrap:anywhere;}
@media(max-width:900px){.network-actors{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){.network-actors{grid-template-columns:1fr;}.network-toggle{padding:15px 14px;gap:8px;}.network-controls select{min-width:0;width:100%;}.network-count{font-size:.7rem;}}
@media(prefers-reduced-motion:reduce){.network-collapse,.network-chevron{transition:none;}}

#partenaires{scroll-margin-top:110px;}

/* Téléchargement du livret dans le texte ; bouton principal aligné aux autres cartes. */
.doc p a.guide-text-download{display:inline;margin:0;padding:0;border:0;border-radius:0;background:none;color:var(--city-primary);font-size:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;}
.doc p a.guide-text-download:hover{text-decoration-thickness:2px;}
.doc p a.guide-text-download:focus-visible{outline:2px solid var(--city-accent);outline-offset:3px;}