:root {
  --site-primary: #12213d;
  --site-secondary: #1f2f4d;
  --site-accent: #c81e1e;
  --site-accent-dark: #991b1b;
  --site-light: #f6f8fb;
  --site-white: #ffffff;
  --site-text: #243247;
  --site-muted: #66758a;
  --site-border: #e4eaf1;
  --site-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --site-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.07);
  --site-radius: 18px;
  --site-container: 1200px;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--site-light);
  color: var(--site-text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--site-primary);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
}

a {
  color: inherit;
}

.site-header {
  background: var(--site-white);
  border-bottom: 1px solid var(--site-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-wrapper .container,
.site-header .container {
  width: min(100% - 40px, var(--site-container));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  position: relative;
}

.site-branding {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-branding img {
  width: auto;
  height: 72px;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.site-navigation {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-navigation > div,
.site-navigation .block,
.site-navigation .contextual-region,
.site-navigation nav {
  width: 100%;
}

.site-navigation .contextual-region,
.site-navigation nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.site-navigation nav > ul,
.site-navigation .contextual-region > ul,
.site-navigation nav ul.menu,
.site-navigation .menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-navigation nav > ul > li,
.site-navigation .contextual-region > ul > li,
.site-navigation nav ul.menu > li,
.site-navigation .menu > li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 10px 0;
}

.site-navigation nav > ul > li > a,
.site-navigation .contextual-region > ul > li > a,
.site-navigation nav ul.menu > li > a,
.site-navigation .menu > li > a {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--site-secondary);
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 8px 0;
  text-decoration: none;
}

.site-navigation nav > ul > li > a:hover,
.site-navigation nav > ul > li > a.is-active,
.site-navigation nav > ul > li > a[aria-current="page"],
.site-navigation .contextual-region > ul > li > a:hover,
.site-navigation .contextual-region > ul > li > a.is-active,
.site-navigation .contextual-region > ul > li > a[aria-current="page"],
.site-navigation nav ul.menu > li > a:hover,
.site-navigation nav ul.menu > li > a.is-active,
.site-navigation nav ul.menu > li > a[aria-current="page"] {
  color: var(--site-accent);
}

.site-navigation nav > ul > li > ul,
.site-navigation .contextual-region > ul > li > ul,
.site-navigation nav ul.menu > li > ul,
.site-navigation .menu > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--site-white);
  border: 1px solid var(--site-border);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
  padding: 10px 0;
  margin: 0;
  z-index: 1200;
}

.site-navigation nav > ul > li:hover > ul,
.site-navigation nav > ul > li:focus-within > ul,
.site-navigation .contextual-region > ul > li:hover > ul,
.site-navigation .contextual-region > ul > li:focus-within > ul,
.site-navigation nav ul.menu > li:hover > ul,
.site-navigation nav ul.menu > li:focus-within > ul {
  display: block;
}

.site-navigation nav > ul > li > ul > li,
.site-navigation .contextual-region > ul > li > ul > li,
.site-navigation nav ul.menu > li > ul > li,
.site-navigation .menu > li > ul > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navigation nav > ul > li > ul > li > a,
.site-navigation .contextual-region > ul > li > ul > li > a,
.site-navigation nav ul.menu > li > ul > li > a,
.site-navigation .menu > li > ul > li > a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--site-secondary);
  white-space: nowrap;
  line-height: 1.3;
  text-decoration: none;
}

.site-navigation nav > ul > li > ul > li > a:hover,
.site-navigation .contextual-region > ul > li > ul > li > a:hover,
.site-navigation nav ul.menu > li > ul > li > a:hover,
.site-navigation .menu > li > ul > li > a:hover {
  background: #f8fafc;
  color: var(--site-accent);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  background: var(--site-white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--site-primary);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.breadcrumb--page {
  padding: 18px 0 0;
  font-size: 0.95rem;
  color: var(--site-muted);
}

.breadcrumb--page ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

.breadcrumb--page li {
  display: flex;
  align-items: center;
}

.breadcrumb--page li + li::before {
  content: "›";
  margin: 0 10px;
  color: #94a3b8;
}

.breadcrumb--page a,
.breadcrumb--page span {
  color: inherit;
  text-decoration: none;
}

.breadcrumb--page a:hover {
  color: var(--site-accent);
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .site-branding img {
    height: 60px;
    max-width: 130px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-navigation {
    display: none;
    width: 100%;
    flex: 0 0 100%;
    justify-content: flex-start;
    padding-top: 8px;
  }

  .site-navigation.is-open {
    display: flex;
  }

  .site-navigation > div,
  .site-navigation .block,
  .site-navigation .contextual-region,
  .site-navigation nav {
    width: 100%;
  }

  .site-navigation .contextual-region,
  .site-navigation nav {
    justify-content: flex-start;
  }

  .site-navigation nav > ul,
  .site-navigation .contextual-region > ul,
  .site-navigation nav ul.menu,
  .site-navigation .menu {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
  }

  .site-navigation nav > ul > li,
  .site-navigation .contextual-region > ul > li,
  .site-navigation nav ul.menu > li,
  .site-navigation .menu > li {
    width: 100%;
    padding: 0;
    border-top: 1px solid var(--site-border);
  }

  .site-navigation nav > ul > li > a,
  .site-navigation .contextual-region > ul > li > a,
  .site-navigation nav ul.menu > li > a,
  .site-navigation .menu > li > a {
    display: block;
    width: 100%;
    padding: 14px 0;
  }

  .site-navigation nav > ul > li > ul,
  .site-navigation .contextual-region > ul > li > ul,
  .site-navigation nav ul.menu > li > ul,
  .site-navigation .menu > li > ul {
    position: static;
    display: block;
    min-width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 8px 16px;
    margin: 0;
    transform: none;
  }

  .site-navigation nav > ul > li > ul > li > a,
  .site-navigation .contextual-region > ul > li > ul > li > a,
  .site-navigation nav ul.menu > li > ul > li > a,
  .site-navigation .menu > li > ul > li > a {
    padding: 10px 0;
  }
}

@media (max-width: 640px) {
  .site-wrapper .container,
  .site-header .container,
  .site-footer .container {
    width: min(100% - 24px, var(--site-container));
  }

  .site-branding img {
    height: 52px;
    max-width: 110px;
  }
}
.login-page {
  min-height: calc(100vh - 110px);
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}

.login-card {
  width: min(100%, 460px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.login-logo {
  text-align: center;
  margin-bottom: 18px;
}

.login-logo img {
  width: 82px;
  margin: 0 auto;
}

.login-card h1 {
  margin: 0 0 8px;
  text-align: center;
  color: #0f172a;
  font-size: 2rem;
}

.login-intro {
  text-align: center;
  color: #64748b;
  margin-bottom: 26px;
}

.login-card label {
  display: block;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
}

.login-card input[type="submit"],
.login-card .button {
  width: 100%;
  border: 0;
  background: #b91c1c;
  color: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
}

.login-card input[type="submit"]:hover,
.login-card .button:hover {
  background: #991b1b;
}

.login-card .description {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: -8px;
  margin-bottom: 14px;
}

.login-card .form-item {
  margin-bottom: 14px;
}


.home-announcement-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-announcement-layer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.4s ease;
}

.home-announcement-layer__modal {
  position: relative;
  width: min(900px, 95%);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);

  transform: scale(0.9);
  opacity: 0;
  animation: zoomIn 0.4s ease forwards;
}

.home-announcement-layer__media iframe {
  width: 100%;
  height: 500px;
  border: none;
}

.home-announcement-layer__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes zoomIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.error-404-hero {
  text-align: center;
  padding: 100px 20px;
}

.error-404-hero h1 {
  font-size: 6rem;
  color: #b91c1c;
}
/* =========================
   PAGE CONTACT
   ========================= */

.contact-page {
  background: #f5f7fb;
  min-height: 100vh;
}

.contact-hero {
  background: linear-gradient(135deg, #0f172a, #243650);
  color: #fff;
  padding: 70px 0 80px;
}

.contact-hero__content {
  max-width: 760px;
}

.contact-hero__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  font-weight: 800;
  margin-bottom: 18px;
}

.contact-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 18px;
  color: #fff;
}

.contact-hero p {
  max-width: 650px;
  color: #dbe4f0;
  font-size: 1.15rem;
  line-height: 1.7;
}

.contact-section {
  padding: 50px 0 80px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.contact-card,
.contact-info-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.contact-card {
  padding: 34px;
}

.contact-card h2,
.contact-info-card h3 {
  color: #0f172a;
  margin: 0 0 12px;
  font-weight: 850;
}

.contact-card__intro {
  color: #64748b;
  margin-bottom: 28px;
}

/* Formulaire Drupal */
.contact-card form {
  display: grid;
  gap: 18px;
}

.contact-card .form-item {
  margin: 0;
}

.contact-card label {
  display: block;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #f8fafc;
  color: #0f172a;
}

.contact-card input[type="text"]:focus,
.contact-card input[type="email"]:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: #b91c1c;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12);
}

.contact-card textarea {
  min-height: 190px;
  resize: vertical;
}

.contact-card input[type="checkbox"] {
  margin-right: 8px;
}

.contact-card .form-actions {
  margin-top: 6px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-card input[type="submit"],
.contact-card button,
.contact-card .button {
  border: 0;
  border-radius: 14px;
  background: #b91c1c;
  color: #fff;
  padding: 14px 22px;
  font-weight: 850;
  cursor: pointer;
}

.contact-card input[type="submit"]:hover,
.contact-card button:hover,
.contact-card .button:hover {
  background: #991b1b;
}

.contact-card input[value="Aperçu"],
.contact-card .button--secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.contact-card input[value="Aperçu"]:hover,
.contact-card .button--secondary:hover {
  background: #f1f5f9;
}

/* Sidebar */
.contact-sidebar {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 110px;
}

.contact-info-card {
  padding: 26px;
}

.contact-info-card p {
  color: #64748b;
  line-height: 1.65;
}

.contact-info-card a {
  display: block;
  color: #1d4ed8;
  font-weight: 800;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
}

.contact-info-card a:last-child {
  border-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding: 48px 0 56px;
  }

  .contact-card {
    padding: 24px;
  }

  .contact-section {
    padding: 32px 0 60px;
  }

  .contact-card .form-actions {
    display: grid;
  }

  .contact-card input[type="submit"],
  .contact-card button,
  .contact-card .button {
    width: 100%;
  }
}

/* =========================
   FOOTER FINAL
   ========================= */

.site-footer {
  width: 100%;
  background: #132c4b;
  color: #fff;
  margin-top: 60px;
  padding: 0;
}

.site-footer .container {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 0;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(160px, .8fr) minmax(220px, .9fr);
  gap: 70px;
  align-items: start;
  padding: 48px 0 34px;
}

.site-footer .footer-col {
  min-width: 0;
}

.site-footer .footer-logo {
  display: inline-block;
}

.site-footer .footer-logo img {
  width: 130px !important;
  max-width: 130px !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

.site-footer .footer-description {
  max-width: 360px;
  margin: 18px 0 0;
  line-height: 1.6;
  color: #fff;
}

.site-footer .footer-col h4 {
  margin: 0 0 16px;
  color: #fff !important;
  font-size: 1rem;
}

.site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-col li {
  margin-bottom: 10px;
}

.site-footer a {
  color: #fff;
  font-weight: 700;
}

.site-footer .footer-social {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 18px 0 28px;
  text-align: center;
}

.site-footer .footer-bottom p {
  margin: 0;
}

@media (max-width: 800px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .site-footer .footer-logo img {
    margin: 0 auto;
  }

  .site-footer .footer-description {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer .footer-social {
    justify-content: center;
  }
}
/* FOOTER CENTER FIX */
.site-footer .container {
  width: min(100% - 48px, 980px) !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.site-footer .footer-inner {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr 0.8fr !important;
  gap: 64px !important;
  justify-content: center !important;
  align-items: start !important;
}

.site-footer .footer-bottom {
  text-align: center !important;
}

.site-footer .footer-bottom .container {
  display: flex;
  justify-content: center;
}
/* FOOTER CENTER FINAL FIX */
.site-footer {
  width: 100%;
  background: #132c4b;
}

.site-footer .footer-inner {
  width: 980px !important;
  max-width: calc(100% - 48px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 48px 0 34px !important;

  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr 0.9fr !important;
  gap: 70px !important;
}

.site-footer .footer-bottom .container {
  width: 980px !important;
  max-width: calc(100% - 48px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 18px 0 28px !important;
  border-top: 1px solid rgba(255,255,255,.18);
  text-align: center;
}

.site-footer .footer-bottom {
  border-top: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-bottom p {
  margin: 0;
}

.home-vie-municipale {
  position: relative;
  background:
    linear-gradient(rgba(15, 23, 42, .88), rgba(15, 23, 42, .9)),
    url("/themes/custom/agirbess_theme/images/assemblee.jpg") center / cover no-repeat;
  color: #fff;
  margin-top: 60px;
}

.home-vie-municipale__overlay {
  padding: 76px 0;
}

.home-vie-municipale .container {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
}

.home-vie-municipale__header {
  margin-bottom: 34px;
}

.home-vie-municipale__header h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 10px;
}

.home-vie-municipale__header p {
  color: #e2e8f0;
  font-size: 1.1rem;
  margin: 0;
}

.home-vie-municipale__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, .8fr);
  gap: 28px;
  align-items: stretch;
}

.home-vie-card,
.home-presence-block {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
  backdrop-filter: blur(8px);
}

.home-vie-card {
  padding: 26px;
}

.home-vie-card h3,
.home-presence-block h3,
.home-presence-column h4 {
  color: #fff;
}

.home-vie-card h3 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.home-vie-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
}

.home-vie-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: #fff;
  color: #132644;
}

.home-vie-table th {
  background: #132644;
  color: #fff;
  text-align: left;
  padding: 15px 16px;
  font-weight: 800;
}

.home-vie-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.home-vie-table tr:last-child td {
  border-bottom: 0;
}

.home-vie-table a {
  color: #c81e1e;
  font-weight: 900;
  text-decoration: none;
}

.home-vie-date {
  color: #e2e8f0;
  font-weight: 700;
}

.home-vie-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-vie-stats--second {
  margin-top: 10px;
}

.home-vie-stat {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: .9rem;
}

.home-vie-stat--present {
  background: #dcfce7;
  color: #166534;
}

.home-vie-stat--absent {
  background: #fee2e2;
  color: #991b1b;
}

.home-vie-stat--excuse {
  background: #fef3c7;
  color: #92400e;
}

.home-presence-block {
  margin-top: 28px;
  padding: 26px;
}

.home-presence-block h3 {
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.home-presence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.home-presence-column {
  background: rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 18px;
}

.home-presence-column h4 {
  margin-bottom: 14px;
}

.home-presence-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, .96);
  color: #132644;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-weight: 800;
}

.presence-status {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .82rem;
}

.presence-status--present {
  background: #dcfce7;
  color: #166534;
}

.presence-status--absent {
  background: #fee2e2;
  color: #991b1b;
}

.presence-status--excuse {
  background: #fef3c7;
  color: #92400e;
}

@media (max-width: 900px) {
  .home-vie-municipale__grid,
  .home-presence-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   VIE MUNICIPALE STATS
   ========================= */

.home-vie-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.home-vie-stat {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Présents */
.home-vie-stat--present {
  background: #dcfce7;
  color: #166534;
}

/* Pouvoirs reçus */
.home-vie-stat--power {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Votants */
.home-vie-stat--voters {
  background: #eef2ff;
  color: #3730a3;
}

/* Absents */
.home-vie-stat--absent {
  background: #fee2e2;
  color: #991b1b;
}
.home-presence-subtitle {
  margin-top: -10px;
  margin-bottom: 22px;
  color: #e2e8f0;
  font-weight: 600;
}

.home-presence-actions {
  margin-top: 22px;
  text-align: center;
}

.home-presence-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c81e1e;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.home-presence-actions a:hover {
  background: #991b1b;
}


.site-footer {
  margin-top: 60px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #7f1d1d 100%);
  color: #fff;
  font-size: 15px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
  padding: 55px 20px 40px;
}

.footer-col h4 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
}

.footer-col h4::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  background: #dc2626;
  border-radius: 999px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  display: block;
}

.footer-description {
  max-width: 420px;
  line-height: 1.7;
  color: #e5e7eb;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 11px;
}

.footer-col a {
  color: #e5e7eb;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.footer-social a:hover {
  background: #dc2626;
  padding-left: 14px;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.footer-bottom-inner {
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #d1d5db;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 42px 20px 32px;
  }

  .footer-logo img {
    max-width: 150px;
  }

  .footer-description {
    max-width: 100%;
  }
}


.media--view-mode-pleine-largeur,
.media--view-mode-pleine_largeur {
  width: 100%;
  max-width: 100%;
}

.media--view-mode-pleine-largeur img,
.media--view-mode-pleine_largeur img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}


.header-inner {
  position: relative;
}

.header-login-block {
  position: absolute;
  top: 8px;
  right: 20px;
  z-index: 20;
  display: flex;
  gap: 8px;
}

.login-btn,
.logout-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 20px;
  background: #0d3b66;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.logout-btn {
  background: #b91c1c;
}

.login-btn:hover,
.logout-btn:hover {
  color: #fff;
  opacity: 0.9;
}

/* ==========================================
   BANDEAU ADHERENTS
   ========================================== */

.top-header {
  background: linear-gradient(135deg,#0d3b66,#1f4f88);
  border-bottom: 3px solid #d4af37;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.top-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
}

.top-header-left,
.top-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-header-left a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 18px;

  border-radius: 999px;

  background: #d4af37;
  color: #0d3b66 !important;

  font-weight: 800;
  font-size: 14px;

  text-decoration: none;

  transition: all .25s ease;
}

.top-header-left a:hover {
  background: #f4ca46;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,.20);
}

.top-header-right a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.top-header-right a:hover {
  color: #d4af37;
}

/* effet d'appel visuel */
.top-header-left a:first-child {
  animation: pulse-login 2.5s infinite;
}

@keyframes pulse-login {
  0% {
    box-shadow: 0 0 0 0 rgba(212,175,55,.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(212,175,55,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212,175,55,0);
  }
}

.adherent-page {
  background: #f5f7fb;
}

.adherent-hero {
  background: linear-gradient(135deg, #0d3b66, #12213d);
  color: #fff;
  padding: 80px 0;
}

.adherent-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 14px;
}

.adherent-hero p {
  max-width: 760px;
  font-size: 1.15rem;
  color: #e2e8f0;
}

.adherent-badge {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  background: #d4af37;
  color: #0d3b66;
  font-weight: 900;
  margin-bottom: 18px;
}

.adherent-content {
  padding: 50px 0;
}

.adherent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.adherent-card {
  background: #fff;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.adherent-card h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.adherent-card p {
  color: #64748b;
}

.adherent-card a {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.adherent-card a:hover {
  background: #991b1b;
}

.adherent-drupal-content {
  padding: 20px 0 70px;
}

.adherent-drupal-content .tabs,
.adherent-drupal-content .profile {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

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

.adherent-profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
}

.adherent-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0,0,0,.25);
  flex: 0 0 auto;
  overflow: hidden;
}

