/*
Theme Name: Annuaire Local
Description: Thème custom annuaire local — style épuré professionnel
Version: 2.0.0
Author: AnnuaireLocal
*/

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0a5aa0; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 700; line-height: 1.2; color: #0f172a; }

/* =============================================
   VARIABLES
============================================= */
:root {
  --blue: #0a5aa0;
  --blue-dark: #083f73;
  --blue-light: #e8f1fb;
  --orange: #f97316;
  --navy: #0f172a;
  --text: #374151;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 16px rgba(15,23,42,.06);
  --shadow-md: 0 8px 32px rgba(15,23,42,.10);
  --max-w: 1200px;
  --header-h: 68px;
}

/* =============================================
   HEADER
============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(15,23,42,.05);
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__icon {
  width: 38px;
  height: 38px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
.site-logo__text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
}
.site-logo__text span { color: var(--blue); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.site-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--bg); color: var(--blue); text-decoration: none; }

.site-header__cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .site-header__cta { display: none; }
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .15s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--blue); border: 1.5px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-light); text-decoration: none; }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: #ea6c00; color: var(--white); text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* =============================================
   HOMEPAGE — HERO
============================================= */
.hp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0a5aa0 100%);
  padding: 72px 24px 80px;
  text-align: center;
  color: var(--white);
}
.hp-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hp-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -.5px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.hp-hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hp-search {
  background: var(--white);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  align-items: stretch;
  max-width: 780px;
  margin: 0 auto 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
}
.hp-search__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}
.hp-search__field + .hp-search__field { border-left: 1px solid var(--border); }
.hp-search__ico { font-size: 16px; flex-shrink: 0; }
.hp-search__field input {
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--navy);
  width: 100%;
  background: transparent;
  font-family: inherit;
}
.hp-search__field input::placeholder { color: var(--muted); }
.hp-search__btn {
  flex-shrink: 0;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.hp-search__btn:hover { background: var(--blue-dark); }
.hp-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hp-hero__tags a {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s;
}
.hp-hero__tags a:hover { background: rgba(255,255,255,.22); text-decoration: none; }

@media (max-width: 640px) {
  .hp-hero { padding: 48px 16px 56px; }
  .hp-search { flex-direction: column; border-radius: 14px; }
  .hp-search__field + .hp-search__field { border-left: none; border-top: 1px solid var(--border); }
  .hp-search__btn { border-radius: 8px; }
}

/* =============================================
   HOMEPAGE — STATS BAR
============================================= */
.hp-stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.hp-stats__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: center;
}
.hp-stat {
  text-align: center;
  padding: 4px 40px;
  border-right: 1px solid var(--border);
}
.hp-stat:last-child { border-right: none; }
.hp-stat__num { font-size: 1.9rem; font-weight: 800; color: var(--blue); line-height: 1; display: block; }
.hp-stat__label { font-size: 13px; color: var(--muted); margin-top: 4px; }

@media (max-width: 640px) {
  .hp-stats__inner { flex-wrap: wrap; }
  .hp-stat { padding: 10px 20px; border-right: none; width: 50%; }
}

/* =============================================
   HOMEPAGE — SECTIONS
============================================= */
.hp-section { padding: 64px 24px; }
.hp-section--bg { background: var(--bg); }
.hp-section__inner { max-width: var(--max-w); margin: 0 auto; }
.hp-section__header { text-align: center; margin-bottom: 40px; }
.hp-section__header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.hp-section__header p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* Categories grid homepage */
.hp-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hp-cat {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .2s;
}
.hp-cat:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.hp-cat__icon { font-size: 2.2rem; }
.hp-cat__name { font-size: 1rem; font-weight: 700; color: var(--navy); }
.hp-cat:hover .hp-cat__name { color: var(--blue); }
.hp-cat__desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.hp-cat__more { margin-top: auto; font-size: 13px; color: var(--blue); font-weight: 600; }

@media (max-width: 900px) { .hp-cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .hp-cats { grid-template-columns: repeat(2, 1fr); } }

