/* Styles des blocs ajoutes au cahier des charges du 13 aout 2026.
   Charge APRES main.css : reprend la meme palette et les memes arrondis. */

:root {
  --ue-vert: #485C11;
  --ue-vert-clair: #DFECC6;
  --ue-encre: #1B1B1B;
  --ue-gris: #626262;
  --ue-creme: #FCFFF7;
  --ue-trait: #E4EBD6;
}

/* main.css impose min-height/min-width 44px a TOUS les <a> : ca casse les liens
   places dans une phrase ou dans une liste. On le neutralise la ou il n'y a pas
   de cible tactile a respecter. */
.ue-inline-link { min-height: 0; min-width: 0; display: inline; }

/* ---------- Section « Nos missions » (page d'accueil) ---------- */
.ue-missions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}
.ue-mission {
  display: flex;
  flex-direction: column;
  background: var(--ue-creme);
  border: 1px solid var(--ue-trait);
  border-top: 4px solid var(--ue-vert);
  border-radius: 16px;
  padding: 28px 26px 24px;
}
.ue-mission h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--ue-encre);
}
.ue-mission__lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ue-gris);
  margin: 0 0 14px;
}
.ue-mission ul { list-style: none; margin: 0; padding: 0; }
.ue-mission li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 11px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ue-encre);
}
.ue-mission li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ue-vert);
}
.ue-mission__link {
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ue-vert);
  border-bottom: 2px solid transparent;
  transition: border-color .25s ease;
}
.ue-mission__link:hover { border-bottom-color: var(--ue-vert); }
.ue-mission__link::after { content: " \2192"; }

/* ---------- Page « Nos references » ---------- */
.ue-refs-cat + .ue-refs-cat { margin-top: 72px; }
.ue-refs-cat > h2 {
  font-size: 28px;
  line-height: 1.28;
  font-weight: 600;
  margin: 0 0 8px;
}
.ue-refs-cat__rule {
  width: 64px;
  height: 4px;
  background: var(--ue-vert);
  border-radius: 2px;
  margin-bottom: 32px;
}
.ue-refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.ue-ref {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border: 1px solid var(--ue-trait);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  min-height: 0;
  min-width: 0;
  transition: box-shadow .25s ease, transform .25s ease;
}
.ue-ref:hover, .ue-ref:focus-visible {
  box-shadow: 2px 3px 18px 0 rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.ue-ref__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--ue-vert-clair);
}
.ue-ref__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ue-ref__lieu {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ue-vert);
  margin: 0 0 8px;
}
.ue-ref__titre {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 14px;
}
.ue-ref__meta { display: block; margin: 0 0 18px; }
.ue-ref__meta > span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ue-gris);
  margin-bottom: 4px;
}
.ue-ref__cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ue-vert);
}
.ue-ref__cta::after { content: " \2192"; }

/* ---------- Visionneuse des fiches A4 ---------- */
.ue-lb {
  position: fixed;
  inset: 0;
  /* .site-header est en z-index 1000 : il faut passer au-dessus */
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  /* les fiches sont des A4 : on les affiche en pleine largeur et on defile */
  overflow: auto;
  overscroll-behavior: contain;
  padding: 84px 24px 64px;
  background: rgba(16, 22, 10, .9);
}
.ue-lb.is-open { display: flex; }
.ue-lb__img {
  width: min(94vw, 940px);
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.ue-lb__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ue-encre);
  cursor: pointer;
}
.ue-lb__close:hover { background: var(--ue-vert-clair); }
.ue-lb__legende {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  padding: 12px 84px;
  margin: 0;
  /* barre opaque : sinon la barre de navigation blanche transparait derriere */
  background: rgba(12, 18, 8, .97);
}
@media (max-width: 640px) {
  .ue-lb { padding: 78px 12px 40px; }
  .ue-lb__img { width: 100%; }
  .ue-lb__legende { font-size: 13px; padding: 10px 64px; }
  .ue-lb__close { top: 10px; right: 10px; width: 42px; height: 42px; }
}

/* ---------- Fil d'Ariane des pages interieures ----------
   ATTENTION : main.css style le selecteur `nav` NU (barre fixe blanche).
   Le fil d'Ariane etant lui aussi un <nav>, il faut tout annuler ici,
   sinon il se colle en haut de l'ecran sous la barre de navigation. */
.ue-ariane {
  position: static;
  top: auto;
  background: none;
  box-shadow: none;
  max-width: none;
  z-index: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  margin: 0 0 26px;
  font-size: 14px;
  color: var(--ue-gris);
}
.ue-ariane a { color: var(--ue-gris); min-height: 0; min-width: 0; display: inline; }
.ue-ariane a:hover { color: var(--ue-vert); }
.ue-ariane span[aria-current] { color: var(--ue-encre); }

/* ---------- Page interieure : entete ---------- */
.ue-page-head { max-width: 780px; }
.ue-page-head h1 {
  font-size: 34px;
  line-height: 1.24;
  font-weight: 600;
  margin: 0 0 16px;
}
.ue-page-head p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ue-encre);
  margin: 0;
}

@media (min-width: 768px) {
  .ue-page-head h1 { font-size: 48px; }
  .ue-refs-cat > h2 { font-size: 34px; }
  .ue-mission h3 { font-size: 22px; }
}

/* Le lien « Notre plaquette » sous le texte de la demarche */
.ue-appr-texte p {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ue-encre);
  margin: 0 0 16px;
}
@media (min-width: 768px) {
  .ue-appr-texte p { font-size: 18px; }
}

/* main.css n'anime que les 3 premiers liens du menu mobile (:nth-child(1..3)).
   Le 4e onglet ajoute au cahier des charges restait donc invisible a l'ouverture. */
.mobile-menu-overlay.active .mobile-menu-link:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* Pages courtes : sans ca, le bandeau noir du pied de page flotte au milieu
   de l'ecran avec du blanc en dessous. */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }
