@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/CormorantGaramond-500-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/CormorantGaramond-500-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/CormorantGaramond-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/CormorantGaramond-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/CormorantGaramond-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/CormorantGaramond-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===========================================================================
   Uzès Culture — système de design
   Pierre calcaire, ocre du Duché, garrigue. Rien de commun avec les autres
   sites du portefeuille : typo à fort contraste, grilles d'annuaire, filets.
   =========================================================================== */

:root {
  --uz-pierre:      #faf7f0;  /* fond, calcaire clair */
  --uz-pierre-2:    #f2ece0;  /* fond alterné */
  --uz-encre:       #2a2622;  /* texte */
  --uz-encre-doux:  #6b6255;  /* texte secondaire */
  --uz-ocre:        #b07a3c;  /* accent unique : liens, filets, pastilles */
  --uz-ocre-fonce:  #7a5c34;  /* boutons, survol */
  --uz-ocre-pale:   #f0e4d2;  /* fond de pastille */
  --uz-trait:       #ddd3c2;  /* bordures */
  /* Palette volontairement monochrome chaude : pierre, ocre, encre. Toute
     couleur froide (un vert, un bleu) casse l'unite - teste et abandonne. */
  --uz-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --uz-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --uz-large: 1180px;
  --uz-texte: 720px;
}

body {
  background: var(--uz-pierre);
  color: var(--uz-encre);
  font-family: var(--uz-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .uz-serif {
  font-family: var(--uz-serif);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.15;
  color: var(--uz-encre);
}

a { color: var(--uz-ocre-fonce); text-underline-offset: 0.18em; }
a:hover { color: var(--uz-ocre); }

/* --- bandeau de tête ------------------------------------------------------ */
.uz-bar {
  background: var(--uz-encre);
  color: #e8dcc6;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.uz-bar-in {
  max-width: var(--uz-large);
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: baseline;
}
.uz-bar-in span:last-child { margin-left: auto; color: var(--uz-ocre); }

/* --- en-tête -------------------------------------------------------------- */
.uz-mast {
  background: var(--uz-pierre);
  border-bottom: 1px solid var(--uz-trait);
  padding: 2.4rem 1.5rem 1.6rem;
  text-align: center;
}
.uz-mast-logo { display: inline-block; text-decoration: none; }
.uz-mast-logo:hover { opacity: 0.85; }
.uz-word {
  font-family: var(--uz-serif);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  margin: 0;
  color: var(--uz-encre);
}
.uz-sub {
  display: block;
  font-family: var(--uz-sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--uz-encre-doux);
  margin-top: 0.7rem;
}
.uz-rule {
  display: block;
  width: 78px;
  height: 1px;
  margin: 1rem auto 0;
  background: var(--uz-ocre);
  position: relative;
}
.uz-rule::after {
  content: '';
  position: absolute;
  left: 50%; top: -2.5px;
  width: 6px; height: 6px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--uz-ocre);
}

/* --- navigation ----------------------------------------------------------- */
.uz-nav {
  border-bottom: 1px solid var(--uz-trait);
  background: var(--uz-pierre);
}
.uz-nav ul {
  max-width: var(--uz-large);
  margin: 0 auto;
  padding: 0 1.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2rem;
}
.uz-nav a {
  display: block;
  padding: 0.9rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--uz-encre);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.uz-nav a:hover, .uz-nav .current-menu-item > a {
  color: var(--uz-ocre-fonce);
  border-bottom-color: var(--uz-ocre);
}

/* --- grille d'annuaire ---------------------------------------------------- */
.uz-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
  margin: 2.5rem 0;
}
.uz-fiche {
  background: #fff;
  border: 1px solid var(--uz-trait);
  border-radius: 3px;
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.uz-fiche:hover {
  box-shadow: 0 6px 22px rgba(42, 38, 34, 0.09);
  transform: translateY(-2px);
}
.uz-fiche h3 {
  font-size: 1.42rem;
  margin: 0 0 0.5rem;
}
.uz-fiche h3 a { text-decoration: none; color: var(--uz-encre); }
.uz-fiche h3 a:hover { color: var(--uz-ocre-fonce); }
.uz-fiche p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--uz-encre-doux);
  margin: 0 0 1rem;
}
.uz-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.uz-tag {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.24rem 0.6rem;
  border-radius: 2px;
  background: var(--uz-ocre-pale);
  color: var(--uz-ocre-fonce);
  border: 1px solid transparent;
  text-decoration: none;
}
/* La commune se distingue par le traitement, pas par une seconde teinte :
   filet sur fond nu contre pastille pleine. */