/* Cities grid */
.hp-cities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.hp-city {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  transition: all .15s;
}
.hp-city:hover { border-color: var(--blue); box-shadow: var(--shadow); text-decoration: none; }
.hp-city__emoji { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.hp-city__name { font-size: 14px; font-weight: 600; color: var(--navy); }
.hp-city:hover .hp-city__name { color: var(--blue); }

@media (max-width: 900px) { .hp-cities { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .hp-cities { grid-template-columns: repeat(3, 1fr); } }

/* Steps */
.hp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hp-step {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.hp-step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.hp-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.hp-step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 640px) { .hp-steps { grid-template-columns: 1fr; } }

/* Blog cards homepage */
.hp-blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.hp-blog-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.hp-blog-card__img { height: 180px; overflow: hidden; }
.hp-blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hp-blog-card:hover .hp-blog-card__img img { transform: scale(1.04); }
.hp-blog-card__no-img { height: 180px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.hp-blog-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hp-blog-card__cat { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; }
.hp-blog-card__title { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.hp-blog-card:hover .hp-blog-card__title { color: var(--blue); }
.hp-blog-card__date { font-size: 13px; color: var(--muted); margin-top: auto; }
@media (max-width: 768px) { .hp-blog { grid-template-columns: 1fr; } }

/* CTA Banner */
.hp-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 64px 24px;
  text-align: center;
  color: #fff;
}
.hp-cta h2 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.hp-cta p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* =============================================
   BLOG
============================================= */
.blog-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  padding: 56px 24px;
  color: #fff;
}
.blog-header .container { max-width: var(--max-w); margin: 0 auto; }
.blog-header .badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.blog-header h1 { color: #fff; font-size: 2.2rem; margin-bottom: 10px; }
.blog-header p { color: rgba(255,255,255,.75); font-size: 1.05rem; }

.section { padding: 48px 24px; }
.section .container { max-width: var(--max-w); margin: 0 auto; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.post-card:hover { box-shadow: var(--shadow-md); }
.post-card-thumb { height: 200px; overflow: hidden; background: var(--bg); }
.post-card-thumb a { display: block; height: 100%; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.no-thumb { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; background: var(--blue-light); }
.post-card-body { padding: 20px; flex: 1; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.post-card-cat { background: var(--blue-light); color: var(--blue); padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.post-card-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 8px; }
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--blue); }
.post-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; }
.post-card-footer { padding: 14px 20px 18px; border-top: 1px solid var(--border); }
.post-card-footer a { font-size: 14px; font-weight: 600; color: var(--blue); }

@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

.pagination { text-align: center; margin: 40px 0; }
.pagination .page-numbers { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--white); }
.pagination .page-numbers li a,
.pagination .page-numbers li span { display: block; padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--text); border-right: 1px solid var(--border); text-decoration: none; transition: background .15s, color .15s; }
.pagination .page-numbers li:last-child a,
.pagination .page-numbers li:last-child span { border-right: none; }
.pagination .page-numbers li a:hover { background: var(--blue-light); color: var(--blue); }
.pagination .page-numbers li .current { background: var(--blue); color: #fff; }

/* =============================================
   SINGLE ARTICLE
============================================= */
.single-hero { background: var(--bg); border-bottom: 1px solid var(--border); padding: 48px 24px 40px; }
.single-hero .container { max-width: 900px; margin: 0 auto; }
.single-hero .post-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.single-hero .cat-badge { background: var(--blue-light); color: var(--blue); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-decoration: none; }
.single-hero .post-date, .single-hero .post-read { font-size: 13px; color: var(--muted); }
.single-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 16px; line-height: 1.25; }
.single-hero .post-excerpt { font-size: 1.1rem; color: var(--muted); line-height: 1.7; }

.single-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}
.featured-img { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.featured-img img { width: 100%; height: 400px; object-fit: cover; }

.post-content { font-size: 17px; line-height: 1.8; color: var(--text); }
.post-content h2 { font-size: 1.6rem; margin: 36px 0 14px; color: var(--navy); border-bottom: 2px solid var(--blue-light); padding-bottom: 8px; }
.post-content h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.post-content p { margin: 0 0 20px; }
.post-content ul, .post-content ol { padding-left: 28px; margin-bottom: 20px; list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }
.post-content strong { font-weight: 700; color: var(--navy); }
.post-content blockquote { border-left: 4px solid var(--blue); padding: 16px 20px; margin: 24px 0; background: var(--blue-light); border-radius: 0 8px 8px 0; font-style: italic; }
.post-content img { border-radius: var(--radius); margin: 20px 0; }
.post-content a { color: var(--blue); text-decoration: underline; }

.post-sidebar .sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.post-sidebar .sidebar-card h3 { font-size: 1rem; margin-bottom: 14px; color: var(--navy); border-bottom: 1px solid var(--border); padding-bottom: 10px; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.post-tag { background: var(--bg); border: 1px solid var(--border); color: var(--muted); padding: 5px 14px; border-radius: 999px; font-size: 13px; text-decoration: none; }
.post-tag:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.post-nav { display: flex; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.post-nav a { flex: 1; display: block; padding: 16px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--navy); text-decoration: none; }
.post-nav a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.post-nav .nav-label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }

.related-posts { padding: 48px 24px; background: var(--bg); border-top: 1px solid var(--border); }
.related-posts .container { max-width: 900px; margin: 0 auto; }
.related-posts h2 { font-size: 1.4rem; margin-bottom: 24px; }

@media (max-width: 768px) {
  .single-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .featured-img img { height: 240px; }
}

/* =============================================
   PAGE GENERIC
============================================= */
.page-content { max-width: 820px; margin: 0 auto; padding: 48px 24px 64px; }
.page-content h1 { font-size: 2rem; margin-bottom: 24px; }

/* =============================================
   FOOTER
============================================= */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); }
.site-footer__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.6); margin: 12px 0 0; }
.footer-brand .site-logo__text { color: #fff; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,.35); max-width: var(--max-w); margin: 0 auto; }

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* =============================================
   ANNUAIRE — COMMUN
============================================= */
.ann-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 60px; }

