/*
Theme Name: Montpellier Inside
Theme URI: https://www.montpellier-inside.fr
Author: Montpellier Inside
Description: Thème sur mesure « Vous êtes ici » — l'Écusson et son point. Palette encre Comédie / papier calcaire / ocre Peyrou / terracotta, typographies Archivo Black + Instrument Serif auto-hébergées.
Version: 1.0.3
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: montpellier-inside
*/

/* ========== Base ========== */

::selection { background: rgba(226, 156, 53, 0.45); }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Le point — la particule élémentaire de la marque */
.mi-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E29C35;
  flex-shrink: 0;
}

/* ========== En-tête ========== */

.mi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: #F6EFE3;
  border-bottom: 2.5px solid #1B3A66;
}

.mi-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mi-logo svg { display: block; }

.mi-wordmark { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }

.mi-wordmark .mi-w1 {
  font-family: 'Archivo Black', 'Arial Black', 'Archivo', sans-serif;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: #1B3A66;
}

.mi-wordmark .mi-w2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 21px;
  color: #C05A33;
}

.mi-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

.mi-nav::-webkit-scrollbar { display: none; }

.mi-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1B3A66;
  text-decoration: none;
  white-space: nowrap;
}

.mi-nav a:hover { color: #C05A33; }

.mi-tools { display: flex; align-items: center; gap: 16px; }

.mi-search { display: inline-flex; align-items: center; }
.mi-search svg { display: block; }
.mi-search:hover svg circle,
.mi-search:hover svg path { stroke: #C05A33; }

.mi-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #1B3A66;
  color: #F6EFE3;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.mi-cta:hover { background: #C05A33; color: #F6EFE3; }

@media (max-width: 920px) {
  .mi-nav { order: 3; width: 100%; }
  .mi-cta { padding: 9px 14px; }
}

/* ========== Kicker, chips, méta ========== */

.mi-kickrow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

.mi-kicker { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 21px; }
.mi-kicker a { color: #C05A33; text-decoration: none; }
.mi-kicker a:hover { color: #9E4626; }
.mi-kicker .wp-block-post-terms__separator { display: none; }

.mi-chips { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mi-chips .wp-block-post-terms__separator { display: none; }

.mi-chips a,
.mi-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1.5px solid rgba(27, 58, 102, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1B3A66;
  text-decoration: none;
  font-style: normal;
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

.mi-chips a::before,
.mi-chip::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E29C35;
  flex-shrink: 0;
}

.mi-chips a:hover,
a.mi-chip:hover { border-color: #C05A33; color: #C05A33; }

.mi-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(27, 58, 102, 0.7);
}

.mi-meta > * + *::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(27, 58, 102, 0.4);
  margin-right: 14px;
  vertical-align: 2px;
}

.mi-author::before { content: "Par "; }

/* ========== La une (accueil) ========== */

.mi-hero { padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 44px); }

.mi-hero .wp-block-post-template,
.mi-hero .wp-block-post { margin: 0; padding: 0; list-style: none; }

.mi-hero-inner { display: flex; flex-direction: column; gap: 20px; }

.mi-hero-title {
  font-family: 'Archivo Black', 'Arial Black', 'Archivo', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.05;
  color: #1B3A66;
  max-width: 900px;
  margin: 0;
  padding-right: 20px;
}

.mi-hero-title a { display: inline; color: inherit; text-decoration: none; }
.mi-hero-title a:hover { color: #12294A; }

.mi-hero-title::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #E29C35;
  margin-left: 8px;
  margin-right: -19px;
}

.mi-standfirst {
  font-size: 18px;
  line-height: 1.6;
  color: #22334D;
  max-width: 640px;
  margin-left: 0;
  margin-right: auto;
}

.mi-standfirst p { margin: 0; }

.mi-hero-img { margin-top: 10px; max-width: 900px; }
.mi-hero-img img { width: 100%; height: auto; display: block; }

/* ========== Cartes d'articles ========== */

.mi-cards { padding: 0 clamp(20px, 4vw, 56px) clamp(36px, 5vw, 56px); }

.mi-cards .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mi-cards .wp-block-post {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 3px solid #1B3A66;
  padding-top: 18px;
  margin: 0;
}

.mi-card-title {
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  color: #1B3A66;
  margin: 0;
}

.mi-card-title a { color: inherit; text-decoration: none; }
.mi-card-title a:hover { color: #C05A33; }

.mi-card-excerpt { font-size: 14.5px; line-height: 1.6; color: rgba(27, 58, 102, 0.75); }
.mi-card-excerpt p { margin: 0; }
.mi-card-excerpt .wp-block-post-excerpt__more-link { display: none; }

.mi-lire {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C05A33;
  text-decoration: none;
  margin-top: auto;
}

.mi-lire::after { content: " \2192"; }
.mi-lire:hover { color: #9E4626; }

/* La troisième carte s'inverse — l'encre prend le dessus */
.mi-cards .wp-block-post:nth-child(3n) {
  background: #1B3A66;
  border-top: none;
  padding: 18px 22px 22px;
}

.mi-cards .wp-block-post:nth-child(3n) .mi-card-title,
.mi-cards .wp-block-post:nth-child(3n) .mi-card-title a { color: #F6EFE3; }
.mi-cards .wp-block-post:nth-child(3n) .mi-card-title a:hover { color: #E29C35; }
.mi-cards .wp-block-post:nth-child(3n) .mi-card-excerpt { color: rgba(246, 239, 227, 0.75); }
.mi-cards .wp-block-post:nth-child(3n) .mi-chips a { border-color: rgba(246, 239, 227, 0.5); color: #F6EFE3; }
.mi-cards .wp-block-post:nth-child(3n) .mi-chips a:hover { border-color: #E29C35; color: #E29C35; }
.mi-cards .wp-block-post:nth-child(3n) .mi-lire { color: #E29C35; }
.mi-cards .wp-block-post:nth-child(3n) .mi-lire:hover { color: #F6EFE3; }

/* ========== Section quartiers ========== */

.mi-quartiers {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  border-top: 2px dashed rgba(27, 58, 102, 0.3);
  padding: clamp(32px, 4vw, 44px) clamp(20px, 4vw, 56px) clamp(40px, 5vw, 52px);
}

.mi-quartiers-mark { display: flex; align-items: center; justify-content: center; }

.mi-quartiers-body { display: flex; flex-direction: column; gap: 18px; }

.mi-dotend {
  font-family: 'Archivo Black', 'Arial Black', 'Archivo', sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.1;
  color: #1B3A66;
  margin: 0;
}

.mi-dotend { padding-right: 16px; }

.mi-dotend::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E29C35;
  margin-left: 6px;
  margin-right: -15px;
}

.mi-quartiers-intro { font-size: 15.5px; line-height: 1.6; color: rgba(27, 58, 102, 0.75); max-width: 560px; margin: 0; }

.mi-chiprow { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 780px) {
  .mi-quartiers { grid-template-columns: 1fr; }
  .mi-quartiers-mark svg { width: 110px; height: auto; }
}

/* ========== Article (single) ========== */

.mi-article { padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 72px); }

.mi-article-title {
  font-family: 'Archivo Black', 'Arial Black', 'Archivo', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  color: #1B3A66;
}

.mi-article .wp-block-post-featured-image { margin-top: 28px; }
.mi-article .wp-block-post-featured-image img { width: 100%; height: auto; }

.mi-article-rule { border: none; border-top: 2px dashed rgba(27, 58, 102, 0.3); margin: 28px 0 0; width: 100%; }

/* Contenu — les gestes dans le corps du texte */
.mi-content { font-size: 17px; line-height: 1.7; color: #22334D; }

.mi-content > * { margin-top: 0; margin-bottom: 22px; }

.mi-content h2 {
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  color: #1B3A66;
  border-top: 2px dashed rgba(27, 58, 102, 0.3);
  padding-top: 20px;
  margin-top: 40px;
}

.mi-content h3 { font-weight: 800; font-size: 20px; color: #1B3A66; margin-top: 32px; }

.mi-content a { color: #C05A33; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.mi-content a:hover { color: #9E4626; }

.mi-content ul { padding-left: 22px; }
.mi-content ul li { margin-bottom: 10px; }
.mi-content ul li::marker { color: #E29C35; }
.mi-content ol li::marker { color: #C05A33; font-weight: 700; }

.mi-content mark,
.mi-content .surligne {
  background: rgba(226, 156, 53, 0.35);
  color: inherit;
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.mi-content blockquote {
  position: relative;
  border: none;
  margin: 32px 0;
  padding: 0 0 0 26px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: #C05A33;
}

.mi-content blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E29C35;
}

.mi-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-style: normal;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(27, 58, 102, 0.7);
}

.mi-content figcaption { font-size: 12.5px; color: rgba(27, 58, 102, 0.65); margin-top: 8px; }

.mi-content .wp-block-separator {
  border: none;
  border-top: 2px dashed rgba(27, 58, 102, 0.3);
  width: 100%;
  max-width: none;
}

/* ========== Archives, recherche ========== */

.mi-archive { padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 64px); }

.mi-arch-title {
  font-family: 'Archivo Black', 'Arial Black', 'Archivo', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  color: #1B3A66;
  margin: 0;
}

.mi-arch-title { padding-right: 18px; }

.mi-arch-title::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E29C35;
  margin-left: 8px;
  margin-right: -17px;
}

.mi-arch-desc { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 19px; color: #C05A33; max-width: 640px; }
.mi-arch-desc p { margin: 0; }

.mi-archive .mi-cards { padding-left: 0; padding-right: 0; padding-bottom: 0; }

.mi-pagination { margin-top: 40px; font-weight: 700; font-size: 14.5px; }
.mi-pagination a { color: #1B3A66; text-decoration: none; }
.mi-pagination a:hover { color: #C05A33; }
.mi-pagination .wp-block-query-pagination-numbers .current { color: #C05A33; }

.wp-block-search__input {
  background: #F6EFE3;
  border: 1.5px solid #1B3A66;
  border-radius: 0;
  padding: 11px 14px;
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  color: #1B3A66;
}

.wp-block-search__button {
  background: #1B3A66;
  color: #F6EFE3;
  border: none;
  border-radius: 0;
  padding: 11px 20px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 12.5px;
  cursor: pointer;
}

.wp-block-search__button:hover { background: #C05A33; }

.mi-searchform { max-width: 480px; }

/* ========== 404 ========== */

.mi-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 56px);
}

.mi-404-title {
  font-family: 'Archivo Black', 'Arial Black', 'Archivo', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 46px);
  color: #1B3A66;
  margin: 0;
}

.mi-404-text { font-size: 17px; color: #22334D; max-width: 480px; }

/* ========== Pied de page ========== */

.mi-footer { background: #1B3A66; color: #F6EFE3; }

.mi-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding: clamp(32px, 4vw, 44px) clamp(20px, 4vw, 56px);
}

.mi-footer .mi-wordmark .mi-w1 { color: #F6EFE3; font-size: 17px; }
.mi-footer .mi-wordmark .mi-w2 { color: #E29C35; font-size: 18px; }

.mi-footer-tagline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(246, 239, 227, 0.65);
  margin-top: 2px;
}

.mi-footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }

.mi-footer-col { display: flex; flex-direction: column; gap: 9px; min-width: 130px; }

.mi-footer-col .mi-footer-h {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E29C35;
  margin-bottom: 4px;
}

.mi-footer-col a {
  font-size: 14px;
  color: rgba(246, 239, 227, 0.85);
  text-decoration: none;
}

.mi-footer-col a:hover { color: #E29C35; }

.mi-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #E29C35;
  color: #1B3A66;
  padding: 12px 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  align-self: flex-start;
}

.mi-footer-cta:hover { background: #F6EFE3; color: #1B3A66; }

.mi-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(246, 239, 227, 0.25);
  padding: 18px clamp(20px, 4vw, 56px);
  font-size: 12.5px;
  color: rgba(246, 239, 227, 0.6);
}

.mi-footer-bottom a { color: rgba(246, 239, 227, 0.8); text-decoration: none; }
.mi-footer-bottom a:hover { color: #E29C35; }

/* ========== Pages ========== */

.mi-page { padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 72px); }

.mi-page-title {
  font-family: 'Archivo Black', 'Arial Black', 'Archivo', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  color: #1B3A66;
}

/* ========== Divers ========== */

.wp-site-blocks { padding: 0; }

.wp-element-button { border-radius: 0; }