.uz-tag--lieu {
  background: transparent;
  border-color: var(--uz-trait);
  color: var(--uz-encre-doux);
}
.uz-tag:hover { border-color: var(--uz-ocre); color: var(--uz-ocre-fonce); }

/* --- fiche détaillée ------------------------------------------------------ */
.uz-fiche-meta {
  border-top: 1px solid var(--uz-trait);
  border-bottom: 1px solid var(--uz-trait);
  padding: 1.1rem 0;
  margin: 1.8rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem 1.6rem;
  font-size: 0.9rem;
}
.uz-fiche-meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--uz-encre-doux);
  margin-bottom: 0.2rem;
}
.uz-fiche-meta dd { margin: 0; font-weight: 500; }

/* --- article -------------------------------------------------------------- */
.uz-article { max-width: var(--uz-texte); margin: 0 auto; padding: 0 1.5rem; }
.uz-article h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 0 0 0.8rem; }
.uz-article h2 { font-size: 1.9rem; margin: 2.6rem 0 0.7rem; }
.uz-article h3 { font-size: 1.45rem; margin: 2rem 0 0.5rem; }
.uz-article p { margin: 0 0 1.25rem; }
.uz-chapo {
  font-family: var(--uz-serif);
  font-size: 1.42rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--uz-encre-doux);
  margin-bottom: 1.8rem;
}
.uz-dateline {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--uz-encre-doux);
  margin-bottom: 1.2rem;
}
blockquote {
  border-left: 3px solid var(--uz-ocre);
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  font-family: var(--uz-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--uz-encre-doux);
}

/* --- encart mise au point ------------------------------------------------- */
.uz-encart {
  background: var(--uz-pierre-2);
  border-left: 4px solid var(--uz-ocre);
  padding: 1.5rem 1.6rem;
  margin: 2rem 0;
  font-size: 0.96rem;
}
.uz-encart h2, .uz-encart h3 { margin-top: 0; font-size: 1.2rem; }
.uz-encart p:last-child { margin-bottom: 0; }

/* --- pied de page --------------------------------------------------------- */
.uz-foot {
  background: var(--uz-encre);
  color: #cfc6b6;
  margin-top: 4rem;
  padding: 3rem 1.5rem 2rem;
  font-size: 0.9rem;
}
.uz-foot-in {
  max-width: var(--uz-large);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}