.ann-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 20px;
}
.ann-breadcrumb a { color: var(--blue); text-decoration: none; }
.ann-breadcrumb a:hover { text-decoration: underline; }
.ann-breadcrumb__sep { color: #cbd5e1; }

.ann-hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f1fb 100%);
  border: 1px solid #cde0f5;
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.ann-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(10,90,160,.08) 0%, transparent 70%);
  pointer-events: none;
}
.ann-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.ann-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -.3px;
}
.ann-hero__desc { font-size: 1.05rem; color: var(--text); max-width: 680px; line-height: 1.7; margin-bottom: 20px; }
.ann-hero__stats { display: flex; flex-wrap: wrap; gap: 10px; }
.ann-hero__stat {
  background: var(--white);
  border: 1px solid #cde0f5;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.ann-hero__stat strong { color: var(--blue); }

@media (max-width: 640px) {
  .ann-hero { padding: 24px; }
  .ann-hero h1 { font-size: 1.6rem; }
}

/* Filters */
.ann-filters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.ann-filters input, .ann-filters select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--navy);
  font-family: inherit;
  outline: none;
  background: var(--bg);
  min-width: 180px;
}
.ann-filters input:focus, .ann-filters select:focus { border-color: var(--blue); }
.ann-filter-count { font-size: 14px; color: var(--muted); margin-left: auto; font-weight: 500; }
.ann-filter-reset { font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; background: none; border: none; font-family: inherit; }

/* Map */
.ann-map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 32px; box-shadow: var(--shadow); }

/* Categories grid annuaire */
.ann-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.ann-cat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .2s;
}
.ann-cat-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.ann-cat-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.ann-cat-card__name { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.ann-cat-card:hover .ann-cat-card__name { color: var(--blue); }
.ann-cat-card__count { font-size: 13px; color: var(--muted); }
.ann-cat-card__metiers { font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.ann-cat-card__cta { margin-top: auto; font-size: 13px; color: var(--blue); font-weight: 600; display: flex; align-items: center; gap: 4px; }

@media (max-width: 900px) { .ann-cats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ann-cats-grid { grid-template-columns: 1fr; } }

/* Metiers list */
.ann-metiers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 40px; }
.ann-metier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all .15s;
}
.ann-metier-card:hover { border-color: var(--blue); background: var(--blue-light); text-decoration: none; }
.ann-metier-card__name { font-size: 1rem; font-weight: 600; color: var(--navy); }
.ann-metier-card:hover .ann-metier-card__name { color: var(--blue); }
.ann-metier-card__count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ann-metier-card__arrow { color: var(--blue); font-size: 16px; flex-shrink: 0; }
@media (max-width: 640px) { .ann-metiers-grid { grid-template-columns: 1fr; } }