.adherent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adherent-avatar span {
  font-size: 4rem;
}

.adherent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.adherent-actions a {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: #d4af37;
  color: #0d3b66;
  font-weight: 900;
  text-decoration: none;
}

.adherent-actions a:last-child {
  background: #b91c1c;
  color: #fff;
}

@media (max-width: 700px) {
  .adherent-profile-header {
    flex-direction: column;
    text-align: center;
  }

  .adherent-actions {
    justify-content: center;
  }
}

/* APB COMMENTAIRES V1 */
form.comment-form {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 960px;
  min-width: 0;
  margin: 36px auto 56px;
  padding: clamp(20px, 4vw, 40px);
  background: #fff;
  border: 1px solid #dce5ea;
  border-top: 5px solid #009eaa;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(18, 55, 79, .08);
  color: #18354a;
}

form.comment-form .form-item {
  margin-bottom: 24px;
  min-width: 0;
}

form.comment-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

form.comment-form input.form-text,
form.comment-form input.form-email,
form.comment-form textarea,
form.comment-form select {
  box-sizing: border-box;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #aebfc9;
  border-radius: 8px;
  background: #fff;
  color: #18354a;
  font: inherit;
}

form.comment-form input.form-text,
form.comment-form input.form-email,
form.comment-form textarea {
  width: 100%;
}

