/* =========================================================
   Mairie de Serviers-et-Labaume — feuille de style partagée
   Palette : vert foncé institutionnel + crème
   ========================================================= */

:root {
  --green: #2f4937;
  /* vert principal */
  --green-dark: #243a2b;
  /* footer / bandeaux */
  --green-deep: #1d2f23;
  /* barre basse footer */
  --green-soft: #eef1ec;
  /* fonds clairs verdâtres */
  --cream: #f7f5ef;
  /* fond de page */
  --paper: #ffffff;
  --ink: #1f2a23;
  /* texte foncé */
  --muted: #5e6b62;
  /* texte secondaire */
  --line: #e2e6df;
  /* filets */
  --gold: #b78b4e;
  /* accent chaud, parcimonie */
  --cream-dim: rgba(247, 245, 239, .72);
  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 14px 40px -22px rgba(31, 42, 35, .45);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Mulish", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Archivo", system-ui, sans-serif;
  color: var(--green);
  line-height: 1.12;
  margin: 0;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* skip link accessibilité */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* =====================  EN-TÊTE  ===================== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand .welcome {
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.brand a.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand .logo {
  height: 64px;
  width: auto;
}

.brand .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand .wordmark strong {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--green);
  text-transform: uppercase;
  white-space: nowrap;
}

.brand .wordmark span {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 18px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.icon-btn:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.illiwap-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 12px 20px;
  border-radius: 999px;
  transition: background .18s ease, transform .18s ease;
}

.illiwap-btn:hover {
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.illiwap-btn i {
  font-size: 15px;
}

/* =====================  MENU  ===================== */
.main-nav {
  background: var(--green-soft);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 26px;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 3px solid transparent;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.main-nav a:hover {
  text-decoration: none;
  background: rgba(47, 73, 55, .06);
}

.main-nav a.is-active,
.main-nav a:hover {
  border-bottom-color: var(--gold);
}

.main-nav a.is-active {
  color: var(--green-dark);
}

.main-nav a.home i {
  font-size: 17px;
}

/* =====================  HERO  ===================== */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 46vw, 620px);
  background: var(--green-dark) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 47, 35, .12) 0%, rgba(29, 47, 35, .18) 40%, rgba(29, 47, 35, .74) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 24px clamp(40px, 6vw, 78px);
  color: #fff;
}

.hero h1 {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(27px, 6.4vw, 74px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
  white-space: nowrap;
  max-width: none;
}

.hero p {
  margin: 18px 0 0;
  font-size: clamp(11px, 1.5vw, 21px);
  font-weight: 500;
  max-width: none;
  white-space: nowrap;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 16px rgba(0, 0, 0, .35);
}

/* =====================  CONTENU  ===================== */
.section {
  padding-block: clamp(48px, 7vw, 86px);
  scroll-margin-top: 20px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(32px, 4vw, 52px);
}

.eyebrow {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.section-head .rule {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
  margin: 18px auto 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 3vw, 40px);
}

.card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.card .card-sub {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "Archivo", sans-serif;
  margin-bottom: 22px;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contact-line:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.contact-line .ic {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.contact-line .ct .label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  font-family: "Archivo", sans-serif;
}

.contact-line .ct .val {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.contact-line .ct .val a {
  color: var(--ink);
}

.contact-line .ct .val a:hover {
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .03em;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
  border: 0;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}

.btn-ghost:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.card .card-cta {
  margin-top: 26px;
}

/* horaires */
.hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.hours li:first-child {
  border-top: 0;
  padding-top: 0;
}

.hours .day {
  font-weight: 700;
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  letter-spacing: .02em;
}

.hours .time {
  text-align: right;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  max-width: 60%;
}

.hours .time.open {
  color: var(--green);
}

.hours .time.closed {
  color: #9aa39a;
}

.hours .badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(183, 139, 78, .1);
  border-radius: 8px;
  padding: 4px 10px;
  letter-spacing: .02em;
}

/* =====================  FOOTER  ===================== */
.site-footer {
  background: var(--green-dark);
  color: var(--cream-dim);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-block: clamp(48px, 5vw, 72px);
}

.site-footer h4 {
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-brand .f-logo {
  height: 84px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand .f-name {
  font-family: "Archivo", sans-serif;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0 0 6px;
  color: var(--cream-dim);
}

.footer-brand .f-phone {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
}

.footer-brand .f-phone i {
  color: var(--gold);
}

.footer-hours {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.footer-hours li {
  margin-bottom: 8px;
  color: var(--cream-dim);
}

.footer-hours li strong {
  color: #fff;
  font-weight: 700;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.footer-social a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: background .18s ease, transform .18s ease;
}

.footer-social a:hover {
  background: var(--gold);
  color: #1d2f23;
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-social a.illiwap {
  width: auto;
  border-radius: 999px;
  padding: 0 20px;
  gap: 9px;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
}

.footer-cta {
  margin-top: 22px;
}

.footer-cta .btn {
  background: #fff;
  color: var(--green-dark);
}

.footer-cta .btn:hover {
  background: var(--cream);
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-bottom .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-block: 20px;
  font-size: 14px;
}

.footer-bottom a,
.footer-bottom span {
  color: var(--cream-dim);
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom .sep {
  opacity: .4;
}

/* =====================  PAGES DE CONTENU  ===================== */
.page-head {
  background: var(--green-dark);
  color: #fff;
}

.page-head .wrap {
  padding-block: clamp(40px, 6vw, 72px);
}

.page-head .eyebrow {
  color: var(--gold);
  margin-bottom: 12px;
}

.page-head h1 {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(30px, 5vw, 52px);
}

.page-head p {
  margin: 12px 0 0;
  color: var(--cream-dim);
  font-size: 16px;
}

.prose {
  max-width: 840px;
  margin-inline: auto;
}

.prose>.meta {
  color: var(--muted);
  font-style: italic;
  margin: 0 0 30px;
}

.prose h2 {
  font-family: "Archivo", sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--green);
  margin: 38px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 22px 0 8px;
}

.prose p {
  margin: 0 0 14px;
  color: var(--ink);
}

.prose a {
  color: var(--green);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--green-dark);
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 7px;
}

.prose strong {
  color: var(--ink);
}

.prose .id-card {
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 6px 0 18px;
}

.prose .id-card p {
  margin: 0 0 4px;
}

.prose .id-card p:last-child {
  margin-bottom: 0;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 22px;
  font-size: 15px;
}

.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cookie-table thead th {
  background: var(--green-soft);
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--green);
}

.cookie-table tbody tr:last-child td {
  border-bottom: 0;
}

.cookie-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  text-decoration: none;
}

.back-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* =====================  RESPONSIVE  ===================== */
@media (max-width:900px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width:680px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .header-actions {
    width: 100%;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .main-nav a {
    padding: 14px 18px;
  }

  .illiwap-btn span.lbl {
    display: inline;
  }
}

/* =====================  BACK TO TOP  ===================== */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .18s ease;
  box-shadow: 0 6px 20px rgba(31, 42, 35, .35);
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}