/* Business list cards */
.ann-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px; } @media (max-width: 768px) { .ann-list { grid-template-columns: 1fr; } }
.ann-biz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: box-shadow .2s, border-color .15s;
}
.ann-biz-card:hover { box-shadow: var(--shadow-md); border-color: #cde0f5; }
.ann-biz-card__logo {
  width: 60px; height: 60px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.ann-biz-card__body { flex: 1; min-width: 0; }
.ann-biz-card__name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; text-decoration: none; display: block; }
.ann-biz-card__name:hover { color: var(--blue); text-decoration: none; }
.ann-biz-card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ann-biz-card__meta span { display: flex; align-items: center; gap: 4px; }
.ann-biz-card__badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-right: 6px; }
.ann-biz-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

@media (max-width: 640px) { .ann-biz-card { flex-direction: column; } }

/* Maillage interne */
.ann-maillage {
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.ann-maillage__title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.ann-maillage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ann-maillage-box h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.ann-maillage-box ul { display: flex; flex-direction: column; gap: 6px; }
.ann-maillage-box li a { color: var(--blue); font-size: 14px; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.ann-maillage-box li a::before { content: '›'; color: var(--muted); }
.ann-maillage-box li a:hover { text-decoration: underline; }
@media (max-width: 768px) { .ann-maillage-grid { grid-template-columns: 1fr; } }

/* SEO text block */
.ann-seo-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 32px 0;
}
.ann-seo-block h2 { font-size: 1.2rem; margin-bottom: 12px; }
.ann-seo-block p { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 14px; }
.ann-seo-block p:last-child { margin-bottom: 0; }

/* FAQ */
.ann-faq { margin: 32px 0; }
.ann-faq h2 { font-size: 1.2rem; margin-bottom: 14px; }
.ann-faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.ann-faq-item summary {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.ann-faq-item summary::-webkit-details-marker { display: none; }
.ann-faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--blue); font-weight: 300; flex-shrink: 0; margin-left: 12px; }
.ann-faq-item[open] summary::after { content: '−'; }
.ann-faq-item__body { padding: 0 20px 16px; font-size: 15px; color: var(--text); line-height: 1.7; }