.uz-foot h4 {
  color: #fff;
  font-family: var(--uz-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.uz-foot a { color: #e8dcc6; text-decoration: none; }
.uz-foot a:hover { color: var(--uz-ocre); text-decoration: underline; }
.uz-foot ul { list-style: none; margin: 0; padding: 0; }
.uz-foot li { margin-bottom: 0.45rem; }
.uz-foot-word {
  font-family: var(--uz-serif);
  font-size: 1.9rem;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.uz-foot-base {
  max-width: var(--uz-large);
  margin: 2.5rem auto 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 0.78rem;
  color: #9a9186;
}
.uz-foot-base span:last-child { margin-left: auto; }

@media (max-width: 640px) {
  .uz-bar-in span:last-child, .uz-foot-base span:last-child { margin-left: 0; }
  .uz-nav ul { gap: 0 1.1rem; }
}

/* ---------------------------------------------------------------------------
   Kadence : on rend notre propre en-tete, le sien ne doit pas s'afficher.
   Ceinture CSS en plus du remove_action, au cas ou un cache serve l'ancien HTML.
   --------------------------------------------------------------------------- */
.site-header, #masthead { display: none !important; }
.entry-hero.page-hero-section { background: var(--uz-pierre); border-bottom: 1px solid var(--uz-trait); }
.entry-hero .entry-title { font-family: var(--uz-serif); }

/* ---------------------------------------------------------------------------
   Visuels : plaques de discipline et photographies
   --------------------------------------------------------------------------- */

.uz-fiche { padding: 0; overflow: hidden; }
.uz-fiche-plaque {
  display: block;
  background: var(--uz-pierre-2);
  border-bottom: 1px solid var(--uz-trait);
  line-height: 0;
}
.uz-fiche-plaque img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  object-position: center 46%;
  transition: transform 0.35s ease;
}
.uz-fiche:hover .uz-fiche-plaque img { transform: scale(1.04); }
.uz-fiche h3 { margin: 1.15rem 1.4rem 0.5rem; }
.uz-fiche p  { margin: 0 1.4rem 1rem; }
.uz-tags     { margin: auto 1.4rem 1.4rem; }

.uz-fiche-bandeau {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--uz-pierre-2);
  border: 1px solid var(--uz-trait);
  border-radius: 3px;
  padding: 0.9rem 1.2rem;
  margin: 0 0 1.8rem;
}
.uz-fiche-bandeau img { width: 54px; height: 48px; flex: none; }
.uz-fiche-bandeau span {
  font-family: var(--uz-serif);
  font-size: 1.28rem;
  color: var(--uz-ocre-fonce);
}

.uz-credit {
  font-size: 0.76rem;
  color: var(--uz-encre-doux);
  margin: 0.5rem 0 0;
}
.uz-credit a { color: var(--uz-encre-doux); }

.uz-archive-photo { margin: 0 0 2rem; }
.uz-archive-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 3px;
}

/* --- une du magazine ------------------------------------------------------ */
.uz-une {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.uz-une img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uz-une::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,17,14,.18) 0%, rgba(20,17,14,.45) 52%, rgba(20,17,14,.86) 100%);
}
.uz-une-txt {
  position: relative;
  z-index: 2;
  max-width: var(--uz-large);
  margin: 0 auto;
  padding: 0 1.5rem 3.6rem;
  width: 100%;
  color: #fff;
}
.uz-une-sur {
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e8d9b8;
  margin: 0 0 0.9rem;
}
.uz-une h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  color: #fff;
  margin: 0 0 1rem;
  max-width: 17ch;
}
.uz-une p.uz-une-chapo {
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  color: #f2ede3;
  max-width: 62ch;
  margin: 0;
  line-height: 1.55;
}
.uz-une .uz-credit { color: #b9ae9c; margin-top: 1.4rem; }
.uz-une .uz-credit a { color: #b9ae9c; }

/* --- bande de chiffres ---------------------------------------------------- */
.uz-chiffres {
  background: var(--uz-encre);
  color: #e8dcc6;
  padding: 2.2rem 1.5rem;
}
.uz-chiffres-in {
  max-width: var(--uz-large);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.6rem;
  text-align: center;
}
.uz-chiffres b {
  display: block;
  font-family: var(--uz-serif);
  font-size: 2.7rem;
  line-height: 1;
  color: var(--uz-ocre);
  font-weight: 600;
}
.uz-chiffres span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.45rem;
  color: #b9ae9c;
}

/* --- blocs illustrés ------------------------------------------------------ */
.uz-section { max-width: var(--uz-large); margin: 0 auto; padding: 3.6rem 1.5rem 0; }
.uz-section > h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 0.4rem;
}
.uz-section > p.uz-intro {
  color: var(--uz-encre-doux);
  max-width: 64ch;
  margin: 0 0 1.8rem;
  font-size: 1.05rem;
}
.uz-portes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.uz-porte {
  position: relative;
  display: block;
  min-height: 260px;
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}
.uz-porte img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.uz-porte::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,17,14,.08) 30%, rgba(20,17,14,.82) 100%);
}
.uz-porte:hover img { transform: scale(1.05); }
.uz-porte-txt {
  position: relative;
  z-index: 2;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 260px;
}
.uz-porte-txt strong {
  font-family: var(--uz-serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.15;
}
.uz-porte-txt em {
  font-style: normal;
  font-size: 0.86rem;
  color: #dcd2c2;
  margin-top: 0.3rem;
}