form.comment-form textarea {
  min-height: 220px;
}

form.comment-form .ck-editor {
  width: 100%;
  min-width: 0;
}

form.comment-form .ck-editor__editable_inline {
  min-height: 220px;
}

form.comment-form input:focus-visible,
form.comment-form textarea:focus-visible,
form.comment-form select:focus-visible,
form.comment-form .form-submit:focus-visible {
  outline: 3px solid #00828c;
  outline-offset: 3px;
}

form.comment-form .description,
form.comment-form .filter-guidelines {
  margin-top: 8px;
  color: #526575;
  font-size: .9rem;
  line-height: 1.6;
}

form.comment-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

form.comment-form .form-actions .form-submit {
  margin: 0;
  padding: 12px 24px;
  border: 2px solid #007e88;
  border-radius: 24px;
  background: #007e88;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

form.comment-form .form-actions .form-submit:hover {
  background: #005f68;
  border-color: #005f68;
}

form.comment-form .form-actions [data-drupal-selector="edit-preview"] {
  background: #fff;
  color: #006b74;
}

@media (max-width: 600px) {
  form.comment-form {
    margin-top: 20px;
    padding: 20px 16px;
    border-radius: 12px;
  }

  form.comment-form .form-actions .form-submit {
    width: 100%;
  }
}
/* FIN APB COMMENTAIRES V1 */