/* Fiche entreprise */
.ann-fiche-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 24px;
  align-items: start;
}
.ann-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.ann-panel h2 { font-size: 1.2rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.ann-panel p { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 14px; }
.ann-panel p:last-child { margin-bottom: 0; }

.ann-contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.ann-contact-card h2 { font-size: 1.1rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.ann-contact-list { display: flex; flex-direction: column; gap: 12px; }
.ann-contact-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.ann-contact-row__icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.ann-contact-row__label { font-size: 11px; color: var(--muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.ann-contact-row__value { color: var(--navy); font-weight: 500; }

.ann-legal { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }

@media (max-width: 900px) { .ann-fiche-layout { grid-template-columns: 1fr; } }

/* =============================================
   UTILITIES
============================================= */
.container { max-width: var(--max-w); margin: 0 auto; }

/* =============================================
   PRO FORMS — gerer-fiche / creer-ma-fiche / revendiquer
============================================= */
.ann-pro-page { max-width: 820px; margin: 48px auto; padding: 0 20px; }
.ann-pro-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 36px 40px; margin-bottom: 28px;
}
.ann-pro-hero h1 { font-size: 1.8rem; margin: 8px 0; color: #fff; }
.ann-pro-hero p { opacity: .88; margin: 0; }
.ann-pro-hero .ann-hero-badge {
  display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px; padding: 4px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.ann-pro-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 32px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.ann-pro-card h2 {
  font-size: 1.1rem; color: var(--navy); margin: 0 0 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.ann-pro-steps { display: flex; gap: 12px; margin-bottom: 24px; }
.ann-pro-step { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.ann-pro-step__num {
  width: 30px; height: 30px; background: var(--blue); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; margin: 0 auto 8px;
}
.ann-pro-step__label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.ann-pro-siret {
  display: inline-flex; align-items: center; gap: 10px;
  background: #eef4fb; border: 1px solid #c7dcf5; border-radius: 10px;
  padding: 12px 18px; font-size: 1rem; font-weight: 700; color: var(--blue); letter-spacing: .5px;
}
.ann-pro-biz {
  display: flex; align-items: center; gap: 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px;
}
.ann-pro-biz__icon { font-size: 2rem; }
.ann-pro-biz__name { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.ann-pro-biz__addr { font-size: .88rem; color: var(--muted); margin-top: 3px; }
/* Form elements */
.ann-pro-form label,
.ann-create-fiche label,
.ann-edit-fiche label { display: block; font-weight: 600; font-size: .92rem; color: var(--text); margin-bottom: 6px; margin-top: 20px; }
.ann-pro-form label:first-child,
.ann-create-fiche label:first-child { margin-top: 0; }
.ann-pro-form input[type=text],
.ann-pro-form input[type=email],
.ann-pro-form input[type=url],
.ann-pro-form input[type=tel],
.ann-pro-form input[type=number],
.ann-pro-form textarea,
.ann-create-fiche input[type=text],
.ann-create-fiche input[type=email],
.ann-create-fiche input[type=url],
.ann-create-fiche textarea,
.ann-create-fiche select,
.ann-edit-fiche input[type=text],
.ann-edit-fiche input[type=email],
.ann-edit-fiche input[type=url],
.ann-edit-fiche textarea,
.ann-edit-fiche select {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 11px 14px; font-size: .95rem; font-family: inherit;
  background: #fafbfc; transition: border .2s, box-shadow .2s; max-width: 100%;
  box-sizing: border-box;
}
.ann-pro-form input:focus,
.ann-pro-form textarea:focus,
.ann-create-fiche input:focus,
.ann-create-fiche textarea:focus,
.ann-create-fiche select:focus,
.ann-edit-fiche input:focus,
.ann-edit-fiche textarea:focus,
.ann-edit-fiche select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,90,160,.08);
}
.ann-pro-form textarea,
.ann-create-fiche textarea,
.ann-edit-fiche textarea { resize: vertical; min-height: 100px; }
.ann-file-wrap {
  border: 2px dashed var(--border); border-radius: 12px; padding: 24px;
  text-align: center; background: var(--bg); cursor: pointer; transition: border .2s, background .2s;
}
.ann-file-wrap:hover { border-color: var(--blue); background: #eef4fb; }
.ann-pro-submit,
.ann-create-fiche .ann-pro-submit { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.ann-pro-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; border: none; border-radius: 10px;
  padding: 13px 28px; font-size: .97rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: background .2s, transform .1s; white-space: nowrap;
}
.ann-pro-btn:hover { background: var(--blue-dark); transform: translateY(-1px); color: #fff; }
.ann-pro-btn-sec {
  background: var(--bg); color: var(--text); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 22px; font-size: .95rem; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s; white-space: nowrap;
}
.ann-pro-btn-sec:hover { background: var(--border); }
.ann-msg { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.ann-msg-ok { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.ann-msg-err { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.ann-msg-warn { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
/* Creer-ma-fiche check step */
.ann-create-fiche { max-width: 820px; margin: 0 auto; }
.ann-create-fiche h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: 12px; }
.ann-create-fiche p { font-size: .97rem; color: var(--text); }
.ann-create-fiche-check, .ann-create-fiche-form, .ann-create-fiche-exists,
.ann-edit-fiche { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.ann-create-fiche-check .button,
.ann-create-fiche-form .button,
.ann-edit-fiche .button { 
  background: var(--blue) !important; color: #fff !important; border: none !important;
  border-radius: 10px !important; padding: 11px 24px !important; font-weight: 600 !important;
  font-size: .97rem !important; cursor: pointer !important; height: auto !important;
}
/* Pro pages page wrapper */
.page-template-default .page-content { max-width: 880px; margin: 0 auto; padding: 20px 20px 60px; }
@media (max-width: 640px) {
  .ann-pro-hero { padding: 24px 20px; }
  .ann-pro-card { padding: 20px; }
  .ann-pro-steps { flex-direction: column; }
}
